Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): sendAnywhere contract #9898

Merged
merged 7 commits into from
Aug 16, 2024
Merged

test(e2e): sendAnywhere contract #9898

merged 7 commits into from
Aug 16, 2024

Conversation

0xpatrickdev
Copy link
Member

@0xpatrickdev 0xpatrickdev commented Aug 14, 2024

refs: #9193
closes: #9901

Description

Adds an e2e test for sendAnywhere.contract.js, ensuring zoeTools.localTransfer() and localOrchestrationAccount.transfer() are working as expected.

Fixes a bug in zoeTools.transfer() where a vow chain was broken (we used Promise.all() on an array of vows instead of vowTools.allVows().

Also satisfies this requirement in #9193:

  • As new user of an orchestration contract, I need to “deposit” (move) my fungible funds into a place controlled by orchestration so it can do things with it.
    • for assets available through vbank starting on Agoric in a smart-wallet

Security Considerations

n/a

Scaling Considerations

n/a

Documentation Considerations

n/a

Testing Considerations

Includes tests for paths where bugs were discovered.

Upgrade Considerations

n/a

@0xpatrickdev 0xpatrickdev added the force:integration Force integration tests to run on PR label Aug 14, 2024
Copy link

cloudflare-workers-and-pages bot commented Aug 14, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: c3c11be
Status: ✅  Deploy successful!
Preview URL: https://f162d01e.agoric-sdk.pages.dev
Branch Preview URL: https://pc-send-anywhere-e2e.agoric-sdk.pages.dev

View logs

@0xpatrickdev
Copy link
Member Author

0xpatrickdev commented Aug 14, 2024

Logs from local runs, ci logs can be found here: https://github.com/Agoric/agoric-sdk/actions/runs/10393409141/job/28780860582?pr=9898#step:12:1889

first run (unsuccessful) - Error: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:03.574Z SwingSet: vat: v26: ----- ProvPool.4  12 PLEASE_PROVISION { address: 'agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v', autoProvision: false, blockHeight: 710, blockTime: 1723662722, nickname: 'my-wallet', powerFlags: [ 'SMART_WALLET' ], submitter: 'agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v', type: 'PLEASE_PROVISION' }
7:12PM INF burned tokens from module account amount=250000uist from=vbank module=x/bank
2024-08-14T19:12:03.618Z SwingSet: vat: v26: ----- ProvPool.4  13 provisionPool balance update { brand: Object [Alleged: IST brand] {}, value: 999_750_000n }
7:12PM INF minted coins from module account amount=250000uist from=vbank module=x/bank
2024-08-14T19:12:03.855Z SwingSet: vat: v26: ----- ProvPool.4  14 provisionPool sent { brand: Object [Alleged: IST brand] {}, value: 250_000n }
7:12PM INF Timed out dur=400 height=710 module=consensus round=0 step=3
2024-08-14T19:12:04.129Z SwingSet: vat: v26: ----- ProvPool.4  15 provisioned agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v
7:12PM INF executed block height=710 module=state num_invalid_txs=0 num_valid_txs=1
2024-08-14T19:12:04.307Z block-manager: block 710 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B3235342031343520323131203135382031383320313234203832203139362031373020323337203533203432203136332032313120323236203135342031313520313633203134322031313920323330203234312031302031363720323235203132392031363620343920383220333320313636203136315D3A3243367D
7:12PM INF committed state app_hash=FE91D39EB77C52C4AAED352AA3D3E29A73A38E77E6F10AA7E181A6315221A6A1 height=710 module=state num_txs=1
7:12PM INF indexed block events height=710 module=txindex
7:12PM INF Timed out dur=23.269291 height=711 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"743D8A350C2341DA16BDF4AFFC22E0B6435F80E151B907E7E2416E13AE897016","parts":{"hash":"FC9A94868CB28E402563593D7B5AE5997DC74F2D1E4B482ECB63E1C7382A0394","total":1}},"height":711,"pol_round":-1,"round":0,"signature":"+J+YzHoM3sugO/+nk+fGGHqUsfMrzYlPCa8HM+DbX9+Oj0IvhWSB+STFNjkCRyd/2zVk+69A7rFZ3YCMTCy2DQ==","timestamp":"2024-08-14T19:12:04.352511888Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=743D8A350C2341DA16BDF4AFFC22E0B6435F80E151B907E7E2416E13AE897016 height=711 module=consensus
7:12PM INF finalizing commit of block hash={} height=711 module=consensus num_txs=0 root=FE91D39EB77C52C4AAED352AA3D3E29A73A38E77E6F10AA7E181A6315221A6A1
7:12PM INF minted coins from module account amount=22659866ubld from=mint module=x/bank
2024-08-14T19:12:04.443Z block-manager: block 711 begin
7:12PM INF executed block height=711 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:04.446Z block-manager: block 711 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B313934203131312036302033332032332031303020313133203139322034203420353320323438203232372032333220333020323334203231392036382037203537203835203131322031393220323435203520383620383220323038203134362031383020323137203233325D3A3243377D
7:12PM INF committed state app_hash=C26F3C21176471C0040435F8E3E81EEADB4407395570C0F5055652D092B4D9E8 height=711 module=state num_txs=0
7:12PM INF indexed block events height=711 module=txindex
7:12PM INF Timed out dur=704.313375 height=712 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"6DC7E50A34AEB4063599CE15E838713384DFEE1E227C1C931A8734818F2C2A2E","parts":{"hash":"A9383DE09A0054D650DA19EC1A16534752812A64C4452857FCAE308D594345DA","total":1}},"height":712,"pol_round":-1,"round":0,"signature":"x8UgMJI3QWEbNyQy714Xp5B/XsdZQS0JAvE6IXpRSMK4x5gGSSGoQ1uHdjZWO0gs/xnDxsnz0peuKWg1QyVNAw==","timestamp":"2024-08-14T19:12:05.163411055Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=6DC7E50A34AEB4063599CE15E838713384DFEE1E227C1C931A8734818F2C2A2E height=712 module=consensus
7:12PM INF finalizing commit of block hash={} height=712 module=consensus num_txs=1 root=C26F3C21176471C0040435F8E3E81EEADB4407395570C0F5055652D092B4D9E8
7:12PM INF minted coins from module account amount=22659870ubld from=mint module=x/bank
2024-08-14T19:12:05.177Z block-manager: block 712 begin
2024-08-14T19:12:05.187Z SwingSet: vat: v32: walletFactory.fromBridge: { blockHeight: 712, blockTime: 1723662724, owner: 'agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v', spendAction: '{"body":"#{\\"method\\":\\"executeOffer\\",\\"offer\\":{\\"id\\":\\"cosmoshub-makeSendInvitation-1723662724337\\",\\"invitationSpec\\":{\\"callPipe\\":[[\\"makeSendInvitation\\"]],\\"instancePath\\":[\\"sendAnywhere\\"],\\"source\\":\\"agoricContract\\"},\\"offerArgs\\":{\\"chainName\\":\\"cosmoshub\\",\\"destAddr\\":\\"cosmos1dehfgvn7yhy0ach0g3uxff67zrquupe2l2scz7\\"},\\"proposal\\":{\\"give\\":{\\"Send\\":{\\"brand\\":\\"$0.Alleged: IST brand#board0257\\",\\"value\\":\\"+10\\"}}}}}","slots":["board0257"]}', type: 'WALLET_SPEND_ACTION' }
2024-08-14T19:12:05.191Z SwingSet: vat: v32: walletFactory: { wallet: Object [Alleged: SmartWallet self] {}, actionCapData: { body: '#{"method":"executeOffer","offer":{"id":"cosmoshub-makeSendInvitation-1723662724337","invitationSpec":{"callPipe":[["makeSendInvitation"]],"instancePath":["sendAnywhere"],"source":"agoricContract"},"offerArgs":{"chainName":"cosmoshub","destAddr":"cosmos1dehfgvn7yhy0ach0g3uxff67zrquupe2l2scz7"},"proposal":{"give":{"Send":{"brand":"$0.Alleged: IST brand#board0257","value":"+10"}}}}}', slots: [ 'board0257' ] } }
2024-08-14T19:12:05.204Z SwingSet: vat: v32: wallet agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v starting executeOffer cosmoshub-makeSendInvitation-1723662724337
7:12PM INF burned tokens from module account amount=10uist from=vbank module=x/bank
7:12PM INF Timed out dur=400 height=712 module=consensus round=0 step=3
2024-08-14T19:12:05.621Z SwingSet: vat: v38: ----- Orchestrator.4  2 making an Orchestrator
7:12PM INF executed block height=712 module=state num_invalid_txs=0 num_valid_txs=1
2024-08-14T19:12:05.761Z block-manager: block 712 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B3234362031373620313630203234342038322032343720323420333220313531203131392037302032343120373720323035203135372031353120323120343720353520313120333020313238203135203239203134302035203130322033362032353020323037203234312033355D3A3243387D
7:12PM INF committed state app_hash=F6B0A0F452F71820977746F14DCD9D97152F370B1E800F1D8C056624FACFF123 height=712 module=state num_txs=1
7:12PM INF indexed block events height=712 module=txindex
7:12PM INF Timed out dur=158.145124 height=713 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"38206C99E9190F38EDA1C858D0D7EEA114041F218D2E2BBD2508E9A9BEEAD319","parts":{"hash":"AF2848DDCFF0320F40DB3540F8B735979373BF1B6D2ADDD1BA35DA51F37C5019","total":1}},"height":713,"pol_round":-1,"round":0,"signature":"KVADsMA8irhljnWcARE7ZOihgewC5SsGnFr1sQKLFcUpF1To2yqEyrbgL9kfRoP+y3L9NoICCjGZeNuXFvPQCg==","timestamp":"2024-08-14T19:12:05.976304916Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=38206C99E9190F38EDA1C858D0D7EEA114041F218D2E2BBD2508E9A9BEEAD319 height=713 module=consensus
7:12PM INF finalizing commit of block hash={} height=713 module=consensus num_txs=0 root=F6B0A0F452F71820977746F14DCD9D97152F370B1E800F1D8C056624FACFF123
7:12PM INF minted coins from module account amount=22659874ubld from=mint module=x/bank
2024-08-14T19:12:05.987Z block-manager: block 713 begin
2024-08-14T19:12:05.991Z SwingSet: vat: v32: wallet agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v cosmoshub-makeSendInvitation-1723662724337 seated
7:12PM INF Timed out dur=400 height=713 module=consensus round=0 step=3
7:12PM INF executed block height=713 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:06.809Z block-manager: block 713 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B32323020313536203632203620323036203233362031393820323430203231362036372032313820333420343820323039203436203732203132352032343520343520323437203635203137352031373820313237203736203738203232372032313320313433203133322036203234315D3A3243397D
7:12PM INF committed state app_hash=DC9C3E06CEECC6F0D843DA2230D12E487DF52DF741AFB27F4C4EE3D58F8406F1 height=713 module=state num_txs=0
7:12PM INF Timed out dur=-39.294625 height=714 module=consensus round=0 step=1
7:12PM INF indexed block events height=713 module=txindex
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"22E24C141B5693CDB393BB54DC60119E3B5F358494155F968FD331F2ABF0C597","parts":{"hash":"6AC18DCE1F914467D7B30A8EE4D31EE3FD6EC6CEBF22E582DD32695FFD2DF107","total":1}},"height":714,"pol_round":-1,"round":0,"signature":"KsO7Yd7KlboExbnIhjsDBML7iBhAS9+GK7Nj9lLueROSald1ygpeK/QeuY4VoSiN4/pBWjb1Ejl24NGNPBHqAw==","timestamp":"2024-08-14T19:12:06.826006333Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=22E24C141B5693CDB393BB54DC60119E3B5F358494155F968FD331F2ABF0C597 height=714 module=consensus
7:12PM INF finalizing commit of block hash={} height=714 module=consensus num_txs=0 root=DC9C3E06CEECC6F0D843DA2230D12E487DF52DF741AFB27F4C4EE3D58F8406F1
7:12PM INF minted coins from module account amount=22659878ubld from=mint module=x/bank
2024-08-14T19:12:06.928Z block-manager: block 714 begin
7:12PM INF Timed out dur=400 height=714 module=consensus round=0 step=3
2024-08-14T19:12:07.233Z SwingSet: vat: v38: ----- RemoteChainFacade.5  2 making a RemoteChainFacade
7:12PM INF executed block height=714 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:07.571Z block-manager: block 714 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B313736203139392037362038342031343520323531203635203131332031303020313337203930203432203232392036392031343720323532203931203120373520313434203920313434203134342031313320353620383120333720313220363820373120323331203230395D3A3243417D
7:12PM INF committed state app_hash=B0C74C5491FB417164895A2AE54593FC5B014B90099090713851250C4447E7D1 height=714 module=state num_txs=0
7:12PM INF indexed block events height=714 module=txindex
7:12PM INF Timed out dur=21.325708 height=715 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"BC5954B5AB281C49C5EC8C81A88CBD2F002EF619345EAE090EBC80BA2D65D221","parts":{"hash":"ACDF1D60F88E248C4B5F67A05567FA7DCE64FFD625A937AA37A3D774431E1F4C","total":1}},"height":715,"pol_round":-1,"round":0,"signature":"gV7WpMpzwyNrPUow9V6/cOlbw3iF5t30LFUdx107o+kPyjixyA7nN14RdmhcJ9pBJ1kR1SX5GzkZz5Qq5OsZBg==","timestamp":"2024-08-14T19:12:07.636555875Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=BC5954B5AB281C49C5EC8C81A88CBD2F002EF619345EAE090EBC80BA2D65D221 height=715 module=consensus
7:12PM INF finalizing commit of block hash={} height=715 module=consensus num_txs=0 root=B0C74C5491FB417164895A2AE54593FC5B014B90099090713851250C4447E7D1
7:12PM INF minted coins from module account amount=22659882ubld from=mint module=x/bank
2024-08-14T19:12:07.712Z block-manager: block 715 begin
7:12PM INF Timed out dur=400 height=715 module=consensus round=0 step=3
7:12PM INF executed block height=715 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:08.334Z block-manager: block 715 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B313831203738203234372031393620323720383520323432203130322032353520313935203637203831203938203234342031353620323230203139342031343720323437203230362034392032362031373020353920323436203231203920353120343420393220313936203135335D3A3243427D
7:12PM INF committed state app_hash=B54EF7C41B55F266FFC3435162F49CDCC293F7CE311AAA3BF61509332C5CC499 height=715 module=state num_txs=0
7:12PM INF indexed block events height=715 module=txindex
7:12PM INF Timed out dur=82.765333 height=716 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"2670AA2865122D093BEA1354A5CEEA0CC2A901768563DE458349FC579472CAEE","parts":{"hash":"C07B219E322E5F803633574F4B76B93B4595BEBDEB5D9AC9DF4373A64DD4475E","total":1}},"height":716,"pol_round":-1,"round":0,"signature":"b5k2j+xMfS1QS/ihX2XFExxl0+T7XCL5HRpP7I2cHF4Jeum8Fwwpb09Yh06Ad0agV9wuyaNRnjvAVi3FYuL8BA==","timestamp":"2024-08-14T19:12:08.444959834Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=2670AA2865122D093BEA1354A5CEEA0CC2A901768563DE458349FC579472CAEE height=716 module=consensus
7:12PM INF finalizing commit of block hash={} height=716 module=consensus num_txs=0 root=B54EF7C41B55F266FFC3435162F49CDCC293F7CE311AAA3BF61509332C5CC499
7:12PM INF minted coins from module account amount=22659886ubld from=mint module=x/bank
2024-08-14T19:12:08.454Z block-manager: block 716 begin
2024-08-14T19:12:08.630Z SwingSet: vat: v38: ----- LOA.3  2 Transferring funds from LCA over IBC
7:12PM INF Timed out dur=400 height=716 module=consensus round=0 step=3
7:12PM INF executed block height=716 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:09.544Z block-manager: block 716 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B3333203337203132203937203331203232392032303620313320313135203131302035203130332032343320323220373320313433203139382031323820313420313520363220363020343820313430203136302031303020323337203132392032353420313832203438203230385D3A3243437D
7:12PM INF committed state app_hash=21250C611FE5CE0D736E0567F316498FC6800E0F3E3C308CA064ED81FEB630D0 height=716 module=state num_txs=0
7:12PM INF Timed out dur=-308.626376 height=717 module=consensus round=0 step=1
7:12PM INF indexed block events height=716 module=txindex
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"C6EEBD0D9CD400358E28F26381B1ED179BA216AA4E61FA939D27F6EBB215B431","parts":{"hash":"46C39F824B5A8C02BB8BC940963AC684DF512C28D4CFA2D8A94C639D18F7171D","total":1}},"height":717,"pol_round":-1,"round":0,"signature":"V6lazTZ7K8NNIDUTcXW9byYHbry8hvWPd2Wt2xClBX34bKa263ILZcFnGPjIG+deSeBApIJx6gE2wqp6SNBtDw==","timestamp":"2024-08-14T19:12:09.561768543Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=C6EEBD0D9CD400358E28F26381B1ED179BA216AA4E61FA939D27F6EBB215B431 height=717 module=consensus
7:12PM INF finalizing commit of block hash={} height=717 module=consensus num_txs=0 root=21250C611FE5CE0D736E0567F316498FC6800E0F3E3C308CA064ED81FEB630D0
7:12PM INF minted coins from module account amount=22659890ubld from=mint module=x/bank
2024-08-14T19:12:09.750Z block-manager: block 717 begin
2024-08-14T19:12:09.907Z SwingSet: ls: v10: Logging sent error stack (Error#1)
2024-08-14T19:12:09.908Z SwingSet: ls: v10: Error#1: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:09.908Z SwingSet: ls: v10: Error: 0uist is smaller than 10uist: insufficient funds
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at outbound (.../vats/src/bridge.js:162)
 at outbound (.../vats/src/bridge.js:157)
 at apply ()
 at In "outbound" method of (BridgeManagerKit privateOutbounder) (/bundled-source/.../node_modules/@endo/exo/src/exo-tools.js:171)
 at apply ()
 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:126)
 at apply ()
 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:156)
 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:505)
 at ()

