文档
概念
1、公平分配:是一种公平发射的铭文代币协议,每个人都可以公平参与。
2、余额记账:通过余额记账的方式让转移更加灵活方便,节省gas。
3、公开透明:在市场发布之后,我们会公开我们节点的同步方式,通过npm包的形式让大家可以监督记账的公平性。
4、节点共识:在市场稳定之后,我们会采取共识节点的方式来验证所有节点的数据安全,以及数据准确性。
约定
1、mint代币只能from=to
2、不支持合约批量铸造
3、将不再记录mint hash
规范
1、deploy:用于部署NextInscription协议代币
2、mint:用于铸造NextInscription协议代币
3、transfer:用于转移NextInscription协议代币
4、deposit:用于质押NextInscription协议代币
5、NextInscriptionDeposit:用于NextInscription确认质押触发的event
6、NextInscriptionContractTransfer:用于NextInscription协议合约内部代币转出触发的event
Deploy
data:,{"a":"NextInscription","p":"oprc-20","op":"deploy","tick":"NI","max":"210000000000","lim":"10000"}
Key |
Required? |
Desc |
a |
yes |
NextInscription |
p |
yes |
代币协议 |
op |
yes |
操作类型deploy |
tick |
yes |
代币名称 |
max |
yes |
代币总量,必须是lim的倍数 |
lim |
yes |
mint代币数量限制 |
Mint
data:,{"a":"NextInscription","p":"oprc-20","op":"mint","tick":"NI","amt":"10000"}
Key |
Required? |
Desc |
a |
yes |
NextInscription |
p |
yes |
代币协议 |
op |
yes |
操作类型mint |
tick |
yes |
代币名称 |
amt |
yes |
mint数量 |
Transfer
data:,{"a":"NextInscription","p":"oprc-20","op":"transfer","tick":"NI","amt":"10000"}
Key |
Required? |
Desc |
a |
yes |
NextInscription |
p |
yes |
代币协议 |
op |
yes |
操作类型transfer |
tick |
yes |
代币名称 |
amt |
yes |
transfer数量 |
Deposit
data:,{"a":"NextInscription","p":"oprc-20","op":"deposit","tick":"NI","amt":"10000","to":"0x"}
Key |
Required? |
Desc |
a |
yes |
NextInscription |
p |
yes |
代币协议 |
op |
yes |
操作类型deposit |
tick |
yes |
代币名称 |
amt |
yes |
deposit数量 |
to |
yes |
deposit对方地址 |
NextInscriptionDeposit
event NextInscriptionDeposit(
bytes32 indexed orderHash,
bytes32 indexed collectionId,
uint256 indexed amount
);
//用于质押铭文代币给合约。
NextInscriptionContractTransfer
event NextInscriptionContractTransfer(
bytes32 indexed collectionId,
address indexed receive,
uint256 indexed amount
);
//合约内部代币转移,用于合约转账。