From bc5e632a7621835e68963a3114d47a1b0744d8e7 Mon Sep 17 00:00:00 2001 From: haammar-ledger Date: Mon, 11 Apr 2022 12:24:32 +0200 Subject: [PATCH] Update snapshots --- .../sortByMarketcap.test.ts.snap | 13 -- .../bitcoin/__snapshots__/bridge.test.ts.snap | 95 ++++----------- .../cosmos/__snapshots__/bridge.test.ts.snap | 112 ++++++++++++++++-- .../solana/__snapshots__/bridge.test.ts.snap | 6 + 4 files changed, 135 insertions(+), 91 deletions(-) diff --git a/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap b/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap index 6622ce8946..23c4bd9608 100644 --- a/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +++ b/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap @@ -514,7 +514,6 @@ Array [ "ethereum/erc20/czr", "ethereum/erc20/omix", "ethereum/erc20/poker_chips", - "tron/trc10/1002000", "ethereum/erc20/education", "ethereum/erc20/iethereum", "ethereum/erc20/plutus", @@ -5763,18 +5762,6 @@ Array [ "polygon/erc20/xy_oracle", "polygon/erc20/yop", "polygon/erc20/zrx", - "tron/trc10/1002670", - "tron/trc10/1002413", - "tron/trc10/1001943", - "tron/trc10/1001351", - "tron/trc10/1001316", - "tron/trc10/1001313", - "tron/trc10/1001107", - "tron/trc10/1001092", - "tron/trc10/1001090", - "tron/trc10/1000322", - "tron/trc10/1000226", - "tron/trc10/1000001", "tron/trc20/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "tron/trc20/TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7", "tron/trc20/TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9", diff --git a/src/families/bitcoin/__snapshots__/bridge.test.ts.snap b/src/families/bitcoin/__snapshots__/bridge.test.ts.snap index a6e22c7921..2831fa4e37 100644 --- a/src/families/bitcoin/__snapshots__/bridge.test.ts.snap +++ b/src/families/bitcoin/__snapshots__/bridge.test.ts.snap @@ -11575,6 +11575,30 @@ Array [ "type": "OUT", "value": "300452", }, + Object { + "accountId": "js:2:dash:drkvjRicQKXd21b4fiTjSfm4SMoVE5q6DhCopUQ4pBYU9WT1dTVSUHoF91sfFkfgR9MdXqiPGgpNV45VrGFrVfVGn8vH7jroquD34qyYuHbj6Dk:", + "blockHash": "000000000000002396cd2d3c9f9bef3d225eb9df4b64f8d75f66e70637348fa1", + "blockHeight": 1050455, + "contract": undefined, + "extra": Object {}, + "fee": "1044", + "hasFailed": false, + "hash": "4fb5cf199589d4a653e1de02efde1a9439212c7363f42361ab8dad4bb5801e04", + "id": "js:2:dash:drkvjRicQKXd21b4fiTjSfm4SMoVE5q6DhCopUQ4pBYU9WT1dTVSUHoF91sfFkfgR9MdXqiPGgpNV45VrGFrVfVGn8vH7jroquD34qyYuHbj6Dk:-4fb5cf199589d4a653e1de02efde1a9439212c7363f42361ab8dad4bb5801e04-IN", + "operator": undefined, + "recipients": Array [ + "XiEvPwG7j1qWHXeHSSMyMQ5hJpMDevAN3T", + ], + "senders": Array [ + "Xrr87pvdmSYscqiuqFM73p7JywTjweB3MB", + "XyJcCrduqaWPGAxGxWxfZcANAdo1Gbx9Pu", + "XpobffkBapxCR2VNYNGFjQPtZG9uLcQmft", + ], + "standard": undefined, + "tokenId": undefined, + "type": "IN", + "value": "962542", + }, Object { "accountId": "js:2:dash:drkvjRicQKXd21b4fiTjSfm4SMoVE5q6DhCopUQ4pBYU9WT1dTVSUHoF91sfFkfgR9MdXqiPGgpNV45VrGFrVfVGn8vH7jroquD34qyYuHbj6Dk:", "blockHash": "000000000000002396cd2d3c9f9bef3d225eb9df4b64f8d75f66e70637348fa1", @@ -22925,77 +22949,6 @@ Array [ "type": "IN", "value": "1000000", }, - ], - Array [], -] -`; - -exports[`solana currency bridge scanAccounts solana seed 1 1`] = ` -Array [ - Object { - "balance": "83389840", - "currencyId": "solana", - "derivationMode": "solanaMain", - "freshAddress": "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh", - "freshAddressPath": "44'/501'", - "freshAddresses": Array [ - Object { - "address": "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh", - "derivationPath": "44'/501'", - }, - ], - "id": "js:2:solana:AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh:solanaMain", - "index": 0, - "name": "Solana 1", - "nfts": undefined, - "operationsCount": 2, - "pendingOperations": Array [], - "seedIdentifier": "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh", - "solanaResources": Object { - "stakes": "[]", - }, - "spendableBalance": "83389840", - "starred": false, - "swapHistory": Array [], - "syncHash": undefined, - "unitMagnitude": 9, - "used": true, - }, - Object { - "balance": "0", - "currencyId": "solana", - "derivationMode": "solanaSub", - "freshAddress": "6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A", - "freshAddressPath": "44'/501'/0'", - "freshAddresses": Array [ - Object { - "address": "6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A", - "derivationPath": "44'/501'/0'", - }, - ], - "id": "js:2:solana:6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A:solanaSub", - "index": 0, - "name": "Solana 1", - "nfts": undefined, - "operationsCount": 0, - "pendingOperations": Array [], - "seedIdentifier": "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh", - "solanaResources": Object { - "stakes": "[]", - }, - "spendableBalance": "0", - "starred": false, - "swapHistory": Array [], - "syncHash": undefined, - "unitMagnitude": 9, - "used": false, - }, -] -`; - -exports[`solana currency bridge scanAccounts solana seed 1 2`] = ` -Array [ - Array [ Object { "accountId": "js:2:qtum:xpub6D97ABLAcapXNWjS2pNwYpmUjYYt5f2Tyj4PDSp7pvY2gySb2iAvejKNPm18raeU8WxtXVCpQfZjMN7eEdgtor8T5141ZLH7o2WkL1nyNQb:segwit", "blockHash": "eb38de048b4f1a0b52cafb7ee7a6708bd02ccf59c77cadd3b0d078652e785abd", diff --git a/src/families/cosmos/__snapshots__/bridge.test.ts.snap b/src/families/cosmos/__snapshots__/bridge.test.ts.snap index 355c859296..1ec247e79a 100644 --- a/src/families/cosmos/__snapshots__/bridge.test.ts.snap +++ b/src/families/cosmos/__snapshots__/bridge.test.ts.snap @@ -3,9 +3,9 @@ exports[`cosmos currency bridge scanAccounts cosmos seed 1 1`] = ` Array [ Object { - "balance": "2578910", + "balance": "2467871", "cosmosResources": Object { - "delegatedBalance": "2149064", + "delegatedBalance": "2139044", "withdrawAddress": "cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl", }, "currencyId": "cosmos", @@ -22,7 +22,7 @@ Array [ "index": 0, "name": "Cosmos 1", "nfts": undefined, - "operationsCount": 20, + "operationsCount": 22, "pendingOperations": Array [], "seedIdentifier": "0388459b2653519948b12492f1a0b464720110c147a8155d23d423a5cc3c21d89a", "starred": false, @@ -63,9 +63,9 @@ Array [ "xpub": "cosmos108uy5q9jt59gwugq5yrdhkzcd9jryslmpcstk5", }, Object { - "balance": "327600", + "balance": "478443", "cosmosResources": Object { - "delegatedBalance": "326000", + "delegatedBalance": "1000", "withdrawAddress": "cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw", }, "currencyId": "cosmos", @@ -82,7 +82,7 @@ Array [ "index": 2, "name": "Cosmos 3", "nfts": undefined, - "operationsCount": 6, + "operationsCount": 8, "pendingOperations": Array [], "seedIdentifier": "0388459b2653519948b12492f1a0b464720110c147a8155d23d423a5cc3c21d89a", "starred": false, @@ -224,6 +224,30 @@ Array [ "type": "IN", "value": "1000", }, + Object { + "accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:", + "blockHash": null, + "blockHeight": "9956697", + "contract": undefined, + "extra": Object { + "validators": Array [], + }, + "fee": "3080", + "hash": "3A82D9A362C56863D589CD860AD0F8C12E90AD8C3BFAAC2236317220C4C282A6", + "id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-3A82D9A362C56863D589CD860AD0F8C12E90AD8C3BFAAC2236317220C4C282A6-OUT", + "operator": undefined, + "recipients": Array [ + "cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw", + ], + "senders": Array [ + "cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl", + ], + "standard": undefined, + "tokenId": undefined, + "transactionSequenceNumber": 78, + "type": "OUT", + "value": "103080", + }, Object { "accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:", "blockHash": null, @@ -273,6 +297,31 @@ Array [ "type": "REWARD", "value": "7392", }, + Object { + "accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:", + "blockHash": null, + "blockHeight": "9956265", + "contract": undefined, + "extra": Object { + "validators": Array [ + Object { + "address": "cosmosvaloper1qwl879nx9t6kef4supyazayf7vjhennyh568ys", + "amount": "10000", + }, + ], + }, + "fee": "8042", + "hash": "5EE1B4105F5550ADEC1EAD09B6BC7F766AB42ECA8FBC3FDAC7252ECE7C3F15B3", + "id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-5EE1B4105F5550ADEC1EAD09B6BC7F766AB42ECA8FBC3FDAC7252ECE7C3F15B3-UNDELEGATE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "transactionSequenceNumber": 77, + "type": "UNDELEGATE", + "value": "8042", + }, Object { "accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:", "blockHash": null, @@ -951,6 +1000,30 @@ Array [ "type": "OUT", "value": "6203", }, + Object { + "accountId": "js:2:cosmos:cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw:", + "blockHash": null, + "blockHeight": "9956697", + "contract": undefined, + "extra": Object { + "validators": Array [], + }, + "fee": "3080", + "hash": "3A82D9A362C56863D589CD860AD0F8C12E90AD8C3BFAAC2236317220C4C282A6", + "id": "js:2:cosmos:cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw:-3A82D9A362C56863D589CD860AD0F8C12E90AD8C3BFAAC2236317220C4C282A6-IN", + "operator": undefined, + "recipients": Array [ + "cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw", + ], + "senders": Array [ + "cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl", + ], + "standard": undefined, + "tokenId": undefined, + "transactionSequenceNumber": 78, + "type": "IN", + "value": "100000", + }, Object { "accountId": "js:2:cosmos:cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw:", "blockHash": null, @@ -975,6 +1048,31 @@ Array [ "type": "OUT", "value": "483961", }, + Object { + "accountId": "js:2:cosmos:cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw:", + "blockHash": null, + "blockHeight": "9956741", + "contract": undefined, + "extra": Object { + "validators": Array [ + Object { + "address": "cosmosvaloper1sjllsnramtg3ewxqwwrwjxfgc4n4ef9u2lcnj0", + "amount": "325000", + }, + ], + }, + "fee": "7695", + "hash": "71609DCD374EE66A52773F187300EA30188413D377A9AA02D0CB31C65B0A1B0C", + "id": "js:2:cosmos:cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw:-71609DCD374EE66A52773F187300EA30188413D377A9AA02D0CB31C65B0A1B0C-UNDELEGATE", + "operator": undefined, + "recipients": Array [], + "senders": Array [], + "standard": undefined, + "tokenId": undefined, + "transactionSequenceNumber": 26, + "type": "UNDELEGATE", + "value": "7695", + }, Object { "accountId": "js:2:cosmos:cosmos1cgc696ay2pg6d4gcejek2y8la66j7e5y3c7kyw:", "blockHash": null, @@ -1032,7 +1130,7 @@ Array [ "validators": Array [ Object { "address": "cosmosvaloper17zcpywlhgcpk7ff505vr8mnc4wwpv5fcta6enz", - "amount": "", + "amount": "0", }, Object { "address": "cosmosvaloper17zcpywlhgcpk7ff505vr8mnc4wwpv5fcta6enz", diff --git a/src/families/solana/__snapshots__/bridge.test.ts.snap b/src/families/solana/__snapshots__/bridge.test.ts.snap index fe8fa673c3..393d9791cf 100644 --- a/src/families/solana/__snapshots__/bridge.test.ts.snap +++ b/src/families/solana/__snapshots__/bridge.test.ts.snap @@ -21,6 +21,9 @@ Array [ "operationsCount": 2, "pendingOperations": Array [], "seedIdentifier": "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh", + "solanaResources": Object { + "stakes": "[]", + }, "spendableBalance": "83389840", "starred": false, "swapHistory": Array [], @@ -47,6 +50,9 @@ Array [ "operationsCount": 0, "pendingOperations": Array [], "seedIdentifier": "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh", + "solanaResources": Object { + "stakes": "[]", + }, "spendableBalance": "0", "starred": false, "swapHistory": Array [],