Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

core-contracts

> 编程语言
Open source

Core contracts: reference staking pool, lockup, voting, whitelist, multisig.

346 stars0 likes2 views
WebsiteGitHub

About

Core contracts: reference staking pool, lockup, voting, whitelist, multisig.

Core contracts

  • Lockup / Vesting contract
  • Lockup Factory
  • Multisig contract
  • Staking Pool / Delegation contract
  • Staking Pool Factory
  • Voting Contract
  • Whitelist Contract

Building and deploying

See scripts folder for details.

Initializing Contracts with near-shell

When setting up the contract creating the contract account, deploying the binary, and initializing the state must all be done as an atomic step. For example, in our tests for the lockup contract we initialize it like this:

…

To do this with near shell, first add a script like deploy.js:

…

Then use the near repl command. Once at the command prompt, load the script:

javascript
> .load deploy.js

Note: nearAPI and near are both preloaded to the repl's context.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rusthacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言