2024-08-14T19:12:09.908Z SwingSet: ls: v10: Error#1 ERROR_NOTE: Sent as error:liveSlots:v10#70001
2024-08-14T19:12:09.916Z SwingSet: ls: v17: Logging sent error stack (RemoteError(error:liveSlots:v10#70001)#1)
2024-08-14T19:12:09.916Z SwingSet: ls: v17: RemoteError(error:liveSlots:v10#70001)#1: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:09.917Z SwingSet: ls: v17: Error: 0uist is smaller than 10uist: insufficient funds
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
 at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
 at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
 at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1219)
 at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1243)
 at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1512)
 at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
 at ()

2024-08-14T19:12:09.917Z SwingSet: ls: v17: RemoteError(error:liveSlots:v10#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v17#70001
2024-08-14T19:12:09.941Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.941Z SwingSet: ls: v38: RemoteError(error:liveSlots:v17#70001)#1: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:09.941Z SwingSet: ls: v38: Error: 0uist is smaller than 10uist: insufficient funds
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
 at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
 at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
 at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1219)
 at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1243)
 at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1512)
 at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
 at ()

2024-08-14T19:12:09.941Z SwingSet: ls: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70001
2024-08-14T19:12:09.941Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70002
2024-08-14T19:12:09.942Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.942Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70003
2024-08-14T19:12:09.942Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.947Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70004
2024-08-14T19:12:09.947Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.947Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70005
2024-08-14T19:12:09.947Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.948Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70006
2024-08-14T19:12:09.948Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.956Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70007
2024-08-14T19:12:09.956Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.957Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70008
2024-08-14T19:12:09.957Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.957Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70009
2024-08-14T19:12:09.957Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
7:12PM INF Timed out dur=400 height=717 module=consensus round=0 step=3
2024-08-14T19:12:09.962Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70010
2024-08-14T19:12:09.962Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.962Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70011
2024-08-14T19:12:09.962Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:09.963Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70012
2024-08-14T19:12:09.963Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.003Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70013
2024-08-14T19:12:10.004Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.004Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70014
2024-08-14T19:12:10.004Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.005Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70015
2024-08-14T19:12:10.005Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.005Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70016
2024-08-14T19:12:10.006Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.006Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70017
2024-08-14T19:12:10.006Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.009Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70018
2024-08-14T19:12:10.009Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.014Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70019
2024-08-14T19:12:10.014Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.014Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70020
2024-08-14T19:12:10.014Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.020Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70021
2024-08-14T19:12:10.021Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.021Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70022
2024-08-14T19:12:10.021Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.030Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70023
2024-08-14T19:12:10.030Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.061Z SwingSet: xsnap: v38: RemoteError(error:liveSlots:v17#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v38#70024
2024-08-14T19:12:10.062Z SwingSet: ls: v38: Logging sent error stack (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.127Z SwingSet: ls: v38: Logging sent error stack (Error#2)
2024-08-14T19:12:10.127Z SwingSet: ls: v38: Error#2: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:10.127Z SwingSet: ls: v38: Error: 0uist is smaller than 10uist: insufficient funds
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at (.../async-flow/src/convert.js:100)
 at (.../async-flow/src/async-flow.js:265)
 at ()

2024-08-14T19:12:10.127Z SwingSet: ls: v38: Error#2 ERROR_NOTE: from guest error (Error#3)
2024-08-14T19:12:10.127Z SwingSet: ls: v38: Error#2 ERROR_NOTE: Sent as error:liveSlots:v38#70025
2024-08-14T19:12:10.127Z SwingSet: ls: v38: Error#3: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:10.128Z SwingSet: ls: v38: Error: 0uist is smaller than 10uist: insufficient funds
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at (.../async-flow/src/convert.js:124)
 at doReject (.../async-flow/src/replay-membrane.js:83)
 at interpretOne (.../async-flow/src/replay-membrane.js:610)
 at (.../async-flow/src/replay-membrane.js:566)
 at ()
 at ()

2024-08-14T19:12:10.128Z SwingSet: ls: v38: Error#3 ERROR_NOTE: from host error (RemoteError(error:liveSlots:v17#70001)#1)
2024-08-14T19:12:10.128Z SwingSet: xsnap: v38: Error#2 ERROR_NOTE: Sent as error:liveSlots:v38#70026
2024-08-14T19:12:10.128Z SwingSet: ls: v38: Logging sent error stack (Error#2)
2024-08-14T19:12:10.215Z SwingSet: xsnap: v38: Error#2 ERROR_NOTE: Sent as error:liveSlots:v38#70027
2024-08-14T19:12:10.215Z SwingSet: ls: v38: Logging sent error stack (Error#2)
2024-08-14T19:12:10.252Z SwingSet: vat: v32: wallet agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v offerStatus { id: 'cosmoshub-makeSendInvitation-1723662724337', invitationSpec: { callPipe: [ [ 'makeSendInvitation' ] ], instancePath: [ 'sendAnywhere' ], source: 'agoricContract' }, offerArgs: { chainName: 'cosmoshub', destAddr: 'cosmos1dehfgvn7yhy0ach0g3uxff67zrquupe2l2scz7' }, proposal: { give: { Send: { brand: Object [Alleged: IST brand] {}, value: 10n } } }, error: 'Error: 0uist is smaller than 10uist: insufficient funds' }
2024-08-14T19:12:10.257Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.258Z SwingSet: ls: v32: RemoteError(error:liveSlots:v38#70027)#1: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:10.258Z SwingSet: ls: v32: Error: 0uist is smaller than 10uist: insufficient funds
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
 at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
 at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
 at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1219)
 at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1243)
 at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1512)
 at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
 at ()

2024-08-14T19:12:10.258Z SwingSet: ls: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70001
2024-08-14T19:12:10.258Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70002
2024-08-14T19:12:10.259Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.261Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70003
2024-08-14T19:12:10.261Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.268Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70004
2024-08-14T19:12:10.268Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.268Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70005
2024-08-14T19:12:10.268Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.310Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70006
2024-08-14T19:12:10.310Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.314Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70007
2024-08-14T19:12:10.315Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.315Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70008
2024-08-14T19:12:10.315Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.315Z SwingSet: vat: v32: wallet agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v IMMEDIATE OFFER ERROR: (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.316Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70009
2024-08-14T19:12:10.316Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.326Z SwingSet: xsnap: v32: RemoteError(error:liveSlots:v38#70027)#1 ERROR_NOTE: Sent as error:liveSlots:v32#70010
2024-08-14T19:12:10.326Z SwingSet: ls: v32: Logging sent error stack (RemoteError(error:liveSlots:v38#70027)#1)
2024-08-14T19:12:10.357Z SwingSet: xsnap: v10: UnhandledPromiseRejectionWarning: (RemoteError(error:liveSlots:v32#70010)#2)
2024-08-14T19:12:10.357Z SwingSet: xsnap: v10: RemoteError(error:liveSlots:v32#70010)#2: 0uist is smaller than 10uist: insufficient funds
2024-08-14T19:12:10.358Z SwingSet: xsnap: v10: Error: 0uist is smaller than 10uist: insufficient funds
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
 at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
 at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
 at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1219)
 at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1243)
 at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1512)
 at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
 at ()

7:12PM INF minted coins from module account amount=10uist from=vbank module=x/bank
2024-08-14T19:12:10.444Z SwingSet: ls: v9: Logging sent error stack (Error#1)
2024-08-14T19:12:10.444Z SwingSet: ls: v9: Error#1: Object [Alleged: IST payment] {} was not a live payment for brand Object [Alleged: IST brand] {} . It could be a used-up payment, a payment for another brand, or it might not be a payment at all.
2024-08-14T19:12:10.444Z SwingSet: ls: v9: Error: (an object) was not a live payment for brand "[Alleged: IST brand]". It could be a used-up payment, a payment for another brand, or it might not be a payment at all.
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:481)
 at assertLivePayment (.../ertp/src/paymentLedger.js:236)
 at depositInternal (.../ertp/src/paymentLedger.js:258)
 at deposit (.../ertp/src/purse.js:106)
 at apply ()
 at In "deposit" method of (IST Purse purse) (/bundled-source/.../node_modules/@endo/exo/src/exo-tools.js:171)
 at apply ()
 at localApplyMethod (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:126)
 at apply ()
 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:156)
 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:505)
 at ()

2024-08-14T19:12:10.444Z SwingSet: ls: v9: Error#1 ERROR_NOTE: Sent as error:liveSlots:v9#70001
2024-08-14T19:12:10.508Z SwingSet: ls: v14: Logging sent error stack (RemoteError(error:liveSlots:v9#70001)#1)
2024-08-14T19:12:10.509Z SwingSet: ls: v14: RemoteError(error:liveSlots:v9#70001)#1: (an object) was not a live payment for brand "[Alleged: IST brand]". It could be a used-up payment, a payment for another brand, or it might not be a payment at all.
2024-08-14T19:12:10.509Z SwingSet: ls: v14: Error: (an object) was not a live payment for brand "[Alleged: IST brand]". It could be a used-up payment, a payment for another brand, or it might not be a payment at all.
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:60)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:351)
 at decodeErrorCommon (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:309)
 at decodeFromSmallcaps (/bundled-source/.../node_modules/@endo/marshal/src/encodeToSmallcaps.js:437)
 at fromCapData (/bundled-source/.../node_modules/@endo/marshal/src/marshal.js:398)
 at notifyOnePromise (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1219)
 at notify (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1243)
 at dispatchToUserspace (/bundled-source/.../packages/swingset-liveslots/src/liveslots.js:1512)
 at runWithoutMetering (/bundled-source/.../packages/swingset-xsnap-supervisor/lib/supervisor-subprocess-xsnap.js:59)
 at ()

2024-08-14T19:12:10.509Z SwingSet: ls: v14: RemoteError(error:liveSlots:v9#70001)#1 ERROR_NOTE: Sent as error:liveSlots:v14#70001
2024-08-14T19:12:10.523Z SwingSet: vat: v32: wallet agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v offerStatus { error: 'Error: 0uist is smaller than 10uist: insufficient funds', id: 'cosmoshub-makeSendInvitation-1723662724337', invitationSpec: { callPipe: [ [ 'makeSendInvitation' ] ], instancePath: [ 'sendAnywhere' ], source: 'agoricContract' }, offerArgs: { chainName: 'cosmoshub', destAddr: 'cosmos1dehfgvn7yhy0ach0g3uxff67zrquupe2l2scz7' }, proposal: { give: { Send: { brand: Object [Alleged: IST brand] {}, value: 10n } } }, numWantsSatisfied: 1 }
7:12PM INF executed block height=717 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:10.557Z block-manager: block 717 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B36352031393120313037203233312032323420323235203135332031353820363320323130203238203131372031393920342031373620333620313435203737203133392031353520313637203232312031343820313634203137302032333320323431203935203536203720313335203234325D3A3243447D
7:12PM INF committed state app_hash=41BF6BE7E0E1999E3FD21C75C704B024914D8B9BA7DD94A4AAE9F15F380787F2 height=717 module=state num_txs=0
7:12PM INF Timed out dur=-235.515834 height=718 module=consensus round=0 step=1
7:12PM INF indexed block events height=717 module=txindex
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"940A979B561CA7B4D270E9662BEE5AE9A02E1FDD1EB189D313A41B6E1C0E180F","parts":{"hash":"600086471B9C0EE38B9FAC25379077E90799C917E0EBE4E383A93B409646D939","total":1}},"height":718,"pol_round":-1,"round":0,"signature":"X7n+himSa2qkKo8UlZAkq8TRhKCRL7kh3qEEK3vO/IxDJPEYDBa28XIOEKmfgGxi1cXERqml7aKdVLp+QNgzAQ==","timestamp":"2024-08-14T19:12:10.60554896Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=940A979B561CA7B4D270E9662BEE5AE9A02E1FDD1EB189D313A41B6E1C0E180F height=718 module=consensus
7:12PM INF finalizing commit of block hash={} height=718 module=consensus num_txs=0 root=41BF6BE7E0E1999E3FD21C75C704B024914D8B9BA7DD94A4AAE9F15F380787F2
7:12PM INF minted coins from module account amount=22659894ubld from=mint module=x/bank
2024-08-14T19:12:10.760Z block-manager: block 718 begin
7:12PM INF minted coins from module account amount= from=vbank module=x/bank
7:12PM INF Timed out dur=400 height=718 module=consensus round=0 step=3
2024-08-14T19:12:11.010Z SwingSet: vat: v32: wallet agoric18t5jh8zkjm272346adn54xmwt3d5mk7px8ps8v offerStatus { error: 'Error: 0uist is smaller than 10uist: insufficient funds', id: 'cosmoshub-makeSendInvitation-1723662724337', invitationSpec: { callPipe: [ [ 'makeSendInvitation' ] ], instancePath: [ 'sendAnywhere' ], source: 'agoricContract' }, numWantsSatisfied: 1, offerArgs: { chainName: 'cosmoshub', destAddr: 'cosmos1dehfgvn7yhy0ach0g3uxff67zrquupe2l2scz7' }, proposal: { give: { Send: { brand: Object [Alleged: IST brand] {}, value: 10n } } }, payouts: { Send: { brand: Object [Alleged: IST brand] {}, value: 0n } } }
second run (successful)
2024-08-14T19:12:29.370Z SwingSet: vat: v26: ----- ProvPool.4  16 PLEASE_PROVISION { address: 'agoric14uu4gwzhh225xv34uhqjw68syf5g0uxy00qq6y', autoProvision: false, blockHeight: 741, blockTime: 1723662748, nickname: 'my-wallet', powerFlags: [ 'SMART_WALLET' ], submitter: 'agoric14uu4gwzhh225xv34uhqjw68syf5g0uxy00qq6y', type: 'PLEASE_PROVISION' }
7:12PM INF burned tokens from module account amount=250000uist from=vbank module=x/bank
2024-08-14T19:12:29.422Z SwingSet: vat: v26: ----- ProvPool.4  17 provisionPool balance update { brand: Object [Alleged: IST brand] {}, value: 999_500_000n }
7:12PM INF minted coins from module account amount=250000uist from=vbank module=x/bank
2024-08-14T19:12:29.716Z SwingSet: vat: v26: ----- ProvPool.4  18 provisionPool sent { brand: Object [Alleged: IST brand] {}, value: 250_000n }
7:12PM INF Timed out dur=400 height=741 module=consensus round=0 step=3
2024-08-14T19:12:29.933Z SwingSet: vat: v26: ----- ProvPool.4  19 provisioned agoric14uu4gwzhh225xv34uhqjw68syf5g0uxy00qq6y
7:12PM INF executed block height=741 module=state num_invalid_txs=0 num_valid_txs=1
2024-08-14T19:12:30.050Z block-manager: block 741 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B31373020342032323420313737203133322037392031303320313439203332203720313434203233382032313020313632203132392031333920343020323330203232362036352031343020313036203730203133322031303820313831203134322032312039372035312032342038335D3A3245357D
7:12PM INF committed state app_hash=AA04E0B1844F6795200790EED2A2818B28E6E2418C6A46846CB58E1561331853 height=741 module=state num_txs=1
7:12PM INF indexed block events height=741 module=txindex
7:12PM INF Timed out dur=85.971708 height=742 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"2D1C832BBDAF62989698A373DCD311771DEFDD7190595030DA60C96C747B9B80","parts":{"hash":"EAA45CA01C2FC375D0BF054F6FCC3A573A2683697FF0B2207B70B2197D560CE5","total":1}},"height":742,"pol_round":-1,"round":0,"signature":"8VFVzI3+zhq1cZDi2Xy/vy72jBz2bqIkZAHO0vf23Y+46qYluNLjonmrfA/GZi/CJv+1RdB8ACSRQX7fl9XmAg==","timestamp":"2024-08-14T19:12:30.154182178Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=2D1C832BBDAF62989698A373DCD311771DEFDD7190595030DA60C96C747B9B80 height=742 module=consensus
7:12PM INF finalizing commit of block hash={} height=742 module=consensus num_txs=0 root=AA04E0B1844F6795200790EED2A2818B28E6E2418C6A46846CB58E1561331853
7:12PM INF minted coins from module account amount=22659992ubld from=mint module=x/bank
2024-08-14T19:12:30.310Z block-manager: block 742 begin
7:12PM INF executed block height=742 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:30.315Z block-manager: block 742 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B3020393120313433203331203937203131362034302031363120323420313831203230392031373920313236203133362036342031383520313020333120313831203931203131302031303120323039203231362032343920313931203320323230203131342031323120373920365D3A3245367D
7:12PM INF committed state app_hash=005B8F1F617428A118B5D1B37E8840B90A1FB55B6E65D1D8F9BF03DC72794F06 height=742 module=state num_txs=0
7:12PM INF indexed block events height=742 module=txindex
7:12PM INF Timed out dur=639.708541 height=743 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"4501D6E985F04403D8577DA361A64F31519DF8F49F5F871BDDB84A1E151DC610","parts":{"hash":"B016F5DAC094B5190827B27DE62E67C6D00357FF1B0ED56F3D2A56BE0C1AADB5","total":1}},"height":743,"pol_round":-1,"round":0,"signature":"8O6Akpm/4soN6qXHUr3h7MCVsXCGTolSPsh4xbTjRXKm7cGCBTIeqdBs1y7GOAqvAx78XL2EJPR393jZ6lJtAw==","timestamp":"2024-08-14T19:12:30.963936136Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=4501D6E985F04403D8577DA361A64F31519DF8F49F5F871BDDB84A1E151DC610 height=743 module=consensus
7:12PM INF finalizing commit of block hash={} height=743 module=consensus num_txs=1 root=005B8F1F617428A118B5D1B37E8840B90A1FB55B6E65D1D8F9BF03DC72794F06
7:12PM INF minted coins from module account amount=22659996ubld from=mint module=x/bank
2024-08-14T19:12:30.974Z block-manager: block 743 begin
2024-08-14T19:12:30.989Z SwingSet: vat: v32: walletFactory.fromBridge: { blockHeight: 743, blockTime: 1723662750, owner: 'agoric14uu4gwzhh225xv34uhqjw68syf5g0uxy00qq6y', spendAction: '{"body":"#{\\"method\\":\\"executeOffer\\",\\"offer\\":{\\"id\\":\\"osmosis-makeSendInvitation-1723662750113\\",\\"invitationSpec\\":{\\"callPipe\\":[[\\"makeSendInvitation\\"]],\\"instancePath\\":[\\"sendAnywhere\\"],\\"source\\":\\"agoricContract\\"},\\"offerArgs\\":{\\"chainName\\":\\"osmosis\\",\\"destAddr\\":\\"osmo127jmxycu64er9tketfpte2ryskapzuyf5wawrj\\"},\\"proposal\\":{\\"give\\":{\\"Send\\":{\\"brand\\":\\"$0.Alleged: IST brand#board0257\\",\\"value\\":\\"+10\\"}}}}}","slots":["board0257"]}', type: 'WALLET_SPEND_ACTION' }
2024-08-14T19:12:30.991Z SwingSet: vat: v32: walletFactory: { wallet: Object [Alleged: SmartWallet self] {}, actionCapData: { body: '#{"method":"executeOffer","offer":{"id":"osmosis-makeSendInvitation-1723662750113","invitationSpec":{"callPipe":[["makeSendInvitation"]],"instancePath":["sendAnywhere"],"source":"agoricContract"},"offerArgs":{"chainName":"osmosis","destAddr":"osmo127jmxycu64er9tketfpte2ryskapzuyf5wawrj"},"proposal":{"give":{"Send":{"brand":"$0.Alleged: IST brand#board0257","value":"+10"}}}}}', slots: [ 'board0257' ] } }
2024-08-14T19:12:31.007Z SwingSet: vat: v32: wallet agoric14uu4gwzhh225xv34uhqjw68syf5g0uxy00qq6y starting executeOffer osmosis-makeSendInvitation-1723662750113
7:12PM INF burned tokens from module account amount=10uist from=vbank module=x/bank
7:12PM INF Timed out dur=400 height=743 module=consensus round=0 step=3
2024-08-14T19:12:31.429Z SwingSet: vat: v38: ----- Orchestrator.4  3 making an Orchestrator
7:12PM INF executed block height=743 module=state num_invalid_txs=0 num_valid_txs=1
2024-08-14T19:12:32.012Z block-manager: block 743 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B323237203338203332203233392037352031302032323820323433203234342037372038312032323720313232203231332032313120313134203231342031383820383620313036203132372032323120323039203538203136352032333820323234203230382031393220313437203131302035385D3A3245377D
7:12PM INF committed state app_hash=E32620EF4B0AE4F3F44D51E37AD5D372D6BC566A7FDDD13AA5EEE0D0C0936E3A height=743 module=state num_txs=1
7:12PM INF Timed out dur=-273.946876 height=744 module=consensus round=0 step=1
7:12PM INF indexed block events height=743 module=txindex
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"B6C91B87AF349450427400EB3F5962F1148801A6AEA0F727C88E333989E58B8E","parts":{"hash":"8B16022B4FD09A3F041F89146C7D67FB63298B43BC9F0E01786805F4E33E7797","total":1}},"height":744,"pol_round":-1,"round":0,"signature":"b8i/jyFL8ltLD0XRARRoMErw3EOyxNxMuzg4GLezehIU0F7fs/yC/eX/bIsXvF3cYXeM+jPTd7wR1gfpSp+wAg==","timestamp":"2024-08-14T19:12:32.04744622Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=B6C91B87AF349450427400EB3F5962F1148801A6AEA0F727C88E333989E58B8E height=744 module=consensus
7:12PM INF finalizing commit of block hash={} height=744 module=consensus num_txs=0 root=E32620EF4B0AE4F3F44D51E37AD5D372D6BC566A7FDDD13AA5EEE0D0C0936E3A
7:12PM INF minted coins from module account amount=22660000ubld from=mint module=x/bank
2024-08-14T19:12:32.127Z block-manager: block 744 begin
2024-08-14T19:12:32.132Z SwingSet: vat: v32: wallet agoric14uu4gwzhh225xv34uhqjw68syf5g0uxy00qq6y osmosis-makeSendInvitation-1723662750113 seated
7:12PM INF Timed out dur=400 height=744 module=consensus round=0 step=3
2024-08-14T19:12:32.729Z SwingSet: vat: v38: ----- RemoteChainFacade.5  3 making a RemoteChainFacade
7:12PM INF executed block height=744 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:33.042Z block-manager: block 744 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B383620313737203732203136372031303520323020323134203833203134332035342032323020372032303720353720362031303320393320313935203135372031383620313333203635203230362031353520313437203734203234342035203131372031363020323231203230335D3A3245387D
7:12PM INF committed state app_hash=56B148A76914D6538F36DC07CF3906675DC39DBA8541CE9B934AF40575A0DDCB height=744 module=state num_txs=0
7:12PM INF Timed out dur=-196.705792 height=745 module=consensus round=0 step=1
7:12PM INF indexed block events height=744 module=txindex
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"9B7774FA553B37D19A4008AB7D24E581DD16850D927CC947E046B09355B3BF4D","parts":{"hash":"194A8BD3009847B297D2172ED50D3F9D936C88EE34AC199867189BC172E93F4E","total":1}},"height":745,"pol_round":-1,"round":0,"signature":"BYQEIewA3oUfVcUvRxTFK28ZlCJjntInDYm3ex4pfgJ0EEaAx2sHTcf5lfvTCg9wHg6eo/OPbS2CHYhlr1etDQ==","timestamp":"2024-08-14T19:12:33.058251262Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=9B7774FA553B37D19A4008AB7D24E581DD16850D927CC947E046B09355B3BF4D height=745 module=consensus
7:12PM INF finalizing commit of block hash={} height=745 module=consensus num_txs=0 root=56B148A76914D6538F36DC07CF3906675DC39DBA8541CE9B934AF40575A0DDCB
7:12PM INF minted coins from module account amount=22660004ubld from=mint module=x/bank
2024-08-14T19:12:33.158Z block-manager: block 745 begin
2024-08-14T19:12:33.447Z SwingSet: vat: v38: ----- LOA.3  3 Transferring funds from LCA over IBC
7:12PM INF Timed out dur=400 height=745 module=consensus round=0 step=3
7:12PM INF executed block height=745 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:34.409Z block-manager: block 745 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B3838203235302032343120313734203232392031353120352031382031373920313135203336203234332031393720313034203232372033352031393820313031203232352032303420313231203532203130302031302032303320313620313136203132382035322032353320313635203130305D3A3245397D
7:12PM INF committed state app_hash=58FAF1AEE5970512B37324F3C568E323C665E1CC7934640ACB10748034FDA564 height=745 module=state num_txs=0
7:12PM INF Timed out dur=-561.536251 height=746 module=consensus round=0 step=1
7:12PM INF indexed block events height=745 module=txindex
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"8F24051BBE78F46C9F658C996211E68F87A80774216E21D44871CB97F20CC928","parts":{"hash":"542D92172687298B371187D9CA546F21D5A65099F44181D6EFB9ACA4A16150EC","total":1}},"height":746,"pol_round":-1,"round":0,"signature":"L4pkDszelBx+C2f/bPjBS6e7ePFAVFEUDKAWQZszh/sY7w6VElMZbf/NSh9GHIbPglOzphAnsND4vtbM28sOBg==","timestamp":"2024-08-14T19:12:34.427748388Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=8F24051BBE78F46C9F658C996211E68F87A80774216E21D44871CB97F20CC928 height=746 module=consensus
7:12PM INF finalizing commit of block hash={} height=746 module=consensus num_txs=0 root=58FAF1AEE5970512B37324F3C568E323C665E1CC7934640ACB10748034FDA564
7:12PM INF minted coins from module account amount=22660008ubld from=mint module=x/bank
2024-08-14T19:12:34.555Z block-manager: block 746 begin
7:12PM INF packet sent dst_channel=channel-1 dst_port=transfer module=x/ibc/channel sequence=1 src_channel=channel-1 src_port=transfer
7:12PM INF IBC fungible token transfer amount=10 module=x/ibc-transfer receiver=osmo127jmxycu64er9tketfpte2ryskapzuyf5wawrj sender=agoric13qwq8swzdtttye07n020tavr5j3r2s33as3khhsvt5ugkerkyr6qc825qk token=uist
7:12PM INF Timed out dur=400 height=746 module=consensus round=0 step=3
7:12PM INF minted coins from module account amount=10uist from=vbank module=x/bank
7:12PM INF executed block height=746 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:35.761Z block-manager: block 746 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B323230203230332039382031363920313630203134322031343620363120313036203231352033372039312032352032302032302031383420313638203020323020313834203835203134332031303120313939203135352031343120323020353220373820323034203134312036365D3A3245417D
7:12PM INF committed state app_hash=DCCB62A9A08E923D6AD7255B191414B8A80014B8558F65C79B8D14344ECC8D42 height=746 module=state num_txs=0
7:12PM INF Timed out dur=-567.393917 height=747 module=consensus round=0 step=1
7:12PM INF indexed block events height=746 module=txindex
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"3B301535046BF0E255209DDBEB35C5EE011248986B9D04366D03C1AB783E0B40","parts":{"hash":"5F63844900774FE78A4FE11497BC14F6F447AD7F55448A3AE1F398CD22C47C92","total":1}},"height":747,"pol_round":-1,"round":0,"signature":"FoGydyjQPRVSf8tonOtEaC3YQHTuCD8h/To9d+ClM6b1Ut3cG1JwPAqqOSgPwug1zWlkvszyoU1bnRu1ipcVBg==","timestamp":"2024-08-14T19:12:35.804376555Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=3B301535046BF0E255209DDBEB35C5EE011248986B9D04366D03C1AB783E0B40 height=747 module=consensus
7:12PM INF finalizing commit of block hash={} height=747 module=consensus num_txs=0 root=DCCB62A9A08E923D6AD7255B191414B8A80014B8558F65C79B8D14344ECC8D42
7:12PM INF minted coins from module account amount=22660012ubld from=mint module=x/bank
2024-08-14T19:12:35.845Z block-manager: block 747 begin
7:12PM INF executed block height=747 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:35.848Z block-manager: block 747 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B3839203133392032313220393920313332203233203135332031393020343220343120313734203020313931203232203234372032313120353720313220313533203230392031322032313820353320313839203130392032203533203135372033322031323120313239203232385D3A3245427D
7:12PM INF committed state app_hash=598BD463841799BE2A29AE00BF16F7D3390C99D10CDA35BD6D02359D207981E4 height=747 module=state num_txs=0
7:12PM INF indexed block events height=747 module=txindex
7:12PM INF Timed out dur=762.793083 height=748 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"0876A8C26CE22F31F4322493436025D58D540CE155968B93DBF1945265AEF473","parts":{"hash":"7A7E2FEBFA14B358274103E755F0B62651A8B7D1239AE1A7FDB79F746B02D7FF","total":1}},"height":748,"pol_round":-1,"round":0,"signature":"VrWEt290TohNDdaqaMAuMubrf4U0g9TAhcm8o/iyPLR0zGi7T4bbS70R0DIj63UBwa8ldK2EdRYYu5GPdpA5CA==","timestamp":"2024-08-14T19:12:36.619755625Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=0876A8C26CE22F31F4322493436025D58D540CE155968B93DBF1945265AEF473 height=748 module=consensus
7:12PM INF finalizing commit of block hash={} height=748 module=consensus num_txs=0 root=598BD463841799BE2A29AE00BF16F7D3390C99D10CDA35BD6D02359D207981E4
7:12PM INF minted coins from module account amount=22660016ubld from=mint module=x/bank
2024-08-14T19:12:36.631Z block-manager: block 748 begin
7:12PM INF executed block height=748 module=state num_invalid_txs=0 num_valid_txs=0
2024-08-14T19:12:36.635Z block-manager: block 748 commit
7:12PM INF commit synced commit=436F6D6D697449447B5B3131392031353820333820313332203137332031363820363020363520323520323232203134352032353520313439203637203131392031393020343620323235203630203020333420323420313235203234332031333120313132203839203138362032382031313420383120385D3A3245437D
7:12PM INF committed state app_hash=779E2684ADA83C4119DE91FF954377BE2EE13C0022187DF3837059BA1C725108 height=748 module=state num_txs=0
7:12PM INF indexed block events height=748 module=txindex
7:12PM INF client state updated client-id=07-tendermint-1 height=0-1098 module=x/ibc/client
Dragonberry Active
7:12PM INF packet acknowledged dst_channel=channel-1 dst_port=transfer module=x/ibc/channel sequence=1 src_channel=channel-1 src_port=transfer
7:12PM INF client state updated client-id=07-tendermint-1 height=0-1098 module=x/ibc/client
Dragonberry Active
7:12PM INF packet acknowledged dst_channel=channel-1 dst_port=transfer module=x/ibc/channel sequence=1 src_channel=channel-1 src_port=transfer
2024/08/14 19:12:37 error while extracting context for action &{%!q(*vm.ActionHeader=&{VTRANSFER_IBC_EVENT 748 1723662755}) "acknowledgementPacket" "agoric13qwq8swzdtttye07n020tavr5j3r2s33as3khhsvt5ugkerkyr6qc825qk" {'\x01' "transfer" "channel-1" "transfer" "channel-1" "{\"amount\":\"10\",\"denom\":\"uist\",\"receiver\":\"osmo127jmxycu64er9tketfpte2ryskapzuyf5wawrj\",\"sender\":\"agoric13qwq8swzdtttye07n020tavr5j3r2s33as3khhsvt5ugkerkyr6qc825qk\"}" "0-0" '�'} "{\"result\":\"AQ==\"}" 27A26E15CB89B658BAD68B63973CCE65C1B27348}
7:12PM INF Timed out dur=783.690375 height=749 module=consensus round=0 step=1
7:12PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"1FFDA14D1CD5215CFFCDC1789D3E436C52ED119F488D01CB2FB7069ADE3CF3AA","parts":{"hash":"476B04AA27ADA7D4965EDB1A1BAB267B3F84EEBAC3F41D1167CF677800EC95B5","total":1}},"height":749,"pol_round":-1,"round":0,"signature":"kNVCsMCQ62kcRadXwgtEbNVFHphX0++CxusBv7RX4jw/zYsB6BaZl2PSO/YSc2T9awd+OjIYKLSZGwJsXK5NDA==","timestamp":"2024-08-14T19:12:37.431587125Z"} proposer=3F1738D7F374F8CFD2DFFCD596B5C3B57BBD9513
7:12PM INF received complete proposal block hash=1FFDA14D1CD5215CFFCDC1789D3E436C52ED119F488D01CB2FB7069ADE3CF3AA height=749 module=consensus
7:12PM INF finalizing commit of block hash={} height=749 module=consensus num_txs=1 root=779E2684ADA83C4119DE91FF954377BE2EE13C0022187DF3837059BA1C725108
7:12PM INF minted coins from module account amount=22660020ubld from=mint module=x/bank
2024-08-14T19:12:37.444Z block-manager: block 749 begin
7:12PM INF client state updated client-id=07-tendermint-1 height=0-1098 module=x/ibc/client
Dragonberry Active
7:12PM INF packet acknowledged dst_channel=channel-1 dst_port=transfer module=x/ibc/channel sequence=1 src_channel=channel-1 src_port=transfer
7:12PM INF Timed out dur=400 height=749 module=consensus round=0 step=3
2024-08-14T19:12:37.847Z SwingSet: vat: v32: wallet agoric14uu4gwzhh225xv34uhqjw68syf5g0uxy00qq6y offerStatus { id: 'osmosis-makeSendInvitation-1723662750113', invitationSpec: { callPipe: [ [ 'makeSendInvitation' ] ], instancePath: [ 'sendAnywhere' ], source: 'agoricContract' }, offerArgs: { chainName: 'osmosis', destAddr: 'osmo127jmxycu64er9tketfpte2ryskapzuyf5wawrj' }, proposal: { give: { Send: { brand: Object [Alleged: IST brand] {}, value: 10n } } }, result: undefined }

