@ledgerhq/coin-framework 2.4.0-nightly.2 → 2.4.0
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 +16 -12
- package/lib/mocks/fixtures/nfts.d.ts +21 -0
- package/lib/mocks/fixtures/nfts.d.ts.map +1 -1
- package/lib/mocks/fixtures/nfts.js +65 -21
- package/lib/mocks/fixtures/nfts.js.map +1 -1
- package/lib/mocks/fixtures/nfts.test.js +2 -11
- package/lib/mocks/fixtures/nfts.test.js.map +1 -1
- package/lib-es/mocks/fixtures/nfts.d.ts +21 -0
- package/lib-es/mocks/fixtures/nfts.d.ts.map +1 -1
- package/lib-es/mocks/fixtures/nfts.js +64 -20
- package/lib-es/mocks/fixtures/nfts.js.map +1 -1
- package/lib-es/mocks/fixtures/nfts.test.js +1 -10
- package/lib-es/mocks/fixtures/nfts.test.js.map +1 -1
- package/package.json +5 -5
- package/src/mocks/fixtures/nfts.test.ts +1 -18
- package/src/mocks/fixtures/nfts.ts +67 -29
- package/lib/mocks/fixtures/nftsSamples.d.ts +0 -50
- package/lib/mocks/fixtures/nftsSamples.d.ts.map +0 -1
- package/lib/mocks/fixtures/nftsSamples.js +0 -138
- package/lib/mocks/fixtures/nftsSamples.js.map +0 -1
- package/lib-es/mocks/fixtures/nftsSamples.d.ts +0 -50
- package/lib-es/mocks/fixtures/nftsSamples.d.ts.map +0 -1
- package/lib-es/mocks/fixtures/nftsSamples.js +0 -135
- package/lib-es/mocks/fixtures/nftsSamples.js.map +0 -1
- package/src/mocks/fixtures/nftsSamples.ts +0 -140
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-framework@2.4.0
|
|
2
|
+
> @ledgerhq/coin-framework@2.4.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-framework
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
# @ledgerhq/coin-framework
|
|
2
2
|
|
|
3
|
-
## 2.4.0
|
|
3
|
+
## 2.4.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
7
|
+
- [#9440](https://github.com/LedgerHQ/ledger-live/pull/9440) [`5f27549`](https://github.com/LedgerHQ/ledger-live/commit/5f275498e80060f98238a54e8ae3e2c94bfd7c91) Thanks [@qperrot](https://github.com/qperrot)! - feat estimateFees for alpacha
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- Updated dependencies [[`32f2a0c`](https://github.com/LedgerHQ/ledger-live/commit/32f2a0cf073e5c1a5d65cbe44e69660f8f510dd7)]:
|
|
12
|
-
- @ledgerhq/live-env@2.7.0-nightly.0
|
|
13
|
-
- @ledgerhq/cryptoassets@13.13.1-nightly.0
|
|
14
|
-
- @ledgerhq/live-network@2.0.6-nightly.0
|
|
9
|
+
- [#9466](https://github.com/LedgerHQ/ledger-live/pull/9466) [`e2630cb`](https://github.com/LedgerHQ/ledger-live/commit/e2630cbec8d94ae037b2bf85cfa200a277ae739f) Thanks [@qperrot](https://github.com/qperrot)! - Tron craftTransaction alpaca implementation
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
- [#9275](https://github.com/LedgerHQ/ledger-live/pull/9275) [`b8fca38`](https://github.com/LedgerHQ/ledger-live/commit/b8fca386fa07cf393109a1928e92dfc790f9c286) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Update Alpaca api to include generic token type and update list operations
|
|
17
12
|
|
|
18
13
|
### Patch Changes
|
|
19
14
|
|
|
20
|
-
- Updated dependencies [[`
|
|
21
|
-
- @ledgerhq/types-live@6.64.0
|
|
15
|
+
- Updated dependencies [[`fa8b10c`](https://github.com/LedgerHQ/ledger-live/commit/fa8b10cac5603eedd7c2309d2bb544a7d2d1a1a8), [`c15d7ea`](https://github.com/LedgerHQ/ledger-live/commit/c15d7ea48e41168726a90a17809175aee5bfa940)]:
|
|
16
|
+
- @ledgerhq/types-live@6.64.0
|
|
22
17
|
|
|
23
|
-
## 2.4.0-
|
|
18
|
+
## 2.4.0-next.0
|
|
24
19
|
|
|
25
20
|
### Minor Changes
|
|
26
21
|
|
|
22
|
+
- [#9440](https://github.com/LedgerHQ/ledger-live/pull/9440) [`5f27549`](https://github.com/LedgerHQ/ledger-live/commit/5f275498e80060f98238a54e8ae3e2c94bfd7c91) Thanks [@qperrot](https://github.com/qperrot)! - feat estimateFees for alpacha
|
|
23
|
+
|
|
27
24
|
- [#9466](https://github.com/LedgerHQ/ledger-live/pull/9466) [`e2630cb`](https://github.com/LedgerHQ/ledger-live/commit/e2630cbec8d94ae037b2bf85cfa200a277ae739f) Thanks [@qperrot](https://github.com/qperrot)! - Tron craftTransaction alpaca implementation
|
|
28
25
|
|
|
26
|
+
- [#9275](https://github.com/LedgerHQ/ledger-live/pull/9275) [`b8fca38`](https://github.com/LedgerHQ/ledger-live/commit/b8fca386fa07cf393109a1928e92dfc790f9c286) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Update Alpaca api to include generic token type and update list operations
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [[`fa8b10c`](https://github.com/LedgerHQ/ledger-live/commit/fa8b10cac5603eedd7c2309d2bb544a7d2d1a1a8), [`c15d7ea`](https://github.com/LedgerHQ/ledger-live/commit/c15d7ea48e41168726a90a17809175aee5bfa940)]:
|
|
31
|
+
- @ledgerhq/types-live@6.64.0-next.0
|
|
32
|
+
|
|
29
33
|
## 2.3.0
|
|
30
34
|
|
|
31
35
|
### Minor Changes
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
|
|
2
2
|
import type { Account, AccountLike, NFTStandard, Operation, ProtoNFT } from "@ledgerhq/types-live";
|
|
3
3
|
import Prando from "prando";
|
|
4
|
+
export declare const NFTs: {
|
|
5
|
+
id: string;
|
|
6
|
+
collection: {
|
|
7
|
+
contract: string;
|
|
8
|
+
standard: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
export declare const NFTs_ETHEREUM_STAX_METADATA: {
|
|
12
|
+
id: string;
|
|
13
|
+
collection: {
|
|
14
|
+
contract: string;
|
|
15
|
+
standard: string;
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
18
|
+
export declare const NFTs_POLYGON: {
|
|
19
|
+
id: string;
|
|
20
|
+
collection: {
|
|
21
|
+
contract: string;
|
|
22
|
+
standard: string;
|
|
23
|
+
};
|
|
24
|
+
}[];
|
|
4
25
|
export declare function createFixtureNFT(accountId: string, currency?: CryptoCurrency, useStaxNFTs?: boolean): ProtoNFT;
|
|
5
26
|
/**
|
|
6
27
|
* @memberof mock/account
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfts.d.ts","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EAEX,WAAW,EACX,SAAS,EACT,QAAQ,EACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,MAAM,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"nfts.d.ts","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EAEX,WAAW,EACX,SAAS,EACT,QAAQ,EACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAS5B,eAAO,MAAM,IAAI;;;;;;GA6BhB,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;GAQvC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;GAsBxB,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,cAAuC,EACjD,WAAW,CAAC,EAAE,OAAO,GACpB,QAAQ,CAkBV;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EAAE,OAAO,EACrB,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,MAAM,GACd,SAAS,CA8CX"}
|
|
@@ -3,35 +3,79 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.genNFTOperation = exports.createFixtureNFT = void 0;
|
|
6
|
+
exports.genNFTOperation = exports.createFixtureNFT = exports.NFTs_POLYGON = exports.NFTs_ETHEREUM_STAX_METADATA = exports.NFTs = void 0;
|
|
7
7
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
8
|
const cryptoassets_1 = require("@ledgerhq/cryptoassets");
|
|
9
9
|
const serialization_1 = require("../../serialization");
|
|
10
10
|
const helpers_1 = require("../helpers");
|
|
11
11
|
const nftId_1 = require("../../nft/nftId");
|
|
12
|
-
const nftsSamples_1 = require("./nftsSamples");
|
|
13
12
|
const defaultEthCryptoFamily = cryptoassets_1.cryptocurrenciesById["ethereum"];
|
|
14
13
|
const MAX_SUPPLY = 1000;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
exports.NFTs = [
|
|
15
|
+
{
|
|
16
|
+
id: "Pudgy Penguin",
|
|
17
|
+
collection: {
|
|
18
|
+
contract: "0xbd3531da5cf5857e7cfaa92426877b022e612cf8",
|
|
19
|
+
standard: "ERC721",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "Kanpai Panda",
|
|
24
|
+
collection: {
|
|
25
|
+
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
26
|
+
standard: "ERC721",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "Bored Ape Yacht Club",
|
|
31
|
+
collection: {
|
|
32
|
+
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
33
|
+
standard: "ERC721",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "Imaginary Ones",
|
|
38
|
+
collection: {
|
|
39
|
+
contract: "0x716f29b8972d551294d9e02b3eb0fc1107fbf4aa",
|
|
40
|
+
standard: "ERC721",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
// Ethereum NFTs with the special "staxImage" metadata designed to fit the Ledger Stax screen
|
|
45
|
+
exports.NFTs_ETHEREUM_STAX_METADATA = [
|
|
46
|
+
{
|
|
47
|
+
id: "Inspired By Ledger",
|
|
48
|
+
collection: {
|
|
49
|
+
contract: "0x0b51eb9d0e54c562fedc07ceba453f05b70c4b79",
|
|
50
|
+
standard: "ERC1155",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
exports.NFTs_POLYGON = [
|
|
55
|
+
{
|
|
56
|
+
id: "Crypto Unicorns Market",
|
|
57
|
+
collection: {
|
|
58
|
+
contract: "0xdc0479cc5bba033b3e7de9f178607150b3abce1f",
|
|
59
|
+
standard: "ERC721",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "Chicken Derby",
|
|
64
|
+
collection: {
|
|
65
|
+
contract: "0x8634666ba15ada4bbc83b9dbf285f73d9e46e4c2",
|
|
66
|
+
standard: "ERC721",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "y00ts",
|
|
71
|
+
collection: {
|
|
72
|
+
contract: "0x670fd103b1a08628e9557cd66b87ded841115190",
|
|
73
|
+
standard: "ERC721",
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
];
|
|
33
77
|
function createFixtureNFT(accountId, currency = defaultEthCryptoFamily, useStaxNFTs) {
|
|
34
|
-
const nfts =
|
|
78
|
+
const nfts = currency.id === "ethereum" ? (useStaxNFTs ? exports.NFTs_ETHEREUM_STAX_METADATA : exports.NFTs) : exports.NFTs_POLYGON;
|
|
35
79
|
const index = Math.floor(Math.random() * nfts.length);
|
|
36
80
|
const tokenId = useStaxNFTs ? String(13) : String(Math.floor(Math.random() * MAX_SUPPLY) + 1);
|
|
37
81
|
const nft = nfts[index];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfts.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAUrC,yDAA8D;AAE9D,uDAAyD;AACzD,wCAAgD;AAChD,2CAA8C;
|
|
1
|
+
{"version":3,"file":"nfts.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAUrC,yDAA8D;AAE9D,uDAAyD;AACzD,wCAAgD;AAChD,2CAA8C;AAE9C,MAAM,sBAAsB,GAAG,mCAAoB,CAAC,UAAU,CAAC,CAAC;AAEhE,MAAM,UAAU,GAAG,IAAI,CAAC;AAEX,QAAA,IAAI,GAAG;IAClB;QACE,EAAE,EAAE,eAAe;QACnB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EA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KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,oBAAU,EAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAClF,SAAS,EAAE,IAAA,gBAAM,EAAC,EAAE,EAAE,GAAG,CAAC;QAC1B,WAAW,EAAE,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAI,IAAY,CAAC,GAAG,MAAM,CAAC;QACzF,SAAS,EAAE,OAAO,CAAC,EAAE;QACrB,IAAI;QACJ,KAAK,EAAE,EAAE;QACT,QAAQ;QACR,QAAQ;QACR,OAAO;KACR,CAAC;IAEF,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QAEhC,IAAI,WAAW,EAAE,CAAC;YAChB,qFAAqF;YACrF,EAAE,CAAC,aAAa,GAAG,IAAA,kCAAkB,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAtDD,0CAsDC"}
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const index_1 = require("@ledgerhq/cryptoassets/index");
|
|
4
4
|
const nfts_1 = require("./nfts");
|
|
5
|
-
const nftsSamples_1 = require("./nftsSamples");
|
|
6
5
|
const POL = (0, index_1.getCryptoCurrencyById)("polygon");
|
|
7
|
-
const BASE = (0, index_1.getCryptoCurrencyById)("base");
|
|
8
|
-
const SOLANA = (0, index_1.getCryptoCurrencyById)("solana");
|
|
9
6
|
describe("nfts fixtures", () => {
|
|
10
7
|
it("createFixtureNFT", () => {
|
|
11
8
|
const FIXTURE = (0, nfts_1.createFixtureNFT)("account-mock");
|
|
@@ -14,16 +11,10 @@ describe("nfts fixtures", () => {
|
|
|
14
11
|
expect(FIXTURE.contract).not.toBeUndefined();
|
|
15
12
|
expect(FIXTURE.tokenId).not.toBeUndefined();
|
|
16
13
|
expect(FIXTURE.id).toContain("account-mock");
|
|
17
|
-
expect(
|
|
14
|
+
expect(nfts_1.NFTs.map(nft => nft.collection.contract).includes(FIXTURE.contract)).toBeTruthy();
|
|
18
15
|
const FIXTURE_POL = (0, nfts_1.createFixtureNFT)("account-mock-pol", POL);
|
|
19
16
|
expect(FIXTURE_POL.currencyId).toEqual("polygon");
|
|
20
|
-
expect(
|
|
21
|
-
const FIXTURE_BASE = (0, nfts_1.createFixtureNFT)("account-mock-base", BASE);
|
|
22
|
-
expect(FIXTURE_BASE.currencyId).toEqual("base");
|
|
23
|
-
expect(nftsSamples_1.NFTs_BASE.map(nft => nft.collection.contract).includes(FIXTURE_BASE.contract)).toBeTruthy();
|
|
24
|
-
const FIXTURE_SOLANA = (0, nfts_1.createFixtureNFT)("account-mock-solana", SOLANA);
|
|
25
|
-
expect(FIXTURE_SOLANA.currencyId).toEqual("solana");
|
|
26
|
-
expect(nftsSamples_1.NFTs_SOLANA.map(nft => nft.collection.contract).includes(FIXTURE_SOLANA.contract)).toBeTruthy();
|
|
17
|
+
expect(nfts_1.NFTs_POLYGON.map(nft => nft.collection.contract).includes(FIXTURE_POL.contract)).toBeTruthy();
|
|
27
18
|
});
|
|
28
19
|
});
|
|
29
20
|
//# sourceMappingURL=nfts.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfts.test.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.test.ts"],"names":[],"mappings":";;AAAA,wDAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"nfts.test.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.test.ts"],"names":[],"mappings":";;AAAA,wDAAqE;AACrE,iCAA8D;AAE9D,MAAM,GAAG,GAAG,IAAA,6BAAqB,EAAC,SAAS,CAAC,CAAC;AAC7C,QAAQ,CAAC,eAAe,EAAE,G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3
3
|
import Prando from "prando";
|
|
4
|
+
export declare const NFTs: {
|
|
5
|
+
id: string;
|
|
6
|
+
collection: {
|
|
7
|
+
contract: string;
|
|
8
|
+
standard: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
export declare const NFTs_ETHEREUM_STAX_METADATA: {
|
|
12
|
+
id: string;
|
|
13
|
+
collection: {
|
|
14
|
+
contract: string;
|
|
15
|
+
standard: string;
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
18
|
+
export declare const NFTs_POLYGON: {
|
|
19
|
+
id: string;
|
|
20
|
+
collection: {
|
|
21
|
+
contract: string;
|
|
22
|
+
standard: string;
|
|
23
|
+
};
|
|
24
|
+
}[];
|
|
4
25
|
export declare function createFixtureNFT(accountId: string, currency?: CryptoCurrency, useStaxNFTs?: boolean): ProtoNFT;
|
|
5
26
|
/**
|
|
6
27
|
* @memberof mock/account
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfts.d.ts","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EAEX,WAAW,EACX,SAAS,EACT,QAAQ,EACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,MAAM,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"nfts.d.ts","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EAEX,WAAW,EACX,SAAS,EACT,QAAQ,EACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAS5B,eAAO,MAAM,IAAI;;;;;;GA6BhB,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;GAQvC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;GAsBxB,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,cAAuC,EACjD,WAAW,CAAC,EAAE,OAAO,GACpB,QAAQ,CAkBV;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EAAE,OAAO,EACrB,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,MAAM,GACd,SAAS,CA8CX"}
|
|
@@ -3,29 +3,73 @@ import { cryptocurrenciesById } from "@ledgerhq/cryptoassets";
|
|
|
3
3
|
import { inferSubOperations } from "../../serialization";
|
|
4
4
|
import { genAddress, genHex } from "../helpers";
|
|
5
5
|
import { encodeNftId } from "../../nft/nftId";
|
|
6
|
-
import { NFTs_ETHEREUM_STAX_METADATA, NFTs, NFTs_POLYGON, NFTs_ARBITRUM, NFTs_BASE, NFTs_SOLANA, NFTs_OPTIMISM, } from "./nftsSamples";
|
|
7
6
|
const defaultEthCryptoFamily = cryptocurrenciesById["ethereum"];
|
|
8
7
|
const MAX_SUPPLY = 1000;
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
export const NFTs = [
|
|
9
|
+
{
|
|
10
|
+
id: "Pudgy Penguin",
|
|
11
|
+
collection: {
|
|
12
|
+
contract: "0xbd3531da5cf5857e7cfaa92426877b022e612cf8",
|
|
13
|
+
standard: "ERC721",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: "Kanpai Panda",
|
|
18
|
+
collection: {
|
|
19
|
+
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
20
|
+
standard: "ERC721",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "Bored Ape Yacht Club",
|
|
25
|
+
collection: {
|
|
26
|
+
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
27
|
+
standard: "ERC721",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "Imaginary Ones",
|
|
32
|
+
collection: {
|
|
33
|
+
contract: "0x716f29b8972d551294d9e02b3eb0fc1107fbf4aa",
|
|
34
|
+
standard: "ERC721",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
// Ethereum NFTs with the special "staxImage" metadata designed to fit the Ledger Stax screen
|
|
39
|
+
export const NFTs_ETHEREUM_STAX_METADATA = [
|
|
40
|
+
{
|
|
41
|
+
id: "Inspired By Ledger",
|
|
42
|
+
collection: {
|
|
43
|
+
contract: "0x0b51eb9d0e54c562fedc07ceba453f05b70c4b79",
|
|
44
|
+
standard: "ERC1155",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
export const NFTs_POLYGON = [
|
|
49
|
+
{
|
|
50
|
+
id: "Crypto Unicorns Market",
|
|
51
|
+
collection: {
|
|
52
|
+
contract: "0xdc0479cc5bba033b3e7de9f178607150b3abce1f",
|
|
53
|
+
standard: "ERC721",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "Chicken Derby",
|
|
58
|
+
collection: {
|
|
59
|
+
contract: "0x8634666ba15ada4bbc83b9dbf285f73d9e46e4c2",
|
|
60
|
+
standard: "ERC721",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "y00ts",
|
|
65
|
+
collection: {
|
|
66
|
+
contract: "0x670fd103b1a08628e9557cd66b87ded841115190",
|
|
67
|
+
standard: "ERC721",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
];
|
|
27
71
|
export function createFixtureNFT(accountId, currency = defaultEthCryptoFamily, useStaxNFTs) {
|
|
28
|
-
const nfts =
|
|
72
|
+
const nfts = currency.id === "ethereum" ? (useStaxNFTs ? NFTs_ETHEREUM_STAX_METADATA : NFTs) : NFTs_POLYGON;
|
|
29
73
|
const index = Math.floor(Math.random() * nfts.length);
|
|
30
74
|
const tokenId = useStaxNFTs ? String(13) : String(Math.floor(Math.random() * MAX_SUPPLY) + 1);
|
|
31
75
|
const nft = nfts[index];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfts.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAUrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"nfts.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAUrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,sBAAsB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAEhE,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;QACE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AC,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/E,UAAU,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAClF,SAAS,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC;QAC1B,WAAW,EAAE,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAI,IAAY,CAAC,GAAG,MAAM,CAAC;QACzF,SAAS,EAAE,OAAO,CAAC,EAAE;QACrB,IAAI;QACJ,KAAK,EAAE,EAAE;QACT,QAAQ;QACR,QAAQ;QACR,OAAO;KACR,CAAC;IAEF,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QAEhC,IAAI,WAAW,EAAE,CAAC;YAChB,qFAAqF;YACrF,EAAE,CAAC,aAAa,GAAG,kBAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/index";
|
|
2
|
-
import { createFixtureNFT } from "./nfts";
|
|
3
|
-
import { NFTs, NFTs_BASE, NFTs_POLYGON, NFTs_SOLANA } from "./nftsSamples";
|
|
2
|
+
import { createFixtureNFT, NFTs, NFTs_POLYGON } from "./nfts";
|
|
4
3
|
const POL = getCryptoCurrencyById("polygon");
|
|
5
|
-
const BASE = getCryptoCurrencyById("base");
|
|
6
|
-
const SOLANA = getCryptoCurrencyById("solana");
|
|
7
4
|
describe("nfts fixtures", () => {
|
|
8
5
|
it("createFixtureNFT", () => {
|
|
9
6
|
const FIXTURE = createFixtureNFT("account-mock");
|
|
@@ -16,12 +13,6 @@ describe("nfts fixtures", () => {
|
|
|
16
13
|
const FIXTURE_POL = createFixtureNFT("account-mock-pol", POL);
|
|
17
14
|
expect(FIXTURE_POL.currencyId).toEqual("polygon");
|
|
18
15
|
expect(NFTs_POLYGON.map(nft => nft.collection.contract).includes(FIXTURE_POL.contract)).toBeTruthy();
|
|
19
|
-
const FIXTURE_BASE = createFixtureNFT("account-mock-base", BASE);
|
|
20
|
-
expect(FIXTURE_BASE.currencyId).toEqual("base");
|
|
21
|
-
expect(NFTs_BASE.map(nft => nft.collection.contract).includes(FIXTURE_BASE.contract)).toBeTruthy();
|
|
22
|
-
const FIXTURE_SOLANA = createFixtureNFT("account-mock-solana", SOLANA);
|
|
23
|
-
expect(FIXTURE_SOLANA.currencyId).toEqual("solana");
|
|
24
|
-
expect(NFTs_SOLANA.map(nft => nft.collection.contract).includes(FIXTURE_SOLANA.contract)).toBeTruthy();
|
|
25
16
|
});
|
|
26
17
|
});
|
|
27
18
|
//# sourceMappingURL=nfts.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfts.test.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"nfts.test.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nfts.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE9D,MAAM,GAAG,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAC7C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC1B,MAAM,OAAO,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACjD,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC/C,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QAC7C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAE7C,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;QAEzF,MAAM,WAAW,GAAG,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;QAC9D,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAElD,MAAM,CACJ,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAChF,CAAC,UAAU,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-framework",
|
|
3
|
-
"version": "2.4.0
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Ledger framework for Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"lodash": "^4.17.21",
|
|
92
92
|
"prando": "^6.0.1",
|
|
93
93
|
"rxjs": "^7.8.1",
|
|
94
|
-
"@ledgerhq/cryptoassets": "^13.13.
|
|
94
|
+
"@ledgerhq/cryptoassets": "^13.13.0",
|
|
95
95
|
"@ledgerhq/devices": "8.4.4",
|
|
96
96
|
"@ledgerhq/errors": "^6.19.1",
|
|
97
|
-
"@ledgerhq/live-env": "^2.
|
|
98
|
-
"@ledgerhq/live-network": "^2.0.
|
|
97
|
+
"@ledgerhq/live-env": "^2.6.0",
|
|
98
|
+
"@ledgerhq/live-network": "^2.0.5",
|
|
99
99
|
"@ledgerhq/logs": "^6.12.0",
|
|
100
100
|
"@ledgerhq/types-cryptoassets": "^7.20.0",
|
|
101
|
-
"@ledgerhq/types-live": "^6.64.0
|
|
101
|
+
"@ledgerhq/types-live": "^6.64.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/invariant": "^2.2.2",
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/index";
|
|
2
|
-
import { createFixtureNFT } from "./nfts";
|
|
3
|
-
import { NFTs, NFTs_BASE, NFTs_POLYGON, NFTs_SOLANA } from "./nftsSamples";
|
|
2
|
+
import { createFixtureNFT, NFTs, NFTs_POLYGON } from "./nfts";
|
|
4
3
|
|
|
5
4
|
const POL = getCryptoCurrencyById("polygon");
|
|
6
|
-
const BASE = getCryptoCurrencyById("base");
|
|
7
|
-
const SOLANA = getCryptoCurrencyById("solana");
|
|
8
5
|
describe("nfts fixtures", () => {
|
|
9
6
|
it("createFixtureNFT", () => {
|
|
10
7
|
const FIXTURE = createFixtureNFT("account-mock");
|
|
@@ -22,19 +19,5 @@ describe("nfts fixtures", () => {
|
|
|
22
19
|
expect(
|
|
23
20
|
NFTs_POLYGON.map(nft => nft.collection.contract).includes(FIXTURE_POL.contract),
|
|
24
21
|
).toBeTruthy();
|
|
25
|
-
|
|
26
|
-
const FIXTURE_BASE = createFixtureNFT("account-mock-base", BASE);
|
|
27
|
-
expect(FIXTURE_BASE.currencyId).toEqual("base");
|
|
28
|
-
|
|
29
|
-
expect(
|
|
30
|
-
NFTs_BASE.map(nft => nft.collection.contract).includes(FIXTURE_BASE.contract),
|
|
31
|
-
).toBeTruthy();
|
|
32
|
-
|
|
33
|
-
const FIXTURE_SOLANA = createFixtureNFT("account-mock-solana", SOLANA);
|
|
34
|
-
expect(FIXTURE_SOLANA.currencyId).toEqual("solana");
|
|
35
|
-
|
|
36
|
-
expect(
|
|
37
|
-
NFTs_SOLANA.map(nft => nft.collection.contract).includes(FIXTURE_SOLANA.contract),
|
|
38
|
-
).toBeTruthy();
|
|
39
22
|
});
|
|
40
23
|
});
|
|
@@ -13,46 +13,84 @@ import Prando from "prando";
|
|
|
13
13
|
import { inferSubOperations } from "../../serialization";
|
|
14
14
|
import { genAddress, genHex } from "../helpers";
|
|
15
15
|
import { encodeNftId } from "../../nft/nftId";
|
|
16
|
-
import {
|
|
17
|
-
NFTs_ETHEREUM_STAX_METADATA,
|
|
18
|
-
NFTs,
|
|
19
|
-
NFTs_POLYGON,
|
|
20
|
-
NFTs_ARBITRUM,
|
|
21
|
-
NFTs_BASE,
|
|
22
|
-
NFTs_SOLANA,
|
|
23
|
-
NFTs_OPTIMISM,
|
|
24
|
-
} from "./nftsSamples";
|
|
25
16
|
|
|
26
17
|
const defaultEthCryptoFamily = cryptocurrenciesById["ethereum"];
|
|
27
18
|
|
|
28
19
|
const MAX_SUPPLY = 1000;
|
|
29
20
|
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
21
|
+
export const NFTs = [
|
|
22
|
+
{
|
|
23
|
+
id: "Pudgy Penguin",
|
|
24
|
+
collection: {
|
|
25
|
+
contract: "0xbd3531da5cf5857e7cfaa92426877b022e612cf8",
|
|
26
|
+
standard: "ERC721",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "Kanpai Panda",
|
|
31
|
+
collection: {
|
|
32
|
+
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
33
|
+
standard: "ERC721",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "Bored Ape Yacht Club",
|
|
38
|
+
collection: {
|
|
39
|
+
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
40
|
+
standard: "ERC721",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "Imaginary Ones",
|
|
45
|
+
collection: {
|
|
46
|
+
contract: "0x716f29b8972d551294d9e02b3eb0fc1107fbf4aa",
|
|
47
|
+
standard: "ERC721",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
// Ethereum NFTs with the special "staxImage" metadata designed to fit the Ledger Stax screen
|
|
53
|
+
export const NFTs_ETHEREUM_STAX_METADATA = [
|
|
54
|
+
{
|
|
55
|
+
id: "Inspired By Ledger",
|
|
56
|
+
collection: {
|
|
57
|
+
contract: "0x0b51eb9d0e54c562fedc07ceba453f05b70c4b79",
|
|
58
|
+
standard: "ERC1155",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
export const NFTs_POLYGON = [
|
|
64
|
+
{
|
|
65
|
+
id: "Crypto Unicorns Market",
|
|
66
|
+
collection: {
|
|
67
|
+
contract: "0xdc0479cc5bba033b3e7de9f178607150b3abce1f",
|
|
68
|
+
standard: "ERC721",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "Chicken Derby",
|
|
73
|
+
collection: {
|
|
74
|
+
contract: "0x8634666ba15ada4bbc83b9dbf285f73d9e46e4c2",
|
|
75
|
+
standard: "ERC721",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "y00ts",
|
|
80
|
+
collection: {
|
|
81
|
+
contract: "0x670fd103b1a08628e9557cd66b87ded841115190",
|
|
82
|
+
standard: "ERC721",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
];
|
|
48
86
|
|
|
49
87
|
export function createFixtureNFT(
|
|
50
88
|
accountId: string,
|
|
51
89
|
currency: CryptoCurrency = defaultEthCryptoFamily,
|
|
52
90
|
useStaxNFTs?: boolean,
|
|
53
91
|
): ProtoNFT {
|
|
54
|
-
const nfts =
|
|
55
|
-
|
|
92
|
+
const nfts =
|
|
93
|
+
currency.id === "ethereum" ? (useStaxNFTs ? NFTs_ETHEREUM_STAX_METADATA : NFTs) : NFTs_POLYGON;
|
|
56
94
|
const index = Math.floor(Math.random() * nfts.length);
|
|
57
95
|
const tokenId = useStaxNFTs ? String(13) : String(Math.floor(Math.random() * MAX_SUPPLY) + 1);
|
|
58
96
|
const nft = nfts[index];
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const NFTs: {
|
|
2
|
-
id: string;
|
|
3
|
-
collection: {
|
|
4
|
-
contract: string;
|
|
5
|
-
standard: string;
|
|
6
|
-
};
|
|
7
|
-
}[];
|
|
8
|
-
export declare const NFTs_ETHEREUM_STAX_METADATA: {
|
|
9
|
-
id: string;
|
|
10
|
-
collection: {
|
|
11
|
-
contract: string;
|
|
12
|
-
standard: string;
|
|
13
|
-
};
|
|
14
|
-
}[];
|
|
15
|
-
export declare const NFTs_POLYGON: {
|
|
16
|
-
id: string;
|
|
17
|
-
collection: {
|
|
18
|
-
contract: string;
|
|
19
|
-
standard: string;
|
|
20
|
-
};
|
|
21
|
-
}[];
|
|
22
|
-
export declare const NFTs_ARBITRUM: {
|
|
23
|
-
id: string;
|
|
24
|
-
collection: {
|
|
25
|
-
contract: string;
|
|
26
|
-
standard: string;
|
|
27
|
-
};
|
|
28
|
-
}[];
|
|
29
|
-
export declare const NFTs_BASE: {
|
|
30
|
-
id: string;
|
|
31
|
-
collection: {
|
|
32
|
-
contract: string;
|
|
33
|
-
standard: string;
|
|
34
|
-
};
|
|
35
|
-
}[];
|
|
36
|
-
export declare const NFTs_OPTIMISM: {
|
|
37
|
-
id: string;
|
|
38
|
-
collection: {
|
|
39
|
-
contract: string;
|
|
40
|
-
standard: string;
|
|
41
|
-
};
|
|
42
|
-
}[];
|
|
43
|
-
export declare const NFTs_SOLANA: {
|
|
44
|
-
id: string;
|
|
45
|
-
collection: {
|
|
46
|
-
contract: string;
|
|
47
|
-
standard: string;
|
|
48
|
-
};
|
|
49
|
-
}[];
|
|
50
|
-
//# sourceMappingURL=nftsSamples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nftsSamples.d.ts","sourceRoot":"","sources":["../../../src/mocks/fixtures/nftsSamples.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;GA6BhB,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;GAQvC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;GAsBxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAezB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;GAerB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAsBzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;GAevB,CAAC"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NFTs_SOLANA = exports.NFTs_OPTIMISM = exports.NFTs_BASE = exports.NFTs_ARBITRUM = exports.NFTs_POLYGON = exports.NFTs_ETHEREUM_STAX_METADATA = exports.NFTs = void 0;
|
|
4
|
-
exports.NFTs = [
|
|
5
|
-
{
|
|
6
|
-
id: "Pudgy Penguin",
|
|
7
|
-
collection: {
|
|
8
|
-
contract: "0xbd3531da5cf5857e7cfaa92426877b022e612cf8",
|
|
9
|
-
standard: "ERC721",
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
id: "Kanpai Panda",
|
|
14
|
-
collection: {
|
|
15
|
-
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
16
|
-
standard: "ERC721",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: "Bored Ape Yacht Club",
|
|
21
|
-
collection: {
|
|
22
|
-
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
23
|
-
standard: "ERC721",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: "Imaginary Ones",
|
|
28
|
-
collection: {
|
|
29
|
-
contract: "0x716f29b8972d551294d9e02b3eb0fc1107fbf4aa",
|
|
30
|
-
standard: "ERC721",
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
];
|
|
34
|
-
// Ethereum NFTs with the special "staxImage" metadata designed to fit the Ledger Stax screen
|
|
35
|
-
exports.NFTs_ETHEREUM_STAX_METADATA = [
|
|
36
|
-
{
|
|
37
|
-
id: "Inspired By Ledger",
|
|
38
|
-
collection: {
|
|
39
|
-
contract: "0x0b51eb9d0e54c562fedc07ceba453f05b70c4b79",
|
|
40
|
-
standard: "ERC1155",
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
exports.NFTs_POLYGON = [
|
|
45
|
-
{
|
|
46
|
-
id: "Crypto Unicorns Market",
|
|
47
|
-
collection: {
|
|
48
|
-
contract: "0xdc0479cc5bba033b3e7de9f178607150b3abce1f",
|
|
49
|
-
standard: "ERC721",
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: "Chicken Derby",
|
|
54
|
-
collection: {
|
|
55
|
-
contract: "0x8634666ba15ada4bbc83b9dbf285f73d9e46e4c2",
|
|
56
|
-
standard: "ERC721",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
id: "y00ts",
|
|
61
|
-
collection: {
|
|
62
|
-
contract: "0x670fd103b1a08628e9557cd66b87ded841115190",
|
|
63
|
-
standard: "ERC721",
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
];
|
|
67
|
-
exports.NFTs_ARBITRUM = [
|
|
68
|
-
{
|
|
69
|
-
id: "Footium Clubs",
|
|
70
|
-
collection: {
|
|
71
|
-
contract: "0xd0a8ba528dfe402d34d34f171e5ff3e65bd4c9d4",
|
|
72
|
-
standard: "ERC721",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "Booga Beras",
|
|
77
|
-
collection: {
|
|
78
|
-
contract: "0x6ba79f573edfe305e7dbd79902bc69436e197834",
|
|
79
|
-
standard: "ERC721",
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
exports.NFTs_BASE = [
|
|
84
|
-
{
|
|
85
|
-
id: "PrimeApePlanet",
|
|
86
|
-
collection: {
|
|
87
|
-
contract: "0xa78e2e6f0add0e9b1a9c17cc929270d9ad89478c",
|
|
88
|
-
standard: "ERC721",
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
id: "The CryptoDads",
|
|
93
|
-
collection: {
|
|
94
|
-
contract: "0xB2A0fD738D584B47Bee18DA0f3D7c140bf2d1476",
|
|
95
|
-
standard: "ERC721",
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
];
|
|
99
|
-
exports.NFTs_OPTIMISM = [
|
|
100
|
-
{
|
|
101
|
-
id: "Optimism Ape Yacht Club",
|
|
102
|
-
collection: {
|
|
103
|
-
contract: "0x0deaac29d8a3d4ebbaaa3ecd3cc97c9def00f720",
|
|
104
|
-
standard: "ERC721",
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: "Bored Town",
|
|
109
|
-
collection: {
|
|
110
|
-
contract: "0x8e56343adafa62dac9c9a8ac8c742851b0fb8b03",
|
|
111
|
-
standard: "ERC721",
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: "Apetimism",
|
|
116
|
-
collection: {
|
|
117
|
-
contract: "0x51e5426ede4e2d4c2586371372313b5782387222",
|
|
118
|
-
standard: "ERC721",
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
];
|
|
122
|
-
exports.NFTs_SOLANA = [
|
|
123
|
-
{
|
|
124
|
-
id: "Mad Lads",
|
|
125
|
-
collection: {
|
|
126
|
-
contract: "FfqXxHJwnVLMjjyc7RYNPg49urnR67BaboyXoYSwkeQC",
|
|
127
|
-
standard: "ERC721",
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
id: "SMB Gen2",
|
|
132
|
-
collection: {
|
|
133
|
-
contract: "HWGwm8ppsSKEB9aWno7DLc1tHD89fQJnmMLHVzAM7vVs",
|
|
134
|
-
standard: "ERC721",
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
];
|
|
138
|
-
//# sourceMappingURL=nftsSamples.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nftsSamples.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nftsSamples.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG;IAClB;QACE,EAAE,EAAE,eAAe;QACnB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,cAAc;QAClB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QA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ACE,EAAE,EAAE,yBAAyB;QAC7B,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,YAAY;QAChB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,WAAW;QACf,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;CACF,CAAC;AAEW,QAAA,WAAW,GAAG;IACzB;QACE,EAAE,EAAE,UAAU;QACd,UAAU,EAAE;YACV,QAAQ,EAAE,8CAA8C;YACxD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,UAAU;QACd,UAAU,EAAE;YACV,QAAQ,EAAE,8CAA8C;YACxD,QAAQ,EAAE,QAAQ;SACnB;KACF;CACF,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const NFTs: {
|
|
2
|
-
id: string;
|
|
3
|
-
collection: {
|
|
4
|
-
contract: string;
|
|
5
|
-
standard: string;
|
|
6
|
-
};
|
|
7
|
-
}[];
|
|
8
|
-
export declare const NFTs_ETHEREUM_STAX_METADATA: {
|
|
9
|
-
id: string;
|
|
10
|
-
collection: {
|
|
11
|
-
contract: string;
|
|
12
|
-
standard: string;
|
|
13
|
-
};
|
|
14
|
-
}[];
|
|
15
|
-
export declare const NFTs_POLYGON: {
|
|
16
|
-
id: string;
|
|
17
|
-
collection: {
|
|
18
|
-
contract: string;
|
|
19
|
-
standard: string;
|
|
20
|
-
};
|
|
21
|
-
}[];
|
|
22
|
-
export declare const NFTs_ARBITRUM: {
|
|
23
|
-
id: string;
|
|
24
|
-
collection: {
|
|
25
|
-
contract: string;
|
|
26
|
-
standard: string;
|
|
27
|
-
};
|
|
28
|
-
}[];
|
|
29
|
-
export declare const NFTs_BASE: {
|
|
30
|
-
id: string;
|
|
31
|
-
collection: {
|
|
32
|
-
contract: string;
|
|
33
|
-
standard: string;
|
|
34
|
-
};
|
|
35
|
-
}[];
|
|
36
|
-
export declare const NFTs_OPTIMISM: {
|
|
37
|
-
id: string;
|
|
38
|
-
collection: {
|
|
39
|
-
contract: string;
|
|
40
|
-
standard: string;
|
|
41
|
-
};
|
|
42
|
-
}[];
|
|
43
|
-
export declare const NFTs_SOLANA: {
|
|
44
|
-
id: string;
|
|
45
|
-
collection: {
|
|
46
|
-
contract: string;
|
|
47
|
-
standard: string;
|
|
48
|
-
};
|
|
49
|
-
}[];
|
|
50
|
-
//# sourceMappingURL=nftsSamples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nftsSamples.d.ts","sourceRoot":"","sources":["../../../src/mocks/fixtures/nftsSamples.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;GA6BhB,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;GAQvC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;GAsBxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAezB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;GAerB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAsBzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;GAevB,CAAC"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
export const NFTs = [
|
|
2
|
-
{
|
|
3
|
-
id: "Pudgy Penguin",
|
|
4
|
-
collection: {
|
|
5
|
-
contract: "0xbd3531da5cf5857e7cfaa92426877b022e612cf8",
|
|
6
|
-
standard: "ERC721",
|
|
7
|
-
},
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
id: "Kanpai Panda",
|
|
11
|
-
collection: {
|
|
12
|
-
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
13
|
-
standard: "ERC721",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: "Bored Ape Yacht Club",
|
|
18
|
-
collection: {
|
|
19
|
-
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
20
|
-
standard: "ERC721",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "Imaginary Ones",
|
|
25
|
-
collection: {
|
|
26
|
-
contract: "0x716f29b8972d551294d9e02b3eb0fc1107fbf4aa",
|
|
27
|
-
standard: "ERC721",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
];
|
|
31
|
-
// Ethereum NFTs with the special "staxImage" metadata designed to fit the Ledger Stax screen
|
|
32
|
-
export const NFTs_ETHEREUM_STAX_METADATA = [
|
|
33
|
-
{
|
|
34
|
-
id: "Inspired By Ledger",
|
|
35
|
-
collection: {
|
|
36
|
-
contract: "0x0b51eb9d0e54c562fedc07ceba453f05b70c4b79",
|
|
37
|
-
standard: "ERC1155",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
];
|
|
41
|
-
export const NFTs_POLYGON = [
|
|
42
|
-
{
|
|
43
|
-
id: "Crypto Unicorns Market",
|
|
44
|
-
collection: {
|
|
45
|
-
contract: "0xdc0479cc5bba033b3e7de9f178607150b3abce1f",
|
|
46
|
-
standard: "ERC721",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
id: "Chicken Derby",
|
|
51
|
-
collection: {
|
|
52
|
-
contract: "0x8634666ba15ada4bbc83b9dbf285f73d9e46e4c2",
|
|
53
|
-
standard: "ERC721",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: "y00ts",
|
|
58
|
-
collection: {
|
|
59
|
-
contract: "0x670fd103b1a08628e9557cd66b87ded841115190",
|
|
60
|
-
standard: "ERC721",
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
export const NFTs_ARBITRUM = [
|
|
65
|
-
{
|
|
66
|
-
id: "Footium Clubs",
|
|
67
|
-
collection: {
|
|
68
|
-
contract: "0xd0a8ba528dfe402d34d34f171e5ff3e65bd4c9d4",
|
|
69
|
-
standard: "ERC721",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: "Booga Beras",
|
|
74
|
-
collection: {
|
|
75
|
-
contract: "0x6ba79f573edfe305e7dbd79902bc69436e197834",
|
|
76
|
-
standard: "ERC721",
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
];
|
|
80
|
-
export const NFTs_BASE = [
|
|
81
|
-
{
|
|
82
|
-
id: "PrimeApePlanet",
|
|
83
|
-
collection: {
|
|
84
|
-
contract: "0xa78e2e6f0add0e9b1a9c17cc929270d9ad89478c",
|
|
85
|
-
standard: "ERC721",
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: "The CryptoDads",
|
|
90
|
-
collection: {
|
|
91
|
-
contract: "0xB2A0fD738D584B47Bee18DA0f3D7c140bf2d1476",
|
|
92
|
-
standard: "ERC721",
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
];
|
|
96
|
-
export const NFTs_OPTIMISM = [
|
|
97
|
-
{
|
|
98
|
-
id: "Optimism Ape Yacht Club",
|
|
99
|
-
collection: {
|
|
100
|
-
contract: "0x0deaac29d8a3d4ebbaaa3ecd3cc97c9def00f720",
|
|
101
|
-
standard: "ERC721",
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
id: "Bored Town",
|
|
106
|
-
collection: {
|
|
107
|
-
contract: "0x8e56343adafa62dac9c9a8ac8c742851b0fb8b03",
|
|
108
|
-
standard: "ERC721",
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: "Apetimism",
|
|
113
|
-
collection: {
|
|
114
|
-
contract: "0x51e5426ede4e2d4c2586371372313b5782387222",
|
|
115
|
-
standard: "ERC721",
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
];
|
|
119
|
-
export const NFTs_SOLANA = [
|
|
120
|
-
{
|
|
121
|
-
id: "Mad Lads",
|
|
122
|
-
collection: {
|
|
123
|
-
contract: "FfqXxHJwnVLMjjyc7RYNPg49urnR67BaboyXoYSwkeQC",
|
|
124
|
-
standard: "ERC721",
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
id: "SMB Gen2",
|
|
129
|
-
collection: {
|
|
130
|
-
contract: "HWGwm8ppsSKEB9aWno7DLc1tHD89fQJnmMLHVzAM7vVs",
|
|
131
|
-
standard: "ERC721",
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
];
|
|
135
|
-
//# sourceMappingURL=nftsSamples.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nftsSamples.js","sourceRoot":"","sources":["../../../src/mocks/fixtures/nftsSamples.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;QACE,EAAE,EAAE,eAAe;QACnB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,cAAc;QAClB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;CACF,CAAC;AAEF,6FAA6F;AAC7F,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC;QACE,EAAE,EAAE,oBAAoB;QACxB,UAAU,EAAE;YACV,QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,SAAS;SACpB;KACF;CACF,CAAC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QAAQ,EAAE,4CAA4C;YACtD,QAAQ,EAAE,QAAQ;SACnB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,EAAE,EAAE,UAAU;QACd,UAAU,EAAE;YACV,QAAQ,EAAE,8CAA8C;YACxD,QAAQ,EAAE,QAAQ;SACnB;KACF;IACD;QACE,EAAE,EAAE,UAAU;QACd,UAAU,EAAE;YACV,QAAQ,EAAE,8CAA8C;YACxD,QAAQ,EAAE,QAAQ;SACnB;KACF;CACF,CAAC"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
export const NFTs = [
|
|
2
|
-
{
|
|
3
|
-
id: "Pudgy Penguin",
|
|
4
|
-
collection: {
|
|
5
|
-
contract: "0xbd3531da5cf5857e7cfaa92426877b022e612cf8",
|
|
6
|
-
standard: "ERC721",
|
|
7
|
-
},
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
id: "Kanpai Panda",
|
|
11
|
-
collection: {
|
|
12
|
-
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
13
|
-
standard: "ERC721",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: "Bored Ape Yacht Club",
|
|
18
|
-
collection: {
|
|
19
|
-
contract: "0xacf63e56fd08970b43401492a02f6f38b6635c91",
|
|
20
|
-
standard: "ERC721",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "Imaginary Ones",
|
|
25
|
-
collection: {
|
|
26
|
-
contract: "0x716f29b8972d551294d9e02b3eb0fc1107fbf4aa",
|
|
27
|
-
standard: "ERC721",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
// Ethereum NFTs with the special "staxImage" metadata designed to fit the Ledger Stax screen
|
|
33
|
-
export const NFTs_ETHEREUM_STAX_METADATA = [
|
|
34
|
-
{
|
|
35
|
-
id: "Inspired By Ledger",
|
|
36
|
-
collection: {
|
|
37
|
-
contract: "0x0b51eb9d0e54c562fedc07ceba453f05b70c4b79",
|
|
38
|
-
standard: "ERC1155",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
];
|
|
42
|
-
|
|
43
|
-
export const NFTs_POLYGON = [
|
|
44
|
-
{
|
|
45
|
-
id: "Crypto Unicorns Market",
|
|
46
|
-
collection: {
|
|
47
|
-
contract: "0xdc0479cc5bba033b3e7de9f178607150b3abce1f",
|
|
48
|
-
standard: "ERC721",
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: "Chicken Derby",
|
|
53
|
-
collection: {
|
|
54
|
-
contract: "0x8634666ba15ada4bbc83b9dbf285f73d9e46e4c2",
|
|
55
|
-
standard: "ERC721",
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
id: "y00ts",
|
|
60
|
-
collection: {
|
|
61
|
-
contract: "0x670fd103b1a08628e9557cd66b87ded841115190",
|
|
62
|
-
standard: "ERC721",
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
export const NFTs_ARBITRUM = [
|
|
68
|
-
{
|
|
69
|
-
id: "Footium Clubs",
|
|
70
|
-
collection: {
|
|
71
|
-
contract: "0xd0a8ba528dfe402d34d34f171e5ff3e65bd4c9d4",
|
|
72
|
-
standard: "ERC721",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "Booga Beras",
|
|
77
|
-
collection: {
|
|
78
|
-
contract: "0x6ba79f573edfe305e7dbd79902bc69436e197834",
|
|
79
|
-
standard: "ERC721",
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
|
|
84
|
-
export const NFTs_BASE = [
|
|
85
|
-
{
|
|
86
|
-
id: "PrimeApePlanet",
|
|
87
|
-
collection: {
|
|
88
|
-
contract: "0xa78e2e6f0add0e9b1a9c17cc929270d9ad89478c",
|
|
89
|
-
standard: "ERC721",
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: "The CryptoDads",
|
|
94
|
-
collection: {
|
|
95
|
-
contract: "0xB2A0fD738D584B47Bee18DA0f3D7c140bf2d1476",
|
|
96
|
-
standard: "ERC721",
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
];
|
|
100
|
-
|
|
101
|
-
export const NFTs_OPTIMISM = [
|
|
102
|
-
{
|
|
103
|
-
id: "Optimism Ape Yacht Club",
|
|
104
|
-
collection: {
|
|
105
|
-
contract: "0x0deaac29d8a3d4ebbaaa3ecd3cc97c9def00f720",
|
|
106
|
-
standard: "ERC721",
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
id: "Bored Town",
|
|
111
|
-
collection: {
|
|
112
|
-
contract: "0x8e56343adafa62dac9c9a8ac8c742851b0fb8b03",
|
|
113
|
-
standard: "ERC721",
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: "Apetimism",
|
|
118
|
-
collection: {
|
|
119
|
-
contract: "0x51e5426ede4e2d4c2586371372313b5782387222",
|
|
120
|
-
standard: "ERC721",
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
];
|
|
124
|
-
|
|
125
|
-
export const NFTs_SOLANA = [
|
|
126
|
-
{
|
|
127
|
-
id: "Mad Lads",
|
|
128
|
-
collection: {
|
|
129
|
-
contract: "FfqXxHJwnVLMjjyc7RYNPg49urnR67BaboyXoYSwkeQC",
|
|
130
|
-
standard: "ERC721",
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: "SMB Gen2",
|
|
135
|
-
collection: {
|
|
136
|
-
contract: "HWGwm8ppsSKEB9aWno7DLc1tHD89fQJnmMLHVzAM7vVs",
|
|
137
|
-
standard: "ERC721",
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
];
|