Skip to content

makhanovable/contest_bridge

Repository files navigation

SmartContract error codes

  • 5294 - Invalid Block Signature
  • 1455 - New Key Block's seqno is lower than current
  • 2519 - Block has no signatures
  • 3822 - No validators found
  • 7465 - Wrong transaction proof

I was only able to deploy to the testnet and synchronized the key block from the mainnet there

LiteClient SmartContract:

TransactionChecker SmartContract:

CheckBlock success:

CheckBlock with invalid signature (5294):

CheckBlock with empty signatures (2519):

CheckBlock no validators found in smartcontract for current signature (3822):

NewKeyBlock with low seqno than current (1455):

CheckTransaction success:

CheckTransaction invalid proof (7465):

Build

npm install

npx blueprint build

npx blueprint run

Scripts (contract deployed to testnet, so it works in testnet)

lite_client/getCurrentKeyBlock - Returns current key block in smartcontract

lite_client/sendNewKeyBlock - Sends new key block (only owner can send)

lite_client/forceSendKeyBlock - Sends new key block (everybody can send without validation)

trans_checker/checkTransaction - Check random transaction from masterchain block

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published