@pioneer-platform/eth-network 8.1.62 → 8.1.64

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/lib/constant.d.ts CHANGED
@@ -7,10 +7,26 @@ export declare const PROXY_CONTRACT_SABLIER = "0xbd6a40bb904aea5a49c59050b5395f7
7
7
  export declare const FOX_ETH_TEST_FARMING_ADDRESS = "0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F";
8
8
  export declare const FOX_ETH_FARMING_ADDRESS = "0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F";
9
9
  export declare const FOX_AIRDROP_ADDRESS = "0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F";
10
+ export declare const PIONEER_METADATA_CONTRACT_ADDRESS = "0x0E1cDf34e15414C6AfDd4E75Bd2dBcAC5E8cc8E4";
10
11
  export declare const PIONEER_CONTRACT_ADDRESS = "0x25EF864904d67e912B9eC491598A7E5A066B102F";
11
12
  export declare const THORCHAIN_ROUTER_TESTNET: string;
12
13
  export declare const AIRDROP_CONTRACT = "0x4C20CDAdBcaE364Edc03E2B90F09eB97d08ce3C8";
13
14
  export declare let CLAIM_URL: string;
15
+ export declare let METADATA_ABI: {
16
+ inputs: {
17
+ internalType: string;
18
+ name: string;
19
+ type: string;
20
+ }[];
21
+ name: string;
22
+ outputs: {
23
+ internalType: string;
24
+ name: string;
25
+ type: string;
26
+ }[];
27
+ stateMutability: string;
28
+ type: string;
29
+ }[];
14
30
  export declare let SABLIER_ABI: ({
15
31
  constant: boolean;
16
32
  inputs: {
package/lib/constant.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ERC721_ABI = exports.AIRDROP_ABI = exports.ERC20ABI = exports.TCRopstenAbi = exports.SABLIER_ABI = exports.CLAIM_URL = exports.AIRDROP_CONTRACT = exports.THORCHAIN_ROUTER_TESTNET = exports.PIONEER_CONTRACT_ADDRESS = exports.FOX_AIRDROP_ADDRESS = exports.FOX_ETH_FARMING_ADDRESS = exports.FOX_ETH_TEST_FARMING_ADDRESS = exports.PROXY_CONTRACT_SABLIER = exports.WETH_TOKEN_CONTRACT_ADDRESS = exports.FOX_TOKEN_CONTRACT_ADDRESS = exports.UNISWAP_V2_ROUTER = exports.UNISWAP_V2_USDC_ETH_POOL_ADDRESS = exports.UNISWAP_V2_WETH_FOX_POOL_ADDRESS = void 0;
3
+ exports.ERC721_ABI = exports.AIRDROP_ABI = exports.ERC20ABI = exports.TCRopstenAbi = exports.SABLIER_ABI = exports.METADATA_ABI = exports.CLAIM_URL = exports.AIRDROP_CONTRACT = exports.THORCHAIN_ROUTER_TESTNET = exports.PIONEER_CONTRACT_ADDRESS = exports.PIONEER_METADATA_CONTRACT_ADDRESS = exports.FOX_AIRDROP_ADDRESS = exports.FOX_ETH_FARMING_ADDRESS = exports.FOX_ETH_TEST_FARMING_ADDRESS = exports.PROXY_CONTRACT_SABLIER = exports.WETH_TOKEN_CONTRACT_ADDRESS = exports.FOX_TOKEN_CONTRACT_ADDRESS = exports.UNISWAP_V2_ROUTER = exports.UNISWAP_V2_USDC_ETH_POOL_ADDRESS = exports.UNISWAP_V2_WETH_FOX_POOL_ADDRESS = void 0;
4
4
  exports.UNISWAP_V2_WETH_FOX_POOL_ADDRESS = '0x470e8de2ebaef52014a47cb5e6af86884947f08c';
5
5
  exports.UNISWAP_V2_USDC_ETH_POOL_ADDRESS = '0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc';
6
6
  exports.UNISWAP_V2_ROUTER = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D';
@@ -10,11 +10,36 @@ exports.PROXY_CONTRACT_SABLIER = '0xbd6a40bb904aea5a49c59050b5395f7484a4203d';
10
10
  exports.FOX_ETH_TEST_FARMING_ADDRESS = '0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F';
11
11
  exports.FOX_ETH_FARMING_ADDRESS = '0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F';
12
12
  exports.FOX_AIRDROP_ADDRESS = '0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F';
13
+ exports.PIONEER_METADATA_CONTRACT_ADDRESS = '0x0E1cDf34e15414C6AfDd4E75Bd2dBcAC5E8cc8E4';
13
14
  exports.PIONEER_CONTRACT_ADDRESS = '0x25EF864904d67e912B9eC491598A7E5A066B102F';
14
15
  exports.THORCHAIN_ROUTER_TESTNET = process.env['THORCHAIN_ROUTER_TESTNET'] || "0x9d496De78837f5a2bA64Cb40E62c19FBcB67f55a";
15
16
  exports.AIRDROP_CONTRACT = "0x4C20CDAdBcaE364Edc03E2B90F09eB97d08ce3C8";
16
17
  exports.CLAIM_URL = "https://fox-api.shapeshift.com/claims";
17
18
  //TODO move to coins.js
19
+ exports.METADATA_ABI = [{
20
+ "inputs": [
21
+ {
22
+ "internalType": "uint256",
23
+ "name": "_tokenId",
24
+ "type": "uint256"
25
+ }
26
+ ],
27
+ "name": "getAttributes",
28
+ "outputs": [
29
+ {
30
+ "internalType": "string",
31
+ "name": "resultAttributes",
32
+ "type": "string"
33
+ },
34
+ {
35
+ "internalType": "string",
36
+ "name": "queryString",
37
+ "type": "string"
38
+ }
39
+ ],
40
+ "stateMutability": "view",
41
+ "type": "function"
42
+ }];
18
43
  exports.SABLIER_ABI = [{ "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "relayers", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "sablier", "outputs": [{ "internalType": "contract Sablier", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "relayer", "type": "address" }, { "internalType": "uint256", "name": "salaryId", "type": "uint256" }], "name": "whitelistRelayer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "relayer", "type": "address" }, { "internalType": "uint256", "name": "salaryId", "type": "uint256" }], "name": "discardRelayer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "employee", "type": "address" }, { "internalType": "uint256", "name": "salary", "type": "uint256" }, { "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "startTime", "type": "uint256" }, { "internalType": "uint256", "name": "stopTime", "type": "uint256" }, { "internalType": "uint256", "name": "senderSharePercentage", "type": "uint256" }, { "internalType": "uint256", "name": "recipientSharePercentage", "type": "uint256" }], "name": "createCompoundingSalary", "outputs": [{ "internalType": "uint256", "name": "salaryId", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getHubAddr", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "bytes", "name": "context", "type": "bytes" }], "name": "preRelayedCall", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "salaryId", "type": "uint256" }], "name": "getSalary", "outputs": [{ "internalType": "address", "name": "company", "type": "address" }, { "internalType": "address", "name": "employee", "type": "address" }, { "internalType": "uint256", "name": "salary", "type": "uint256" }, { "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "startTime", "type": "uint256" }, { "internalType": "uint256", "name": "stopTime", "type": "uint256" }, { "internalType": "uint256", "name": "remainingBalance", "type": "uint256" }, { "internalType": "uint256", "name": "rate", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "relay", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "bytes", "name": "encodedFunction", "type": "bytes" }, { "internalType": "uint256", "name": "transactionFee", "type": "uint256" }, { "internalType": "uint256", "name": "gasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "gasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "approvalData", "type": "bytes" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "acceptRelayedCall", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isOwner", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "relayHubVersion", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "ownerAddress", "type": "address" }, { "internalType": "address", "name": "signerAddress", "type": "address" }, { "internalType": "address", "name": "sablierAddress", "type": "address" }], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "trustedSigner", "type": "address" }], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "salaryId", "type": "uint256" }], "name": "cancelSalary", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "employee", "type": "address" }, { "internalType": "uint256", "name": "salary", "type": "uint256" }, { "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "startTime", "type": "uint256" }, { "internalType": "uint256", "name": "stopTime", "type": "uint256" }], "name": "createSalary", "outputs": [{ "internalType": "uint256", "name": "salaryId", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "nextSalaryId", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "uint256", "name": "actualCharge", "type": "uint256" }, { "internalType": "bytes32", "name": "preRetVal", "type": "bytes32" }], "name": "postRelayedCall", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "salaryId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawFromSalary", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "salaryId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "streamId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "company", "type": "address" }], "name": "CreateSalary", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "salaryId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "streamId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "company", "type": "address" }], "name": "WithdrawFromSalary", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "salaryId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "streamId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "company", "type": "address" }], "name": "CancelSalary", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldRelayHub", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newRelayHub", "type": "address" }], "name": "RelayHubChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }];
