Skip to content

Commit

Permalink
feat(ton): snapshot update
Browse files Browse the repository at this point in the history
  • Loading branch information
rllola committed Jul 4, 2024
1 parent 3c3a8c5 commit 14236ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 153 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ export const dataset: DatasetTest<Transaction> = {
},
};

describe("Ton bridge", () => {
test.todo(
"This is an empty test to make jest command pass. Remove it once there is a real test.",
);
});
// describe("Ton bridge", () => {
// test.todo(
// "This is an empty test to make jest command pass. Remove it once there is a real test.",
// );
// });

/**
* NOTE: if tests are added to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,15 @@ exports[`ton currency bridge scanAccounts ton seed 1 1`] = `
"freshAddressPath": "44'/607'/0'/0'/0'/0'",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"index": 0,
"name": "TON 1",
"nfts": undefined,
"operationsCount": 9,
"pendingOperations": [],
"seedIdentifier": "86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060",
"spendableBalance": "933174896",
"starred": false,
"subAccounts": [],
"swapHistory": [],
"syncHash": undefined,
"unitMagnitude": 9,
"used": true,
"xpub": "86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060",
},
{
"approvals": undefined,
"balance": "500000",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton+ton%2Fjetton%2Feqbynbo23ywhy~!underscore!~cgary9nk9ftz0ydsg82ptcbstqggoxwiua",
"operationsCount": 3,
"parentId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"pendingOperations": [],
"spendableBalance": "500000",
"starred": undefined,
"swapHistory": [],
"tokenId": "ton/jetton/eqbynbo23ywhy_cgary9nk9ftz0ydsg82ptcbstqggoxwiua",
"type": "TokenAccountRaw",
},
{
"balance": "0",
"currencyId": "ton",
Expand All @@ -45,17 +27,12 @@ exports[`ton currency bridge scanAccounts ton seed 1 1`] = `
"freshAddressPath": "44'/607'/0'/0'/1'/0'",
"id": "js:2:ton:b5177c2b32f9d72fa8c673cc3d61acec6a9f68eb5e4945445fdbb48a45eb4887:ton",
"index": 1,
"name": "TON 2",
"nfts": undefined,
"operationsCount": 0,
"pendingOperations": [],
"seedIdentifier": "86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060",
"spendableBalance": "0",
"starred": false,
"subAccounts": [],
"swapHistory": [],
"syncHash": undefined,
"unitMagnitude": 9,
"used": false,
"xpub": "b5177c2b32f9d72fa8c673cc3d61acec6a9f68eb5e4945445fdbb48a45eb4887",
},
Expand All @@ -69,7 +46,6 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37795019,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -82,23 +58,19 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "7ZIKj4q+KCfZ04dD7m7wI3Q/nVG6VoFujq61UtMQE3E=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-1KI+JhVbOM2sgDpvUILr6sEmQ6+Iz4twNIOG7lR2eg4=-OUT",
"operator": undefined,
"recipients": [
"EQAG2WGLWM7dnTdopd2wQlbhsbJck3bOr1xtwzqZ6ldQwgSS",
],
"senders": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"standard": undefined,
"tokenId": undefined,
"type": "OUT",
"value": "55547465",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37795026,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -111,23 +83,19 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "4dDNdHb5JwpES6VYZS6ZyKSDnNNk0i37CLF6sYqD7oc=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-4dDNdHb5JwpES6VYZS6ZyKSDnNNk0i37CLF6sYqD7oc=-IN",
"operator": undefined,
"recipients": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"senders": [
"EQAnDEE6JghjaRCaY5qWTeV2AalOgyU9ohZ37pmUl-t0toX7",
],
"standard": undefined,
"tokenId": undefined,
"type": "IN",
"value": "21509565",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37795026,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -140,21 +108,17 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "4dDNdHb5JwpES6VYZS6ZyKSDnNNk0i37CLF6sYqD7oc=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-4dDNdHb5JwpES6VYZS6ZyKSDnNNk0i37CLF6sYqD7oc=-NONE",
"operator": undefined,
"recipients": [],
"senders": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"standard": undefined,
"tokenId": undefined,
"type": "NONE",
"value": "396411",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37795081,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -167,23 +131,19 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "URAvSSvE38mTydf61TAZSVO8b2F5RRwgL61gjX77YT4=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-cva3yUb4cC+AfML9eidygO1PeYVYqLYpcprXEiw3Nj0=-OUT",
"operator": undefined,
"recipients": [
"EQAG2WGLWM7dnTdopd2wQlbhsbJck3bOr1xtwzqZ6ldQwgSS",
],
"senders": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"standard": undefined,
"tokenId": undefined,
"type": "OUT",
"value": "52474733",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37795087,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -196,23 +156,19 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "ExoMI/oYFVbPvh+Q52cf2Pyq0aL4jSpuwen8nmOvGBo=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-ExoMI/oYFVbPvh+Q52cf2Pyq0aL4jSpuwen8nmOvGBo=-IN",
"operator": undefined,
"recipients": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"senders": [
"EQAnDEE6JghjaRCaY5qWTeV2AalOgyU9ohZ37pmUl-t0toX7",
],
"standard": undefined,
"tokenId": undefined,
"type": "IN",
"value": "21509565",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37795087,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -225,21 +181,17 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "ExoMI/oYFVbPvh+Q52cf2Pyq0aL4jSpuwen8nmOvGBo=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-ExoMI/oYFVbPvh+Q52cf2Pyq0aL4jSpuwen8nmOvGBo=-NONE",
"operator": undefined,
"recipients": [],
"senders": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"standard": undefined,
"tokenId": undefined,
"type": "NONE",
"value": "396410",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37794992,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -252,23 +204,19 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "f73qoft8iF7ANKH32Mq0cRGO9STLYlhuOFVXPQE1jI0=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-f73qoft8iF7ANKH32Mq0cRGO9STLYlhuOFVXPQE1jI0=-IN",
"operator": undefined,
"recipients": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"senders": [
"EQAG2WGLWM7dnTdopd2wQlbhsbJck3bOr1xtwzqZ6ldQwgSS",
],
"standard": undefined,
"tokenId": undefined,
"type": "IN",
"value": "1",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 37794992,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -281,21 +229,17 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "f73qoft8iF7ANKH32Mq0cRGO9STLYlhuOFVXPQE1jI0=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-f73qoft8iF7ANKH32Mq0cRGO9STLYlhuOFVXPQE1jI0=-NONE",
"operator": undefined,
"recipients": [],
"senders": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"standard": undefined,
"tokenId": undefined,
"type": "NONE",
"value": "84142",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton",
"blockHash": null,
"blockHeight": 35650189,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
Expand All @@ -308,108 +252,16 @@ exports[`ton currency bridge scanAccounts ton seed 1 2`] = `
"hasFailed": false,
"hash": "V0y/lJDCYzAgmzNVA+dapRQemNP+AJpVhCxBhs7eNfQ=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton-V0y/lJDCYzAgmzNVA+dapRQemNP+AJpVhCxBhs7eNfQ=-IN",
"operator": undefined,
"recipients": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"senders": [
"UQDzd8aeBOU-jqYw_ZSuZjceI5p-F4b7HMprAsUJAtRPbMol",
],
"standard": undefined,
"tokenId": undefined,
"type": "IN",
"value": "1000000000",
},
],
[
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton+ton%2Fjetton%2Feqbynbo23ywhy~!underscore!~cgary9nk9ftz0ydsg82ptcbstqggoxwiua",
"blockHash": null,
"blockHeight": 1,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
"text": "",
},
"explorerHash": "Bcr63Sh1uaT08ufACKFaAwCb+XQkGpyLPoghez1J6Fo=",
"lt": "46398662000001",
},
"fee": "0",
"hasFailed": false,
"hash": "Bcr63Sh1uaT08ufACKFaAwCb+XQkGpyLPoghez1J6Fo=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton+ton%2Fjetton%2Feqbynbo23ywhy~!underscore!~cgary9nk9ftz0ydsg82ptcbstqggoxwiua-Bcr63Sh1uaT08ufACKFaAwCb+XQkGpyLPoghez1J6Fo=-OUT",
"operator": undefined,
"recipients": [
"EQB0Y6BtnRS9rIJXpsTHFzhEF83Xa4e5yBDOrPEOah66rJs_",
],
"senders": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"standard": undefined,
"tokenId": undefined,
"type": "OUT",
"value": "1000000",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton+ton%2Fjetton%2Feqbynbo23ywhy~!underscore!~cgary9nk9ftz0ydsg82ptcbstqggoxwiua",
"blockHash": null,
"blockHeight": 1,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
"text": "",
},
"explorerHash": "gSeyxDKNghbKUl4QAawfuaXzIgPTfAiLQ5EUUx1T+cg=",
"lt": "46398624000003",
},
"fee": "0",
"hasFailed": false,
"hash": "gSeyxDKNghbKUl4QAawfuaXzIgPTfAiLQ5EUUx1T+cg=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton+ton%2Fjetton%2Feqbynbo23ywhy~!underscore!~cgary9nk9ftz0ydsg82ptcbstqggoxwiua-gSeyxDKNghbKUl4QAawfuaXzIgPTfAiLQ5EUUx1T+cg=-IN",
"operator": undefined,
"recipients": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"senders": [
"EQB0Y6BtnRS9rIJXpsTHFzhEF83Xa4e5yBDOrPEOah66rJs_",
],
"standard": undefined,
"tokenId": undefined,
"type": "IN",
"value": "2000000",
},
{
"accountId": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton+ton%2Fjetton%2Feqbynbo23ywhy~!underscore!~cgary9nk9ftz0ydsg82ptcbstqggoxwiua",
"blockHash": null,
"blockHeight": 1,
"contract": undefined,
"extra": {
"comment": {
"isEncrypted": false,
"text": "",
},
"explorerHash": "paL6VAR7c1SWoRKhndZS/l7bA0ffA6d4DPPGcd166TM=",
"lt": "46398739000001",
},
"fee": "0",
"hasFailed": false,
"hash": "paL6VAR7c1SWoRKhndZS/l7bA0ffA6d4DPPGcd166TM=",
"id": "js:2:ton:86196cb40cd25e9e696bc808e3f2c074ce0b39f2a2a9d482a68eafef86e4a060:ton+ton%2Fjetton%2Feqbynbo23ywhy~!underscore!~cgary9nk9ftz0ydsg82ptcbstqggoxwiua-paL6VAR7c1SWoRKhndZS/l7bA0ffA6d4DPPGcd166TM=-OUT",
"operator": undefined,
"recipients": [
"EQB0Y6BtnRS9rIJXpsTHFzhEF83Xa4e5yBDOrPEOah66rJs_",
],
"senders": [
"UQCOvQLYvTcbi5tL9MaDNzuVl3-J3vATimNm9yO5XPafLfV4",
],
"standard": undefined,
"tokenId": undefined,
"type": "OUT",
"value": "500000",
},
],
[],
]
`;

0 comments on commit 14236ac

Please sign in to comment.