百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

core-contracts

> 编程语言
开源

核心合约:参考持仓池、锁仓、投票、白名单、多重签名。

346 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

核心合约:参考持仓池、锁仓、投票、白名单、多重签名。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rusthacktoberfest

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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