@ape.swap/bonds-sdk 1.0.473 → 1.0.475
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/dist/config/abi/bondNft.json +424 -0
- package/dist/config/abi/ens-public-resolver.json +816 -0
- package/dist/config/abi/ens-registrar.json +422 -0
- package/dist/config/abi/erc20_bytes32.json +30 -0
- package/dist/config/abi/jungleChef.json +291 -0
- package/dist/config/abi/launchBonds.json +2014 -0
- package/dist/config/abi/lockVeAbond.json +2198 -0
- package/dist/config/abi/migrationBond.json +1639 -0
- package/dist/config/abi/migrationFveAbond.json +160 -0
- package/dist/config/abi/multicallv3.json +92 -0
- package/dist/config/abi/sousChef.json +649 -0
- package/dist/config/abi/types/Banana.d.ts +417 -0
- package/dist/config/abi/types/Banana.js +1 -0
- package/dist/config/abi/types/Bond.d.ts +803 -0
- package/dist/config/abi/types/Bond.js +1 -0
- package/dist/config/abi/types/BondNft.d.ts +603 -0
- package/dist/config/abi/types/BondNft.js +1 -0
- package/dist/config/abi/types/EnsPublicResolver.d.ts +513 -0
- package/dist/config/abi/types/EnsPublicResolver.js +1 -0
- package/dist/config/abi/types/EnsRegistrar.d.ts +274 -0
- package/dist/config/abi/types/EnsRegistrar.js +1 -0
- package/dist/config/abi/types/Erc20.d.ts +168 -0
- package/dist/config/abi/types/Erc20.js +1 -0
- package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
- package/dist/config/abi/types/Erc20_bytes32.js +1 -0
- package/dist/config/abi/types/JungleChef.d.ts +260 -0
- package/dist/config/abi/types/JungleChef.js +1 -0
- package/dist/config/abi/types/LaunchBonds.d.ts +1362 -0
- package/dist/config/abi/types/LaunchBonds.js +1 -0
- package/dist/config/abi/types/LensContract.d.ts +295 -0
- package/dist/config/abi/types/LensContract.js +1 -0
- package/dist/config/abi/types/LockVeAbond.d.ts +1279 -0
- package/dist/config/abi/types/LockVeAbond.js +1 -0
- package/dist/config/abi/types/MigrationBond.d.ts +1136 -0
- package/dist/config/abi/types/MigrationBond.js +1 -0
- package/dist/config/abi/types/MigrationFveAbond.d.ts +290 -0
- package/dist/config/abi/types/MigrationFveAbond.js +1 -0
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +469 -0
- package/dist/config/abi/types/MiniComplexRewarder.js +1 -0
- package/dist/config/abi/types/Multicallv2.d.ts +150 -0
- package/dist/config/abi/types/Multicallv2.js +1 -0
- package/dist/config/abi/types/Multicallv3.d.ts +98 -0
- package/dist/config/abi/types/Multicallv3.js +1 -0
- package/dist/config/abi/types/NonFungibleApes.d.ts +532 -0
- package/dist/config/abi/types/NonFungibleApes.js +1 -0
- package/dist/config/abi/types/NonFungibleBananas.d.ts +505 -0
- package/dist/config/abi/types/NonFungibleBananas.js +1 -0
- package/dist/config/abi/types/PriceGetter.d.ts +713 -0
- package/dist/config/abi/types/PriceGetter.js +1 -0
- package/dist/config/abi/types/PriceGetterLinea.d.ts +789 -0
- package/dist/config/abi/types/PriceGetterLinea.js +1 -0
- package/dist/config/abi/types/PriceGetterV2.d.ts +729 -0
- package/dist/config/abi/types/PriceGetterV2.js +1 -0
- package/dist/config/abi/types/SousChef.d.ts +579 -0
- package/dist/config/abi/types/SousChef.js +1 -0
- package/dist/config/abi/types/Treasury.d.ts +277 -0
- package/dist/config/abi/types/Treasury.js +1 -0
- package/dist/config/abi/types/Weth.d.ts +221 -0
- package/dist/config/abi/types/Weth.js +1 -0
- package/dist/config/abi/types/Zap.d.ts +528 -0
- package/dist/config/abi/types/Zap.js +1 -0
- package/dist/config/abi/types/common.d.ts +22 -0
- package/dist/config/abi/types/common.js +1 -0
- package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
- package/dist/config/abi/types/factories/Banana__factory.js +628 -0
- package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
- package/dist/config/abi/types/factories/BondNft__factory.js +951 -0
- package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
- package/dist/config/abi/types/factories/Bond__factory.js +1042 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +833 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +439 -0
- package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
- package/dist/config/abi/types/factories/Erc20__factory.js +239 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +47 -0
- package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
- package/dist/config/abi/types/factories/JungleChef__factory.js +326 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +2031 -0
- package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
- package/dist/config/abi/types/factories/LensContract__factory.js +338 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +2215 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.js +1656 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +346 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +586 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.js +160 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.js +109 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +810 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +756 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +1465 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +1364 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.js +1326 -0
- package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
- package/dist/config/abi/types/factories/SousChef__factory.js +666 -0
- package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
- package/dist/config/abi/types/factories/Treasury__factory.js +309 -0
- package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
- package/dist/config/abi/types/factories/Weth__factory.js +296 -0
- package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
- package/dist/config/abi/types/factories/Zap__factory.js +889 -0
- package/dist/config/abi/types/factories/index.d.ts +25 -0
- package/dist/config/abi/types/factories/index.js +28 -0
- package/dist/config/abi/types/index.d.ts +51 -0
- package/dist/config/abi/types/index.js +26 -0
- package/dist/config/abi/weth.json +279 -0
- package/dist/hooks/useClaimBill.d.ts +4 -0
- package/dist/hooks/useClaimBill.js +59 -0
- package/dist/hooks/useContract.d.ts +25 -0
- package/dist/hooks/useContract.js +107 -0
- package/dist/pages/YourBonds/YourBonds.js +37 -10
- package/dist/utils/index.d.ts +16 -0
- package/dist/utils/index.js +127 -0
- package/dist/utils/track.d.ts +7 -0
- package/dist/utils/track.js +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, utils } from "ethers";
|
|
5
|
+
var _abi = [
|
|
6
|
+
{
|
|
7
|
+
constant: true,
|
|
8
|
+
inputs: [],
|
|
9
|
+
name: "getCurrentBlockTimestamp",
|
|
10
|
+
outputs: [
|
|
11
|
+
{
|
|
12
|
+
name: "timestamp",
|
|
13
|
+
type: "uint256",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
payable: false,
|
|
17
|
+
stateMutability: "view",
|
|
18
|
+
type: "function",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
constant: true,
|
|
22
|
+
inputs: [
|
|
23
|
+
{
|
|
24
|
+
components: [
|
|
25
|
+
{
|
|
26
|
+
name: "target",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "callData",
|
|
31
|
+
type: "bytes",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
name: "calls",
|
|
35
|
+
type: "tuple[]",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: "aggregate",
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
name: "blockNumber",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "returnData",
|
|
46
|
+
type: "bytes[]",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
payable: false,
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
type: "function",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
constant: true,
|
|
55
|
+
inputs: [],
|
|
56
|
+
name: "getLastBlockHash",
|
|
57
|
+
outputs: [
|
|
58
|
+
{
|
|
59
|
+
name: "blockHash",
|
|
60
|
+
type: "bytes32",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
payable: false,
|
|
64
|
+
stateMutability: "view",
|
|
65
|
+
type: "function",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
constant: true,
|
|
69
|
+
inputs: [
|
|
70
|
+
{
|
|
71
|
+
name: "addr",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: "getEthBalance",
|
|
76
|
+
outputs: [
|
|
77
|
+
{
|
|
78
|
+
name: "balance",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
payable: false,
|
|
83
|
+
stateMutability: "view",
|
|
84
|
+
type: "function",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
constant: true,
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "getCurrentBlockDifficulty",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
name: "difficulty",
|
|
93
|
+
type: "uint256",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
payable: false,
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
type: "function",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
constant: true,
|
|
102
|
+
inputs: [],
|
|
103
|
+
name: "getCurrentBlockGasLimit",
|
|
104
|
+
outputs: [
|
|
105
|
+
{
|
|
106
|
+
name: "gaslimit",
|
|
107
|
+
type: "uint256",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
payable: false,
|
|
111
|
+
stateMutability: "view",
|
|
112
|
+
type: "function",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
constant: true,
|
|
116
|
+
inputs: [],
|
|
117
|
+
name: "getCurrentBlockCoinbase",
|
|
118
|
+
outputs: [
|
|
119
|
+
{
|
|
120
|
+
name: "coinbase",
|
|
121
|
+
type: "address",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
payable: false,
|
|
125
|
+
stateMutability: "view",
|
|
126
|
+
type: "function",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
constant: true,
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
name: "blockNumber",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
name: "getBlockHash",
|
|
137
|
+
outputs: [
|
|
138
|
+
{
|
|
139
|
+
name: "blockHash",
|
|
140
|
+
type: "bytes32",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
payable: false,
|
|
144
|
+
stateMutability: "view",
|
|
145
|
+
type: "function",
|
|
146
|
+
},
|
|
147
|
+
];
|
|
148
|
+
var Multicallv2__factory = /** @class */ (function () {
|
|
149
|
+
function Multicallv2__factory() {
|
|
150
|
+
}
|
|
151
|
+
Multicallv2__factory.createInterface = function () {
|
|
152
|
+
return new utils.Interface(_abi);
|
|
153
|
+
};
|
|
154
|
+
Multicallv2__factory.connect = function (address, signerOrProvider) {
|
|
155
|
+
return new Contract(address, _abi, signerOrProvider);
|
|
156
|
+
};
|
|
157
|
+
Multicallv2__factory.abi = _abi;
|
|
158
|
+
return Multicallv2__factory;
|
|
159
|
+
}());
|
|
160
|
+
export { Multicallv2__factory };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { Multicallv3, Multicallv3Interface } from "../Multicallv3";
|
|
4
|
+
export declare class Multicallv3__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [];
|
|
7
|
+
readonly name: "getCurrentBlockTimestamp";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "timestamp";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "view";
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
}, {
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
readonly name: "addr";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}];
|
|
21
|
+
readonly name: "getEthBalance";
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly internalType: "uint256";
|
|
24
|
+
readonly name: "balance";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly stateMutability: "view";
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly components: readonly [{
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
readonly name: "target";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly internalType: "uint256";
|
|
37
|
+
readonly name: "gasLimit";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}, {
|
|
40
|
+
readonly internalType: "bytes";
|
|
41
|
+
readonly name: "callData";
|
|
42
|
+
readonly type: "bytes";
|
|
43
|
+
}];
|
|
44
|
+
readonly internalType: "struct UniswapInterfaceMulticall.Call[]";
|
|
45
|
+
readonly name: "calls";
|
|
46
|
+
readonly type: "tuple[]";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "multicall";
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly internalType: "uint256";
|
|
51
|
+
readonly name: "blockNumber";
|
|
52
|
+
readonly type: "uint256";
|
|
53
|
+
}, {
|
|
54
|
+
readonly components: readonly [{
|
|
55
|
+
readonly internalType: "bool";
|
|
56
|
+
readonly name: "success";
|
|
57
|
+
readonly type: "bool";
|
|
58
|
+
}, {
|
|
59
|
+
readonly internalType: "uint256";
|
|
60
|
+
readonly name: "gasUsed";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
}, {
|
|
63
|
+
readonly internalType: "bytes";
|
|
64
|
+
readonly name: "returnData";
|
|
65
|
+
readonly type: "bytes";
|
|
66
|
+
}];
|
|
67
|
+
readonly internalType: "struct UniswapInterfaceMulticall.Result[]";
|
|
68
|
+
readonly name: "returnData";
|
|
69
|
+
readonly type: "tuple[]";
|
|
70
|
+
}];
|
|
71
|
+
readonly stateMutability: "nonpayable";
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
}];
|
|
74
|
+
static createInterface(): Multicallv3Interface;
|
|
75
|
+
static connect(address: string, signerOrProvider: Signer | Provider): Multicallv3;
|
|
76
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, utils } from "ethers";
|
|
5
|
+
var _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [],
|
|
8
|
+
name: "getCurrentBlockTimestamp",
|
|
9
|
+
outputs: [
|
|
10
|
+
{
|
|
11
|
+
internalType: "uint256",
|
|
12
|
+
name: "timestamp",
|
|
13
|
+
type: "uint256",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
stateMutability: "view",
|
|
17
|
+
type: "function",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "addr",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: "getEthBalance",
|
|
28
|
+
outputs: [
|
|
29
|
+
{
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "balance",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
stateMutability: "view",
|
|
36
|
+
type: "function",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
components: [
|
|
42
|
+
{
|
|
43
|
+
internalType: "address",
|
|
44
|
+
name: "target",
|
|
45
|
+
type: "address",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint256",
|
|
49
|
+
name: "gasLimit",
|
|
50
|
+
type: "uint256",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "bytes",
|
|
54
|
+
name: "callData",
|
|
55
|
+
type: "bytes",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
internalType: "struct UniswapInterfaceMulticall.Call[]",
|
|
59
|
+
name: "calls",
|
|
60
|
+
type: "tuple[]",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
name: "multicall",
|
|
64
|
+
outputs: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint256",
|
|
67
|
+
name: "blockNumber",
|
|
68
|
+
type: "uint256",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
components: [
|
|
72
|
+
{
|
|
73
|
+
internalType: "bool",
|
|
74
|
+
name: "success",
|
|
75
|
+
type: "bool",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
internalType: "uint256",
|
|
79
|
+
name: "gasUsed",
|
|
80
|
+
type: "uint256",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
internalType: "bytes",
|
|
84
|
+
name: "returnData",
|
|
85
|
+
type: "bytes",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
internalType: "struct UniswapInterfaceMulticall.Result[]",
|
|
89
|
+
name: "returnData",
|
|
90
|
+
type: "tuple[]",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
stateMutability: "nonpayable",
|
|
94
|
+
type: "function",
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
var Multicallv3__factory = /** @class */ (function () {
|
|
98
|
+
function Multicallv3__factory() {
|
|
99
|
+
}
|
|
100
|
+
Multicallv3__factory.createInterface = function () {
|
|
101
|
+
return new utils.Interface(_abi);
|
|
102
|
+
};
|
|
103
|
+
Multicallv3__factory.connect = function (address, signerOrProvider) {
|
|
104
|
+
return new Contract(address, _abi, signerOrProvider);
|
|
105
|
+
};
|
|
106
|
+
Multicallv3__factory.abi = _abi;
|
|
107
|
+
return Multicallv3__factory;
|
|
108
|
+
}());
|
|
109
|
+
export { Multicallv3__factory };
|