@gearbox-protocol/sdk 14.10.3-next.1 → 14.10.3-next.3
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/cjs/abi/iERC20Zapper.js +33 -0
- package/dist/cjs/abi/iETHZapper.js +30 -0
- package/dist/cjs/sdk/market/ZapperRegister.js +5 -3
- package/dist/cjs/sdk/market/zapper/IERC20ZapperContract.js +98 -0
- package/dist/cjs/sdk/market/zapper/{IZapperContract.js → IETHZapperContract.js} +45 -10
- package/dist/cjs/sdk/market/zapper/{IETHZapperDepositsContract.js → Zapper.js} +22 -20
- package/dist/cjs/sdk/market/zapper/createZapper.js +45 -0
- package/dist/cjs/sdk/market/zapper/index.js +8 -6
- package/dist/cjs/sdk/pools/PoolService.js +9 -21
- package/dist/esm/abi/iERC20Zapper.js +9 -0
- package/dist/esm/abi/iETHZapper.js +6 -0
- package/dist/esm/sdk/market/ZapperRegister.js +5 -3
- package/dist/esm/sdk/market/zapper/IERC20ZapperContract.js +74 -0
- package/dist/esm/sdk/market/zapper/IETHZapperContract.js +65 -0
- package/dist/esm/sdk/market/zapper/Zapper.js +23 -0
- package/dist/esm/sdk/market/zapper/createZapper.js +21 -0
- package/dist/esm/sdk/market/zapper/index.js +4 -3
- package/dist/esm/sdk/pools/PoolService.js +11 -24
- package/dist/types/{sdk/market/zapper/IERC20ZapperDepositsContract.d.ts → abi/iERC20Zapper.d.ts} +121 -19
- package/dist/types/{sdk/market/zapper/IZapperContract.d.ts → abi/iETHZapper.d.ts} +33 -19
- package/dist/types/sdk/market/ZapperRegister.d.ts +4 -4
- package/dist/types/sdk/market/zapper/IERC20ZapperContract.d.ts +350 -0
- package/dist/types/sdk/market/zapper/IETHZapperContract.d.ts +186 -0
- package/dist/types/sdk/market/zapper/Zapper.d.ts +13 -0
- package/dist/types/sdk/market/zapper/createZapper.d.ts +6 -0
- package/dist/types/sdk/market/zapper/index.d.ts +4 -3
- package/dist/types/sdk/pools/types.d.ts +3 -3
- package/package.json +1 -1
- package/dist/cjs/sdk/market/zapper/IERC20ZapperDepositsContract.js +0 -54
- package/dist/esm/sdk/market/zapper/IERC20ZapperDepositsContract.js +0 -30
- package/dist/esm/sdk/market/zapper/IETHZapperDepositsContract.js +0 -21
- package/dist/esm/sdk/market/zapper/IZapperContract.js +0 -30
- package/dist/types/sdk/market/zapper/IETHZapperDepositsContract.d.ts +0 -47
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { Address } from "viem";
|
|
2
|
+
import { BaseContract } from "../../base/index.js";
|
|
3
|
+
import type { OnchainSDK } from "../../OnchainSDK.js";
|
|
4
|
+
import type { RawTx } from "../../types/index.js";
|
|
5
|
+
import type { ZapperData } from "../types.js";
|
|
6
|
+
declare const abi: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly name: "receiver";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}];
|
|
13
|
+
readonly name: "deposit";
|
|
14
|
+
readonly outputs: readonly [{
|
|
15
|
+
readonly name: "tokenOutAmount";
|
|
16
|
+
readonly internalType: "uint256";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}];
|
|
19
|
+
readonly stateMutability: "payable";
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly name: "receiver";
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "referralCode";
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
readonly type: "uint256";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "depositWithReferral";
|
|
32
|
+
readonly outputs: readonly [{
|
|
33
|
+
readonly name: "tokenOutAmount";
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly stateMutability: "payable";
|
|
38
|
+
}, {
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
readonly inputs: readonly [];
|
|
41
|
+
readonly name: "pool";
|
|
42
|
+
readonly outputs: readonly [{
|
|
43
|
+
readonly name: "";
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}];
|
|
47
|
+
readonly stateMutability: "view";
|
|
48
|
+
}, {
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
readonly inputs: readonly [{
|
|
51
|
+
readonly name: "tokenInAmount";
|
|
52
|
+
readonly internalType: "uint256";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "previewDeposit";
|
|
56
|
+
readonly outputs: readonly [{
|
|
57
|
+
readonly name: "tokenOutAmount";
|
|
58
|
+
readonly internalType: "uint256";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}];
|
|
61
|
+
readonly stateMutability: "view";
|
|
62
|
+
}, {
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly name: "tokenOutAmount";
|
|
66
|
+
readonly internalType: "uint256";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
}];
|
|
69
|
+
readonly name: "previewRedeem";
|
|
70
|
+
readonly outputs: readonly [{
|
|
71
|
+
readonly name: "tokenInAmount";
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly stateMutability: "view";
|
|
76
|
+
}, {
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly name: "tokenOutAmount";
|
|
80
|
+
readonly internalType: "uint256";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "receiver";
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}];
|
|
87
|
+
readonly name: "redeem";
|
|
88
|
+
readonly outputs: readonly [{
|
|
89
|
+
readonly name: "tokenInAmount";
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
}];
|
|
93
|
+
readonly stateMutability: "nonpayable";
|
|
94
|
+
}, {
|
|
95
|
+
readonly type: "function";
|
|
96
|
+
readonly inputs: readonly [{
|
|
97
|
+
readonly name: "tokenOutAmount";
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
readonly type: "uint256";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "receiver";
|
|
102
|
+
readonly internalType: "address";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "deadline";
|
|
106
|
+
readonly internalType: "uint256";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "v";
|
|
110
|
+
readonly internalType: "uint8";
|
|
111
|
+
readonly type: "uint8";
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "r";
|
|
114
|
+
readonly internalType: "bytes32";
|
|
115
|
+
readonly type: "bytes32";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "s";
|
|
118
|
+
readonly internalType: "bytes32";
|
|
119
|
+
readonly type: "bytes32";
|
|
120
|
+
}];
|
|
121
|
+
readonly name: "redeemWithPermit";
|
|
122
|
+
readonly outputs: readonly [{
|
|
123
|
+
readonly name: "tokenInAmount";
|
|
124
|
+
readonly internalType: "uint256";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}];
|
|
127
|
+
readonly stateMutability: "nonpayable";
|
|
128
|
+
}, {
|
|
129
|
+
readonly type: "function";
|
|
130
|
+
readonly inputs: readonly [];
|
|
131
|
+
readonly name: "tokenIn";
|
|
132
|
+
readonly outputs: readonly [{
|
|
133
|
+
readonly name: "";
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}];
|
|
137
|
+
readonly stateMutability: "view";
|
|
138
|
+
}, {
|
|
139
|
+
readonly type: "function";
|
|
140
|
+
readonly inputs: readonly [];
|
|
141
|
+
readonly name: "tokenOut";
|
|
142
|
+
readonly outputs: readonly [{
|
|
143
|
+
readonly name: "";
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly type: "address";
|
|
146
|
+
}];
|
|
147
|
+
readonly stateMutability: "view";
|
|
148
|
+
}, {
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
readonly inputs: readonly [];
|
|
151
|
+
readonly name: "underlying";
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly name: "";
|
|
154
|
+
readonly internalType: "address";
|
|
155
|
+
readonly type: "address";
|
|
156
|
+
}];
|
|
157
|
+
readonly stateMutability: "view";
|
|
158
|
+
}];
|
|
159
|
+
type abi = typeof abi;
|
|
160
|
+
export declare class IETHZapperContract extends BaseContract<abi> implements ZapperData {
|
|
161
|
+
readonly pool: ZapperData["pool"];
|
|
162
|
+
readonly type: ZapperData["type"];
|
|
163
|
+
readonly baseParams: ZapperData["baseParams"];
|
|
164
|
+
readonly tokenIn: ZapperData["tokenIn"];
|
|
165
|
+
readonly tokenOut: ZapperData["tokenOut"];
|
|
166
|
+
constructor(sdk: OnchainSDK, data: ZapperData);
|
|
167
|
+
/**
|
|
168
|
+
* Deposits native ETH into the pool via this zapper.
|
|
169
|
+
*/
|
|
170
|
+
deposit(receiver: Address): RawTx;
|
|
171
|
+
/**
|
|
172
|
+
* Deposits native ETH into the pool via this zapper using a referral code.
|
|
173
|
+
* The caller must attach the deposit amount as msg.value.
|
|
174
|
+
*/
|
|
175
|
+
depositWithReferral(receiver: Address, referralCode: bigint): RawTx;
|
|
176
|
+
/**
|
|
177
|
+
* Redeems pool shares (diesel tokens) for the underlying asset via this zapper.
|
|
178
|
+
*/
|
|
179
|
+
redeem(tokenInAmount: bigint, receiver: Address): RawTx;
|
|
180
|
+
/**
|
|
181
|
+
* Redeems pool shares via this zapper with an EIP-2612 permit signature,
|
|
182
|
+
* skipping a separate approve transaction.
|
|
183
|
+
*/
|
|
184
|
+
redeemWithPermit(tokenInAmount: bigint, receiver: Address, deadline: bigint, v: number, r: Address, s: Address): RawTx;
|
|
185
|
+
}
|
|
186
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Address } from "viem";
|
|
2
|
+
import type { BaseParams } from "../../base/types.js";
|
|
3
|
+
import type { ZapperData } from "../types.js";
|
|
4
|
+
export declare class Zapper implements ZapperData {
|
|
5
|
+
readonly pool: Address;
|
|
6
|
+
readonly type: "migration" | "rwa" | "base";
|
|
7
|
+
readonly baseParams: ZapperData["baseParams"];
|
|
8
|
+
readonly tokenIn: ZapperData["tokenIn"];
|
|
9
|
+
readonly tokenOut: ZapperData["tokenOut"];
|
|
10
|
+
readonly contractType: string;
|
|
11
|
+
constructor(data: ZapperData);
|
|
12
|
+
static contractType(baseParams: BaseParams): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { OnchainSDK } from "../../OnchainSDK.js";
|
|
2
|
+
import type { ZapperData } from "../types.js";
|
|
3
|
+
import { IERC20ZapperContract } from "./IERC20ZapperContract.js";
|
|
4
|
+
import { IETHZapperContract } from "./IETHZapperContract.js";
|
|
5
|
+
import { Zapper } from "./Zapper.js";
|
|
6
|
+
export declare function createZapper(sdk: OnchainSDK, data: ZapperData): Zapper | IETHZapperContract | IERC20ZapperContract;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./createZapper.js";
|
|
2
|
+
export * from "./IERC20ZapperContract.js";
|
|
3
|
+
export * from "./IETHZapperContract.js";
|
|
4
|
+
export * from "./Zapper.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Abi, Address, ContractFunctionArgs, ContractFunctionName } from "viem";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Zapper } from "../market/index.js";
|
|
3
3
|
import type { Asset } from "../router/index.js";
|
|
4
4
|
import type { MultiCall, RawTx } from "../types/transactions.js";
|
|
5
5
|
interface PermitResult {
|
|
@@ -62,7 +62,7 @@ export interface DepositMetadata {
|
|
|
62
62
|
/**
|
|
63
63
|
* Zapper that will perform the deposit, undefined in case of direct pool underlying deposit
|
|
64
64
|
*/
|
|
65
|
-
zapper?:
|
|
65
|
+
zapper?: Zapper;
|
|
66
66
|
/**
|
|
67
67
|
* Before deposit user will nedd to call approve method on token that he wants to deposit,
|
|
68
68
|
* this is the spender address that will be used to call approve method.
|
|
@@ -82,7 +82,7 @@ export interface WithdrawalMetadata {
|
|
|
82
82
|
/**
|
|
83
83
|
* Zapper that will perform the withdrawal, undefined in case of direct pool underlying withdrawal
|
|
84
84
|
*/
|
|
85
|
-
zapper?:
|
|
85
|
+
zapper?: Zapper;
|
|
86
86
|
/**
|
|
87
87
|
* Before withdrawal user will need to call approve method on token that he wants to withdraw (diesel token),
|
|
88
88
|
* this is the spender address that will be used to call approve method.
|
package/package.json
CHANGED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var IERC20ZapperDepositsContract_exports = {};
|
|
20
|
-
__export(IERC20ZapperDepositsContract_exports, {
|
|
21
|
-
IERC20ZapperDepositsContract: () => IERC20ZapperDepositsContract
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(IERC20ZapperDepositsContract_exports);
|
|
24
|
-
var import_iERC20ZapperDeposits = require("../../../abi/iERC20ZapperDeposits.js");
|
|
25
|
-
var import_base = require("../../base/index.js");
|
|
26
|
-
const abi = import_iERC20ZapperDeposits.ierc20ZapperDepositsAbi;
|
|
27
|
-
class IERC20ZapperDepositsContract extends import_base.BaseContract {
|
|
28
|
-
constructor(options, args) {
|
|
29
|
-
super(options, { ...args, abi });
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Deposits ERC20 tokens into the pool via this zapper using a referral code.
|
|
33
|
-
*/
|
|
34
|
-
depositWithReferral(tokenInAmount, receiver, referralCode) {
|
|
35
|
-
return this.createRawTx({
|
|
36
|
-
functionName: "depositWithReferral",
|
|
37
|
-
args: [tokenInAmount, receiver, referralCode]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Deposits ERC20 tokens via this zapper with a referral code and an
|
|
42
|
-
* EIP-2612 permit signature, skipping a separate approve transaction.
|
|
43
|
-
*/
|
|
44
|
-
depositWithReferralAndPermit(tokenInAmount, receiver, referralCode, deadline, v, r, s) {
|
|
45
|
-
return this.createRawTx({
|
|
46
|
-
functionName: "depositWithReferralAndPermit",
|
|
47
|
-
args: [tokenInAmount, receiver, referralCode, deadline, v, r, s]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
-
0 && (module.exports = {
|
|
53
|
-
IERC20ZapperDepositsContract
|
|
54
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ierc20ZapperDepositsAbi } from "../../../abi/iERC20ZapperDeposits.js";
|
|
2
|
-
import { BaseContract } from "../../base/index.js";
|
|
3
|
-
const abi = ierc20ZapperDepositsAbi;
|
|
4
|
-
class IERC20ZapperDepositsContract extends BaseContract {
|
|
5
|
-
constructor(options, args) {
|
|
6
|
-
super(options, { ...args, abi });
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Deposits ERC20 tokens into the pool via this zapper using a referral code.
|
|
10
|
-
*/
|
|
11
|
-
depositWithReferral(tokenInAmount, receiver, referralCode) {
|
|
12
|
-
return this.createRawTx({
|
|
13
|
-
functionName: "depositWithReferral",
|
|
14
|
-
args: [tokenInAmount, receiver, referralCode]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Deposits ERC20 tokens via this zapper with a referral code and an
|
|
19
|
-
* EIP-2612 permit signature, skipping a separate approve transaction.
|
|
20
|
-
*/
|
|
21
|
-
depositWithReferralAndPermit(tokenInAmount, receiver, referralCode, deadline, v, r, s) {
|
|
22
|
-
return this.createRawTx({
|
|
23
|
-
functionName: "depositWithReferralAndPermit",
|
|
24
|
-
args: [tokenInAmount, receiver, referralCode, deadline, v, r, s]
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
IERC20ZapperDepositsContract
|
|
30
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { iethZapperDepositsAbi } from "../../../abi/iETHZapperDeposits.js";
|
|
2
|
-
import { BaseContract } from "../../base/index.js";
|
|
3
|
-
const abi = iethZapperDepositsAbi;
|
|
4
|
-
class IETHZapperDepositsContract extends BaseContract {
|
|
5
|
-
constructor(options, args) {
|
|
6
|
-
super(options, { ...args, abi });
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Deposits native ETH into the pool via this zapper using a referral code.
|
|
10
|
-
* The caller must attach the deposit amount as msg.value.
|
|
11
|
-
*/
|
|
12
|
-
depositWithReferral(receiver, referralCode) {
|
|
13
|
-
return this.createRawTx({
|
|
14
|
-
functionName: "depositWithReferral",
|
|
15
|
-
args: [receiver, referralCode]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
IETHZapperDepositsContract
|
|
21
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { iZapperAbi } from "../../../abi/iZapper.js";
|
|
2
|
-
import { BaseContract } from "../../base/index.js";
|
|
3
|
-
const abi = iZapperAbi;
|
|
4
|
-
class IZapperContract extends BaseContract {
|
|
5
|
-
constructor(options, args) {
|
|
6
|
-
super(options, { ...args, abi });
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Redeems pool shares (diesel tokens) for the underlying asset via this zapper.
|
|
10
|
-
*/
|
|
11
|
-
redeem(tokenInAmount, receiver) {
|
|
12
|
-
return this.createRawTx({
|
|
13
|
-
functionName: "redeem",
|
|
14
|
-
args: [tokenInAmount, receiver]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Redeems pool shares via this zapper with an EIP-2612 permit signature,
|
|
19
|
-
* skipping a separate approve transaction.
|
|
20
|
-
*/
|
|
21
|
-
redeemWithPermit(tokenInAmount, receiver, deadline, v, r, s) {
|
|
22
|
-
return this.createRawTx({
|
|
23
|
-
functionName: "redeemWithPermit",
|
|
24
|
-
args: [tokenInAmount, receiver, deadline, v, r, s]
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
IZapperContract
|
|
30
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
2
|
-
import type { BaseContractArgs, ConstructOptions } from "../../base/index.js";
|
|
3
|
-
import { BaseContract } from "../../base/index.js";
|
|
4
|
-
import type { RawTx } from "../../types/index.js";
|
|
5
|
-
declare const abi: readonly [{
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly inputs: readonly [{
|
|
8
|
-
readonly name: "receiver";
|
|
9
|
-
readonly internalType: "address";
|
|
10
|
-
readonly type: "address";
|
|
11
|
-
}];
|
|
12
|
-
readonly name: "deposit";
|
|
13
|
-
readonly outputs: readonly [{
|
|
14
|
-
readonly name: "tokenOutAmount";
|
|
15
|
-
readonly internalType: "uint256";
|
|
16
|
-
readonly type: "uint256";
|
|
17
|
-
}];
|
|
18
|
-
readonly stateMutability: "payable";
|
|
19
|
-
}, {
|
|
20
|
-
readonly type: "function";
|
|
21
|
-
readonly inputs: readonly [{
|
|
22
|
-
readonly name: "receiver";
|
|
23
|
-
readonly internalType: "address";
|
|
24
|
-
readonly type: "address";
|
|
25
|
-
}, {
|
|
26
|
-
readonly name: "referralCode";
|
|
27
|
-
readonly internalType: "uint256";
|
|
28
|
-
readonly type: "uint256";
|
|
29
|
-
}];
|
|
30
|
-
readonly name: "depositWithReferral";
|
|
31
|
-
readonly outputs: readonly [{
|
|
32
|
-
readonly name: "tokenOutAmount";
|
|
33
|
-
readonly internalType: "uint256";
|
|
34
|
-
readonly type: "uint256";
|
|
35
|
-
}];
|
|
36
|
-
readonly stateMutability: "payable";
|
|
37
|
-
}];
|
|
38
|
-
type abi = typeof abi;
|
|
39
|
-
export declare class IETHZapperDepositsContract extends BaseContract<abi> {
|
|
40
|
-
constructor(options: ConstructOptions, args: Omit<BaseContractArgs<abi>, "abi">);
|
|
41
|
-
/**
|
|
42
|
-
* Deposits native ETH into the pool via this zapper using a referral code.
|
|
43
|
-
* The caller must attach the deposit amount as msg.value.
|
|
44
|
-
*/
|
|
45
|
-
depositWithReferral(receiver: Address, referralCode: bigint): RawTx;
|
|
46
|
-
}
|
|
47
|
-
export {};
|