Explorer
TCGL2 settles to BNB Chain.
Settlement on BNB Chain
| Contract | Address | Deployed in | |
|---|---|---|---|
| Validator bonds and slashing BondVault | 0x1494…1A8D | Block 135,579,585 | |
| Block checkpoints Checkpoints | 0x6836…2Ed5 | Block 135,579,591 | |
| Bridge Bridge | 0x9Cb3…47d9 | Block 135,586,150 | |
| Card prices PriceFeed | 0x6903…AE1b | Block 135,579,578 | |
| CUSD dollar CardDollar | 0x8422…b58c | Block 135,579,597 | |
| Card vault CardVault | 0x3C15…2413 | Block 135,579,601 |
How it works
Who makes a block
Each height, selectProposer hashes the parent block hash and height and walks the validator list, so a validator is picked in proportion to the dollar value of the cards it has bonded.
When a block is final
A block is final once validators holding two thirds of all bonded value have signed its hash.
What goes to BNB Chain
Every 150 blocks the block height, block hash and state root are signed by that same two thirds and posted to Checkpoints.submit, which checks the signatures against the bonded set.
Slashing
BondVault.slashDoubleSign takes two different signed headers from one validator at one height. Anyone can submit them. The contract jails the validator and sends all of its bonded cards to the reporter.
The bridge
Cards, CUSD and the gas coin locked in Bridge on BNB Chain are credited on TCGL2 by the validators. To leave, SystemBridge records the withdrawal on TCGL2 and Bridge.withdraw releases it on BNB Chain once signatures from two thirds of bonded value are given, each withdrawal once.
Machine randomness
The block maker signs the previous random value and the height with its BLS key; the hash of that signature is the new value, and every validator checks it before accepting the block. CardMachine mixes it with the pool, pull count and buyer, and picks the card in the same transaction.