Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Increase timeout for Cosmos bot spec
Browse files Browse the repository at this point in the history
  • Loading branch information
hakim-adamik committed Feb 17, 2022
1 parent ad62000 commit a84f238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/families/cosmos/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const cosmos: AppSpec<Transaction> = {
firmware: "2.0.0",
appName: "Cosmos",
},
testTimeout: 60 * 1000,
testTimeout: 2 * 60 * 1000,
transactionCheck: ({ maxSpendable }) => {
invariant(maxSpendable.gt(COSMOS_MIN_SAFE), "balance is too low");
},
Expand Down

1 comment on commit a84f238

@github-actions
Copy link

Choose a reason for hiding this comment

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

❌ 3 txs ($34.65) for Bot 'Cosmos JS'

⚠️ 3 mutations uncovered

3 mutation errors
all accounts sync in 1855ms
▬ Cosmos 2.18.0 on nanoS 2.0.0
→ FROM Cosmos 2: 0.4373 ATOM (10ops) (cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv on 44'/118'/1'/0/0) #1 js:2:cosmos:cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv: (! sum of ops 0.448574 ATOM) 0.196953 ATOM spendable. 0.240385 ATOM delegated. 
DELEGATIONS
  to cosmosvaloper1gjtvly9lel6zskvwtvlg5vhwpu9c9waw7sxzwx 0.00761 ATOM 
  to cosmosvaloper1rpgtz9pskr5geavkjz02caqmeep7cwwpv73axj 0.012531 ATOM 
  to cosmosvaloper1rcp29q3hpd246n6qak7jluqep4v006cdsc2kkl 0.087313 ATOM 
  to cosmosvaloper1wlagucxdxvsmvj6330864x8q3vxz4x02rmvmsu 0.061104 ATOM 
  to cosmosvaloper1x8rr4hcf54nz6hfckyy2n05sxss54h8wz9puzg 0.017993 ATOM 
  to cosmosvaloper1sxx9mszve0gaedz5ld7qdkjkfv8z992ax69k08 0.004641 ATOM 
  to cosmosvaloper16qme5yxucnaj6snx35nmwze0wyxr8wfgqxsqfw 0.024038 ATOM 
  to cosmosvaloper1cgh5ksjwy2sd407lyre4l3uj2fdrqhpkzp06e6 0.025155 ATOM 
UNDELEGATIONS
  from cosmosvaloper146kwpzhmleafmhtaxulfptyhnvwxzlvm87hwnm 0.01132 ATOM

max spendable ~0.1907
★ using mutation 'undelegate'
✔️ transaction 
UNDELEGATE 
TO 
  0.003122 -> cosmosvaloper1cgh5ksjwy2sd407lyre4l3uj2fdrqhpkzp06e6
with fees=0.011546
  memo=LedgerLiveBot
STATUS (1011ms)
  amount: 0 ATOM
  estimated fees: 0.011546 ATOM
  total spent: 0.011546 ATOM
✔️ has been signed! (2482ms) 
✔️ broadcasted! (188ms) optimistic operation: 
  -0 ATOM            OUT        27BC15141B818D26786C8ED65FF39A7805597673A8B2B9225756144D44B31B02 2022-02-17T13:54
⚠️ Error: could not find optimisticOperation js:2:cosmos:cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv:-27BC15141B818D26786C8ED65FF39A7805597673A8B2B9225756144D44B31B02-OUT

Error: could not find optimisticOperation js:2:cosmos:cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv:-27BC15141B818D26786C8ED65FF39A7805597673A8B2B9225756144D44B31B02-OUT
all accounts sync in 1827ms
▬ Cosmos 2.18.0 on nanoS 2.0.0
→ FROM Cosmos 3: 0.3262 ATOM (9ops) (cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0 on 44'/118'/2'/0/0) #2 js:2:cosmos:cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0: (! sum of ops 0.326271 ATOM) 0.112462 ATOM spendable. 0.213808 ATOM delegated. 
DELEGATIONS
  to cosmosvaloper1ey69r37gfxvxg62sh4r0ktpuc46pzjrm873ae8 0.007634 ATOM 
  to cosmosvaloper157v7tczs40axfgejp2m43kwuzqe0wsy0rv8puv 0.000232 ATOM 
  to cosmosvaloper1hjadhj9nqzpye2vkmkz4thahhd0z8dh3udhq74 0.002393 ATOM 
  to cosmosvaloper1000ya26q2cmh399q4c5aaacd9lmmdqp90kw2jn 0.006595 ATOM 
  to cosmosvaloper1n3mhyp9fvcmuu8l0q8qvjy07x0rql8q46fe2xk 0.002433 ATOM 
  to cosmosvaloper1hjct6q7npsspsg3dgvzk3sdf89spmlpfdn6m9d 0.002407 ATOM 
  to cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn 0.003646 ATOM 
  to cosmosvaloper1nm0rrq86ucezaf8uj35pq9fpwr5r82clzyvtd8 0.002212 ATOM 
  to cosmosvaloper14kn0kk33szpwus9nh8n87fjel8djx0y070ymmj 0.014991 ATOM 
  to cosmosvaloper1d0aup392g3enru7eash83sedqclaxvp7fzh6gk 0.171265 ATOM 

max spendable ~0.10621
★ using mutation 'redelegate'
✔️ transaction 
REDELEGATE 
TO 
  0.002393 -> cosmosvaloper1nm0rrq86ucezaf8uj35pq9fpwr5r82clzyvtd8
  source validator=cosmosvaloper1hjadhj9nqzpye2vkmkz4thahhd0z8dh3udhq74
with fees=0.00625
  memo=LedgerLiveBot
STATUS (549ms)
  amount: 0 ATOM
  estimated fees: 0.00625 ATOM
  total spent: 0.00625 ATOM
✔️ has been signed! (2263ms) {"operation":{"id":"js:2:cosmos:cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0:--OUT","hash":"","type":"OUT","senders":["cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0"],"recipients":[""],"accountId":"js:2:cosmos:cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0:","blockHash":null,"blockHeight":null,"extra":{},"date":"2022-02-17T13:57:06.878Z","value":"0","fee":"6250"},"signature":"0ab4010aa2010a2a2f636f736d6f732e7374616b696e672e763162657461312e4d7367426567696e526564656c656761746512740a2d636f736d6f7331757479356e663238656d656168756864673972756e6d7a756c757139756a3575656b346a6b301234636f736d6f7376616c6f70657231686a6164686a396e717a70796532766b6d6b7a34746861686864307a38646833756468713734220d0a057561746f6d120432333933120d4c65646765724c697665426f7412670a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103c68ba6b137ff35a958669075452f350250f2b82123e865729fbdc1240285b82012040a02087f180412130a0d0a057561746f6d1204363235301090a10f1a401c2fb076feaeb47bc5e0215ac74d43b95af67ad2240c323f0e12481a7bc569700c3db9b345ce5e3ea4184d90ed3d673a605f253b17cd8c07b534749b0946df9a","expirationDate":null}
⚠️ Error: invalid broadcast return (code: 2, message: 'empty validator address')

Error: invalid broadcast return (code: 2, message: 'empty validator address')
all accounts sync in 2104ms
▬ Cosmos 2.18.0 on nanoS 2.0.0
→ FROM Cosmos 4: 0.27333 ATOM (6ops) (cosmos1ccemcd8p3r293e5rcv0awaj9hfnn6wmxkz520n on 44'/118'/3'/0/0) #3 js:2:cosmos:cosmos1ccemcd8p3r293e5rcv0awaj9hfnn6wmxkz520n: (! sum of ops 0.273333 ATOM) 0.246758 ATOM spendable. 0.026574 ATOM delegated. 
DELEGATIONS
  to cosmosvaloper1cgh5ksjwy2sd407lyre4l3uj2fdrqhpkzp06e6 0.002015 ATOM 
  to cosmosvaloper10f9wkd6vdspac05djyfwfx0uxcqxapnqhnkcg8 0.001704 ATOM 
  to cosmosvaloper18extdhzzl5c8tr6453e5hzaj3exrdlea90fj3y 0.01964 ATOM 
  to cosmosvaloper1rpgtz9pskr5geavkjz02caqmeep7cwwpv73axj 0.003215 ATOM 

max spendable ~0.2405
★ using mutation 'send max'
→ TO Cosmos 6: 0.04732 ATOM (1ops) (cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97 on 44'/118'/5'/0/0) #5 js:2:cosmos:cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97:
✔️ transaction 
SEND MAX
TO cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97

with fees=0.00625
STATUS (1614ms)
  amount: 0.240508 ATOM
  estimated fees: 0.00625 ATOM
  total spent: 0.246758 ATOM
  warnings: amount: RecommendUndelegation
✔️ has been signed! (2819ms) 
✔️ broadcasted! (544ms) optimistic operation: 
  -0.051521 ATOM     OUT        F00B3ADA0496EE45D14A33D112A8A947F9C81C9D872D4AAA8D5EC6DD8A53C3BD 2022-02-17T13:57
(final state reached in 120s)
⚠️ Error: expect(received).toBe(expected) // Object.is equality

Expected: "0"
Received: "188987"

Error: expect(received).toBe(expected) // Object.is equality

Expected: "0"
Received: "188987"
Details of the 3 mutations

Spec Cosmos (7)

Spec Cosmos found 7 Cosmos accounts (preload: 360ms). Will use Cosmos 2.18.0 on nanoS 2.0.0
(690ms) Cosmos 1: 0.04301 ATOM (11ops) (cosmos1zpvthe3pxvyje7vrcqv2m6qe2qgu0r8gkz64er on 44'/118'/0'/0/0) #0 js:2:cosmos:cosmos1zpvthe3pxvyje7vrcqv2m6qe2qgu0r8gkz64er:
(926ms) Cosmos 2: 0.4373 ATOM (10ops) (cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv on 44'/118'/1'/0/0) #1 js:2:cosmos:cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv:
(606ms) Cosmos 3: 0.3262 ATOM (9ops) (cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0 on 44'/118'/2'/0/0) #2 js:2:cosmos:cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0:
(486ms) Cosmos 4: 0.27333 ATOM (6ops) (cosmos1ccemcd8p3r293e5rcv0awaj9hfnn6wmxkz520n on 44'/118'/3'/0/0) #3 js:2:cosmos:cosmos1ccemcd8p3r293e5rcv0awaj9hfnn6wmxkz520n:
(405ms) Cosmos 5: 0.1038 ATOM (3ops) (cosmos1mvk3fwxgdfac4yjmgl9hdz0555q8gljydzvjtu on 44'/118'/4'/0/0) #4 js:2:cosmos:cosmos1mvk3fwxgdfac4yjmgl9hdz0555q8gljydzvjtu:
(796ms) Cosmos 6: 0.04732 ATOM (1ops) (cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97 on 44'/118'/5'/0/0) #5 js:2:cosmos:cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97:
(1250ms) Cosmos 7: 0 ATOM (0ops) (cosmos14k7faf4cvxlflta4hytxavx3p7vj6uw69lgf03 on 44'/118'/6'/0/0) #6 js:2:cosmos:cosmos14k7faf4cvxlflta4hytxavx3p7vj6uw69lgf03:
all accounts sync in 1855ms
▬ Cosmos 2.18.0 on nanoS 2.0.0
→ FROM Cosmos 2: 0.4373 ATOM (10ops) (cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv on 44'/118'/1'/0/0) #1 js:2:cosmos:cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv: (! sum of ops 0.448574 ATOM) 0.196953 ATOM spendable. 0.240385 ATOM delegated. 
DELEGATIONS
  to cosmosvaloper1gjtvly9lel6zskvwtvlg5vhwpu9c9waw7sxzwx 0.00761 ATOM 
  to cosmosvaloper1rpgtz9pskr5geavkjz02caqmeep7cwwpv73axj 0.012531 ATOM 
  to cosmosvaloper1rcp29q3hpd246n6qak7jluqep4v006cdsc2kkl 0.087313 ATOM 
  to cosmosvaloper1wlagucxdxvsmvj6330864x8q3vxz4x02rmvmsu 0.061104 ATOM 
  to cosmosvaloper1x8rr4hcf54nz6hfckyy2n05sxss54h8wz9puzg 0.017993 ATOM 
  to cosmosvaloper1sxx9mszve0gaedz5ld7qdkjkfv8z992ax69k08 0.004641 ATOM 
  to cosmosvaloper16qme5yxucnaj6snx35nmwze0wyxr8wfgqxsqfw 0.024038 ATOM 
  to cosmosvaloper1cgh5ksjwy2sd407lyre4l3uj2fdrqhpkzp06e6 0.025155 ATOM 
UNDELEGATIONS
  from cosmosvaloper146kwpzhmleafmhtaxulfptyhnvwxzlvm87hwnm 0.01132 ATOM

max spendable ~0.1907
★ using mutation 'undelegate'
✔️ transaction 
UNDELEGATE 
TO 
  0.003122 -> cosmosvaloper1cgh5ksjwy2sd407lyre4l3uj2fdrqhpkzp06e6
with fees=0.011546
  memo=LedgerLiveBot
STATUS (1011ms)
  amount: 0 ATOM
  estimated fees: 0.011546 ATOM
  total spent: 0.011546 ATOM
✔️ has been signed! (2482ms) 
✔️ broadcasted! (188ms) optimistic operation: 
  -0 ATOM            OUT        27BC15141B818D26786C8ED65FF39A7805597673A8B2B9225756144D44B31B02 2022-02-17T13:54
⚠️ Error: could not find optimisticOperation js:2:cosmos:cosmos1zd0e8j9g9wur8up7j5aqahz233r4jmvqhyffnv:-27BC15141B818D26786C8ED65FF39A7805597673A8B2B9225756144D44B31B02-OUT

all accounts sync in 1827ms
▬ Cosmos 2.18.0 on nanoS 2.0.0
→ FROM Cosmos 3: 0.3262 ATOM (9ops) (cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0 on 44'/118'/2'/0/0) #2 js:2:cosmos:cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0: (! sum of ops 0.326271 ATOM) 0.112462 ATOM spendable. 0.213808 ATOM delegated. 
DELEGATIONS
  to cosmosvaloper1ey69r37gfxvxg62sh4r0ktpuc46pzjrm873ae8 0.007634 ATOM 
  to cosmosvaloper157v7tczs40axfgejp2m43kwuzqe0wsy0rv8puv 0.000232 ATOM 
  to cosmosvaloper1hjadhj9nqzpye2vkmkz4thahhd0z8dh3udhq74 0.002393 ATOM 
  to cosmosvaloper1000ya26q2cmh399q4c5aaacd9lmmdqp90kw2jn 0.006595 ATOM 
  to cosmosvaloper1n3mhyp9fvcmuu8l0q8qvjy07x0rql8q46fe2xk 0.002433 ATOM 
  to cosmosvaloper1hjct6q7npsspsg3dgvzk3sdf89spmlpfdn6m9d 0.002407 ATOM 
  to cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn 0.003646 ATOM 
  to cosmosvaloper1nm0rrq86ucezaf8uj35pq9fpwr5r82clzyvtd8 0.002212 ATOM 
  to cosmosvaloper14kn0kk33szpwus9nh8n87fjel8djx0y070ymmj 0.014991 ATOM 
  to cosmosvaloper1d0aup392g3enru7eash83sedqclaxvp7fzh6gk 0.171265 ATOM 

max spendable ~0.10621
★ using mutation 'redelegate'
✔️ transaction 
REDELEGATE 
TO 
  0.002393 -> cosmosvaloper1nm0rrq86ucezaf8uj35pq9fpwr5r82clzyvtd8
  source validator=cosmosvaloper1hjadhj9nqzpye2vkmkz4thahhd0z8dh3udhq74
with fees=0.00625
  memo=LedgerLiveBot
STATUS (549ms)
  amount: 0 ATOM
  estimated fees: 0.00625 ATOM
  total spent: 0.00625 ATOM
✔️ has been signed! (2263ms) {"operation":{"id":"js:2:cosmos:cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0:--OUT","hash":"","type":"OUT","senders":["cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0"],"recipients":[""],"accountId":"js:2:cosmos:cosmos1uty5nf28emeahuhdg9runmzuluq9uj5uek4jk0:","blockHash":null,"blockHeight":null,"extra":{},"date":"2022-02-17T13:57:06.878Z","value":"0","fee":"6250"},"signature":"0ab4010aa2010a2a2f636f736d6f732e7374616b696e672e763162657461312e4d7367426567696e526564656c656761746512740a2d636f736d6f7331757479356e663238656d656168756864673972756e6d7a756c757139756a3575656b346a6b301234636f736d6f7376616c6f70657231686a6164686a396e717a70796532766b6d6b7a34746861686864307a38646833756468713734220d0a057561746f6d120432333933120d4c65646765724c697665426f7412670a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103c68ba6b137ff35a958669075452f350250f2b82123e865729fbdc1240285b82012040a02087f180412130a0d0a057561746f6d1204363235301090a10f1a401c2fb076feaeb47bc5e0215ac74d43b95af67ad2240c323f0e12481a7bc569700c3db9b345ce5e3ea4184d90ed3d673a605f253b17cd8c07b534749b0946df9a","expirationDate":null}
⚠️ Error: invalid broadcast return (code: 2, message: 'empty validator address')

all accounts sync in 2104ms
▬ Cosmos 2.18.0 on nanoS 2.0.0
→ FROM Cosmos 4: 0.27333 ATOM (6ops) (cosmos1ccemcd8p3r293e5rcv0awaj9hfnn6wmxkz520n on 44'/118'/3'/0/0) #3 js:2:cosmos:cosmos1ccemcd8p3r293e5rcv0awaj9hfnn6wmxkz520n: (! sum of ops 0.273333 ATOM) 0.246758 ATOM spendable. 0.026574 ATOM delegated. 
DELEGATIONS
  to cosmosvaloper1cgh5ksjwy2sd407lyre4l3uj2fdrqhpkzp06e6 0.002015 ATOM 
  to cosmosvaloper10f9wkd6vdspac05djyfwfx0uxcqxapnqhnkcg8 0.001704 ATOM 
  to cosmosvaloper18extdhzzl5c8tr6453e5hzaj3exrdlea90fj3y 0.01964 ATOM 
  to cosmosvaloper1rpgtz9pskr5geavkjz02caqmeep7cwwpv73axj 0.003215 ATOM 

max spendable ~0.2405
★ using mutation 'send max'
→ TO Cosmos 6: 0.04732 ATOM (1ops) (cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97 on 44'/118'/5'/0/0) #5 js:2:cosmos:cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97:
✔️ transaction 
SEND MAX
TO cosmos1draxuzz0aukggx63m852wm8mlxqpus2009cs97

with fees=0.00625
STATUS (1614ms)
  amount: 0.240508 ATOM
  estimated fees: 0.00625 ATOM
  total spent: 0.246758 ATOM
  warnings: amount: RecommendUndelegation
✔️ has been signed! (2819ms) 
✔️ broadcasted! (544ms) optimistic operation: 
  -0.051521 ATOM     OUT        F00B3ADA0496EE45D14A33D112A8A947F9C81C9D872D4AAA8D5EC6DD8A53C3BD 2022-02-17T13:57
(final state reached in 120s)
⚠️ Error: expect(received).toBe(expected) // Object.is equality

Expected: "0"
Received: "188987"


Details of the 3 uncovered mutations

Spec Cosmos (3)

  • send some: balance is too low (4)
  • delegate new validators: balance is too low (4)
  • claim rewards: balance is too low (4)

Portfolio ($34.65)

Details of the 1 currencies
Spec (accounts) Operations Balance funds?
Cosmos (6) 44 (+4) 0.7503 ATOM (- 0.017615) ($34.65) ⚠️ cosmos1zpvthe3pxvyje7vrcqv2m6qe2qgu0r8gkz64er

Please sign in to comment.