diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out deleted file mode 100644 index 66ee097f717776eae1348a2a92988a38a6e59f85..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8553.386 units (will add 100 for safety) -Estimated storage: 141 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8654 - Storage limit: 161 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 722 ; - 9013500100 ; - 72107 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4633 bytes - Paid storage size diff: 3 bytes - Consumed gas: 2274.737 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.00075 - storage fees ........................... +ꜩ0.00075 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 721)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999279 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99999279 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 721 - Storage size: 2263 bytes - Paid storage size diff: 68 bytes - Consumed gas: 3065.552 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 72007 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 72007 - Storage size: 2048 bytes - Paid storage size diff: 70 bytes - Consumed gas: 3213.097 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0175 - storage fees ........................... +ꜩ0.0175 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out deleted file mode 100644 index 10f3f882031a6711632dc76ef39539be170883c5..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approval - -Node is bootstrapped. -Estimated gas: 1679.709 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000485 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000485 - payload fees(the block proposer) ....... +ꜩ0.000485 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } - Updated big_maps: - Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 - Storage size: 2116 bytes - Paid storage size diff: 68 bytes - Consumed gas: 1679.709 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out deleted file mode 100644 index 4fc071724e50153f9a607c579ce4a4c5bf56a913..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approved_transfer - -Node is bootstrapped. -Estimated gas: 3044.096 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000672 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3145 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000672 - payload fees(the block proposer) ....... +ꜩ0.000672 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } - Updated big_maps: - Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 71007 - Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 - Storage size: 2116 bytes - Consumed gas: 3044.096 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out deleted file mode 100644 index 1ea67f1d08c5aa17953036a2f22167302d2e3902..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.785 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.785 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out deleted file mode 100644 index c721e8b0d4a13282839cb3f49ed35bb3c55fad0c..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.785 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.785 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out deleted file mode 100644 index ee4881bd282bc41f0afc0283d6980c5162cd7e04..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.785 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.785 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out deleted file mode 100644 index e40a4eafbbb3fd62fe6a338bc62920959a951f95..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.054 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.527 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out deleted file mode 100644 index 920a9d8314b5b1d613c32dbdc3764de17fdd6b30..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_dex_storage - -Pair 712 - 8895894353 - 71107 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out deleted file mode 100644 index 45f4c76a71e95187e2cb6c74639657ed40755dec..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 71107 diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out deleted file mode 100644 index e14d7c27f94cae80c32752efbfbf4e5285c3f409..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out +++ /dev/null @@ -1,80 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_remove_liquidity - -Node is bootstrapped. -Estimated gas: 7517.954 units (will add 100 for safety) -Estimated storage: 67 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001114 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7618 - Storage limit: 87 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001114 - payload fees(the block proposer) ....... +ꜩ0.001114 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: removeLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 1000 0 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 712 ; - 8895894353 ; - 71107 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4633 bytes - Consumed gas: 2276.887 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 71107 } - Updated big_maps: - Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] - Storage size: 2048 bytes - Consumed gas: 1873.230 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 711 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 - Storage size: 2330 bytes - Paid storage size diff: 67 bytes - Consumed gas: 2367.837 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01675 - storage fees ........................... +ꜩ0.01675 - Internal Transaction: - Amount: ꜩ125.105747 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ125.105747 - [CONTRACT_HASH] ... +ꜩ125.105747 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out deleted file mode 100644 index 858f822473c457831b60a9203c3876a9864b9f2f..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out deleted file mode 100644 index 04fc014d32db4d895390937581cd632b6d447891..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_014/test_liquidity_baking.py::TestAddApproveTransferRemove::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out deleted file mode 100644 index 4c3cbcc82e60fd4f1e507a9429ccc13096b76191..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8553.386 units (will add 100 for safety) -Estimated storage: 141 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8654 - Storage limit: 161 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 722 ; - 9013500100 ; - 72107 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4633 bytes - Paid storage size diff: 3 bytes - Consumed gas: 2274.737 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.00075 - storage fees ........................... +ꜩ0.00075 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 721)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999279 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99999279 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 721 - Storage size: 2263 bytes - Paid storage size diff: 68 bytes - Consumed gas: 3065.552 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 72007 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 72007 - Storage size: 2048 bytes - Paid storage size diff: 70 bytes - Consumed gas: 3213.097 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0175 - storage fees ........................... +ꜩ0.0175 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out deleted file mode 100644 index fb44b40e4c22dfd4b335276eed1cf8e485403460..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out +++ /dev/null @@ -1,75 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_buy_tok - -Node is bootstrapped. -Estimated gas: 5113.582 units (will add 100 for safety) -Estimated storage: 326 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000869 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 5214 - Storage limit: 346 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000869 - payload fees(the block proposer) ....... +ꜩ0.000869 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: xtzToToken - Parameter: (Pair "[CONTRACT_HASH]" 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 362 ; - 18007999100 ; - 72107 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4634 bytes - Paid storage size diff: 1 bytes - Consumed gas: 1745.741 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.00025 - storage fees ........................... +ꜩ0.00025 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 360)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 361 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 360 - Storage size: 2331 bytes - Paid storage size diff: 68 bytes - Consumed gas: 2367.841 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - Internal Transaction: - Amount: ꜩ9.001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ9.001 - [CONTRACT_HASH] ... +ꜩ9.001 - [CONTRACT_HASH] ... -ꜩ0.06425 - storage fees ........................... +ꜩ0.06425 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out deleted file mode 100644 index 5f68f73653f2426103c4f70531a3bc86734aa782..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.785 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.785 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out deleted file mode 100644 index e509f9ff0a7ccb112d6ab843fe4cf680e87ca74b..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.785 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.785 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out deleted file mode 100644 index cfcc5e71ac2902be6eef7f63f95ea49f871274e9..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.785 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.785 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out deleted file mode 100644 index 6076857ab64d2435eb099f4b84ffdfdf1b93ae68..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.054 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.527 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out deleted file mode 100644 index a87b254ab3b87fa2023e530c75a3eba3c23ac3e3..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_dex_storage - -Pair 462 - 14117137204 - 72107 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out deleted file mode 100644 index a6181b3e6bcd3c8ec4a671dba2e34dd7bf1a2ed4..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 72107 diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out deleted file mode 100644 index 4a28e1eb247056d6c291d4d02a94f84722d1386a..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out +++ /dev/null @@ -1,74 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_sell_tok - -Node is bootstrapped. -Estimated gas: 7012.513 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001057 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7113 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001057 - payload fees(the block proposer) ....... +ꜩ0.001057 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: tokenToXtz - Parameter: (Pair "[CONTRACT_HASH]" 100 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 462 ; - 14117137204 ; - 72107 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4633 bytes - Consumed gas: 1746.925 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 - Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 461 - Storage size: 2331 bytes - Consumed gas: 3265.588 - Internal Transaction: - Amount: ꜩ3891.966034 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ3891.966034 - [CONTRACT_HASH] ... +ꜩ3891.966034 - Internal Transaction: - Amount: ꜩ3.895862 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ3.895862 - [CONTRACT_HASH] ... +ꜩ3.895862 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out deleted file mode 100644 index c4adb2b00be1c0e065c2300134e71a9fc0c45ba9..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out deleted file mode 100644 index 65801cbe84077bcb5b089fda6e077049b12191ef..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out b/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out deleted file mode 100644 index 11cda60a27a223a9e089334c8630a979f313749c..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out +++ /dev/null @@ -1,43 +0,0 @@ -tests_014/test_liquidity_baking.py::TestTrades::test_transfer - -Node is bootstrapped. -Estimated gas: 2376.541 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000605 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 2477 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000605 - payload fees(the block proposer) ....... +ꜩ0.000605 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 100) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 260 - Storage size: 2399 bytes - Paid storage size diff: 68 bytes - Consumed gas: 2376.541 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_014/test_liquidity_baking.py b/tests_python/tests_014/test_liquidity_baking.py deleted file mode 100644 index 17aaafa063059d3a6e575c65a5b47c8abc8439eb..0000000000000000000000000000000000000000 --- a/tests_python/tests_014/test_liquidity_baking.py +++ /dev/null @@ -1,279 +0,0 @@ -import pytest - -from tools import utils -from tools.constants import IDENTITIES - -DEX = "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" -TOK = "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" -LQT = "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" -BOOTSTRAP1 = IDENTITIES['bootstrap1']['identity'] -TOK_ADMIN = BOOTSTRAP1 -BOOTSTRAP2 = IDENTITIES['bootstrap2']['identity'] -BOOTSTRAP3 = IDENTITIES['bootstrap3']['identity'] -FUTURE = "2050-01-01T00:00:00Z" - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class SetupMintAndApprove: - """Test calling entrypoints of liquidity baking contracts""" - - def test_setup(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - assert DEX == client.rpc( - 'get', - "/chains/main/blocks/head/context/liquidity_baking/cpmm_address", - ) - dex_storage = client.get_storage(DEX).split() - assert dex_storage[4].strip('"') == TOK - assert dex_storage[5].strip('"') == LQT - - # mint some test TOK (1 tzBTC?) for ourselves - def test_call_mint_or_burn(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - TOK_ADMIN, - TOK, - [ - '--entrypoint', - 'mintOrBurn', - '--arg', - f'(Pair 100000000 "{BOOTSTRAP1}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # pre-approve big allowances in TOK for DEX - def test_call_approve1(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve2(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve3(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestAddApproveTransferRemove(SetupMintAndApprove): - """Test add/approve/transfer/remove liquidity""" - - # first add liquidity on DEX so that we have some LQT - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # test LQT approval - def test_approval(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - LQT, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # transfer LQT to bootstrap2 (using approval) - def test_approved_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - LQT, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP1}" "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # now remove LQT for bootstrap2 - def test_remove_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'removeLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000 0 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestTrades(SetupMintAndApprove): - """Test trades""" - - # add liquidity - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 buys some TOK - def test_buy_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'xtzToToken', - '--arg', - f'(Pair "{BOOTSTRAP2}" 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 transfers TOK to bootstrap3 - def test_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP2}" "{BOOTSTRAP3}" 100)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap3 sells TOK - def test_sell_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - DEX, - [ - '--entrypoint', - 'tokenToXtz', - '--arg', - f'(Pair "{BOOTSTRAP3}" 100 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out deleted file mode 100644 index 743016ae61889aabf2bde564c2012c9af46b0710..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8555.847 units (will add 100 for safety) -Estimated storage: 147 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8656 - Storage limit: 167 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21599 ; - 9001416765 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Paid storage size diff: 6 bytes - Consumed gas: 2278.202 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0015 - storage fees ........................... +ꜩ0.0015 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 - Storage size: 2264 bytes - Paid storage size diff: 69 bytes - Consumed gas: 3064.106 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 - Storage size: 2050 bytes - Paid storage size diff: 72 bytes - Consumed gas: 3213.539 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.018 - storage fees ........................... +ꜩ0.018 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out deleted file mode 100644 index 84ffbd97692c489af5c10dbaebc408dd7508554f..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approval - -Node is bootstrapped. -Estimated gas: 1679.581 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000485 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000485 - payload fees(the block proposer) ....... +ꜩ0.000485 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 - Storage size: 2118 bytes - Paid storage size diff: 68 bytes - Consumed gas: 1679.581 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out deleted file mode 100644 index bef7f5561d97371c441e025c2be1539dfc7bac3c..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approved_transfer - -Node is bootstrapped. -Estimated gas: 3042.409 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000672 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3143 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000672 - payload fees(the block proposer) ....... +ꜩ0.000672 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2158730 - Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 - Storage size: 2118 bytes - Consumed gas: 3042.409 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out deleted file mode 100644 index 43cba50dc4c32c26aacee55e68a17a4160de5fb7..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out deleted file mode 100644 index a40930b209ced921017f99071ed16d9205f16dea..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out deleted file mode 100644 index 2713ce9c1d7ee14c21c588d7948d6aa2a9471b0c..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out deleted file mode 100644 index 01cbbdaa3be37ad55204a5a2d04f1596fefc07d3..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.516 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.989 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out deleted file mode 100644 index 56f3fd40f732ad5668130af3bb2eed04eecf58c3..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_dex_storage - -Pair 21589 - 8997498998 - 2158830 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out deleted file mode 100644 index 9ad580297f77d59819b457910b20d89b9f42e08c..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 2158830 diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out deleted file mode 100644 index 966a1a394f34f22f0f309830a0a58609ce11ae26..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out +++ /dev/null @@ -1,80 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_remove_liquidity - -Node is bootstrapped. -Estimated gas: 7520.791 units (will add 100 for safety) -Estimated storage: 67 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001115 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7621 - Storage limit: 87 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001115 - payload fees(the block proposer) ....... +ꜩ0.001115 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: removeLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 1000 0 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21589 ; - 8997498998 ; - 2158830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Consumed gas: 2279.807 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2158830 } - Updated big_maps: - Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] - Storage size: 2050 bytes - Consumed gas: 1873.473 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21588 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 - Storage size: 2331 bytes - Paid storage size diff: 67 bytes - Consumed gas: 2367.511 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01675 - storage fees ........................... +ꜩ0.01675 - Internal Transaction: - Amount: ꜩ4.167766 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ4.167766 - [CONTRACT_HASH] ... +ꜩ4.167766 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out deleted file mode 100644 index 17d1cd2c9258fcb8e5fc2400071a21a7cd0ef063..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out deleted file mode 100644 index 00e031696c17462a6e95b8e1fe88407d03ff3660..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_015/test_liquidity_baking.py::TestAddApproveTransferRemove::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out deleted file mode 100644 index 0a1d457e36a9a102c21f9ec3b3ef9ce05353fa71..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8555.847 units (will add 100 for safety) -Estimated storage: 147 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8656 - Storage limit: 167 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21599 ; - 9001416765 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Paid storage size diff: 6 bytes - Consumed gas: 2278.202 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0015 - storage fees ........................... +ꜩ0.0015 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 - Storage size: 2264 bytes - Paid storage size diff: 69 bytes - Consumed gas: 3064.106 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 - Storage size: 2050 bytes - Paid storage size diff: 72 bytes - Consumed gas: 3213.539 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.018 - storage fees ........................... +ꜩ0.018 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out deleted file mode 100644 index 21821d933096a3c442030df428ed34d7e8d81a70..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out +++ /dev/null @@ -1,75 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_buy_tok - -Node is bootstrapped. -Estimated gas: 5115.557 units (will add 100 for safety) -Estimated storage: 327 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000869 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 5216 - Storage limit: 347 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000869 - payload fees(the block proposer) ....... +ꜩ0.000869 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: xtzToToken - Parameter: (Pair "[CONTRACT_HASH]" 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 10811 ; - 17993499098 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4636 bytes - Paid storage size diff: 1 bytes - Consumed gas: 1748.012 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.00025 - storage fees ........................... +ꜩ0.00025 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10788)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10810 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10788 - Storage size: 2333 bytes - Paid storage size diff: 69 bytes - Consumed gas: 2367.545 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ9.001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ9.001 - [CONTRACT_HASH] ... +ꜩ9.001 - [CONTRACT_HASH] ... -ꜩ0.06425 - storage fees ........................... +ꜩ0.06425 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out deleted file mode 100644 index 2aa203585356e6bdb3126fe2eb0a31aeedd77f09..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out deleted file mode 100644 index 165704d79e1276a23f7d33eeb41556feac02534a..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out deleted file mode 100644 index 231604e75793747817c98170f1db00d413cc2184..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out deleted file mode 100644 index d1b559ce06a9a3c07f2972869ef4ba50322a7418..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.516 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.989 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out deleted file mode 100644 index cd4e3ba33f765c38dd724b7dbe15b335e37ed559..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_dex_storage - -Pair 10911 - 17828916091 - 2159830 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out deleted file mode 100644 index 308eee886f3349b6514e7633d19e2f942f520443..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 2159830 diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out deleted file mode 100644 index 97adbf9f14fc3d4a13d2e7556365875b1af440c3..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out +++ /dev/null @@ -1,74 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_sell_tok - -Node is bootstrapped. -Estimated gas: 7012.582 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001057 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7113 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001057 - payload fees(the block proposer) ....... +ꜩ0.001057 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: tokenToXtz - Parameter: (Pair "[CONTRACT_HASH]" 100 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 10911 ; - 17828916091 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4636 bytes - Consumed gas: 1748.660 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 - Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10910 - Storage size: 2333 bytes - Consumed gas: 3263.922 - Internal Transaction: - Amount: ꜩ164.584923 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ164.584923 - [CONTRACT_HASH] ... +ꜩ164.584923 - Internal Transaction: - Amount: ꜩ0.16475 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.16475 - [CONTRACT_HASH] ... +ꜩ0.16475 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out deleted file mode 100644 index 911015f68dbfa30db35808923136d106a7da43da..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out deleted file mode 100644 index ebd46b2b084e49a83799d4f0461a5f2ca70be7ce..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out b/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out deleted file mode 100644 index 66291853139cf84c75631ffac4c23ab15836d040..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out +++ /dev/null @@ -1,43 +0,0 @@ -tests_015/test_liquidity_baking.py::TestTrades::test_transfer - -Node is bootstrapped. -Estimated gas: 2376.215 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000605 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 2477 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000605 - payload fees(the block proposer) ....... +ꜩ0.000605 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 100) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10688 - Storage size: 2401 bytes - Paid storage size diff: 68 bytes - Consumed gas: 2376.215 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_015/test_liquidity_baking.py b/tests_python/tests_015/test_liquidity_baking.py deleted file mode 100644 index 17aaafa063059d3a6e575c65a5b47c8abc8439eb..0000000000000000000000000000000000000000 --- a/tests_python/tests_015/test_liquidity_baking.py +++ /dev/null @@ -1,279 +0,0 @@ -import pytest - -from tools import utils -from tools.constants import IDENTITIES - -DEX = "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" -TOK = "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" -LQT = "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" -BOOTSTRAP1 = IDENTITIES['bootstrap1']['identity'] -TOK_ADMIN = BOOTSTRAP1 -BOOTSTRAP2 = IDENTITIES['bootstrap2']['identity'] -BOOTSTRAP3 = IDENTITIES['bootstrap3']['identity'] -FUTURE = "2050-01-01T00:00:00Z" - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class SetupMintAndApprove: - """Test calling entrypoints of liquidity baking contracts""" - - def test_setup(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - assert DEX == client.rpc( - 'get', - "/chains/main/blocks/head/context/liquidity_baking/cpmm_address", - ) - dex_storage = client.get_storage(DEX).split() - assert dex_storage[4].strip('"') == TOK - assert dex_storage[5].strip('"') == LQT - - # mint some test TOK (1 tzBTC?) for ourselves - def test_call_mint_or_burn(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - TOK_ADMIN, - TOK, - [ - '--entrypoint', - 'mintOrBurn', - '--arg', - f'(Pair 100000000 "{BOOTSTRAP1}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # pre-approve big allowances in TOK for DEX - def test_call_approve1(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve2(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve3(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestAddApproveTransferRemove(SetupMintAndApprove): - """Test add/approve/transfer/remove liquidity""" - - # first add liquidity on DEX so that we have some LQT - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # test LQT approval - def test_approval(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - LQT, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # transfer LQT to bootstrap2 (using approval) - def test_approved_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - LQT, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP1}" "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # now remove LQT for bootstrap2 - def test_remove_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'removeLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000 0 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestTrades(SetupMintAndApprove): - """Test trades""" - - # add liquidity - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 buys some TOK - def test_buy_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'xtzToToken', - '--arg', - f'(Pair "{BOOTSTRAP2}" 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 transfers TOK to bootstrap3 - def test_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP2}" "{BOOTSTRAP3}" 100)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap3 sells TOK - def test_sell_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - DEX, - [ - '--entrypoint', - 'tokenToXtz', - '--arg', - f'(Pair "{BOOTSTRAP3}" 100 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out deleted file mode 100644 index 49cea3fbb03f04ac26acd93c9726868e844ed93d..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8555.847 units (will add 100 for safety) -Estimated storage: 147 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8656 - Storage limit: 167 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21599 ; - 9001416765 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Paid storage size diff: 6 bytes - Consumed gas: 2278.202 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0015 - storage fees ........................... +ꜩ0.0015 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 - Storage size: 2264 bytes - Paid storage size diff: 69 bytes - Consumed gas: 3064.106 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 - Storage size: 2050 bytes - Paid storage size diff: 72 bytes - Consumed gas: 3213.539 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.018 - storage fees ........................... +ꜩ0.018 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out deleted file mode 100644 index 4cdf37ec6ff567a5dc0fae1f2c34c94d8d67a9a8..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approval - -Node is bootstrapped. -Estimated gas: 1679.581 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000485 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000485 - payload fees(the block proposer) ....... +ꜩ0.000485 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 - Storage size: 2118 bytes - Paid storage size diff: 68 bytes - Consumed gas: 1679.581 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out deleted file mode 100644 index 06f438af890e9604cd44df08f283c8531e532fd8..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approved_transfer - -Node is bootstrapped. -Estimated gas: 3042.409 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000672 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3143 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000672 - payload fees(the block proposer) ....... +ꜩ0.000672 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2158730 - Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 - Storage size: 2118 bytes - Consumed gas: 3042.409 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out deleted file mode 100644 index 1a94c369bc2c084892ecbe2e8f7a6dd7cf0cc0e7..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out deleted file mode 100644 index dc4b29336f4164494d7dbf4f58db0a67fdf1fc72..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out deleted file mode 100644 index 26cdaee37a955d36252bf57e3dd758723ae3aab5..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out deleted file mode 100644 index f9c24fc7e4c58883d6af9f94a527888cc90a114c..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.516 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.989 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out deleted file mode 100644 index ad073658bcb415bba03b26665c0f41c288e03ff1..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_dex_storage - -Pair 21589 - 8997498998 - 2158830 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out deleted file mode 100644 index 737750d50968ec93605e2fe272b4f5c4379f4f2b..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 2158830 diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out deleted file mode 100644 index 4616d37fca0554d5ac0413baf9eb51ddccc4cde4..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out +++ /dev/null @@ -1,80 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_remove_liquidity - -Node is bootstrapped. -Estimated gas: 7520.791 units (will add 100 for safety) -Estimated storage: 67 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001115 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7621 - Storage limit: 87 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001115 - payload fees(the block proposer) ....... +ꜩ0.001115 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: removeLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 1000 0 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21589 ; - 8997498998 ; - 2158830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Consumed gas: 2279.807 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2158830 } - Updated big_maps: - Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] - Storage size: 2050 bytes - Consumed gas: 1873.473 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21588 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 - Storage size: 2331 bytes - Paid storage size diff: 67 bytes - Consumed gas: 2367.511 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01675 - storage fees ........................... +ꜩ0.01675 - Internal Transaction: - Amount: ꜩ4.167766 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ4.167766 - [CONTRACT_HASH] ... +ꜩ4.167766 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out deleted file mode 100644 index 78031605ebd5c26ab1dd452890e5b06b80d1ae19..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out deleted file mode 100644 index 59cc0a7ac37f976bb529fede8672cf72c568e0c9..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_016/test_liquidity_baking.py::TestAddApproveTransferRemove::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out deleted file mode 100644 index bb7264189baeb385da8424f3c4205da316bbca85..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8555.847 units (will add 100 for safety) -Estimated storage: 147 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8656 - Storage limit: 167 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21599 ; - 9001416765 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Paid storage size diff: 6 bytes - Consumed gas: 2278.202 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0015 - storage fees ........................... +ꜩ0.0015 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 - Storage size: 2264 bytes - Paid storage size diff: 69 bytes - Consumed gas: 3064.106 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 - Storage size: 2050 bytes - Paid storage size diff: 72 bytes - Consumed gas: 3213.539 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.018 - storage fees ........................... +ꜩ0.018 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out deleted file mode 100644 index af93711c1b53494280e71bd2ffb2a6bf4517a4c7..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out +++ /dev/null @@ -1,75 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_buy_tok - -Node is bootstrapped. -Estimated gas: 5115.557 units (will add 100 for safety) -Estimated storage: 327 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000869 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 5216 - Storage limit: 347 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000869 - payload fees(the block proposer) ....... +ꜩ0.000869 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: xtzToToken - Parameter: (Pair "[CONTRACT_HASH]" 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 10811 ; - 17993499098 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4636 bytes - Paid storage size diff: 1 bytes - Consumed gas: 1748.012 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.00025 - storage fees ........................... +ꜩ0.00025 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10788)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10810 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10788 - Storage size: 2333 bytes - Paid storage size diff: 69 bytes - Consumed gas: 2367.545 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ9.001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ9.001 - [CONTRACT_HASH] ... +ꜩ9.001 - [CONTRACT_HASH] ... -ꜩ0.06425 - storage fees ........................... +ꜩ0.06425 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out deleted file mode 100644 index eb17ad57d9706ce36d4453189f7add3a4273dcbb..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out deleted file mode 100644 index c0617ba0825e8833f4031a596cd55f715e6c4b4e..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out deleted file mode 100644 index dc8e95945056555ced839de0fd9acab31d2333fd..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out deleted file mode 100644 index 00fdac07622f4bbc182ce77776da3a3736b71237..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.516 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.989 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out deleted file mode 100644 index 300fb5389813ac5087186f3c1cf2d7d7d1eae35c..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_dex_storage - -Pair 10911 - 17828916091 - 2159830 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out deleted file mode 100644 index 0a138d697b35491261ca97c007a7dd5cd9114f1e..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 2159830 diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out deleted file mode 100644 index 574351477459424e7747503599aa52cc56a37df4..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out +++ /dev/null @@ -1,74 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_sell_tok - -Node is bootstrapped. -Estimated gas: 7012.582 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001057 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7113 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001057 - payload fees(the block proposer) ....... +ꜩ0.001057 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: tokenToXtz - Parameter: (Pair "[CONTRACT_HASH]" 100 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 10911 ; - 17828916091 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4636 bytes - Consumed gas: 1748.660 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 - Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10910 - Storage size: 2333 bytes - Consumed gas: 3263.922 - Internal Transaction: - Amount: ꜩ164.584923 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ164.584923 - [CONTRACT_HASH] ... +ꜩ164.584923 - Internal Transaction: - Amount: ꜩ0.16475 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.16475 - [CONTRACT_HASH] ... +ꜩ0.16475 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out deleted file mode 100644 index 3034bed99ca7dc58a5f76e7b88875140696a646f..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out deleted file mode 100644 index 0bd2dca31150749b36576ee2de94b0db52f17764..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out b/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out deleted file mode 100644 index 82a7d513fb1aa6a4523f9aa4c5ceebb5a7c85ef4..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out +++ /dev/null @@ -1,43 +0,0 @@ -tests_016/test_liquidity_baking.py::TestTrades::test_transfer - -Node is bootstrapped. -Estimated gas: 2376.215 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000605 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 2477 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000605 - payload fees(the block proposer) ....... +ꜩ0.000605 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 100) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10688 - Storage size: 2401 bytes - Paid storage size diff: 68 bytes - Consumed gas: 2376.215 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_016/test_liquidity_baking.py b/tests_python/tests_016/test_liquidity_baking.py deleted file mode 100644 index 17aaafa063059d3a6e575c65a5b47c8abc8439eb..0000000000000000000000000000000000000000 --- a/tests_python/tests_016/test_liquidity_baking.py +++ /dev/null @@ -1,279 +0,0 @@ -import pytest - -from tools import utils -from tools.constants import IDENTITIES - -DEX = "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" -TOK = "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" -LQT = "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" -BOOTSTRAP1 = IDENTITIES['bootstrap1']['identity'] -TOK_ADMIN = BOOTSTRAP1 -BOOTSTRAP2 = IDENTITIES['bootstrap2']['identity'] -BOOTSTRAP3 = IDENTITIES['bootstrap3']['identity'] -FUTURE = "2050-01-01T00:00:00Z" - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class SetupMintAndApprove: - """Test calling entrypoints of liquidity baking contracts""" - - def test_setup(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - assert DEX == client.rpc( - 'get', - "/chains/main/blocks/head/context/liquidity_baking/cpmm_address", - ) - dex_storage = client.get_storage(DEX).split() - assert dex_storage[4].strip('"') == TOK - assert dex_storage[5].strip('"') == LQT - - # mint some test TOK (1 tzBTC?) for ourselves - def test_call_mint_or_burn(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - TOK_ADMIN, - TOK, - [ - '--entrypoint', - 'mintOrBurn', - '--arg', - f'(Pair 100000000 "{BOOTSTRAP1}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # pre-approve big allowances in TOK for DEX - def test_call_approve1(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve2(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve3(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestAddApproveTransferRemove(SetupMintAndApprove): - """Test add/approve/transfer/remove liquidity""" - - # first add liquidity on DEX so that we have some LQT - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # test LQT approval - def test_approval(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - LQT, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # transfer LQT to bootstrap2 (using approval) - def test_approved_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - LQT, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP1}" "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # now remove LQT for bootstrap2 - def test_remove_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'removeLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000 0 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestTrades(SetupMintAndApprove): - """Test trades""" - - # add liquidity - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 buys some TOK - def test_buy_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'xtzToToken', - '--arg', - f'(Pair "{BOOTSTRAP2}" 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 transfers TOK to bootstrap3 - def test_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP2}" "{BOOTSTRAP3}" 100)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap3 sells TOK - def test_sell_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - DEX, - [ - '--entrypoint', - 'tokenToXtz', - '--arg', - f'(Pair "{BOOTSTRAP3}" 100 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out deleted file mode 100644 index ab3f6bec8c0a22e100aeb97716874db2a4666db2..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8555.847 units (will add 100 for safety) -Estimated storage: 147 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8656 - Storage limit: 167 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21599 ; - 9001416765 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Paid storage size diff: 6 bytes - Consumed gas: 2278.202 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0015 - storage fees ........................... +ꜩ0.0015 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 - Storage size: 2264 bytes - Paid storage size diff: 69 bytes - Consumed gas: 3064.106 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 - Storage size: 2050 bytes - Paid storage size diff: 72 bytes - Consumed gas: 3213.539 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.018 - storage fees ........................... +ꜩ0.018 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out deleted file mode 100644 index 4685943f7f6a636c4edc34faf682093f6103afa9..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approval.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approval - -Node is bootstrapped. -Estimated gas: 1679.581 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000485 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000485 - payload fees(the block proposer) ....... +ꜩ0.000485 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 - Storage size: 2118 bytes - Paid storage size diff: 68 bytes - Consumed gas: 1679.581 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out deleted file mode 100644 index 336d7ef62d2157c002e85deba77a32a03278529f..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_approved_transfer.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_approved_transfer - -Node is bootstrapped. -Estimated gas: 3042.409 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000672 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3143 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000672 - payload fees(the block proposer) ....... +ꜩ0.000672 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 1000) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2158730 - Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 - Storage size: 2118 bytes - Consumed gas: 3042.409 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out deleted file mode 100644 index ee0ec150aea3bf776e665ff6079211073354716b..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out deleted file mode 100644 index 12f49d1611da26688c2a9f7f9c4979a61c36fba2..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out deleted file mode 100644 index 4dcd671062ca75e303e8ed8f19c09751208fac76..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out deleted file mode 100644 index b01376cb9d1b6b15e0956d67d06c302530c469a2..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.516 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.989 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out deleted file mode 100644 index 49f671508ebbcc94a8eb5583a038cff640bbf341..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_dex_storage - -Pair 21589 - 8997498998 - 2158830 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out deleted file mode 100644 index f8b481d6c3de642fb45d2a7157c19e0ef2d60451..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 2158830 diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out deleted file mode 100644 index af08c5189a54fc3225f2b5e9dcb66bb4116fad9c..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_remove_liquidity.out +++ /dev/null @@ -1,80 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_remove_liquidity - -Node is bootstrapped. -Estimated gas: 7520.791 units (will add 100 for safety) -Estimated storage: 67 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001115 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7621 - Storage limit: 87 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001115 - payload fees(the block proposer) ....... +ꜩ0.001115 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: removeLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 1000 0 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21589 ; - 8997498998 ; - 2158830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Consumed gas: 2279.807 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2158830 } - Updated big_maps: - Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] - Storage size: 2050 bytes - Consumed gas: 1873.473 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21588 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 - Storage size: 2331 bytes - Paid storage size diff: 67 bytes - Consumed gas: 2367.511 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01675 - storage fees ........................... +ꜩ0.01675 - Internal Transaction: - Amount: ꜩ4.167766 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ4.167766 - [CONTRACT_HASH] ... +ꜩ4.167766 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out deleted file mode 100644 index a4d5449bf62ef7d206b121428645578576c64ae4..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out deleted file mode 100644 index d6863213db80650d308b186e776bd094b95b0cc6..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestAddApproveTransferRemove::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestAddApproveTransferRemove::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out deleted file mode 100644 index ce5ba280c25f2305d2c0f84cc5e713a70f1f668f..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_add_liquidity.out +++ /dev/null @@ -1,83 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_add_liquidity - -Node is bootstrapped. -Estimated gas: 8555.847 units (will add 100 for safety) -Estimated storage: 147 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001221 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 8656 - Storage limit: 167 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001221 - payload fees(the block proposer) ....... +ꜩ0.001221 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: addLiquidity - Parameter: (Pair "[CONTRACT_HASH]" 0 1000000000 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 21599 ; - 9001416765 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4635 bytes - Paid storage size diff: 6 bytes - Consumed gas: 2278.202 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.0015 - storage fees ........................... +ꜩ0.0015 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 - Storage size: 2264 bytes - Paid storage size diff: 69 bytes - Consumed gas: 3064.106 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) - This transaction was successfully applied - Updated storage: - { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } - Updated big_maps: - Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 - Storage size: 2050 bytes - Paid storage size diff: 72 bytes - Consumed gas: 3213.539 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.018 - storage fees ........................... +ꜩ0.018 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out deleted file mode 100644 index 5b14df1e304f16451009e7f1668d9b88abdfa6e5..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_buy_tok.out +++ /dev/null @@ -1,75 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_buy_tok - -Node is bootstrapped. -Estimated gas: 5115.557 units (will add 100 for safety) -Estimated storage: 327 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000869 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 5216 - Storage limit: 347 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000869 - payload fees(the block proposer) ....... +ꜩ0.000869 - Transaction: - Amount: ꜩ9001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: xtzToToken - Parameter: (Pair "[CONTRACT_HASH]" 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 10811 ; - 17993499098 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4636 bytes - Paid storage size diff: 1 bytes - Consumed gas: 1748.012 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.00025 - storage fees ........................... +ꜩ0.00025 - [CONTRACT_HASH] ... -ꜩ9001 - [CONTRACT_HASH] ... +ꜩ9001 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 - (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10788)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10810 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10788 - Storage size: 2333 bytes - Paid storage size diff: 69 bytes - Consumed gas: 2367.545 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01725 - storage fees ........................... +ꜩ0.01725 - Internal Transaction: - Amount: ꜩ9.001 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ9.001 - [CONTRACT_HASH] ... +ꜩ9.001 - [CONTRACT_HASH] ... -ꜩ0.06425 - storage fees ........................... +ꜩ0.06425 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out deleted file mode 100644 index 63ddb58681c39ebade274c4e8d27b6e3674b0f59..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve1.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_call_approve1 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2053 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out deleted file mode 100644 index 6dae4187301aacce7a882de81559daf6d51ce299..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve2.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_call_approve2 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2124 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out deleted file mode 100644 index 41d4d7dd8f52d4821c6e52f086933b5713756afb..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_approve3.out +++ /dev/null @@ -1,41 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_call_approve3 - -Node is bootstrapped. -Estimated gas: 1679.703 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000488 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 1780 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000488 - payload fees(the block proposer) ....... +ꜩ0.000488 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: approve - Parameter: (Pair "[CONTRACT_HASH]" 1000000000) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 - Storage size: 2195 bytes - Paid storage size diff: 71 bytes - Consumed gas: 1679.703 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out deleted file mode 100644 index 5897b18f5a38f066b2d176a560f12b08bd39b72b..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_call_mint_or_burn.out +++ /dev/null @@ -1,40 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_call_mint_or_burn - -Node is bootstrapped. -Estimated gas: 3217.516 units (will add 100 for safety) -Estimated storage: 71 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000644 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 3318 - Storage limit: 91 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000644 - payload fees(the block proposer) ....... +ꜩ0.000644 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: mintOrBurn - Parameter: (Pair 100000000 "[CONTRACT_HASH]") - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 - Storage size: 1982 bytes - Paid storage size diff: 71 bytes - Consumed gas: 3217.989 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.01775 - storage fees ........................... +ꜩ0.01775 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out deleted file mode 100644 index f36be3f207f6383d97ac3c55678163609d403e01..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_dex_storage.out +++ /dev/null @@ -1,7 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_dex_storage - -Pair 10911 - 17828916091 - 2159830 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out deleted file mode 100644 index 6cf0b5c2826ed86f2e9eaeae1ef2d5d214fbac31..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_lqt_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_lqt_storage - -Pair 2 3 "[CONTRACT_HASH]" 2159830 diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out deleted file mode 100644 index 30a12468fca91a58662a53cb0391adf0ac54b0bc..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_sell_tok.out +++ /dev/null @@ -1,74 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_sell_tok - -Node is bootstrapped. -Estimated gas: 7012.582 units (will add 100 for safety) -Estimated storage: no bytes added -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.001057 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 7113 - Storage limit: 0 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.001057 - payload fees(the block proposer) ....... +ꜩ0.001057 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: tokenToXtz - Parameter: (Pair "[CONTRACT_HASH]" 100 0 "[TIMESTAMP]") - This transaction was successfully applied - Updated storage: - { 10911 ; - 17828916091 ; - 2159830 ; - 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; - 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } - Storage size: 4636 bytes - Consumed gas: 1748.660 - Internal operations: - Internal Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 - 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 - Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] - Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10910 - Storage size: 2333 bytes - Consumed gas: 3263.922 - Internal Transaction: - Amount: ꜩ164.584923 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ164.584923 - [CONTRACT_HASH] ... +ꜩ164.584923 - Internal Transaction: - Amount: ꜩ0.16475 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - This transaction was successfully applied - Consumed gas: 1000 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.16475 - [CONTRACT_HASH] ... +ꜩ0.16475 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out deleted file mode 100644 index 1a41f1e798cb7401cbd1863c5092a8113dda51fb..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_setup.out +++ /dev/null @@ -1,8 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_setup - -"[CONTRACT_HASH]" -Pair 1 - 100 - 100 - "[CONTRACT_HASH]" - "[CONTRACT_HASH]" diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out deleted file mode 100644 index 1662dd8d0b2ac521367a04b9dd33b62777f3d317..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_tok_storage.out +++ /dev/null @@ -1,3 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_tok_storage - -Pair 0 1 "[CONTRACT_HASH]" 100010000 diff --git a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out b/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out deleted file mode 100644 index 55f822feb9b8b620241f04fdbe01a3c9217a3422..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/_regtest_outputs/test_liquidity_baking.TestTrades::test_transfer.out +++ /dev/null @@ -1,43 +0,0 @@ -tests_alpha/test_liquidity_baking.py::TestTrades::test_transfer - -Node is bootstrapped. -Estimated gas: 2376.215 units (will add 100 for safety) -Estimated storage: 68 bytes added (will add 20 for safety) -Operation successfully injected in the node. -Operation hash is '[BLOCK_HASH]' -NOT waiting for the operation to be included. -Use command - octez-client wait for [BLOCK_HASH] to be included --confirmations 1 --branch [BLOCK_HASH] -and/or an external block explorer to make sure that it has been included. -This sequence of operations was run: - Manager signed operations: - From: [CONTRACT_HASH] - Fee to the baker: ꜩ0.000605 - Expected counter: [EXPECTED_COUNTER] - Gas limit: 2477 - Storage limit: 88 bytes - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.000605 - payload fees(the block proposer) ....... +ꜩ0.000605 - Transaction: - Amount: ꜩ0 - From: [CONTRACT_HASH] - To: [CONTRACT_HASH] - Entrypoint: transfer - Parameter: (Pair "[CONTRACT_HASH]" - "[CONTRACT_HASH]" - 100) - This transaction was successfully applied - Updated storage: - { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } - Updated big_maps: - Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 - Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10688 - Storage size: 2401 bytes - Paid storage size diff: 68 bytes - Consumed gas: 2376.215 - Balance updates: - [CONTRACT_HASH] ... -ꜩ0.017 - storage fees ........................... +ꜩ0.017 - -Injected block at minimal timestamp diff --git a/tests_python/tests_alpha/test_liquidity_baking.py b/tests_python/tests_alpha/test_liquidity_baking.py deleted file mode 100644 index 17aaafa063059d3a6e575c65a5b47c8abc8439eb..0000000000000000000000000000000000000000 --- a/tests_python/tests_alpha/test_liquidity_baking.py +++ /dev/null @@ -1,279 +0,0 @@ -import pytest - -from tools import utils -from tools.constants import IDENTITIES - -DEX = "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" -TOK = "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" -LQT = "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" -BOOTSTRAP1 = IDENTITIES['bootstrap1']['identity'] -TOK_ADMIN = BOOTSTRAP1 -BOOTSTRAP2 = IDENTITIES['bootstrap2']['identity'] -BOOTSTRAP3 = IDENTITIES['bootstrap3']['identity'] -FUTURE = "2050-01-01T00:00:00Z" - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class SetupMintAndApprove: - """Test calling entrypoints of liquidity baking contracts""" - - def test_setup(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - assert DEX == client.rpc( - 'get', - "/chains/main/blocks/head/context/liquidity_baking/cpmm_address", - ) - dex_storage = client.get_storage(DEX).split() - assert dex_storage[4].strip('"') == TOK - assert dex_storage[5].strip('"') == LQT - - # mint some test TOK (1 tzBTC?) for ourselves - def test_call_mint_or_burn(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - TOK_ADMIN, - TOK, - [ - '--entrypoint', - 'mintOrBurn', - '--arg', - f'(Pair 100000000 "{BOOTSTRAP1}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # pre-approve big allowances in TOK for DEX - def test_call_approve1(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve2(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - def test_call_approve3(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - TOK, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{DEX}" 1000000000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestAddApproveTransferRemove(SetupMintAndApprove): - """Test add/approve/transfer/remove liquidity""" - - # first add liquidity on DEX so that we have some LQT - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # test LQT approval - def test_approval(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap1', - LQT, - [ - '--entrypoint', - 'approve', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # transfer LQT to bootstrap2 (using approval) - def test_approved_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - LQT, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP1}" "{BOOTSTRAP2}" 1000)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # now remove LQT for bootstrap2 - def test_remove_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'removeLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP2}" 1000 0 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) - - -@pytest.mark.contract -@pytest.mark.regression -@pytest.mark.incremental -class TestTrades(SetupMintAndApprove): - """Test trades""" - - # add liquidity - def test_add_liquidity(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap1', - DEX, - [ - '--entrypoint', - 'addLiquidity', - '--arg', - f'(Pair "{BOOTSTRAP1}" 0 1000000000 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 buys some TOK - def test_buy_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.transfer( - 9001, - 'bootstrap2', - DEX, - [ - '--entrypoint', - 'xtzToToken', - '--arg', - f'(Pair "{BOOTSTRAP2}" 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap2 transfers TOK to bootstrap3 - def test_transfer(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap2', - TOK, - [ - '--entrypoint', - 'transfer', - '--arg', - f'(Pair "{BOOTSTRAP2}" "{BOOTSTRAP3}" 100)', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # bootstrap3 sells TOK - def test_sell_tok(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.call( - 'bootstrap3', - DEX, - [ - '--entrypoint', - 'tokenToXtz', - '--arg', - f'(Pair "{BOOTSTRAP3}" 100 0 "{FUTURE}")', - '--burn-cap', - '10', - ], - ) - utils.bake(client, 'bootstrap5') - - # check DEX storage - def test_dex_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(DEX) - - # check LQT storage - def test_lqt_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(LQT) - - # check TOK storage - def test_tok_storage(self, client_regtest_scrubbed): - client = client_regtest_scrubbed - client.get_storage(TOK) diff --git a/tezt/lib_tezos/RPC.ml b/tezt/lib_tezos/RPC.ml index 04aab6faa7edf2a97a49c7cbc34f7af49a74ad1b..1f6c08b1caa11a805757c7c26fa18459c502478d 100644 --- a/tezt/lib_tezos/RPC.ml +++ b/tezt/lib_tezos/RPC.ml @@ -162,6 +162,21 @@ let get_chain_block_context_nonce ?(chain = "main") ?(block = "head") ] Fun.id +let get_chain_block_context_liquidity_baking_cpmm_address ?(chain = "main") + ?(block = "head") () = + make + GET + [ + "chains"; + chain; + "blocks"; + block; + "context"; + "liquidity_baking"; + "cpmm_address"; + ] + JSON.as_string + let get_network_peer_untrust peer_id = make GET ["network"; "peers"; peer_id; "untrust"] Fun.id diff --git a/tezt/lib_tezos/RPC.mli b/tezt/lib_tezos/RPC.mli index 40cf983eda3e3678631cecbaba501b37c79a42e2..2fc83bea47acabac77a6522d0eb33538678e7c46 100644 --- a/tezt/lib_tezos/RPC.mli +++ b/tezt/lib_tezos/RPC.mli @@ -166,6 +166,14 @@ val get_chain_block_helper_complete : val get_chain_block_helper_round : ?chain:string -> ?block:string -> unit -> int t +(** RPC: [GET /chains//blocks//context/liquidity_baking/cpmm_address] + + [chain] defaults to ["main"]. + [block] defaults to ["head"]. +*) +val get_chain_block_context_liquidity_baking_cpmm_address : + ?chain:string -> ?block:string -> unit -> string t + (** RPC: [GET /network/peers] *) val get_network_peers : (string * JSON.t) list t diff --git a/tezt/lib_tezos/client.ml b/tezt/lib_tezos/client.ml index 8ec078ac9f15e359a824f54a1f566f7c1cb3f57c..c7d40f77b22fc80081957fc347036494e2e3d860 100644 --- a/tezt/lib_tezos/client.ml +++ b/tezt/lib_tezos/client.ml @@ -965,6 +965,30 @@ let set_delegate ?endpoint ?(wait = "none") ?fee ?fee_cap in {value; run = Process.check ?expect_failure} +let spawn_call_contract ?hooks ?endpoint ?burn_cap ~src ~destination ?entrypoint + ?arg client = + spawn_command + ?hooks + ?endpoint + client + (["call"; destination; "from"; src] + @ optional_arg "entrypoint" Fun.id entrypoint + @ optional_arg "arg" Fun.id arg + @ optional_arg "burn-cap" Tez.to_string burn_cap) + +let call_contract ?hooks ?endpoint ?burn_cap ~src ~destination ?entrypoint ?arg + client = + spawn_call_contract + ?hooks + ?endpoint + ?burn_cap + ~src + ~destination + ?entrypoint + ?arg + client + |> Process.check + let reveal ?endpoint ?(wait = "none") ?fee ?fee_cap ?(force_low_fee = false) ~src client = let value = @@ -2584,9 +2608,10 @@ let register_key ?hooks ?expect_failure ?consensus owner client = spawn_register_key ?hooks ?consensus owner client |> Process.check ?expect_failure -let contract_storage ?unparsing_mode address client = +let contract_storage ?hooks ?unparsing_mode address client = spawn_command client + ?hooks (["get"; "contract"; "storage"; "for"; address] @ optional_arg "unparsing-mode" normalize_mode_to_string unparsing_mode) |> Process.check_and_read_stdout diff --git a/tezt/lib_tezos/client.mli b/tezt/lib_tezos/client.mli index 40582a992cb9d828dccf8fd6fa39780ef16df05e..b24d7d1f3bbf4efe910f718ce83362893b5a60cc 100644 --- a/tezt/lib_tezos/client.mli +++ b/tezt/lib_tezos/client.mli @@ -754,6 +754,30 @@ val set_delegate : t -> unit Runnable.process +(** Run [octez-client call from ] *) +val call_contract : + ?hooks:Process.hooks -> + ?endpoint:endpoint -> + ?burn_cap:Tez.t -> + src:string -> + destination:string -> + ?entrypoint:string -> + ?arg:string -> + t -> + unit Lwt.t + +(** Same as [call_contract], but do not wait for the process to exit. *) +val spawn_call_contract : + ?hooks:Process.hooks -> + ?endpoint:endpoint -> + ?burn_cap:Tez.t -> + src:string -> + destination:string -> + ?entrypoint:string -> + ?arg:string -> + t -> + Process.t + (** Run [octez-client reveal key for ]. *) val reveal : ?endpoint:endpoint -> @@ -2078,7 +2102,11 @@ val register_key : (** Get contract storage for a contract. Returns a Micheline expression representing the storage as a string. *) val contract_storage : - ?unparsing_mode:normalize_mode -> string -> t -> string Lwt.t + ?hooks:Process.hooks -> + ?unparsing_mode:normalize_mode -> + string -> + t -> + string Lwt.t (** Get contract code for a contract. Returns a Micheline expression representing the code as a string. *) diff --git a/tezt/tests/contract_liquility_baking.ml b/tezt/tests/contract_liquility_baking.ml new file mode 100644 index 0000000000000000000000000000000000000000..a984f2fa491e8fdc8f2f2fc004743ffa8ab3989a --- /dev/null +++ b/tezt/tests/contract_liquility_baking.ml @@ -0,0 +1,331 @@ +(*****************************************************************************) +(* *) +(* Open Source License *) +(* Copyright (c) 2020 Nomadic Labs *) +(* Copyright (c) 2022 Marigold *) +(* *) +(* Permission is hereby granted, free of charge, to any person obtaining a *) +(* copy of this software and associated documentation files (the "Software"),*) +(* to deal in the Software without restriction, including without limitation *) +(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *) +(* and/or sell copies of the Software, and to permit persons to whom the *) +(* Software is furnished to do so, subject to the following conditions: *) +(* *) +(* The above copyright notice and this permission notice shall be included *) +(* in all copies or substantial portions of the Software. *) +(* *) +(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*) +(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *) +(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *) +(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*) +(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *) +(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *) +(* DEALINGS IN THE SOFTWARE. *) +(* *) +(*****************************************************************************) + +(* Testing + ------- + Component: Michelson + Invocation: dune exec tezt/tests/main.exe -- --file contract_liquility_baking.ml + Subject: Regression testing of liquility baking contracts +*) + +(* Using the lighter hook that only scrubs the clients [--base-dir] *) +let hooks = + Tezos_regression.hooks_custom + ~scrubbed_global_options:["--base-dir"; "-d"] + ~replace_variables:Fun.id + () + +let dex = "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +let tok = "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + +let lqt = "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +let future = "2050-01-01T00:00:00Z" + +let split_storage storage = + String.trim storage + |> Base.replace_string ~all:true (rex "\\s+") ~by:" " + |> String.split_on_char ' ' + +let unquote s = + match String.split_on_char '"' s with + | [""; s; ""] -> s + | _ -> Test.fail "[unquote] expected a double-quoted string, got: %S" s + +type tok_storage = { + tokens : int; + allowances : int; + admin : string; + total_supply : int; +} + +type dex_storage = { + token_pool : int; + xtz_pool : int; + lqt_total : int; + token_address : string; + lqt_address : string; +} + +let get_tok_storage ~hooks client contract = + let* storage = Client.contract_storage ~hooks contract client in + match split_storage storage with + | ["Pair"; tokens; allowances; admin; total_supply] -> + return + { + tokens = int_of_string tokens; + allowances = int_of_string allowances; + admin = unquote admin; + total_supply = int_of_string total_supply; + } + | _ -> + Test.fail "Unparseable token contract storage in %S: %S," contract storage + +let get_dex_storage ~hooks client contract = + let* storage = Client.contract_storage ~hooks contract client in + match split_storage storage with + | ["Pair"; token_pool; xtz_pool; lqt_total; token_address; lqt_address] -> + return + { + token_pool = int_of_string token_pool; + xtz_pool = int_of_string xtz_pool; + lqt_total = int_of_string lqt_total; + token_address = unquote token_address; + lqt_address = unquote lqt_address; + } + | _ -> + Test.fail "Unparseable dex contract storage in %S: %S," contract storage + +let setup_mint_and_approve ~__LOC__ client = + let* dex_address = + RPC.Client.call client ~hooks + @@ RPC.get_chain_block_context_liquidity_baking_cpmm_address () + in + Log.info "Check DEX address" ; + let () = + Check.( + (String.trim dex_address = dex) + string + ~__LOC__ + ~error_msg:"Expected storage %R, got %L") + in + Log.info "Check DEX storage" ; + let* dex_storage = get_dex_storage client ~hooks dex in + let () = + Check.( + (dex_storage.token_address = tok) + string + ~__LOC__ + ~error_msg:"Expected storage %R, got %L") + in + let () = + Check.( + (dex_storage.lqt_address = lqt) + string + ~__LOC__ + ~error_msg:"Expected storage %R, got %L") + in + (* mint some test TOK (1 tzBTC?) for ourselves*) + Log.info "Call mint or burn" ; + let arg = sf "(Pair 100000000 %S)" Constant.bootstrap1.public_key_hash in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap1.alias + ~destination:tok + ~entrypoint:"mintOrBurn" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + (* pre-approve big allowances in TOK for DEX *) + Log.info "Call approve1" ; + let arg = sf "(Pair %S 1000000000)" dex in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap1.alias + ~destination:tok + ~entrypoint:"approve" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + Log.info "Call approve2" ; + let arg = sf "(Pair %S 1000000000)" dex in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap2.alias + ~destination:tok + ~entrypoint:"approve" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + Log.info "Call approve3" ; + let arg = sf "(Pair %S 1000000000)" dex in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap3.alias + ~destination:tok + ~entrypoint:"approve" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + unit + +let register_add_approve_transfer_remove = + Protocol.register_regression_test + ~__FILE__ + ~title:"Test add/approve/transfer/remove liquidity" + ~tags:["client"; "michelson"] + @@ fun protocol -> + let* client = Client.init_mockup ~protocol () in + let* () = setup_mint_and_approve ~__LOC__ client in + Log.info "First add liquidity on DEX so that we have some LQT" ; + let arg = + sf "(Pair %S 0 1000000000 %S)" Constant.bootstrap1.public_key_hash future + in + let* () = + Client.transfer + ~hooks + ~burn_cap:(Tez.of_int 10) + ~amount:(Tez.of_int 9001) + ~giver:"bootstrap1" + ~receiver:dex + ~arg + ~entrypoint:"addLiquidity" + client + in + Log.info "Test LQT approval" ; + let arg = sf "(Pair %S 1000)" Constant.bootstrap2.public_key_hash in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap1.alias + ~destination:lqt + ~entrypoint:"approve" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + Log.info "Transfer LQT to bootstrap2 (using approval)" ; + let arg = + sf + "(Pair %S %S 1000)" + Constant.bootstrap1.public_key_hash + Constant.bootstrap2.public_key_hash + in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap2.alias + ~destination:lqt + ~entrypoint:"transfer" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + Log.info "Now remove LQT for bootstrap2" ; + let arg = + sf "(Pair %S 1000 0 0 %S)" Constant.bootstrap2.public_key_hash future + in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap2.alias + ~destination:dex + ~entrypoint:"removeLiquidity" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + Log.info "Check LQT storage" ; + let* _lqt_storage = get_tok_storage client ~hooks lqt in + Log.info "Check TOK storage" ; + let* _tok_storage = get_tok_storage client ~hooks tok in + unit + +let register_trades = + Protocol.register_regression_test + ~__FILE__ + ~title:"Test trades" + ~tags:["client"; "michelson"] + @@ fun protocol -> + let* client = Client.init_mockup ~protocol () in + let* () = setup_mint_and_approve ~__LOC__ client in + Log.info "Add liquidity" ; + let arg = + sf "(Pair %S 0 1000000000 %S)" Constant.bootstrap1.public_key_hash future + in + let* () = + Client.transfer + ~hooks + ~burn_cap:(Tez.of_int 10) + ~amount:(Tez.of_int 9001) + ~giver:"bootstrap1" + ~receiver:dex + ~arg + ~entrypoint:"addLiquidity" + client + in + Log.info "Bootstrap2 buys some TOK" ; + let arg = sf "(Pair %S 0 %S)" Constant.bootstrap2.public_key_hash future in + let* () = + Client.transfer + ~hooks + ~burn_cap:(Tez.of_int 10) + ~amount:(Tez.of_int 9001) + ~giver:"bootstrap2" + ~receiver:dex + ~arg + ~entrypoint:"xtzToToken" + client + in + Log.info "Bootstrap2 transfers TOK to bootstrap3" ; + let arg = + sf + "(Pair %S %S 100)" + Constant.bootstrap2.public_key_hash + Constant.bootstrap3.public_key_hash + in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap2.alias + ~destination:tok + ~entrypoint:"transfer" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + Log.info "Boostrap3 sells TOK" ; + let arg = + sf "(Pair %S 100 0 %S)" Constant.bootstrap3.public_key_hash future + in + let* () = + Client.call_contract + ~hooks + ~src:Constant.bootstrap3.alias + ~destination:dex + ~entrypoint:"tokenToXtz" + ~arg + ~burn_cap:(Tez.of_int 10) + client + in + Log.info "Check LQT storage" ; + let* _storage_lqt = get_tok_storage client ~hooks lqt in + Log.info "Check TOK storage" ; + let* _tok_storage = get_tok_storage client ~hooks tok in + unit + +let register ~protocols = + register_add_approve_transfer_remove protocols ; + register_trades protocols diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Alpha- Test add-approve-transfer-remove liquidity.out b/tezt/tests/expected/contract_liquility_baking.ml/Alpha- Test add-approve-transfer-remove liquidity.out new file mode 100644 index 0000000000000000000000000000000000000000..ffd67f35fd370296bc2de6d1332d1a196cfd6731 --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Alpha- Test add-approve-transfer-remove liquidity.out @@ -0,0 +1,416 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.516 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.989 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12152.039 units (will add 100 for safety) +Estimated storage: 147 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW' +NOT waiting for the operation to be included. +Use command + octez-client wait for onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.001581 + Expected counter: 3 + Gas limit: 12253 + Storage limit: 167 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.001581 + payload fees(the block proposer) ....... +ꜩ0.001581 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21599 ; + 9001416765 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Paid storage size diff: 6 bytes + Consumed gas: 2278.202 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0015 + storage fees ........................... +ꜩ0.0015 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 + Storage size: 2264 bytes + Paid storage size diff: 69 bytes + Consumed gas: 4604.131 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 + Storage size: 2050 bytes + Paid storage size diff: 72 bytes + Consumed gas: 3213.539 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.018 + storage fees ........................... +ꜩ0.018 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap1 --entrypoint approve --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.133 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD' +NOT waiting for the operation to be included. +Use command + octez-client wait for oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000639 + Expected counter: 4 + Gas limit: 3320 + Storage limit: 88 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000639 + payload fees(the block proposer) ....... +ꜩ0.000639 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: approve + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 + Storage size: 2118 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3219.606 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap2 --entrypoint transfer --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 4581.961 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'op7opCJCRVUphFFC9Btd9frUtuei5MGvbQTx11h4PBG8Ab9DML9' +NOT waiting for the operation to be included. +Use command + octez-client wait for op7opCJCRVUphFFC9Btd9frUtuei5MGvbQTx11h4PBG8Ab9DML9 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000826 + Expected counter: 2 + Gas limit: 4682 + Storage limit: 0 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000826 + payload fees(the block proposer) ....... +ꜩ0.000826 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: transfer + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" + "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2158730 + Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 + Storage size: 2118 bytes + Consumed gas: 4582.434 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap2 --entrypoint removeLiquidity --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 12657.260 units (will add 100 for safety) +Estimated storage: 67 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'ooXhXAa1pBHRrrBNhrfRao2mtUcB48yT5DQFTtJ56MatcGVrQn3' +NOT waiting for the operation to be included. +Use command + octez-client wait for ooXhXAa1pBHRrrBNhrfRao2mtUcB48yT5DQFTtJ56MatcGVrQn3 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001628 + Expected counter: 3 + Gas limit: 12758 + Storage limit: 87 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001628 + payload fees(the block proposer) ....... +ꜩ0.001628 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: removeLiquidity + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21589 ; + 8997498998 ; + 2158830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Consumed gas: 2279.807 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2158830 } + Updated big_maps: + Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] + Storage size: 2050 bytes + Consumed gas: 3413.498 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21588 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 + Storage size: 2331 bytes + Paid storage size diff: 67 bytes + Consumed gas: 3907.536 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01675 + storage fees ........................... +ꜩ0.01675 + Internal Transaction: + Amount: ꜩ4.167766 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ4.167766 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... +ꜩ4.167766 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 2158830 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Alpha- Test trades.out b/tezt/tests/expected/contract_liquility_baking.ml/Alpha- Test trades.out new file mode 100644 index 0000000000000000000000000000000000000000..4143c0f89715900ae6a8d431995792f8efd12ee3 --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Alpha- Test trades.out @@ -0,0 +1,446 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.516 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.989 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12152.039 units (will add 100 for safety) +Estimated storage: 147 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW' +NOT waiting for the operation to be included. +Use command + octez-client wait for onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.001581 + Expected counter: 3 + Gas limit: 12253 + Storage limit: 167 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.001581 + payload fees(the block proposer) ....... +ꜩ0.001581 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21599 ; + 9001416765 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Paid storage size diff: 6 bytes + Consumed gas: 2278.202 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0015 + storage fees ........................... +ꜩ0.0015 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 + Storage size: 2264 bytes + Paid storage size diff: 69 bytes + Consumed gas: 4604.131 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 + Storage size: 2050 bytes + Paid storage size diff: 72 bytes + Consumed gas: 3213.539 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.018 + storage fees ........................... +ꜩ0.018 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap2 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint xtzToToken --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 8712.001 units (will add 100 for safety) +Estimated storage: 327 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'oonqQPWympWPc1diR2PrJe3JkHuRoXfVe4qEjgsA1g2FuHPDaTL' +NOT waiting for the operation to be included. +Use command + octez-client wait for oonqQPWympWPc1diR2PrJe3JkHuRoXfVe4qEjgsA1g2FuHPDaTL to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001229 + Expected counter: 2 + Gas limit: 8813 + Storage limit: 347 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001229 + payload fees(the block proposer) ....... +ꜩ0.001229 + Transaction: + Amount: ꜩ9001 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: xtzToToken + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 10811 ; + 17993499098 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4636 bytes + Paid storage size diff: 1 bytes + Consumed gas: 1748.012 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.00025 + storage fees ........................... +ꜩ0.00025 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10788)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10810 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10788 + Storage size: 2333 bytes + Paid storage size diff: 69 bytes + Consumed gas: 3907.570 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ9.001 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ9.001 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ9.001 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.06425 + storage fees ........................... +ꜩ0.06425 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint transfer --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3915.767 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onjYwwTPHn3oWRGtbXS3AJz9yznL2AyfUCkXRc8WKEWfQtoBQaE' +NOT waiting for the operation to be included. +Use command + octez-client wait for onjYwwTPHn3oWRGtbXS3AJz9yznL2AyfUCkXRc8WKEWfQtoBQaE to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000759 + Expected counter: 3 + Gas limit: 4016 + Storage limit: 88 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000759 + payload fees(the block proposer) ....... +ꜩ0.000759 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" + 100) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10688 + Storage size: 2401 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3916.240 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap3 --entrypoint tokenToXtz --arg '(Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 10609.068 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'opAq9XNVhffDnEN47oP7V2EXncrx1sZMuZ4K8yCLHtTcVfYY94y' +NOT waiting for the operation to be included. +Use command + octez-client wait for opAq9XNVhffDnEN47oP7V2EXncrx1sZMuZ4K8yCLHtTcVfYY94y to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.001416 + Expected counter: 2 + Gas limit: 10710 + Storage limit: 0 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.001416 + payload fees(the block proposer) ....... +ꜩ0.001416 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: tokenToXtz + Parameter: (Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 10911 ; + 17828916091 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4636 bytes + Consumed gas: 1748.660 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 + Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10910 + Storage size: 2333 bytes + Consumed gas: 4803.947 + Internal Transaction: + Amount: ꜩ164.584923 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ164.584923 + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... +ꜩ164.584923 + Internal Transaction: + Amount: ꜩ0.16475 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ0.16475 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ0.16475 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 2159830 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Kathmandu- Test add-approve-transfer-remove liquidity.out b/tezt/tests/expected/contract_liquility_baking.ml/Kathmandu- Test add-approve-transfer-remove liquidity.out new file mode 100644 index 0000000000000000000000000000000000000000..21019305e15bfb0e33dc3f768d1390b55ec2eae5 --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Kathmandu- Test add-approve-transfer-remove liquidity.out @@ -0,0 +1,416 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.054 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.527 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.337 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.810 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.337 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.810 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.337 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.810 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12149.620 units (will add 100 for safety) +Estimated storage: 141 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opEou13te7EeKTxwFQdB2wHvbDmeTs97Au3LHgerYgU7fBwWfzE' +NOT waiting for the operation to be included. +Use command + octez-client wait for opEou13te7EeKTxwFQdB2wHvbDmeTs97Au3LHgerYgU7fBwWfzE to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.00158 + Expected counter: 3 + Gas limit: 12250 + Storage limit: 161 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.00158 + payload fees(the block proposer) ....... +ꜩ0.00158 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 722 ; + 9013500100 ; + 72107 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4633 bytes + Paid storage size diff: 3 bytes + Consumed gas: 2274.737 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.00075 + storage fees ........................... +ꜩ0.00075 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 721)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999279 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99999279 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 721 + Storage size: 2263 bytes + Paid storage size diff: 68 bytes + Consumed gas: 4605.577 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 72007 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 72007 + Storage size: 2048 bytes + Paid storage size diff: 70 bytes + Consumed gas: 3213.097 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0175 + storage fees ........................... +ꜩ0.0175 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap1 --entrypoint approve --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.219 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD' +NOT waiting for the operation to be included. +Use command + octez-client wait for oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000639 + Expected counter: 4 + Gas limit: 3320 + Storage limit: 88 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000639 + payload fees(the block proposer) ....... +ꜩ0.000639 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: approve + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } + Updated big_maps: + Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 + Storage size: 2116 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3219.692 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap2 --entrypoint transfer --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 4583.606 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'ooQzjSGVXMaKnG26HnAuCZLNiuBzV1mtoEwBDKnRdC2QDbrPisq' +NOT waiting for the operation to be included. +Use command + octez-client wait for ooQzjSGVXMaKnG26HnAuCZLNiuBzV1mtoEwBDKnRdC2QDbrPisq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000826 + Expected counter: 2 + Gas limit: 4684 + Storage limit: 0 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000826 + payload fees(the block proposer) ....... +ꜩ0.000826 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: transfer + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" + "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } + Updated big_maps: + Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 71007 + Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 + Storage size: 2116 bytes + Consumed gas: 4584.079 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap2 --entrypoint removeLiquidity --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 12654.297 units (will add 100 for safety) +Estimated storage: 67 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'ony6fNgyiQobdEYi2tHDJNHbtK1jB3zMGpUPczo3LuxaCWEKUdT' +NOT waiting for the operation to be included. +Use command + octez-client wait for ony6fNgyiQobdEYi2tHDJNHbtK1jB3zMGpUPczo3LuxaCWEKUdT to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001628 + Expected counter: 3 + Gas limit: 12755 + Storage limit: 87 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001628 + payload fees(the block proposer) ....... +ꜩ0.001628 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: removeLiquidity + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 712 ; + 8895894353 ; + 71107 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4633 bytes + Consumed gas: 2276.887 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 71107 } + Updated big_maps: + Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] + Storage size: 2048 bytes + Consumed gas: 3413.213 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 711 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 + Storage size: 2330 bytes + Paid storage size diff: 67 bytes + Consumed gas: 3907.862 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01675 + storage fees ........................... +ꜩ0.01675 + Internal Transaction: + Amount: ꜩ125.105747 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ125.105747 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... +ꜩ125.105747 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 71107 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Kathmandu- Test trades.out b/tezt/tests/expected/contract_liquility_baking.ml/Kathmandu- Test trades.out new file mode 100644 index 0000000000000000000000000000000000000000..db009a20534d98ccee66fb7119abbc998a9ebb1c --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Kathmandu- Test trades.out @@ -0,0 +1,446 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.054 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.527 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.337 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.810 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.337 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.810 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.337 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.810 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12149.620 units (will add 100 for safety) +Estimated storage: 141 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opEou13te7EeKTxwFQdB2wHvbDmeTs97Au3LHgerYgU7fBwWfzE' +NOT waiting for the operation to be included. +Use command + octez-client wait for opEou13te7EeKTxwFQdB2wHvbDmeTs97Au3LHgerYgU7fBwWfzE to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.00158 + Expected counter: 3 + Gas limit: 12250 + Storage limit: 161 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.00158 + payload fees(the block proposer) ....... +ꜩ0.00158 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 722 ; + 9013500100 ; + 72107 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4633 bytes + Paid storage size diff: 3 bytes + Consumed gas: 2274.737 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.00075 + storage fees ........................... +ꜩ0.00075 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 721)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999279 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99999279 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 721 + Storage size: 2263 bytes + Paid storage size diff: 68 bytes + Consumed gas: 4605.577 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 72007 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 72107 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 72007 + Storage size: 2048 bytes + Paid storage size diff: 70 bytes + Consumed gas: 3213.097 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0175 + storage fees ........................... +ꜩ0.0175 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap2 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint xtzToToken --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 8709.942 units (will add 100 for safety) +Estimated storage: 326 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onjb9iMJWAoJWUvg8NLBdaC4qg7oreZP6FNFR2zRjdYwrE2dWg6' +NOT waiting for the operation to be included. +Use command + octez-client wait for onjb9iMJWAoJWUvg8NLBdaC4qg7oreZP6FNFR2zRjdYwrE2dWg6 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001228 + Expected counter: 2 + Gas limit: 8810 + Storage limit: 346 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001228 + payload fees(the block proposer) ....... +ꜩ0.001228 + Transaction: + Amount: ꜩ9001 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: xtzToToken + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 362 ; + 18007999100 ; + 72107 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4634 bytes + Paid storage size diff: 1 bytes + Consumed gas: 1745.741 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.00025 + storage fees ........................... +ꜩ0.00025 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 360)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 361 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 360 + Storage size: 2331 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3907.866 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + Internal Transaction: + Amount: ꜩ9.001 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ9.001 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ9.001 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.06425 + storage fees ........................... +ꜩ0.06425 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint transfer --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3916.093 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opTUbnUNZskn9prKmtBtMb8Qu8F8D6oxVsD2vTeErWuWVhhw82m' +NOT waiting for the operation to be included. +Use command + octez-client wait for opTUbnUNZskn9prKmtBtMb8Qu8F8D6oxVsD2vTeErWuWVhhw82m to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000759 + Expected counter: 3 + Gas limit: 4017 + Storage limit: 88 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000759 + payload fees(the block proposer) ....... +ꜩ0.000759 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" + 100) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 260 + Storage size: 2399 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3916.566 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap3 --entrypoint tokenToXtz --arg '(Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 10608.915 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'onoxdw6ot39cWANs5rY9vdrmuqffuMj9jvAbe52KGmWbZTexiez' +NOT waiting for the operation to be included. +Use command + octez-client wait for onoxdw6ot39cWANs5rY9vdrmuqffuMj9jvAbe52KGmWbZTexiez to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.001416 + Expected counter: 2 + Gas limit: 10709 + Storage limit: 0 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.001416 + payload fees(the block proposer) ....... +ꜩ0.001416 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: tokenToXtz + Parameter: (Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 462 ; + 14117137204 ; + 72107 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4633 bytes + Consumed gas: 1746.925 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 + Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 461 + Storage size: 2331 bytes + Consumed gas: 4805.613 + Internal Transaction: + Amount: ꜩ3891.966034 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ3891.966034 + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... +ꜩ3891.966034 + Internal Transaction: + Amount: ꜩ3.895862 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ3.895862 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ3.895862 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 72107 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Lima- Test add-approve-transfer-remove liquidity.out b/tezt/tests/expected/contract_liquility_baking.ml/Lima- Test add-approve-transfer-remove liquidity.out new file mode 100644 index 0000000000000000000000000000000000000000..ffd67f35fd370296bc2de6d1332d1a196cfd6731 --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Lima- Test add-approve-transfer-remove liquidity.out @@ -0,0 +1,416 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.516 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.989 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12152.039 units (will add 100 for safety) +Estimated storage: 147 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW' +NOT waiting for the operation to be included. +Use command + octez-client wait for onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.001581 + Expected counter: 3 + Gas limit: 12253 + Storage limit: 167 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.001581 + payload fees(the block proposer) ....... +ꜩ0.001581 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21599 ; + 9001416765 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Paid storage size diff: 6 bytes + Consumed gas: 2278.202 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0015 + storage fees ........................... +ꜩ0.0015 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 + Storage size: 2264 bytes + Paid storage size diff: 69 bytes + Consumed gas: 4604.131 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 + Storage size: 2050 bytes + Paid storage size diff: 72 bytes + Consumed gas: 3213.539 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.018 + storage fees ........................... +ꜩ0.018 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap1 --entrypoint approve --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.133 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD' +NOT waiting for the operation to be included. +Use command + octez-client wait for oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000639 + Expected counter: 4 + Gas limit: 3320 + Storage limit: 88 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000639 + payload fees(the block proposer) ....... +ꜩ0.000639 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: approve + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 + Storage size: 2118 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3219.606 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap2 --entrypoint transfer --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 4581.961 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'op7opCJCRVUphFFC9Btd9frUtuei5MGvbQTx11h4PBG8Ab9DML9' +NOT waiting for the operation to be included. +Use command + octez-client wait for op7opCJCRVUphFFC9Btd9frUtuei5MGvbQTx11h4PBG8Ab9DML9 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000826 + Expected counter: 2 + Gas limit: 4682 + Storage limit: 0 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000826 + payload fees(the block proposer) ....... +ꜩ0.000826 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: transfer + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" + "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2158730 + Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 + Storage size: 2118 bytes + Consumed gas: 4582.434 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap2 --entrypoint removeLiquidity --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 12657.260 units (will add 100 for safety) +Estimated storage: 67 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'ooXhXAa1pBHRrrBNhrfRao2mtUcB48yT5DQFTtJ56MatcGVrQn3' +NOT waiting for the operation to be included. +Use command + octez-client wait for ooXhXAa1pBHRrrBNhrfRao2mtUcB48yT5DQFTtJ56MatcGVrQn3 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001628 + Expected counter: 3 + Gas limit: 12758 + Storage limit: 87 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001628 + payload fees(the block proposer) ....... +ꜩ0.001628 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: removeLiquidity + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21589 ; + 8997498998 ; + 2158830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Consumed gas: 2279.807 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2158830 } + Updated big_maps: + Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] + Storage size: 2050 bytes + Consumed gas: 3413.498 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21588 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 + Storage size: 2331 bytes + Paid storage size diff: 67 bytes + Consumed gas: 3907.536 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01675 + storage fees ........................... +ꜩ0.01675 + Internal Transaction: + Amount: ꜩ4.167766 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ4.167766 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... +ꜩ4.167766 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 2158830 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Lima- Test trades.out b/tezt/tests/expected/contract_liquility_baking.ml/Lima- Test trades.out new file mode 100644 index 0000000000000000000000000000000000000000..4143c0f89715900ae6a8d431995792f8efd12ee3 --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Lima- Test trades.out @@ -0,0 +1,446 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.516 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.989 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12152.039 units (will add 100 for safety) +Estimated storage: 147 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW' +NOT waiting for the operation to be included. +Use command + octez-client wait for onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.001581 + Expected counter: 3 + Gas limit: 12253 + Storage limit: 167 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.001581 + payload fees(the block proposer) ....... +ꜩ0.001581 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21599 ; + 9001416765 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Paid storage size diff: 6 bytes + Consumed gas: 2278.202 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0015 + storage fees ........................... +ꜩ0.0015 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 + Storage size: 2264 bytes + Paid storage size diff: 69 bytes + Consumed gas: 4604.131 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 + Storage size: 2050 bytes + Paid storage size diff: 72 bytes + Consumed gas: 3213.539 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.018 + storage fees ........................... +ꜩ0.018 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap2 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint xtzToToken --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 8712.001 units (will add 100 for safety) +Estimated storage: 327 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'oonqQPWympWPc1diR2PrJe3JkHuRoXfVe4qEjgsA1g2FuHPDaTL' +NOT waiting for the operation to be included. +Use command + octez-client wait for oonqQPWympWPc1diR2PrJe3JkHuRoXfVe4qEjgsA1g2FuHPDaTL to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001229 + Expected counter: 2 + Gas limit: 8813 + Storage limit: 347 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001229 + payload fees(the block proposer) ....... +ꜩ0.001229 + Transaction: + Amount: ꜩ9001 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: xtzToToken + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 10811 ; + 17993499098 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4636 bytes + Paid storage size diff: 1 bytes + Consumed gas: 1748.012 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.00025 + storage fees ........................... +ꜩ0.00025 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10788)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10810 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10788 + Storage size: 2333 bytes + Paid storage size diff: 69 bytes + Consumed gas: 3907.570 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ9.001 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ9.001 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ9.001 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.06425 + storage fees ........................... +ꜩ0.06425 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint transfer --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3915.767 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onjYwwTPHn3oWRGtbXS3AJz9yznL2AyfUCkXRc8WKEWfQtoBQaE' +NOT waiting for the operation to be included. +Use command + octez-client wait for onjYwwTPHn3oWRGtbXS3AJz9yznL2AyfUCkXRc8WKEWfQtoBQaE to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000759 + Expected counter: 3 + Gas limit: 4016 + Storage limit: 88 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000759 + payload fees(the block proposer) ....... +ꜩ0.000759 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" + 100) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10688 + Storage size: 2401 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3916.240 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap3 --entrypoint tokenToXtz --arg '(Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 10609.068 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'opAq9XNVhffDnEN47oP7V2EXncrx1sZMuZ4K8yCLHtTcVfYY94y' +NOT waiting for the operation to be included. +Use command + octez-client wait for opAq9XNVhffDnEN47oP7V2EXncrx1sZMuZ4K8yCLHtTcVfYY94y to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.001416 + Expected counter: 2 + Gas limit: 10710 + Storage limit: 0 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.001416 + payload fees(the block proposer) ....... +ꜩ0.001416 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: tokenToXtz + Parameter: (Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 10911 ; + 17828916091 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4636 bytes + Consumed gas: 1748.660 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 + Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10910 + Storage size: 2333 bytes + Consumed gas: 4803.947 + Internal Transaction: + Amount: ꜩ164.584923 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ164.584923 + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... +ꜩ164.584923 + Internal Transaction: + Amount: ꜩ0.16475 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ0.16475 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ0.16475 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 2159830 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Mumbai- Test add-approve-transfer-remove liquidity.out b/tezt/tests/expected/contract_liquility_baking.ml/Mumbai- Test add-approve-transfer-remove liquidity.out new file mode 100644 index 0000000000000000000000000000000000000000..ffd67f35fd370296bc2de6d1332d1a196cfd6731 --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Mumbai- Test add-approve-transfer-remove liquidity.out @@ -0,0 +1,416 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.516 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.989 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12152.039 units (will add 100 for safety) +Estimated storage: 147 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW' +NOT waiting for the operation to be included. +Use command + octez-client wait for onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.001581 + Expected counter: 3 + Gas limit: 12253 + Storage limit: 167 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.001581 + payload fees(the block proposer) ....... +ꜩ0.001581 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21599 ; + 9001416765 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Paid storage size diff: 6 bytes + Consumed gas: 2278.202 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0015 + storage fees ........................... +ꜩ0.0015 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 + Storage size: 2264 bytes + Paid storage size diff: 69 bytes + Consumed gas: 4604.131 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 + Storage size: 2050 bytes + Paid storage size diff: 72 bytes + Consumed gas: 3213.539 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.018 + storage fees ........................... +ꜩ0.018 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap1 --entrypoint approve --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.133 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD' +NOT waiting for the operation to be included. +Use command + octez-client wait for oo2ZHUJ9WjQBEooyQisvsYfzvmCdKc4tvizB6f1ANkezPo4gGrD to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000639 + Expected counter: 4 + Gas limit: 3320 + Storage limit: 88 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000639 + payload fees(the block proposer) ....... +ꜩ0.000639 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: approve + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] to 1000 + Storage size: 2118 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3219.606 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo from bootstrap2 --entrypoint transfer --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 4581.961 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'op7opCJCRVUphFFC9Btd9frUtuei5MGvbQTx11h4PBG8Ab9DML9' +NOT waiting for the operation to be included. +Use command + octez-client wait for op7opCJCRVUphFFC9Btd9frUtuei5MGvbQTx11h4PBG8Ab9DML9 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000826 + Expected counter: 2 + Gas limit: 4682 + Storage limit: 0 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000826 + payload fees(the block proposer) ....... +ꜩ0.000826 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: transfer + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" + "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + 1000) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Unset map(3)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c)] + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2158730 + Set map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 1000 + Storage size: 2118 bytes + Consumed gas: 4582.434 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap2 --entrypoint removeLiquidity --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 12657.260 units (will add 100 for safety) +Estimated storage: 67 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'ooXhXAa1pBHRrrBNhrfRao2mtUcB48yT5DQFTtJ56MatcGVrQn3' +NOT waiting for the operation to be included. +Use command + octez-client wait for ooXhXAa1pBHRrrBNhrfRao2mtUcB48yT5DQFTtJ56MatcGVrQn3 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001628 + Expected counter: 3 + Gas limit: 12758 + Storage limit: 87 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001628 + payload fees(the block proposer) ....... +ꜩ0.001628 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: removeLiquidity + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 1000 0 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21589 ; + 8997498998 ; + 2158830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Consumed gas: 2279.807 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair -1000 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2158830 } + Updated big_maps: + Unset map(2)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] + Storage size: 2050 bytes + Consumed gas: 3413.498 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21588 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10 + Storage size: 2331 bytes + Paid storage size diff: 67 bytes + Consumed gas: 3907.536 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01675 + storage fees ........................... +ꜩ0.01675 + Internal Transaction: + Amount: ꜩ4.167766 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ4.167766 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... +ꜩ4.167766 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 2158830 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/expected/contract_liquility_baking.ml/Mumbai- Test trades.out b/tezt/tests/expected/contract_liquility_baking.ml/Mumbai- Test trades.out new file mode 100644 index 0000000000000000000000000000000000000000..4143c0f89715900ae6a8d431995792f8efd12ee3 --- /dev/null +++ b/tezt/tests/expected/contract_liquility_baking.ml/Mumbai- Test trades.out @@ -0,0 +1,446 @@ + +./octez-client --mode mockup rpc get /chains/main/blocks/head/context/liquidity_baking/cpmm_address +"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" + +./octez-client --mode mockup get contract storage for KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 +Pair 1 + 100 + 100 + "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" + "KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo" + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint mintOrBurn --arg '(Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3217.516 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4' +NOT waiting for the operation to be included. +Use command + octez-client wait for onn2EjEkNixUGs2Rq7Wky66zepuLfzXz6kKo8aDSZe2rAswt7J4 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000644 + Expected counter: 1 + Gas limit: 3318 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000644 + payload fees(the block proposer) ....... +ꜩ0.000644 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: mintOrBurn + Parameter: (Pair 100000000 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx") + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 100000000 + Storage size: 1982 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3217.989 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap1 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq' +NOT waiting for the operation to be included. +Use command + octez-client wait for opao2h8Dk8qUzeQXWD7mAHBq138Cix1jdg8K2Td1YdBmHWQyPgq to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.000642 + Expected counter: 2 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2053 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw' +NOT waiting for the operation to be included. +Use command + octez-client wait for opYd4D9ntPBfU2DnTYvnjHXs6F1UQPSCTyHSEVoniGxetRsFcZw to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2124 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap3 --entrypoint approve --arg '(Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3219.255 units (will add 100 for safety) +Estimated storage: 71 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7' +NOT waiting for the operation to be included. +Use command + octez-client wait for op8ToBRT94cCScoyVZjTSeLW4vk9qd8B1gFDUsXJkBSfMJQFHs7 to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.000642 + Expected counter: 1 + Gas limit: 3320 + Storage limit: 91 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.000642 + payload fees(the block proposer) ....... +ꜩ0.000642 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: approve + Parameter: (Pair "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 1000000000) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 1000000000 + Storage size: 2195 bytes + Paid storage size diff: 71 bytes + Consumed gas: 3219.728 + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.01775 + storage fees ........................... +ꜩ0.01775 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap1 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint addLiquidity --arg '(Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 12152.039 units (will add 100 for safety) +Estimated storage: 147 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW' +NOT waiting for the operation to be included. +Use command + octez-client wait for onpf5GB21JHxDNgSXHj23CCy5y1Nn6vgDPqa87pcHurCinS4GMW to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + Fee to the baker: ꜩ0.001581 + Expected counter: 3 + Gas limit: 12253 + Storage limit: 167 bytes + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.001581 + payload fees(the block proposer) ....... +ꜩ0.001581 + Transaction: + Amount: ꜩ9001 + From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: addLiquidity + Parameter: (Pair "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 0 1000000000 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 21599 ; + 9001416765 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4635 bytes + Paid storage size diff: 6 bytes + Consumed gas: 2278.202 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.0015 + storage fees ........................... +ꜩ0.0015 + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 21598)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999978402 + Set map(0)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 99978402 + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 21598 + Storage size: 2264 bytes + Paid storage size diff: 69 bytes + Consumed gas: 4604.131 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo + Entrypoint: mintOrBurn + Parameter: (Pair 2159730 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78) + This transaction was successfully applied + Updated storage: + { 2 ; 3 ; 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 ; 2159830 } + Updated big_maps: + Set map(2)[0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78] to 2159730 + Storage size: 2050 bytes + Paid storage size diff: 72 bytes + Consumed gas: 3213.539 + Balance updates: + tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.018 + storage fees ........................... +ꜩ0.018 + + +./octez-client --mode mockup --wait none transfer 9001 from bootstrap2 to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 --burn-cap 10 --entrypoint xtzToToken --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z")' +Node is bootstrapped. +Estimated gas: 8712.001 units (will add 100 for safety) +Estimated storage: 327 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'oonqQPWympWPc1diR2PrJe3JkHuRoXfVe4qEjgsA1g2FuHPDaTL' +NOT waiting for the operation to be included. +Use command + octez-client wait for oonqQPWympWPc1diR2PrJe3JkHuRoXfVe4qEjgsA1g2FuHPDaTL to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.001229 + Expected counter: 2 + Gas limit: 8813 + Storage limit: 347 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.001229 + payload fees(the block proposer) ....... +ꜩ0.001229 + Transaction: + Amount: ꜩ9001 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: xtzToToken + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 10811 ; + 17993499098 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4636 bytes + Paid storage size diff: 1 bytes + Consumed gas: 1748.012 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.00025 + storage fees ........................... +ꜩ0.00025 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ9001 + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... +ꜩ9001 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 + (Pair 0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c 10788)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10810 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10788 + Storage size: 2333 bytes + Paid storage size diff: 69 bytes + Consumed gas: 3907.570 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.01725 + storage fees ........................... +ꜩ0.01725 + Internal Transaction: + Amount: ꜩ9.001 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ9.001 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ9.001 + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.06425 + storage fees ........................... +ꜩ0.06425 + + +./octez-client --mode mockup call KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN from bootstrap2 --entrypoint transfer --arg '(Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100)' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 3915.767 units (will add 100 for safety) +Estimated storage: 68 bytes added (will add 20 for safety) +Operation successfully injected in the node. +Operation hash is 'onjYwwTPHn3oWRGtbXS3AJz9yznL2AyfUCkXRc8WKEWfQtoBQaE' +NOT waiting for the operation to be included. +Use command + octez-client wait for onjYwwTPHn3oWRGtbXS3AJz9yznL2AyfUCkXRc8WKEWfQtoBQaE to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + Fee to the baker: ꜩ0.000759 + Expected counter: 3 + Gas limit: 4016 + Storage limit: 88 bytes + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.000759 + payload fees(the block proposer) ....... +ꜩ0.000759 + Transaction: + Amount: ꜩ0 + From: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" + "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" + 100) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] to 100 + Set map(0)[0x0000e7670f32038107a59a2b9cfefae36ea21f5aa63c] to 10688 + Storage size: 2401 bytes + Paid storage size diff: 68 bytes + Consumed gas: 3916.240 + Balance updates: + tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN ... -ꜩ0.017 + storage fees ........................... +ꜩ0.017 + + +./octez-client --mode mockup call KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 from bootstrap3 --entrypoint tokenToXtz --arg '(Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z")' --burn-cap 10 +Node is bootstrapped. +Estimated gas: 10609.068 units (will add 100 for safety) +Estimated storage: no bytes added +Operation successfully injected in the node. +Operation hash is 'opAq9XNVhffDnEN47oP7V2EXncrx1sZMuZ4K8yCLHtTcVfYY94y' +NOT waiting for the operation to be included. +Use command + octez-client wait for opAq9XNVhffDnEN47oP7V2EXncrx1sZMuZ4K8yCLHtTcVfYY94y to be included --confirmations 1 --branch BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU +and/or an external block explorer to make sure that it has been included. +This sequence of operations was run: + Manager signed operations: + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + Fee to the baker: ꜩ0.001416 + Expected counter: 2 + Gas limit: 10710 + Storage limit: 0 bytes + Balance updates: + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... -ꜩ0.001416 + payload fees(the block proposer) ....... +ꜩ0.001416 + Transaction: + Amount: ꜩ0 + From: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + To: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + Entrypoint: tokenToXtz + Parameter: (Pair "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU" 100 0 "2050-01-01T00:00:00Z") + This transaction was successfully applied + Updated storage: + { 10911 ; + 17828916091 ; + 2159830 ; + 0x01e927f00ef734dfc85919635e9afc9166c83ef9fc00 ; + 0x0115eb0104481a6d7921160bc982c5e0a561cd8a3a00 } + Storage size: 4636 bytes + Consumed gas: 1748.660 + Internal operations: + Internal Transaction: + Amount: ꜩ0 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN + Entrypoint: transfer + Parameter: (Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + (Pair 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600 100)) + This transaction was successfully applied + Updated storage: + { 0 ; 1 ; 0x000002298c03ed7d454a101eb7022bc95f7e5f41ac78 ; 100010000 } + Updated big_maps: + Set map(1)[(Pair 0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6 + 0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600)] to 999999900 + Unset map(0)[0x0000dac9f52543da1aed0bc1d6b46bf7c10db7014cd6] + Set map(0)[0x01d496def47a3be89f5d54c6e6bb13cc6645d6e16600] to 10910 + Storage size: 2333 bytes + Consumed gas: 4803.947 + Internal Transaction: + Amount: ꜩ164.584923 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ164.584923 + tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU ... +ꜩ164.584923 + Internal Transaction: + Amount: ꜩ0.16475 + From: KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 + To: tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU + This transaction was successfully applied + Consumed gas: 1000 + Balance updates: + KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 ... -ꜩ0.16475 + tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU ... +ꜩ0.16475 + + +./octez-client --mode mockup get contract storage for KT1AafHA1C1vk959wvHWBispY9Y2f3fxBUUo +Pair 2 3 "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5" 2159830 + +./octez-client --mode mockup get contract storage for KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN +Pair 0 1 "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" 100010000 diff --git a/tezt/tests/main.ml b/tezt/tests/main.ml index dd008db616b8cb14c2c24a7a989ce5b48c56edf1..46b537cf5609e9c6f938fc978c5a17afe21a85da 100644 --- a/tezt/tests/main.ml +++ b/tezt/tests/main.ml @@ -112,6 +112,7 @@ let register_protocol_tests_that_use_supports_correctly () = Contract_entrypoints.register ~protocols ; Contract_hash_fun.register ~protocols ; Contract_hash_with_origination.register ~protocols ; + Contract_liquility_baking.register ~protocols ; Contract_non_regressions.register protocols ; Contract_opcodes.register ~protocols ; Contract_typecheck_contract.register ~protocols ;