Comment on lines 124 to 132
const makeRandomValue = (min: number, max: number) =>
BigInt(Math.floor(Math.random() * (max - min + 1)) + min);
// send 3 offers from each account
const scenarios = [
makeRandomValue(1, 33),
makeRandomValue(34, 66),
makeRandomValue(67, 100),
];
console.log('Scenarios', scenarios);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was to force different amounts to surface something like:

Error: 98uist is smaller than 100uist: insufficient funds'

as mentioned #9901 (comment)

It may no longer make sense to keep around if it reads confusingly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't think much of it but someone might. Consider a comment about how the change in values prevents mistaking one result for another

Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Behavior looks right to me. Please consider the code legibility suggestions.

Comment on lines 16 to 20
const chains = ['osmosis', 'cosmoshub'];
const scenarios = Array(2)
.fill(undefined)
.flatMap((_, i) => chains.map(c => [c, i])) as [string, number][];
const accounts = scenarios.map(args => args.join(''));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it took me some minutes to make sense of this (the logic and where the values are used). Consider:

Suggested change
const chains = ['osmosis', 'cosmoshub'];
const scenarios = Array(2)
.fill(undefined)
.flatMap((_, i) => chains.map(c => [c, i])) as [string, number][];
const accounts = scenarios.map(args => args.join(''));
const accounts = ['osmosis', 'cosmoshub'].map((name, i) => `${name}${i}`);

