From a5970e1b433c57aaebb0f43d7ac39dc4dfafc343 Mon Sep 17 00:00:00 2001 From: Henri Ly Date: Mon, 8 Aug 2022 17:54:11 +0200 Subject: [PATCH] celo apdu test update --- .../bridge.integration.test.ts.snap | 996 ++++++++++++++++++ .../celo/datasets/celo.scanAccounts.1.ts | 8 +- 2 files changed, 1000 insertions(+), 4 deletions(-) create mode 100644 libs/ledger-live-common/src/families/celo/__snapshots__/bridge.integration.test.ts.snap diff --git a/libs/ledger-live-common/src/families/celo/__snapshots__/bridge.integration.test.ts.snap b/libs/ledger-live-common/src/families/celo/__snapshots__/bridge.integration.test.ts.snap new file mode 100644 index 000000000000..ac8d0b96c03d --- /dev/null +++ b/libs/ledger-live-common/src/families/celo/__snapshots__/bridge.integration.test.ts.snap @@ -0,0 +1,996 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`celo currency bridge scanAccounts celo seed 1 1`] = ` +Array [ + Object { + "balance": "4371247921815636703", + "currencyId": "celo", + "derivationMode": "", + "freshAddress": "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + "freshAddressPath": "44'/52752'/0'/0/0", + "freshAddresses": Array [ + Object { + "address": "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + "derivationPath": "44'/52752'/0'/0/0", + }, + ], + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "index": 0, + "name": "Celo 1", + "nfts": undefined, + "operationsCount": 47, + "pendingOperations": Array [], + "seedIdentifier": "040bd7f9f57b882469eeace7c1b393563e5e1748be7717620a406b4f2d9a01514fe50fcb3366435a99ac21b4f7a807a6ca99782cdb0cb082c49fa6110eb385cadc", + "spendableBalance": "3371247921815636703", + "starred": false, + "swapHistory": Array [], + "syncHash": undefined, + "unitMagnitude": 18, + "used": true, + }, + Object { + "balance": "0", + "currencyId": "celo", + "derivationMode": "", + "freshAddress": "0x3c784b89449dA3014C5baeE27B22bc18347F1F9b", + "freshAddressPath": "44'/52752'/1'/0/0", + "freshAddresses": Array [ + Object { + "address": "0x3c784b89449dA3014C5baeE27B22bc18347F1F9b", + "derivationPath": "44'/52752'/1'/0/0", + }, + ], + "id": "js:2:celo:0x3c784b89449dA3014C5baeE27B22bc18347F1F9b:", + "index": 1, + "name": "Celo 2", + "nfts": undefined, + "operationsCount": 0, + "pendingOperations": Array [], + "seedIdentifier": "040bd7f9f57b882469eeace7c1b393563e5e1748be7717620a406b4f2d9a01514fe50fcb3366435a99ac21b4f7a807a6ca99782cdb0cb082c49fa6110eb385cadc", + "spendableBalance": "0", + "starred": false, + "swapHistory": Array [], + "syncHash": undefined, + "unitMagnitude": 18, + "used": false, + }, +] +`; + +exports[`celo currency bridge scanAccounts celo seed 1 2`] = ` +Array [ + Array [ + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 5161418, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x0632a4cb81e1ccd51d8020411bf319f997350d1cd964cf9baf75f211ad32d4fa", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x0632a4cb81e1ccd51d8020411bf319f997350d1cd964cf9baf75f211ad32d4fa-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "199952500000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 5161418, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x0632a4cb81e1ccd51d8020411bf319f997350d1cd964cf9baf75f211ad32d4fa", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x0632a4cb81e1ccd51d8020411bf319f997350d1cd964cf9baf75f211ad32d4fa-OUT", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "199952500000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12060828, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x0a86147ab49523046e8204cdef02631c4a17dc928a1e2ff51beafb23ac9dca6f", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x0a86147ab49523046e8204cdef02631c4a17dc928a1e2ff51beafb23ac9dca6f-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "314145323422487100", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12195934, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x0ae3508f93bd8efb232db83ddbd2e3c0574ae996d19eb786f2568b7a080efce9", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x0ae3508f93bd8efb232db83ddbd2e3c0574ae996d19eb786f2568b7a080efce9-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "300000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11989723, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x185bcec5d2f55ba02ab785ab918d8e1f89e49afa73fcc15f07ef3e0ce67d0125", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x185bcec5d2f55ba02ab785ab918d8e1f89e49afa73fcc15f07ef3e0ce67d0125-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "30000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 5894737, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x2587489a1cb61af6011e95910149b4a900aca5982fde0a3886af7a779d928e8e", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x2587489a1cb61af6011e95910149b4a900aca5982fde0a3886af7a779d928e8e-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "199888495000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 5894737, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x2587489a1cb61af6011e95910149b4a900aca5982fde0a3886af7a779d928e8e", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x2587489a1cb61af6011e95910149b4a900aca5982fde0a3886af7a779d928e8e-OUT", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "199888495000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12904187, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x3307903ffc98f95de495c62f6f491a4d3264d176a48d60f4a2a30dff7a97c841", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x3307903ffc98f95de495c62f6f491a4d3264d176a48d60f4a2a30dff7a97c841-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0xF95f94b99349286f2286559CaF9D3a94bdc7F8eE", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "3999981714500000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627853, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x331cbfee5edd29fd454237f01f06ec62ef6b1936f9410f7bc9e48c88763f8d68", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x331cbfee5edd29fd454237f01f06ec62ef6b1936f9410f7bc9e48c88763f8d68-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "0", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129687, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x389915710e1f584ebe93d8ac25795ea8455ab5acfa41991693bd917d44d5467a", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x389915710e1f584ebe93d8ac25795ea8455ab5acfa41991693bd917d44d5467a-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "200000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129687, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x389915710e1f584ebe93d8ac25795ea8455ab5acfa41991693bd917d44d5467a", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x389915710e1f584ebe93d8ac25795ea8455ab5acfa41991693bd917d44d5467a-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "200000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129710, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x41247afe9654e1ad418d35b814d5dd350f6799c61b18bb4c5f779dab9884611b", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x41247afe9654e1ad418d35b814d5dd350f6799c61b18bb4c5f779dab9884611b-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "300000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11989683, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x4776d30bde5ca26558fdc7d86c25f36f3288a777b7092d7f2dc4e05275582a6d", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x4776d30bde5ca26558fdc7d86c25f36f3288a777b7092d7f2dc4e05275582a6d-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "274000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12060784, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x4b3920bbb58b0a331712231e4834ea959b23724b07ad9c86876655377a2cde3f", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x4b3920bbb58b0a331712231e4834ea959b23724b07ad9c86876655377a2cde3f-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "10000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12058158, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x5dcfbbf4646f402d39a287db1ed61095d7a269b7de1ada838f1f35f3522d2036", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x5dcfbbf4646f402d39a287db1ed61095d7a269b7de1ada838f1f35f3522d2036-OUT", + "operator": undefined, + "recipients": Array [ + "0xF95f94b99349286f2286559CaF9D3a94bdc7F8eE", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "1000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12059912, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x62302ba8f4535fa8264bc7b097ce74a7052971a1f3668c467873f479223c76a2", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x62302ba8f4535fa8264bc7b097ce74a7052971a1f3668c467873f479223c76a2-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "30000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 5894727, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x625f10f2e058a683c656f702af7d859f18304e8ea4f9671ecb18992a5b896860", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x625f10f2e058a683c656f702af7d859f18304e8ea4f9671ecb18992a5b896860-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "199912748500000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 5894727, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x625f10f2e058a683c656f702af7d859f18304e8ea4f9671ecb18992a5b896860", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x625f10f2e058a683c656f702af7d859f18304e8ea4f9671ecb18992a5b896860-OUT", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "199912748500000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129719, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x6380d91b9fb6fd199415e3da14661470ce14ee4471384d658d517b62b2efef59", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x6380d91b9fb6fd199415e3da14661470ce14ee4471384d658d517b62b2efef59-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "300000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627897, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x8009439c94a415f56c186142075e086fdcfa8edabed893a7f0096cce8796c871", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x8009439c94a415f56c186142075e086fdcfa8edabed893a7f0096cce8796c871-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x9380fA34Fd9e4Fd14c06305fd7B6199089eD4eb9", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "228777607393149600", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12195939, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x885dde2d239ff33763677a4ff7dc6fa8d8c728d3444a42d229885c2fa9367a3b", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x885dde2d239ff33763677a4ff7dc6fa8d8c728d3444a42d229885c2fa9367a3b-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "300000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627933, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x88caf66a563217b73a321e096d28a9dfee3860ea98a173b06f9365cbb6e204b7", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x88caf66a563217b73a321e096d28a9dfee3860ea98a173b06f9365cbb6e204b7-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "274000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11454763, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x89fdc0c61a228f8d7b0e157876ea4a3fe132b022e3eb31c2e96bfb5eb7dbdecb", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x89fdc0c61a228f8d7b0e157876ea4a3fe132b022e3eb31c2e96bfb5eb7dbdecb-OUT", + "operator": undefined, + "recipients": Array [ + "0xfBACB4852275Ff9bBdA20C35679F8E570C03B7b9", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "55000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11989704, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x99b01266a525e2ae91de63630d4bc3199e1150283b3751ba0a017a2e57664e8b", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x99b01266a525e2ae91de63630d4bc3199e1150283b3751ba0a017a2e57664e8b-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "30000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11989704, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x99b01266a525e2ae91de63630d4bc3199e1150283b3751ba0a017a2e57664e8b", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x99b01266a525e2ae91de63630d4bc3199e1150283b3751ba0a017a2e57664e8b-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "30000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12195944, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0x9c02426e6b4904a19d6442cb79c23942fc326ad3abc08947589772b662f20fd7", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0x9c02426e6b4904a19d6442cb79c23942fc326ad3abc08947589772b662f20fd7-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "300000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129700, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xa954518e28bb1b76fb32a2b2f498bcfa1e0ec2a86fe471e0b92df2cb5d152bb8", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xa954518e28bb1b76fb32a2b2f498bcfa1e0ec2a86fe471e0b92df2cb5d152bb8-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "100000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129700, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xa954518e28bb1b76fb32a2b2f498bcfa1e0ec2a86fe471e0b92df2cb5d152bb8", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xa954518e28bb1b76fb32a2b2f498bcfa1e0ec2a86fe471e0b92df2cb5d152bb8-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "100000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12904216, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xbc5e8d7d0169e64aceeb10b96c383e004e4504be0e782a346571a05fa30d0bee", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xbc5e8d7d0169e64aceeb10b96c383e004e4504be0e782a346571a05fa30d0bee-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "300000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12904216, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xbc5e8d7d0169e64aceeb10b96c383e004e4504be0e782a346571a05fa30d0bee", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xbc5e8d7d0169e64aceeb10b96c383e004e4504be0e782a346571a05fa30d0bee-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "300000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627918, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xc6a0ba40b868f508aa7d8372e7e7be38964b5abb891bcd908ed6f7ff0fb9a453", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xc6a0ba40b868f508aa7d8372e7e7be38964b5abb891bcd908ed6f7ff0fb9a453-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "164000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627918, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xc6a0ba40b868f508aa7d8372e7e7be38964b5abb891bcd908ed6f7ff0fb9a453", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xc6a0ba40b868f508aa7d8372e7e7be38964b5abb891bcd908ed6f7ff0fb9a453-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "164000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627854, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xc71aeab02c9b895b10504245143af1026219f0f6789096527fe7e0736cc3f2e3", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xc71aeab02c9b895b10504245143af1026219f0f6789096527fe7e0736cc3f2e3-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "10000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627854, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xc71aeab02c9b895b10504245143af1026219f0f6789096527fe7e0736cc3f2e3", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xc71aeab02c9b895b10504245143af1026219f0f6789096527fe7e0736cc3f2e3-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "10000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12058075, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xcecd2a6b14278a293b33ff3d789a8af5fa52ceeccfbef3123d950487bcb433bc", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xcecd2a6b14278a293b33ff3d789a8af5fa52ceeccfbef3123d950487bcb433bc-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "30000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 5102492, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xd7dcec6865e0d3cbef543de93fc539c55f698e9814a2529dbaf71daec9de1042", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xd7dcec6865e0d3cbef543de93fc539c55f698e9814a2529dbaf71daec9de1042-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x17f492EF77Cd65Ec9936cCE6656e6999Bf7a6359", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "200000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12904228, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xdff36079b066f95e52019a64bcf414f2cb3fa673afd4c05f2c19354331f8d77f", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xdff36079b066f95e52019a64bcf414f2cb3fa673afd4c05f2c19354331f8d77f-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "1000000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12904228, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xdff36079b066f95e52019a64bcf414f2cb3fa673afd4c05f2c19354331f8d77f", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xdff36079b066f95e52019a64bcf414f2cb3fa673afd4c05f2c19354331f8d77f-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "1000000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12058054, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xe207ff7ca330325894cd27c824c27fa641fbc1f9e7ac8c02e53975b523ff6379", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xe207ff7ca330325894cd27c824c27fa641fbc1f9e7ac8c02e53975b523ff6379-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "10000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12058054, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xe207ff7ca330325894cd27c824c27fa641fbc1f9e7ac8c02e53975b523ff6379", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xe207ff7ca330325894cd27c824c27fa641fbc1f9e7ac8c02e53975b523ff6379-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "10000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627904, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xe255f12d8edcd6aea5516e7a993b7a3651859e8b1b9776208c489ff98e994477", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xe255f12d8edcd6aea5516e7a993b7a3651859e8b1b9776208c489ff98e994477-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "100000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 11627904, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xe255f12d8edcd6aea5516e7a993b7a3651859e8b1b9776208c489ff98e994477", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xe255f12d8edcd6aea5516e7a993b7a3651859e8b1b9776208c489ff98e994477-OUT", + "operator": undefined, + "recipients": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "senders": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "standard": undefined, + "tokenId": undefined, + "type": "OUT", + "value": "100000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129674, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xe29a0c262bb53a9ab7830467c7ffd4b1cb3033278db223c7971708af48a685c0", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xe29a0c262bb53a9ab7830467c7ffd4b1cb3033278db223c7971708af48a685c0-IN", + "operator": undefined, + "recipients": Array [ + "0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0", + ], + "senders": Array [ + "0x6cC083Aed9e3ebe302A6336dBC7c921C9f03349E", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "314145323422487100", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12129674, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xe29a0c262bb53a9ab7830467c7ffd4b1cb3033278db223c7971708af48a685c0", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xe29a0c262bb53a9ab7830467c7ffd4b1cb3033278db223c7971708af48a685c0-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "314145323422487100", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12058097, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xf398f7b35a65425765969450b3f9fee66edcaa79ecef6e9ccc0b103a3445dcd9", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xf398f7b35a65425765969450b3f9fee66edcaa79ecef6e9ccc0b103a3445dcd9-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "10000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12904242, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xf96ecb747d0b043c2dd3e9b7705701b94e9234a5849a501190d4804cdbe6036e", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xf96ecb747d0b043c2dd3e9b7705701b94e9234a5849a501190d4804cdbe6036e-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "1000000000000000000", + }, + Object { + "accountId": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:", + "blockHash": null, + "blockHeight": 12058120, + "contract": undefined, + "extra": Object {}, + "fee": "0", + "hasFailed": false, + "hash": "0xfa9381fdab728e2a5d9470e63402f511e25ca556bda2f9bc0a2de440134f15ea", + "id": "js:2:celo:0x1C5D9B47505e1C8e42C6DD1D1D5b70B0efC42BA0:-0xfa9381fdab728e2a5d9470e63402f511e25ca556bda2f9bc0a2de440134f15ea-NONE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "type": "NONE", + "value": "274145323422487100", + }, + ], + Array [], +] +`; diff --git a/libs/ledger-live-common/src/families/celo/datasets/celo.scanAccounts.1.ts b/libs/ledger-live-common/src/families/celo/datasets/celo.scanAccounts.1.ts index e4e1b421d0b3..7334bfd0a928 100644 --- a/libs/ledger-live-common/src/families/celo/datasets/celo.scanAccounts.1.ts +++ b/libs/ledger-live-common/src/families/celo/datasets/celo.scanAccounts.1.ts @@ -6,12 +6,12 @@ const dataset: CurrenciesData = { { name: "celo seed 1", apdus: ` - => e002000009028000002c8000ce10 - <= 41040106794f46b69e1ae56dff904510959e59074a37341f8cc740e9ce7a0b24421c42e7023481f5ef03926739baa6bb26cac7bf48f249a24793264711d48499499528433235323935323541463035434134313939633236413838623438393463383342303330433733399000 + => e00200000d038000002c8000ce1080000000 + <= 41040bd7f9f57b882469eeace7c1b393563e5e1748be7717620a406b4f2d9a01514fe50fcb3366435a99ac21b4f7a807a6ca99782cdb0cb082c49fa6110eb385cadc28336533343162333437436245336232413131363765303643383461366233383543413343396634319000 => e002000015058000002c8000ce10800000000000000000000000 - <= 41044f4998c3f81966645f25e95082f9fe7d104b1ba4286486a8ecd8fd11f79ef02bd8110f086b390a418ab619a650f3df59a3c84912ce1ea125386d7aa7732fcd0b28393634313334336638346535304143304334434133626644313244433063346231653732363544359000 + <= 4104d2705d8760cc776edeaef9a99895bcce6e9f19de51640aecf5dcf58be2eca4b9c95882a52c5525b838e69e2b719a6677dfb832b1c0a3f106c303412789621cc928314335443942343735303565314338653432433644443144314435623730423065664334324241309000 => e002000015058000002c8000ce10800000010000000000000000 - <= 4104630b6447b0f690520a5612f1dc57da90b84f6b59dfeb375bed1113fb34a8d0f9181ec63e40f9fde05761084dbd022ba76711eb2b36442cf4b5d2bc19def9156428343435306565646238623532333931354534393639633239646241653944354563303646453837349000 + <= 41040699e39aa6ee84133dec1f0346f95516ace36d521764823624a2bf0bdfd97bd4b3ddd8f42b08ba251a53ef25a0f658de9fbb57600d2165dab69d10ebf34388a928336337383462383934343964413330313443356261654532374232326263313833343746314639629000 `, }, ],