Gno.land
| 1 | package launchpad |
| 2 | |
| 3 | // Counter manages unique incrementing IDs. |
| 4 | type Counter struct { |
| 5 | id int64 |
| 6 | } |
| 7 | |
| 8 | // NewCounter creates a new Counter starting at zero. |
| 9 | // |
| 10 | // Returns: |
| 11 | // - counter: counter initialized with current ID zero. |
| 12 | func NewCounter() *Counter { |
| 13 | return &Counter{ |
| 14 | id: 0, |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | // Next increments the counter and returns the next unique ID. |
| 19 | // |
| 20 | // Returns: |
| 21 | // - id: incremented counter value. |
| 22 | func (c *Counter) Next() int64 { |
| 23 | c.id++ |
| 24 | |
| 25 | return c.id |
| 26 | } |
| 27 | |
| 28 | // Get returns the current counter ID without incrementing it. |
| 29 | // |
| 30 | // Returns: |
| 31 | // - id: current counter value. |
| 32 | func (c *Counter) Get() int64 { |
| 33 | return c.id |
| 34 | } |
| Function | Parameters |
|---|---|
| NewCounter | () |
| MakeDeposit | (depositID string, projectID string, tier int64, depositor string, depositAmount int64, createdHeight int64, createdTime int64, endTime int64) |
| DefaultDeposit | () |
| GetProjects | () |
| GetProjectName | (projectId string) |
| GetProjectTokenPath | (projectId string) |
| GetProjectDepositAmount | (projectId string) |
| GetProjectRecipient | (projectId string) |
| GetProjectCondition | (projectId string, tokenPath string) |
| GetProjectTiersRatios | (projectId string) |
| GetProjectCreatedHeight | (projectId string) |
| GetProjectCreatedAt | (projectId string) |
Gnoswap Launchpad
All GNS amounts use the token's six-decimal base units. Project reward amounts use the project token's own base units.
Implementation and access
| Field | Value | | --- | --- | | Realm address | g1x6r75sxlkp9zfqufew0vcuq9sfclsq8uaqkru9 | | Active implementation | gno\.land/r/gnoswap/launchpad/v1 | | Launchpad operations halted | false | | Withdrawal operations halted | false | | Project creation role (admin) | g1qvtuwyxcwezfqu3fp56pr5krgfjjyumeeecmzg | | Project creation role (governance) | g109hw2sc704c2vnxy2y89vjyqluvzra8rhp4l8w |
Deposit accounting and configuration
| Field | Value | | --- | --- | | Stored project records | 1 | | Stored unique project-recipient records | 1 | | Stored project-tier reward-manager records | 3 | | Stored deposit records (including withdrawn) | 288 | | Deposit ID counter (allocated IDs) | 288 | | Current GNS staked amount (base units; 6 decimals) | 1132038000000 | | Minimum GNS deposit (base units; 6 decimals) | 1000000 | | Minimum project start delay (seconds) | 259200 | | Project tiers (days) | 30 / 90 / 180 | | Reward claimable duration (seconds) | 86400 |