z_1_filetest.gno

4.06 Kb · 101 lines
  1// PKGPATH: gno.land/r/gnoland/valopers_test
  2package valopers_test
  3
  4// SEND: 20000000ugnot
  5
  6import (
  7	"std"
  8
  9	valopers "gno.land/r/gnoland/valopers/v2"
 10)
 11
 12const (
 13	validMoniker     = "test-1"
 14	validDescription = "test-1's description"
 15	validAddress     = std.Address("g1sp8v98h2gadm5jggtzz9w5ksexqn68ympsd68h")
 16	validPubKey      = "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqwpdwpd0f9fvqla089ndw5g9hcsufad77fml2vlu73fk8q8sh8v72cza5p"
 17)
 18
 19func init() {
 20	// Register a validator and add the proposal
 21	valopers.Register(validMoniker, validDescription, validAddress, validPubKey)
 22}
 23
 24func main() {
 25	println(valopers.Render(""))
 26}
 27
 28// Output:
 29//
 30// # Welcome to the **Valopers** realm
 31//
 32// ## 📌 Purpose of this Contract
 33//
 34// The **Valopers** contract is designed to maintain a registry of **validator profiles**. This registry provides essential information to **GovDAO members**, enabling them to make informed decisions when voting on the inclusion of new validators into the **valset**.
 35//
 36// By registering your validator profile, you contribute to a transparent and well-informed governance process within **gno.land**.
 37//
 38// ---
 39//
 40// ## 📝 How to Register Your Validator Node
 41//
 42// To add your validator node to the registry, use the [**Register**](/r/gnoland/valopers/v2$help&func=Register) function with the following parameters:
 43//
 44// - **Moniker** (Validator Name)
 45//   - Must be **human-readable**
 46//   - **Max length**: **32 characters**
 47//   - **Allowed characters**: Letters, numbers, spaces, hyphens (**-**), and underscores (**_**)
 48//   - **No special characters** at the beginning or end
 49//
 50// - **Description** (Introduction & Validator Details)
 51//   - **Max length**: **2048 characters**
 52//   - Must include answers to the questions listed below
 53//
 54// - **Validator Address**
 55//   - Your validator node’s address
 56//
 57// - **Validator Public Key**
 58//   - Your validator node’s public key
 59//
 60// ### ✍️ Required Information for the Description
 61//
 62// Please provide detailed answers to the following questions to ensure transparency and improve your chances of being accepted:
 63//
 64// 1. The name of your validator
 65// 2. Networks you are currently validating and your total AuM (assets under management)
 66// 3. Links to your **digital presence** (website, social media, etc.). Please include your Discord handle to be added to our main comms channel, the gno.land valoper Discord channel.
 67// 4. Contact details
 68// 5. Why are you interested in validating on **gno.land**?
 69// 6. What contributions have you made or are willing to make to **gno.land**?
 70//
 71// ---
 72//
 73// ## 🔄 Updating Your Validator Information
 74//
 75// After registration, you can update your validator details using the **update functions** provided by the contract.
 76//
 77// ---
 78//
 79// ## 📢 Submitting a Proposal to Join the Validator Set
 80//
 81// Once you're satisfied with your **valoper** profile, you need to notify GovDAO; only a GovDAO member can submit a proposal to add you to the validator set.
 82//
 83// If you are a GovDAO member, you can nominate yourself by executing the following function: [**r/gnoland/valopers_proposal.ProposeNewValidator**](/r/gnoland/valopers_proposal$help&func=ProposeNewValidator)
 84//
 85// This will initiate a governance process where **GovDAO** members will vote on your proposal.
 86//
 87// ---
 88//
 89// 🚀 **Register now and become a part of gno.land’s validator ecosystem!**
 90//
 91// Read more: [How to become a testnet validator](https://gnops.io/articles/guides/become-testnet-validator/) <!-- XXX: replace with a r/gnops/blog:xxx link -->
 92//
 93// Disclaimer: Please note, registering your validator profile and/or validating on testnets does not guarantee a validator slot on the gno.land beta mainnet. However, active participation and contributions to testnets will help establish credibility and may improve your chances for future validator acceptance. The initial validator amount and valset will ultimately be selected through GovDAO governance proposals and acceptance.
 94//
 95// ---
 96//
 97//
 98//
 99//  * [test-1](/r/gnoland/valopers:g1sp8v98h2gadm5jggtzz9w5ksexqn68ympsd68h) - [profile](/r/demo/profile:u/g1p9elmfxvctlkypargf7wruch5vchuysqr2xg2q)
100//
101//