@@ -310,14 +310,14 @@ Smart contract instantiation is creating and deploying a smart contract instance
310
310
311
311
| CODE_ID | Smart contract | Description |
312
312
| ------- | --------------------------------------------------------------------------------------- | ----------------------------------- |
313
- | 4 | [ ` objectarium ` ] ( https://github.com/axone-protocol/contracts/tree/main/contracts/axone-objectarium ) | Unstructured object storage |
314
- | 5 | [ ` law-stone ` ] ( https://github.com/axone-protocol/contracts/tree/main/contracts/axone-law-stone ) | Source of rules |
315
- | 7 | [ ` cognitarium ` ] ( https://github.com/axone-protocol/contracts/tree/main/contracts/axone-cognitarium ) | Structured object storage, ontology |
313
+ | 2 | [ ` objectarium ` ] ( https://github.com/axone-protocol/contracts/tree/main/contracts/axone-objectarium ) | Unstructured object storage |
314
+ | 1 | [ ` law-stone ` ] ( https://github.com/axone-protocol/contracts/tree/main/contracts/axone-law-stone ) | Source of rules |
315
+ | 3 | [ ` cognitarium ` ] ( https://github.com/axone-protocol/contracts/tree/main/contracts/axone-cognitarium ) | Structured object storage, ontology |
316
316
317
317
Let's create a new ` objectarium ` instance. The [ msg.rs] ( https://github.com/axone-protocol/contracts/blob/main/contracts/axone-objectarium/src/msg.rs ) source file indicates we only need to provide a bucket name.
318
318
319
319
``` bash
320
- axoned tx wasm instantiate 4 \
320
+ axoned tx wasm instantiate 2 \
321
321
--label " cli-tuto" \
322
322
--from axone1cu9wzlcyyxpek20jaqfwzu3llzjgx34cqf94yj \
323
323
--admin axone1cu9wzlcyyxpek20jaqfwzu3llzjgx34cqf94yj \
@@ -392,7 +392,7 @@ axoned query wasm contract-state smart axone1tca04wdta7pyzzyetgqyl2rn9v5vgxq0cwv
392
392
393
393
``` bash
394
394
axoned query txs \
395
- --events ' instantiate.code_id=5 ' \
395
+ --events ' instantiate.code_id=1 ' \
396
396
--chain-id axone-dentrite-1 \
397
397
--node https://api.dentrite.axone.xyz:443/rpc --output json | jq \
398
398
' {total_count: .total_count, txs: [.txs[] | {date: .timestamp, sc_addr: .logs[0].events[] | select (.type == "instantiate").attributes[0].value , txdata: .tx.body.messages[0] | { sender: .sender, program: .msg.program }}]}'
0 commit comments