@ledgerhq/cryptoassets 13.31.0-nightly.7 → 13.31.0-nightly.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +15 -0
- package/lib/api-asset-converter.d.ts.map +1 -1
- package/lib/api-asset-converter.js +31 -1
- package/lib/api-asset-converter.js.map +1 -1
- package/lib/hooks.d.ts +7 -1
- package/lib/hooks.d.ts.map +1 -1
- package/lib/hooks.js +33 -0
- package/lib/hooks.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib-es/api-asset-converter.d.ts.map +1 -1
- package/lib-es/api-asset-converter.js +31 -1
- package/lib-es/api-asset-converter.js.map +1 -1
- package/lib-es/hooks.d.ts +7 -1
- package/lib-es/hooks.d.ts.map +1 -1
- package/lib-es/hooks.js +33 -0
- package/lib-es/hooks.js.map +1 -1
- package/lib-es/index.d.ts +0 -1
- package/lib-es/index.d.ts.map +1 -1
- package/lib-es/index.js +0 -1
- package/lib-es/index.js.map +1 -1
- package/package.json +2 -2
- package/src/api-asset-converter.test.ts +22 -5
- package/src/api-asset-converter.ts +32 -1
- package/src/hooks.test.ts +134 -1
- package/src/hooks.ts +44 -1
- package/src/index.ts +0 -1
- package/lib/data/exchange/bep20-hash.json +0 -1
- package/lib/data/exchange/bep20.d.ts +0 -5
- package/lib/data/exchange/bep20.d.ts.map +0 -1
- package/lib/data/exchange/bep20.js +0 -11
- package/lib/data/exchange/bep20.js.map +0 -1
- package/lib/data/exchange/bep20.json +0 -1
- package/lib/data/exchange/coin-hash.json +0 -1
- package/lib/data/exchange/coins.d.ts +0 -5
- package/lib/data/exchange/coins.d.ts.map +0 -1
- package/lib/data/exchange/coins.js +0 -11
- package/lib/data/exchange/coins.js.map +0 -1
- package/lib/data/exchange/coins.json +0 -1
- package/lib/data/exchange/erc20-hash.json +0 -1
- package/lib/data/exchange/erc20.d.ts +0 -5
- package/lib/data/exchange/erc20.d.ts.map +0 -1
- package/lib/data/exchange/erc20.js +0 -11
- package/lib/data/exchange/erc20.js.map +0 -1
- package/lib/data/exchange/erc20.json +0 -1
- package/lib/data/exchange/polygon-erc20-hash.json +0 -1
- package/lib/data/exchange/polygon-erc20.d.ts +0 -5
- package/lib/data/exchange/polygon-erc20.d.ts.map +0 -1
- package/lib/data/exchange/polygon-erc20.js +0 -11
- package/lib/data/exchange/polygon-erc20.js.map +0 -1
- package/lib/data/exchange/polygon-erc20.json +0 -1
- package/lib/data/exchange/trc20-hash.json +0 -1
- package/lib/data/exchange/trc20.d.ts +0 -5
- package/lib/data/exchange/trc20.d.ts.map +0 -1
- package/lib/data/exchange/trc20.js +0 -11
- package/lib/data/exchange/trc20.js.map +0 -1
- package/lib/data/exchange/trc20.json +0 -1
- package/lib/exchange.d.ts +0 -8
- package/lib/exchange.d.ts.map +0 -1
- package/lib/exchange.js +0 -25
- package/lib/exchange.js.map +0 -1
- package/lib-es/data/exchange/bep20-hash.json +0 -1
- package/lib-es/data/exchange/bep20.d.ts +0 -5
- package/lib-es/data/exchange/bep20.d.ts.map +0 -1
- package/lib-es/data/exchange/bep20.js +0 -4
- package/lib-es/data/exchange/bep20.js.map +0 -1
- package/lib-es/data/exchange/bep20.json +0 -1
- package/lib-es/data/exchange/coin-hash.json +0 -1
- package/lib-es/data/exchange/coins.d.ts +0 -5
- package/lib-es/data/exchange/coins.d.ts.map +0 -1
- package/lib-es/data/exchange/coins.js +0 -4
- package/lib-es/data/exchange/coins.js.map +0 -1
- package/lib-es/data/exchange/coins.json +0 -1
- package/lib-es/data/exchange/erc20-hash.json +0 -1
- package/lib-es/data/exchange/erc20.d.ts +0 -5
- package/lib-es/data/exchange/erc20.d.ts.map +0 -1
- package/lib-es/data/exchange/erc20.js +0 -4
- package/lib-es/data/exchange/erc20.js.map +0 -1
- package/lib-es/data/exchange/erc20.json +0 -1
- package/lib-es/data/exchange/polygon-erc20-hash.json +0 -1
- package/lib-es/data/exchange/polygon-erc20.d.ts +0 -5
- package/lib-es/data/exchange/polygon-erc20.d.ts.map +0 -1
- package/lib-es/data/exchange/polygon-erc20.js +0 -4
- package/lib-es/data/exchange/polygon-erc20.js.map +0 -1
- package/lib-es/data/exchange/polygon-erc20.json +0 -1
- package/lib-es/data/exchange/trc20-hash.json +0 -1
- package/lib-es/data/exchange/trc20.d.ts +0 -5
- package/lib-es/data/exchange/trc20.d.ts.map +0 -1
- package/lib-es/data/exchange/trc20.js +0 -4
- package/lib-es/data/exchange/trc20.js.map +0 -1
- package/lib-es/data/exchange/trc20.json +0 -1
- package/lib-es/exchange.d.ts +0 -8
- package/lib-es/exchange.d.ts.map +0 -1
- package/lib-es/exchange.js +0 -18
- package/lib-es/exchange.js.map +0 -1
- package/src/data/exchange/bep20-hash.json +0 -1
- package/src/data/exchange/bep20.json +0 -1
- package/src/data/exchange/bep20.ts +0 -7
- package/src/data/exchange/coin-hash.json +0 -1
- package/src/data/exchange/coins.json +0 -1
- package/src/data/exchange/coins.ts +0 -7
- package/src/data/exchange/erc20-hash.json +0 -1
- package/src/data/exchange/erc20.json +0 -1
- package/src/data/exchange/erc20.ts +0 -7
- package/src/data/exchange/polygon-erc20-hash.json +0 -1
- package/src/data/exchange/polygon-erc20.json +0 -1
- package/src/data/exchange/polygon-erc20.ts +0 -7
- package/src/data/exchange/trc20-hash.json +0 -1
- package/src/data/exchange/trc20.json +0 -1
- package/src/data/exchange/trc20.ts +0 -7
- package/src/exchange.ts +0 -29
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"\"59079514dcbf03065e499f938fbf00d0\""
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trc20.d.ts","sourceRoot":"","sources":["../../../src/data/exchange/trc20.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;;AAIpD,wBAA4C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trc20.js","sourceRoot":"","sources":["../../../src/data/exchange/trc20.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,eAAe,SAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[["tron/trc20/tafjulxivgt4qwk6uzwjqwzxtsagaqnvp4", "034254540454726f6e050342545412", "304402201cd456ea2f700539e89d14ca0879d2c72ad7c11147b9af64272c96a1f28855ef0220667d95f3f82e5e200a34965927e290b5e8b15619e2e84c406a57d181f2e26349"], ["tron/trc20/tcfll5dx5zjdknwuesxxi1vpwjlvmwzzy9", "034a53540454726f6e05034a535412", "3045022100ba15e17dcab737c29b3d0efdfc17ae4c22aa10163b4c2af71041da5def680d28022017d751e1ddecd3cc13e3a2ea44e763a9caebbe3187388c0708d00804105ec096"], ["tron/trc20/tekxitehnzsmse2xqrbj4w32run966rdz8", "04555344430454726f6e06045553444306", "304402204be1e0f44e8676d9e1db37d58c97d580e6c2201fa94db1ef1f216a277719f42f02200531b3d2b54a8cc4ddceec98b0976136876279dd1b7aa8210a949c62f268451d"], ["tron/trc20/tfczxzphnthnsqr5by8tvxsdcfrrz6cpnq", "034e46540454726f6e05034e465406", "304402206b7138337e4f6f484cba66aa02fafbdbda6f50002dd223c5ef7e716fe1c711c902200453ecdeff836805070ee3b69920329d1abc1882e4d1226d691349652a9d68d3"], ["tron/trc20/tla2f6vpqdgre67v1736s7bj8ray5wyju7", "0357494e0454726f6e050357494e06", "3044022075503ae657bca4515167b388d5ed69244a5f0db215deee6f60b61c14c7f3909d022036645e8cb38ec0dc214dcc7646a738ede828e9f6a2110602cd6a763f053d8c5c"], ["tron/trc20/tmwfhyxljarupew6421aqxl4zezprfgkgt", "045553444a0454726f6e06045553444a12", "3045022100ab7f78bcc5ba489649b348e34b6999064208d91d55bac790042bfa875ae301bd022072641a40363cb79758abf27d5eb7c392518f922e1e62b20516b1e393a1fff645"], ["tron/trc20/tpymhehy5n8tcefygqw2rpxsghsfzghpdn", "04555344440454726f6e06045553444412", "3044022006029cccc018681ae19d1f3bd0add878d53d04da0b637bd525446ca3ecae414f02205727eaaa3a756558efecedbfae5b419225ffa0897f31ee72a353bf28a432fa17"], ["tron/trc20/tr7nhqjekqxgtci8q8zy4pl8otszgjlj6t", "04555344540454726f6e06045553445406", "3045022100d84f1747bf9c805b252883bb089a51071668f9d8a2b62c5ee2b67cb95d25696402206d65a79792802b95b514a3e8903346a7b9029fdf36c32032bb56953a4e2f95d5"], ["tron/trc20/tssmhyev2ue9qyh95dqyocunczel1nvu3s", "0353554e0454726f6e050353554e12", "3045022100819c2befab52324aaaef0ce1456811ff92ae8fe60994ec83a37f7584a86e1a4102203461477d49bcac83ac74a880975e9df6f1bf9a2c5ef165f4c6c339b782cdac0e"], ["tron/trc20/tupmherzl2fhh4svnulabnkloks4gjc1f4", "04545553440454726f6e06045455534412", "3045022100819c49a548f23eb0f77593ff47afd3e1b27821a63019e32f0cf21d55a674c69d0220130bd6b2300a18fc3dfc2035e09ea40dd067e125857b59850a640266d7151c3a"], ["tron/trc20/tvj7rnvhy6thbm7bwdse9g6gxwkhjhdnzs", "034b4c560454726f6e05034b4c5606", "3045022100dc9fd05e1dd6d8236743bbdc8ffbbf34b0393ed82e2c23c5d720e843e4223ae702202f2ef7c95830349f1d78fa74d3230315205dae97bf1b76f61cee0228482fa087"], ["tron/trc20/tzjmk51tp3yeetw7phrp581a7h3vzldfsa", "04544555520454726f6e06045445555204", "3045022100af1d7b15be70cc6344079e31cbf7e1b5817d97e67a4943139f0abaf2a82f24f502200c91447e4ffa93934542db3c3cdf0b93e048d2cb9c931aad229f49911c5d2f2d"]]
|
package/lib-es/exchange.d.ts
DELETED
package/lib-es/exchange.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exchange.d.ts","sourceRoot":"","sources":["../src/exchange.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,eAAO,MAAM,0BAA0B,OACjC,MAAM,KAER;IACE,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;CACnB,GACD,IAAI,GACJ,SAAwB,CAAC"}
|
package/lib-es/exchange.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import erc20 from "./data/exchange/erc20";
|
|
2
|
-
import coins from "./data/exchange/coins";
|
|
3
|
-
import bep20 from "./data/exchange/bep20";
|
|
4
|
-
import trc20 from "./data/exchange/trc20";
|
|
5
|
-
import polygon20 from "./data/exchange/polygon-erc20";
|
|
6
|
-
const all = [...coins, ...erc20, ...bep20, ...trc20, ...polygon20];
|
|
7
|
-
const configs = {};
|
|
8
|
-
for (const [id, config, signature] of all) {
|
|
9
|
-
configs[id] = {
|
|
10
|
-
config,
|
|
11
|
-
signature,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export const findExchangeCurrencyConfig = (id) => configs[id];
|
|
18
|
-
//# sourceMappingURL=exchange.js.map
|
package/lib-es/exchange.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exchange.js","sourceRoot":"","sources":["../src/exchange.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,SAAS,MAAM,+BAA+B,CAAC;AAEtD,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,GAAG,SAAS,CAAC,CAAC;AACnE,MAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,KAAK,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,GAAG;QACZ,MAAM;QACN,SAAS;KACV,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,EAAU,EAQE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"\"0ebfdae5c996ad89d0f009e300e3a652\""
|