Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_1_filetest.gno

4.19 Kb · 104 lines
  1// PKGPATH: gno.land/r/gnops/valopers_test
  2// SEND: 20000000ugnot
  3
  4package valopers_test
  5
  6import (
  7	"testing"
  8
  9	"gno.land/p/nt/testutils"
 10	"gno.land/r/gnops/valopers"
 11)
 12
 13var g1user = testutils.TestAddress("g1user") // g1vuch2um9wf047h6lta047h6lta047h6l2ewm6w
 14
 15const (
 16	validMoniker     = "test-1"
 17	validDescription = "test-1's description"
 18	validAddress     = address("g1sp8v98h2gadm5jggtzz9w5ksexqn68ympsd68h")
 19	validPubKey      = "gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zqwpdwpd0f9fvqla089ndw5g9hcsufad77fml2vlu73fk8q8sh8v72cza5p"
 20)
 21
 22func init() {
 23	testing.SetOriginCaller(g1user)
 24
 25	// Register a validator and add the proposal
 26	valopers.Register(cross, validMoniker, validDescription, validAddress, validPubKey)
 27}
 28
 29func main() {
 30	println(valopers.Render(""))
 31}
 32
 33// Output:
 34//
 35// # Welcome to the **Valopers** realm
 36//
 37// ## 📌 Purpose of this Contract
 38//
 39// 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**.
 40//
 41// By registering your validator profile, you contribute to a transparent and well-informed governance process within **gno.land**.
 42//
 43// ---
 44//
 45// ## 📝 How to Register Your Validator Node
 46//
 47// To add your validator node to the registry, use the [**Register**](/r/gnops/valopers$help&func=Register) function with the following parameters:
 48//
 49// - **Moniker** (Validator Name)
 50//   - Must be **human-readable**
 51//   - **Max length**: **32 characters**
 52//   - **Allowed characters**: Letters, numbers, spaces, hyphens (**-**), and underscores (**_**)
 53//   - **No special characters** at the beginning or end
 54//
 55// - **Description** (Introduction & Validator Details)
 56//   - **Max length**: **2048 characters**
 57//   - Must include answers to the questions listed below
 58//
 59// - **Validator Address**
 60//   - Your validator node’s address
 61//
 62// - **Validator Public Key**
 63//   - Your validator node’s public key
 64//
 65// ### ✍️ Required Information for the Description
 66//
 67// Please provide detailed answers to the following questions to ensure transparency and improve your chances of being accepted:
 68//
 69// 1. The name of your validator
 70// 2. Networks you are currently validating and your total AuM (assets under management)
 71// 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.
 72// 4. Contact details
 73// 5. Why are you interested in validating on **gno.land**?
 74// 6. What contributions have you made or are willing to make to **gno.land**?
 75//
 76// ---
 77//
 78// ## 🔄 Updating Your Validator Information
 79//
 80// After registration, you can update your validator details using the **update functions** provided by the contract.
 81//
 82// ---
 83//
 84// ## 📢 Submitting a Proposal to Join the Validator Set
 85//
 86// 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.
 87//
 88// If you are a GovDAO member, you can nominate yourself by executing the following function: [**r/gnops/valopers/proposal.ProposeNewValidator**](/r/gnops/valopers/proposal$help&func=ProposeNewValidator)
 89//
 90// This will initiate a governance process where **GovDAO** members will vote on your proposal.
 91//
 92// ---
 93//
 94// 🚀 **Register now and become a part of gno.land’s validator ecosystem!**
 95//
 96// 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 -->
 97//
 98// 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.
 99//
100// ---
101//
102//
103//
104//  * [test-1](/r/gnops/valopers:g1sp8v98h2gadm5jggtzz9w5ksexqn68ympsd68h) - [profile](/r/demo/profile:u/g1vuch2um9wf047h6lta047h6lta047h6l2ewm6w)