And rather than data-driving with scenarios, just explicitly call each one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're testing with 4 accounts, so I explicitly wrote them out. (the above would just return 2). Acknowledge the readability feedback and implemented your suggestions 🙏

Comment on lines 140 to 142
for (const [chainName, accountIdx] of scenarios) {
test.serial(sendAnywhereScenario, chainName, accountIdx);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is more flexible but since it's a test sometimes it's better to be explicit:

Suggested change
for (const [chainName, accountIdx] of scenarios) {
test.serial(sendAnywhereScenario, chainName, accountIdx);
}
test.serial(sendAnywhereScenario, 'osmosis', 1);
test.serial(sendAnywhereScenario, 'cosmoshub', 2);

Though I'd also suggest dropping the index number and having a lookup for the test account for each named chain.

const makeRandomValue = (min: number, max: number) =>
BigInt(Math.floor(Math.random() * (max - min + 1)) + min);
// send 3 offers from each account
const scenarios = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confusing that this whole function executes one scenario, then within it there are three other "scenarios"

maybe "offerAmounts"?

proposal: { give: { Send: amount } },
});

// TODO confirm offerResult = undefined
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this PR ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@0xpatrickdev 0xpatrickdev added the automerge:rebase Automatically rebase updates, then merge label Aug 15, 2024
until it works on top of new  (upgrade-16)
@mergify mergify bot merged commit e6c4837 into master Aug 16, 2024
80 checks passed
@mergify mergify bot deleted the pc/send-anywhere-e2e branch August 16, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge force:integration Force integration tests to run on PR
Projects
None yet
2 participants