Skip to content

Commit

Permalink
Merge pull request #2 from telosnetwork/pt/use_split_snarktor_contracts
Browse files Browse the repository at this point in the history
Update SNARKtor contracts

After the latest updates, the SNARKtor contract has been split into:

- SNARKtor Receiver Contract
- SNARKtor Goldilocks Verifier Contract

The old contract has been replaced with the new ones. In addition, the Docker image now includes the Plonky2 Battleship and the eosio.ftoken contracts.

The embedded devnet wallet has been configured to include Alice and Bob accounts, which are useful for testing purposes.
  • Loading branch information
ptagl committed Sep 13, 2024
2 parents e053305 + 8e1a20d commit 8184ad8
Show file tree
Hide file tree
Showing 10 changed files with 548 additions and 1 deletion.
186 changes: 186 additions & 0 deletions contracts/eosio.ftoken/token.abi
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
{
"version": "eosio::abi/1.1",
"types": [],
"structs": [
{
"name": "Account",
"base": "",
"fields": [
{
"name": "balance",
"type": "asset"
}
]
},
{
"name": "CurrencyStats",
"base": "",
"fields": [
{
"name": "supply",
"type": "asset"
},
{
"name": "max_supply",
"type": "asset"
},
{
"name": "issuer",
"type": "name"
}
]
},
{
"name": "close",
"base": "",
"fields": [
{
"name": "owner",
"type": "name"
},
{
"name": "symbol",
"type": "symbol"
}
]
},
{
"name": "create",
"base": "",
"fields": [
{
"name": "issuer",
"type": "name"
},
{
"name": "maximum_supply",
"type": "asset"
}
]
},
{
"name": "issue",
"base": "",
"fields": [
{
"name": "to",
"type": "name"
},
{
"name": "quantity",
"type": "asset"
},
{
"name": "memo",
"type": "string"
}
]
},
{
"name": "open",
"base": "",
"fields": [
{
"name": "owner",
"type": "name"
},
{
"name": "symbol",
"type": "symbol"
},
{
"name": "ram_payer",
"type": "name"
}
]
},
{
"name": "retire",
"base": "",
"fields": [
{
"name": "quantity",
"type": "asset"
},
{
"name": "memo",
"type": "string"
}
]
},
{
"name": "transfer",
"base": "",
"fields": [
{
"name": "from",
"type": "name"
},
{
"name": "to",
"type": "name"
},
{
"name": "quantity",
"type": "asset"
},
{
"name": "memo",
"type": "string"
}
]
}
],
"actions": [
{
"name": "close",
"type": "close",
"ricardian_contract": ""
},
{
"name": "create",
"type": "create",
"ricardian_contract": ""
},
{
"name": "issue",
"type": "issue",
"ricardian_contract": ""
},
{
"name": "open",
"type": "open",
"ricardian_contract": ""
},
{
"name": "retire",
"type": "retire",
"ricardian_contract": ""
},
{
"name": "transfer",
"type": "transfer",
"ricardian_contract": ""
}
],
"tables": [
{
"name": "accounts",
"type": "Account",
"index_type": "i64",
"key_names": [],
"key_types": []
},
{
"name": "stat",
"type": "CurrencyStats",
"index_type": "i64",
"key_names": [],
"key_types": []
}
],
"variants": [],
"abi_extensions": [],
"error_messages": [],
"ricardian_clauses": []
}
Binary file added contracts/eosio.ftoken/token.wasm
Binary file not shown.
Loading

0 comments on commit 8184ad8

Please sign in to comment.