19
44
  exports.TCRopstenAbi = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "address", "name": "asset", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "memo", "type": "string" }], "name": "Deposit", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldVault", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newVault", "type": "address" }, { "indexed": false, "internalType": "address", "name": "asset", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "memo", "type": "string" }], "name": "TransferAllowance", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "vault", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "address", "name": "asset", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "memo", "type": "string" }], "name": "TransferOut", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldVault", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newVault", "type": "address" }, { "components": [{ "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "indexed": false, "internalType": "struct Router.Coin[]", "name": "coins", "type": "tuple[]" }, { "indexed": false, "internalType": "string", "name": "memo", "type": "string" }], "name": "VaultTransfer", "type": "event" }, { "inputs": [], "name": "RUNE", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "recipients", "type": "address[]" }, { "components": [{ "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "internalType": "struct Router.Coin[]", "name": "coins", "type": "tuple[]" }, { "internalType": "string[]", "name": "memos", "type": "string[]" }], "name": "batchTransferOut", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address payable", "name": "vault", "type": "address" }, { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "string", "name": "memo", "type": "string" }], "name": "deposit", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "router", "type": "address" }, { "internalType": "address payable", "name": "asgard", "type": "address" }, { "components": [{ "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "internalType": "struct Router.Coin[]", "name": "coins", "type": "tuple[]" }, { "internalType": "string", "name": "memo", "type": "string" }], "name": "returnVaultAssets", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "router", "type": "address" }, { "internalType": "address", "name": "newVault", "type": "address" }, { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "string", "name": "memo", "type": "string" }], "name": "transferAllowance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address payable", "name": "to", "type": "address" }, { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "string", "name": "memo", "type": "string" }], "name": "transferOut", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "vaultAllowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }];
