@pioneer-platform/eth-network 8.7.0 → 8.8.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 +2 -0
- package/CHANGELOG.md +14 -0
- package/build.sh +22 -0
- package/lib/constant.js +554 -0
- package/lib/constant.js.map +1 -0
- package/lib/etherscan-api.js +104 -0
- package/lib/etherscan-api.js.map +1 -0
- package/lib/index.js +396 -0
- package/lib/index.js.map +1 -0
- package/lib/types/client-types.js +9 -0
- package/lib/types/client-types.js.map +1 -0
- package/lib/types/etherscan-api-types.js +3 -0
- package/lib/types/etherscan-api-types.js.map +1 -0
- package/lib/types/index.js +19 -0
- package/lib/types/index.js.map +1 -0
- package/lib/utils.js +471 -0
- package/lib/utils.js.map +1 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @pioneer-platform/eth-network
|
2
2
|
|
3
|
+
## 8.8.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- Automated minor version bump for all packages
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- Updated dependencies
|
12
|
+
- @pioneer-platform/blockbook@8.6.0
|
13
|
+
- @pioneer-platform/loggerdog@8.6.0
|
14
|
+
- @pioneer-platform/nodes@8.6.0
|
15
|
+
- @pioneer-platform/pioneer-caip@9.5.0
|
16
|
+
|
3
17
|
## 8.7.0
|
4
18
|
|
5
19
|
### Minor Changes
|
package/build.sh
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
# Fast Bun build (replaces slow tsc)
|
3
|
+
|
4
|
+
OUTDIR="${1:-lib}"
|
5
|
+
ENTRY="${2:-src/index.ts}"
|
6
|
+
|
7
|
+
# Clean output
|
8
|
+
rm -rf "$OUTDIR"
|
9
|
+
mkdir -p "$OUTDIR"
|
10
|
+
|
11
|
+
# Build with Bun (10x faster than tsc)
|
12
|
+
bun build "$ENTRY" \
|
13
|
+
--outdir "$OUTDIR" \
|
14
|
+
--target node \
|
15
|
+
--format cjs \
|
16
|
+
--sourcemap \
|
17
|
+
--minify
|
18
|
+
|
19
|
+
# Generate TypeScript declarations
|
20
|
+
bunx tsc --emitDeclarationOnly --outDir "$OUTDIR" --project .
|
21
|
+
|
22
|
+
echo "✅ Built $OUTDIR"
|
package/lib/constant.js
ADDED
@@ -0,0 +1,554 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
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_BASE = exports.PIONEER_CONTRACT_ADDRESS = exports.PIONEER_METADATA_CONTRACT_ADDRESS_BASE = 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
|
+
exports.UNISWAP_V2_WETH_FOX_POOL_ADDRESS = '0x470e8de2ebaef52014a47cb5e6af86884947f08c';
|
5
|
+
exports.UNISWAP_V2_USDC_ETH_POOL_ADDRESS = '0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc';
|
6
|
+
exports.UNISWAP_V2_ROUTER = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D';
|
7
|
+
exports.FOX_TOKEN_CONTRACT_ADDRESS = '0xc770EEfAd204B5180dF6a14Ee197D99d808ee52d';
|
8
|
+
exports.WETH_TOKEN_CONTRACT_ADDRESS = '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2';
|
9
|
+
exports.PROXY_CONTRACT_SABLIER = '0xbd6a40bb904aea5a49c59050b5395f7484a4203d';
|
10
|
+
exports.FOX_ETH_TEST_FARMING_ADDRESS = '0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F';
|
11
|
+
exports.FOX_ETH_FARMING_ADDRESS = '0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F';
|
12
|
+
exports.FOX_AIRDROP_ADDRESS = '0x1F2BBC14BCEc7f06b996B6Ee920AB5cA5A56b77F';
|
13
|
+
exports.PIONEER_METADATA_CONTRACT_ADDRESS = '0x0E1cDf34e15414C6AfDd4E75Bd2dBcAC5E8cc8E4';
|
14
|
+
exports.PIONEER_METADATA_CONTRACT_ADDRESS_BASE = '0x6127f757b827284ff24335cfe8fd7e51fd0cd8f6';
|
15
|
+
exports.PIONEER_CONTRACT_ADDRESS = '0x25EF864904d67e912B9eC491598A7E5A066B102F';
|
16
|
+
//0xd0d31f743d5f7e8fcf4add1bdb198f07241a4f23
|
17
|
+
exports.PIONEER_CONTRACT_ADDRESS_BASE = '0xd0d31f743d5f7e8fcf4add1bdb198f07241a4f23';
|
18
|
+
exports.THORCHAIN_ROUTER_TESTNET = process.env['THORCHAIN_ROUTER_TESTNET'] || "0x9d496De78837f5a2bA64Cb40E62c19FBcB67f55a";
|
19
|
+
exports.AIRDROP_CONTRACT = "0x4C20CDAdBcaE364Edc03E2B90F09eB97d08ce3C8";
|
20
|
+
exports.CLAIM_URL = "https://fox-api.shapeshift.com/claims";
|
21
|
+
//TODO move to coins.js
|
22
|
+
exports.METADATA_ABI = [{
|
23
|
+
"inputs": [
|
24
|
+
{
|
25
|
+
"internalType": "uint256",
|
26
|
+
"name": "_tokenId",
|
27
|
+
"type": "uint256"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "getAttributes",
|
31
|
+
"outputs": [
|
32
|
+
{
|
33
|
+
"internalType": "string",
|
34
|
+
"name": "resultAttributes",
|
35
|
+
"type": "string"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"internalType": "string",
|
39
|
+
"name": "queryString",
|
40
|
+
"type": "string"
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"stateMutability": "view",
|
44
|
+
"type": "function"
|
45
|
+
}];
|
46
|
+
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" }];
|
47
|
+
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" }];
|
48
|
+
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" }];
|
49
|
+
exports.AIRDROP_ABI = [
|
50
|
+
{
|
51
|
+
"anonymous": false,
|
52
|
+
"inputs": [
|
53
|
+
{
|
54
|
+
"indexed": false,
|
55
|
+
"internalType": "uint256",
|
56
|
+
"name": "index",
|
57
|
+
"type": "uint256"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"indexed": true,
|
61
|
+
"internalType": "address",
|
62
|
+
"name": "account",
|
63
|
+
"type": "address"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"indexed": false,
|
67
|
+
"internalType": "uint256",
|
68
|
+
"name": "amount",
|
69
|
+
"type": "uint256"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"indexed": false,
|
73
|
+
"internalType": "uint256",
|
74
|
+
"name": "userClaim",
|
75
|
+
"type": "uint256"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"indexed": false,
|
79
|
+
"internalType": "uint256",
|
80
|
+
"name": "rewardsEscrowClaim",
|
81
|
+
"type": "uint256"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"name": "Claimed",
|
85
|
+
"type": "event"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"anonymous": false,
|
89
|
+
"inputs": [
|
90
|
+
{
|
91
|
+
"indexed": false,
|
92
|
+
"internalType": "uint256",
|
93
|
+
"name": "index",
|
94
|
+
"type": "uint256"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"indexed": false,
|
98
|
+
"internalType": "address",
|
99
|
+
"name": "account",
|
100
|
+
"type": "address"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"indexed": false,
|
104
|
+
"internalType": "uint256",
|
105
|
+
"name": "amount",
|
106
|
+
"type": "uint256"
|
107
|
+
}
|
108
|
+
],
|
109
|
+
"name": "Claimed",
|
110
|
+
"type": "event"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"anonymous": false,
|
114
|
+
"inputs": [
|
115
|
+
{
|
116
|
+
"indexed": true,
|
117
|
+
"internalType": "address",
|
118
|
+
"name": "previousOwner",
|
119
|
+
"type": "address"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"indexed": true,
|
123
|
+
"internalType": "address",
|
124
|
+
"name": "newOwner",
|
125
|
+
"type": "address"
|
126
|
+
}
|
127
|
+
],
|
128
|
+
"name": "OwnershipTransferred",
|
129
|
+
"type": "event"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"inputs": [],
|
133
|
+
"name": "MAX_BPS",
|
134
|
+
"outputs": [
|
135
|
+
{
|
136
|
+
"internalType": "uint256",
|
137
|
+
"name": "",
|
138
|
+
"type": "uint256"
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"stateMutability": "view",
|
142
|
+
"type": "function"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"inputs": [
|
146
|
+
{
|
147
|
+
"internalType": "address",
|
148
|
+
"name": "token_",
|
149
|
+
"type": "address"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"internalType": "bytes32",
|
153
|
+
"name": "merkleRoot_",
|
154
|
+
"type": "bytes32"
|
155
|
+
}
|
156
|
+
],
|
157
|
+
"name": "__MerkleDistributor_init",
|
158
|
+
"outputs": [],
|
159
|
+
"stateMutability": "nonpayable",
|
160
|
+
"type": "function"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"inputs": [],
|
164
|
+
"name": "claimsStart",
|
165
|
+
"outputs": [
|
166
|
+
{
|
167
|
+
"internalType": "uint256",
|
168
|
+
"name": "",
|
169
|
+
"type": "uint256"
|
170
|
+
}
|
171
|
+
],
|
172
|
+
"stateMutability": "view",
|
173
|
+
"type": "function"
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"inputs": [],
|
177
|
+
"name": "currentRewardRate",
|
178
|
+
"outputs": [
|
179
|
+
{
|
180
|
+
"internalType": "uint256",
|
181
|
+
"name": "",
|
182
|
+
"type": "uint256"
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"stateMutability": "view",
|
186
|
+
"type": "function"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"inputs": [],
|
190
|
+
"name": "epochDuration",
|
191
|
+
"outputs": [
|
192
|
+
{
|
193
|
+
"internalType": "uint256",
|
194
|
+
"name": "",
|
195
|
+
"type": "uint256"
|
196
|
+
}
|
197
|
+
],
|
198
|
+
"stateMutability": "view",
|
199
|
+
"type": "function"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"inputs": [],
|
203
|
+
"name": "finalEpoch",
|
204
|
+
"outputs": [
|
205
|
+
{
|
206
|
+
"internalType": "uint256",
|
207
|
+
"name": "",
|
208
|
+
"type": "uint256"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"stateMutability": "view",
|
212
|
+
"type": "function"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"inputs": [],
|
216
|
+
"name": "gracePeriod",
|
217
|
+
"outputs": [
|
218
|
+
{
|
219
|
+
"internalType": "uint256",
|
220
|
+
"name": "",
|
221
|
+
"type": "uint256"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"stateMutability": "view",
|
225
|
+
"type": "function"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"inputs": [
|
229
|
+
{
|
230
|
+
"internalType": "uint256",
|
231
|
+
"name": "index",
|
232
|
+
"type": "uint256"
|
233
|
+
}
|
234
|
+
],
|
235
|
+
"name": "isClaimed",
|
236
|
+
"outputs": [
|
237
|
+
{
|
238
|
+
"internalType": "bool",
|
239
|
+
"name": "",
|
240
|
+
"type": "bool"
|
241
|
+
}
|
242
|
+
],
|
243
|
+
"stateMutability": "view",
|
244
|
+
"type": "function"
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"inputs": [],
|
248
|
+
"name": "merkleRoot",
|
249
|
+
"outputs": [
|
250
|
+
{
|
251
|
+
"internalType": "bytes32",
|
252
|
+
"name": "",
|
253
|
+
"type": "bytes32"
|
254
|
+
}
|
255
|
+
],
|
256
|
+
"stateMutability": "view",
|
257
|
+
"type": "function"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"inputs": [],
|
261
|
+
"name": "owner",
|
262
|
+
"outputs": [
|
263
|
+
{
|
264
|
+
"internalType": "address",
|
265
|
+
"name": "",
|
266
|
+
"type": "address"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
"stateMutability": "view",
|
270
|
+
"type": "function"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"inputs": [],
|
274
|
+
"name": "renounceOwnership",
|
275
|
+
"outputs": [],
|
276
|
+
"stateMutability": "nonpayable",
|
277
|
+
"type": "function"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"inputs": [],
|
281
|
+
"name": "rewardReductionPerEpoch",
|
282
|
+
"outputs": [
|
283
|
+
{
|
284
|
+
"internalType": "uint256",
|
285
|
+
"name": "",
|
286
|
+
"type": "uint256"
|
287
|
+
}
|
288
|
+
],
|
289
|
+
"stateMutability": "view",
|
290
|
+
"type": "function"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"inputs": [],
|
294
|
+
"name": "rewardsEscrow",
|
295
|
+
"outputs": [
|
296
|
+
{
|
297
|
+
"internalType": "address",
|
298
|
+
"name": "",
|
299
|
+
"type": "address"
|
300
|
+
}
|
301
|
+
],
|
302
|
+
"stateMutability": "view",
|
303
|
+
"type": "function"
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"inputs": [],
|
307
|
+
"name": "token",
|
308
|
+
"outputs": [
|
309
|
+
{
|
310
|
+
"internalType": "address",
|
311
|
+
"name": "",
|
312
|
+
"type": "address"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"stateMutability": "view",
|
316
|
+
"type": "function"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"inputs": [
|
320
|
+
{
|
321
|
+
"internalType": "address",
|
322
|
+
"name": "newOwner",
|
323
|
+
"type": "address"
|
324
|
+
}
|
325
|
+
],
|
326
|
+
"name": "transferOwnership",
|
327
|
+
"outputs": [],
|
328
|
+
"stateMutability": "nonpayable",
|
329
|
+
"type": "function"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"inputs": [
|
333
|
+
{
|
334
|
+
"internalType": "address",
|
335
|
+
"name": "token_",
|
336
|
+
"type": "address"
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"internalType": "bytes32",
|
340
|
+
"name": "merkleRoot_",
|
341
|
+
"type": "bytes32"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"internalType": "uint256",
|
345
|
+
"name": "epochDuration_",
|
346
|
+
"type": "uint256"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"internalType": "uint256",
|
350
|
+
"name": "rewardReductionPerEpoch_",
|
351
|
+
"type": "uint256"
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"internalType": "uint256",
|
355
|
+
"name": "claimsStart_",
|
356
|
+
"type": "uint256"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"internalType": "uint256",
|
360
|
+
"name": "gracePeriod_",
|
361
|
+
"type": "uint256"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"internalType": "address",
|
365
|
+
"name": "rewardsEscrow_",
|
366
|
+
"type": "address"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"internalType": "address",
|
370
|
+
"name": "owner_",
|
371
|
+
"type": "address"
|
372
|
+
}
|
373
|
+
],
|
374
|
+
"name": "initialize",
|
375
|
+
"outputs": [],
|
376
|
+
"stateMutability": "nonpayable",
|
377
|
+
"type": "function"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"inputs": [],
|
381
|
+
"name": "getGracePeriodEnd",
|
382
|
+
"outputs": [
|
383
|
+
{
|
384
|
+
"internalType": "uint256",
|
385
|
+
"name": "",
|
386
|
+
"type": "uint256"
|
387
|
+
}
|
388
|
+
],
|
389
|
+
"stateMutability": "view",
|
390
|
+
"type": "function"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"inputs": [],
|
394
|
+
"name": "getClaimsStartTime",
|
395
|
+
"outputs": [
|
396
|
+
{
|
397
|
+
"internalType": "uint256",
|
398
|
+
"name": "",
|
399
|
+
"type": "uint256"
|
400
|
+
}
|
401
|
+
],
|
402
|
+
"stateMutability": "view",
|
403
|
+
"type": "function"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"inputs": [],
|
407
|
+
"name": "getNextEpochStart",
|
408
|
+
"outputs": [
|
409
|
+
{
|
410
|
+
"internalType": "uint256",
|
411
|
+
"name": "",
|
412
|
+
"type": "uint256"
|
413
|
+
}
|
414
|
+
],
|
415
|
+
"stateMutability": "view",
|
416
|
+
"type": "function"
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"inputs": [],
|
420
|
+
"name": "getTimeUntilNextEpoch",
|
421
|
+
"outputs": [
|
422
|
+
{
|
423
|
+
"internalType": "uint256",
|
424
|
+
"name": "",
|
425
|
+
"type": "uint256"
|
426
|
+
}
|
427
|
+
],
|
428
|
+
"stateMutability": "view",
|
429
|
+
"type": "function"
|
430
|
+
},
|
431
|
+
{
|
432
|
+
"inputs": [],
|
433
|
+
"name": "getCurrentEpoch",
|
434
|
+
"outputs": [
|
435
|
+
{
|
436
|
+
"internalType": "uint256",
|
437
|
+
"name": "",
|
438
|
+
"type": "uint256"
|
439
|
+
}
|
440
|
+
],
|
441
|
+
"stateMutability": "view",
|
442
|
+
"type": "function"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"inputs": [],
|
446
|
+
"name": "getCurrentRewardsRate",
|
447
|
+
"outputs": [
|
448
|
+
{
|
449
|
+
"internalType": "uint256",
|
450
|
+
"name": "",
|
451
|
+
"type": "uint256"
|
452
|
+
}
|
453
|
+
],
|
454
|
+
"stateMutability": "view",
|
455
|
+
"type": "function"
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"inputs": [],
|
459
|
+
"name": "getNextEpochRewardsRate",
|
460
|
+
"outputs": [
|
461
|
+
{
|
462
|
+
"internalType": "uint256",
|
463
|
+
"name": "",
|
464
|
+
"type": "uint256"
|
465
|
+
}
|
466
|
+
],
|
467
|
+
"stateMutability": "view",
|
468
|
+
"type": "function"
|
469
|
+
},
|
470
|
+
{
|
471
|
+
"inputs": [
|
472
|
+
{
|
473
|
+
"internalType": "uint256",
|
474
|
+
"name": "index",
|
475
|
+
"type": "uint256"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"internalType": "address",
|
479
|
+
"name": "account",
|
480
|
+
"type": "address"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"internalType": "uint256",
|
484
|
+
"name": "amount",
|
485
|
+
"type": "uint256"
|
486
|
+
},
|
487
|
+
{
|
488
|
+
"internalType": "bytes32[]",
|
489
|
+
"name": "merkleProof",
|
490
|
+
"type": "bytes32[]"
|
491
|
+
}
|
492
|
+
],
|
493
|
+
"name": "claim",
|
494
|
+
"outputs": [],
|
495
|
+
"stateMutability": "nonpayable",
|
496
|
+
"type": "function"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"inputs": [],
|
500
|
+
"name": "recycleExcess",
|
501
|
+
"outputs": [],
|
502
|
+
"stateMutability": "nonpayable",
|
503
|
+
"type": "function"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"inputs": [
|
507
|
+
{
|
508
|
+
"internalType": "uint256",
|
509
|
+
"name": "duration",
|
510
|
+
"type": "uint256"
|
511
|
+
}
|
512
|
+
],
|
513
|
+
"name": "setGracePeriod",
|
514
|
+
"outputs": [],
|
515
|
+
"stateMutability": "nonpayable",
|
516
|
+
"type": "function"
|
517
|
+
}
|
518
|
+
];
|
519
|
+
exports.ERC721_ABI = [
|
520
|
+
{
|
521
|
+
"constant": true,
|
522
|
+
"inputs": [
|
523
|
+
{
|
524
|
+
"name": "tokenId",
|
525
|
+
"type": "uint256"
|
526
|
+
}
|
527
|
+
],
|
528
|
+
"name": "ownerOf",
|
529
|
+
"outputs": [
|
530
|
+
{
|
531
|
+
"name": "",
|
532
|
+
"type": "address"
|
533
|
+
}
|
534
|
+
],
|
535
|
+
"payable": false,
|
536
|
+
"stateMutability": "view",
|
537
|
+
"type": "function"
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"constant": true,
|
541
|
+
"inputs": [],
|
542
|
+
"name": "totalSupply",
|
543
|
+
"outputs": [
|
544
|
+
{
|
545
|
+
"name": "",
|
546
|
+
"type": "uint256"
|
547
|
+
}
|
548
|
+
],
|
549
|
+
"payable": false,
|
550
|
+
"stateMutability": "view",
|
551
|
+
"type": "function"
|
552
|
+
}
|
553
|
+
];
|
554
|
+
//# sourceMappingURL=constant.js.map
|