...node
const leafValue = this.N(level, index);
// get the levels and indexes of the nodes on the leaf's merkle path
const merklePath = getMerklePathOfNode(level, index);
// get the levels and indexes of the siblings of the nodes on the merkle path
const merklePathSiblings ...
...
```
/**
* @title ETH bonus pool
ETH分红池
* @dev ETH collection and inquiry
ETH领取与查询
*/
contract Nest_3_Abonus {
using address_make_payable for address;
using SafeMath for uint256;
Nest_3_VoteFactory _voteFactory; // Voting...
...t, recipient)
}
/// mint NFT 并发送给指定地址
public fun mint_and_transfer(recipient: address, ctx: &mut TxContext) {
let nft = GreyhaoNFT {
id: object::new(ctx),
name: utf8(b"GREYHAO"),
description: utf8(b"NFT was created by GreyHao."),
url: url,
}
transfer...
... fabric is an implementation of blockchain technology, leveraging familiar and proven technologies. It is a modular architecture allowing pluggable implementations of various function. It features powerful container technology to host any mainstream language for smart contracts development.
```
...
..., "msg %v: %v", msg, err)
}
for i, tx := range txs {
// Validate and mark the remote transaction
p.MarkTransaction(tx.Hash())
}
// Broadcast the block and announce chain insertion event
pm.eventMux.Post(core.NewOtherTxsEvent{Txs: txs})
```
网络中收到跨链交易后,...