20
45
  exports.ERC20ABI = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }];
package/lib/index.js CHANGED
@@ -219,39 +219,49 @@ module.exports = {
219
219
  };
220
220
  var get_all_pioneers = function () {
221
221
  return __awaiter(this, void 0, void 0, function () {
222
- var tag, output, nftContract, totalSupply, i, owner, e_1;
222
+ var tag, output, nftContract, metadataContract, totalSupply, i, owner, imageInfo, imageName, baseImageUrl, fullImageUrl, e_1;
223
223
  return __generator(this, function (_a) {
224
224
  switch (_a.label) {
225
225
  case 0:
226
226
  tag = TAG + " | get_all_pioneers | ";
227
227
  _a.label = 1;
228
228
  case 1:
229
- _a.trys.push([1, 7, , 8]);
229
+ _a.trys.push([1, 8, , 9]);
230
230
  output = {};
231
231
  nftContract = new web3.eth.Contract(constant_1.ERC721_ABI, constant_1.PIONEER_CONTRACT_ADDRESS);
232
+ metadataContract = new web3.eth.Contract(constant_1.METADATA_ABI, constant_1.PIONEER_METADATA_CONTRACT_ADDRESS);
232
233
  return [4 /*yield*/, nftContract.methods.totalSupply().call()];
233
234
  case 2:
234
235
  totalSupply = _a.sent();
235
236
  output['totalSupply'] = totalSupply;
236
237
  output['owners'] = [];
238
+ output['images'] = []; // add an images array to output
237
239
  i = 0;
238
240
  _a.label = 3;
239
241
  case 3:
240
- if (!(i < totalSupply)) return [3 /*break*/, 6];
242
+ if (!(i < totalSupply)) return [3 /*break*/, 7];
241
243
  return [4 /*yield*/, nftContract.methods.ownerOf(i).call()];
242
244
  case 4:
243
245
  owner = _a.sent();
244
246
  output['owners'].push(owner.toLowerCase());
245
- _a.label = 5;
247
+ return [4 /*yield*/, metadataContract.methods.getAttributes(i).call()];
246
248
  case 5:
249
+ imageInfo = _a.sent();
250
+ imageName = JSON.parse(imageInfo['0'])["0-backgrounds"];
251
+ baseImageUrl = "https://ipfs.io/ipfs/bafybeiezdzjofkcpiwy5hlvxwzkgcztxc6xtodh3q7eddfjmqsguqs47aa/0-backgrounds/";
252
+ fullImageUrl = baseImageUrl + imageName + ".png";
253
+ // Add this image URL to the images array in output
254
+ output['images'].push({ address: owner.toLowerCase(), image: fullImageUrl });
255
+ _a.label = 6;
256
+ case 6:
247
257
  i++;
248
258
  return [3 /*break*/, 3];
249
- case 6: return [2 /*return*/, output];
250
- case 7:
259
+ case 7: return [2 /*return*/, output];
260
+ case 8:
251
261
  e_1 = _a.sent();
252
262
  console.error(tag, e_1);
253
- return [3 /*break*/, 8];
254
- case 8: return [2 /*return*/];
263
+ return [3 /*break*/, 9];
264
+ case 9: return [2 /*return*/];
255
265
  }
256
266
  });
257
267
  });
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/eth-network",
3
- "version": "8.1.62",
4
- "type": "module",
3
+ "version": "8.1.64",
5
4
  "main": "./lib/index.js",
6
5
  "types": "./lib/index.d.ts",
7
6
  "scripts": {
@@ -16,7 +15,7 @@
16
15
  },
17
16
  "dependencies": {
18
17
  "@ethersproject/providers": "^5.1.0",
19
- "@pioneer-platform/blockbook": "8.1.51",
18
+ "@pioneer-platform/blockbook": "8.1.52",
20
19
  "@pioneer-platform/loggerdog": "^8.1.29",
21
20
  "@xchainjs/xchain-util": "^0.2.6",
22
21
  "axios": "^0.21.4",