@pufferfinance/puffer-sdk 1.26.2 → 1.27.1
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/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.cjs.map +1 -1
- package/dist/api/puffer-client.d.ts +3 -0
- package/dist/api/puffer-client.js +29 -22
- package/dist/api/puffer-client.js.map +1 -1
- package/dist/contracts/abis/mainnet/GaugeRegistry.cjs +2 -0
- package/dist/contracts/abis/mainnet/GaugeRegistry.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/GaugeRegistry.d.ts +156 -0
- package/dist/contracts/abis/mainnet/GaugeRegistry.js +114 -0
- package/dist/contracts/abis/mainnet/GaugeRegistry.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.cjs.map +1 -1
- package/dist/contracts/addresses.d.ts +19 -0
- package/dist/contracts/addresses.js +9 -4
- package/dist/contracts/addresses.js.map +1 -1
- package/dist/contracts/handlers/gauge-registry-handler.cjs +2 -0
- package/dist/contracts/handlers/gauge-registry-handler.cjs.map +1 -0
- package/dist/contracts/handlers/gauge-registry-handler.d.ts +14674 -0
- package/dist/contracts/handlers/gauge-registry-handler.js +171 -0
- package/dist/contracts/handlers/gauge-registry-handler.js.map +1 -0
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/package.json +1 -1
- package/dist/contracts/abis/mainnet/PufferVaultV2.cjs +0 -2
- package/dist/contracts/abis/mainnet/PufferVaultV2.cjs.map +0 -1
- package/dist/contracts/abis/mainnet/PufferVaultV2.d.ts +0 -185
- package/dist/contracts/abis/mainnet/PufferVaultV2.js +0 -252
- package/dist/contracts/abis/mainnet/PufferVaultV2.js.map +0 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var c = (i, t, e) => t in i ? r(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var n = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { V as s } from "../../constants-C9YZ6Ewc.js";
|
|
5
|
+
import { GaugeRegistry as h } from "../abis/mainnet/GaugeRegistry.js";
|
|
6
|
+
import { CONTRACT_ADDRESSES as u } from "../addresses.js";
|
|
7
|
+
import { g as o } from "../../getContract-DEPNMZxg.js";
|
|
8
|
+
class d {
|
|
9
|
+
/**
|
|
10
|
+
* Create the handler for the `GaugeRegistry` contract exposing methods to
|
|
11
|
+
* interact with the contract.
|
|
12
|
+
*
|
|
13
|
+
* @param chain Chain to use for the client.
|
|
14
|
+
* @param walletClient The wallet client to use for wallet
|
|
15
|
+
* interactions.
|
|
16
|
+
* @param publicClient The public client to use for public
|
|
17
|
+
* interactions.
|
|
18
|
+
*/
|
|
19
|
+
constructor(t, e, a) {
|
|
20
|
+
n(this, "viemChain");
|
|
21
|
+
this.chain = t, this.walletClient = e, this.publicClient = a, this.viemChain = s[t];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get the contract.
|
|
25
|
+
*
|
|
26
|
+
* @returns The viem contract.
|
|
27
|
+
*/
|
|
28
|
+
getContract() {
|
|
29
|
+
const t = u[this.chain].GaugeRegistry, e = h, a = { public: this.publicClient, wallet: this.walletClient };
|
|
30
|
+
return o({ address: t, abi: e, client: a });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the owner of the contract.
|
|
34
|
+
*
|
|
35
|
+
* @returns The owner address.
|
|
36
|
+
*/
|
|
37
|
+
owner() {
|
|
38
|
+
return this.getContract().read.owner();
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get the pending owner of the contract.
|
|
42
|
+
*
|
|
43
|
+
* @returns The pending owner address.
|
|
44
|
+
*/
|
|
45
|
+
pendingOwner() {
|
|
46
|
+
return this.getContract().read.pendingOwner();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a gauge exists.
|
|
50
|
+
*
|
|
51
|
+
* @param gauge The gauge address to check.
|
|
52
|
+
* @returns True if the gauge exists, false otherwise.
|
|
53
|
+
*/
|
|
54
|
+
gaugeExists(t) {
|
|
55
|
+
return this.getContract().read.gaugeExists([t]);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a gauge is active.
|
|
59
|
+
*
|
|
60
|
+
* @param gauge The gauge address to check.
|
|
61
|
+
* @returns True if the gauge is active, false otherwise.
|
|
62
|
+
*/
|
|
63
|
+
isActive(t) {
|
|
64
|
+
return this.getContract().read.isActive([t]);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get gauge information.
|
|
68
|
+
*
|
|
69
|
+
* @param gauge The gauge address.
|
|
70
|
+
* @returns The gauge information including active status, creation time, and metadata URI.
|
|
71
|
+
*/
|
|
72
|
+
async getGauge(t) {
|
|
73
|
+
return await this.getContract().read.getGauge([t]);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get the list of all gauges.
|
|
77
|
+
*
|
|
78
|
+
* @returns Array of gauge addresses.
|
|
79
|
+
*/
|
|
80
|
+
getGaugeList() {
|
|
81
|
+
return this.getContract().read.getGaugeList();
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Register a new gauge.
|
|
85
|
+
*
|
|
86
|
+
* @param gauge The gauge address to register.
|
|
87
|
+
* @param metadataURI The metadata URI for the gauge.
|
|
88
|
+
* @returns The transaction.
|
|
89
|
+
*/
|
|
90
|
+
registerGauge(t, e) {
|
|
91
|
+
return this.getContract().write.registerGauge([t, e], {
|
|
92
|
+
account: this.walletClient.account,
|
|
93
|
+
chain: this.viemChain
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Activate a gauge.
|
|
98
|
+
*
|
|
99
|
+
* @param gauge The gauge address to activate.
|
|
100
|
+
* @returns The transaction.
|
|
101
|
+
*/
|
|
102
|
+
activateGauge(t) {
|
|
103
|
+
return this.getContract().write.activateGauge([t], {
|
|
104
|
+
account: this.walletClient.account,
|
|
105
|
+
chain: this.viemChain
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Deactivate a gauge.
|
|
110
|
+
*
|
|
111
|
+
* @param gauge The gauge address to deactivate.
|
|
112
|
+
* @returns The transaction.
|
|
113
|
+
*/
|
|
114
|
+
deactivateGauge(t) {
|
|
115
|
+
return this.getContract().write.deactivateGauge([t], {
|
|
116
|
+
account: this.walletClient.account,
|
|
117
|
+
chain: this.viemChain
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Update gauge metadata.
|
|
122
|
+
*
|
|
123
|
+
* @param gauge The gauge address to update.
|
|
124
|
+
* @param metadataURI The new metadata URI for the gauge.
|
|
125
|
+
* @returns The transaction.
|
|
126
|
+
*/
|
|
127
|
+
updateGaugeMetadata(t, e) {
|
|
128
|
+
return this.getContract().write.updateGaugeMetadata([t, e], {
|
|
129
|
+
account: this.walletClient.account,
|
|
130
|
+
chain: this.viemChain
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Transfer ownership to a new owner.
|
|
135
|
+
*
|
|
136
|
+
* @param newOwner The new owner address.
|
|
137
|
+
* @returns The transaction.
|
|
138
|
+
*/
|
|
139
|
+
transferOwnership(t) {
|
|
140
|
+
return this.getContract().write.transferOwnership([t], {
|
|
141
|
+
account: this.walletClient.account,
|
|
142
|
+
chain: this.viemChain
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Accept ownership transfer.
|
|
147
|
+
*
|
|
148
|
+
* @returns The transaction.
|
|
149
|
+
*/
|
|
150
|
+
acceptOwnership() {
|
|
151
|
+
return this.getContract().write.acceptOwnership({
|
|
152
|
+
account: this.walletClient.account,
|
|
153
|
+
chain: this.viemChain
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Renounce ownership.
|
|
158
|
+
*
|
|
159
|
+
* @returns The transaction.
|
|
160
|
+
*/
|
|
161
|
+
renounceOwnership() {
|
|
162
|
+
return this.getContract().write.renounceOwnership({
|
|
163
|
+
account: this.walletClient.account,
|
|
164
|
+
chain: this.viemChain
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
d as GaugeRegistryHandler
|
|
170
|
+
};
|
|
171
|
+
//# sourceMappingURL=gauge-registry-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gauge-registry-handler.js","sources":["../../../lib/contracts/handlers/gauge-registry-handler.ts"],"sourcesContent":["import {\n Address,\n GetContractReturnType,\n PublicClient,\n Chain as ViemChain,\n WalletClient,\n getContract,\n Account,\n} from 'viem';\nimport { Chain, VIEM_CHAINS } from '../../chains/constants';\nimport { GaugeRegistry } from '../abis/mainnet/GaugeRegistry';\nimport { CONTRACT_ADDRESSES } from '../addresses';\n\n/**\n * Handler for the `GaugeRegistry` contract exposing methods to interact\n * with the contract.\n */\nexport class GaugeRegistryHandler {\n private viemChain: ViemChain;\n\n /**\n * Create the handler for the `GaugeRegistry` contract exposing methods to\n * interact with the contract.\n *\n * @param chain Chain to use for the client.\n * @param walletClient The wallet client to use for wallet\n * interactions.\n * @param publicClient The public client to use for public\n * interactions.\n */\n constructor(\n private chain: Chain,\n private walletClient: WalletClient,\n private publicClient: PublicClient,\n ) {\n this.viemChain = VIEM_CHAINS[chain];\n }\n\n /**\n * Get the contract.\n *\n * @returns The viem contract.\n */\n public getContract() {\n const address = CONTRACT_ADDRESSES[this.chain as number]\n .GaugeRegistry as Address;\n const abi = GaugeRegistry;\n const client = { public: this.publicClient, wallet: this.walletClient };\n\n return getContract({ address, abi, client }) as GetContractReturnType<\n typeof GaugeRegistry,\n typeof client,\n Address\n >;\n }\n\n /**\n * Get the owner of the contract.\n *\n * @returns The owner address.\n */\n public owner() {\n return this.getContract().read.owner();\n }\n\n /**\n * Get the pending owner of the contract.\n *\n * @returns The pending owner address.\n */\n public pendingOwner() {\n return this.getContract().read.pendingOwner();\n }\n\n /**\n * Check if a gauge exists.\n *\n * @param gauge The gauge address to check.\n * @returns True if the gauge exists, false otherwise.\n */\n public gaugeExists(gauge: Address) {\n return this.getContract().read.gaugeExists([gauge]);\n }\n\n /**\n * Check if a gauge is active.\n *\n * @param gauge The gauge address to check.\n * @returns True if the gauge is active, false otherwise.\n */\n public isActive(gauge: Address) {\n return this.getContract().read.isActive([gauge]);\n }\n\n /**\n * Get gauge information.\n *\n * @param gauge The gauge address.\n * @returns The gauge information including active status, creation time, and metadata URI.\n */\n public async getGauge(gauge: Address) {\n return await this.getContract().read.getGauge([gauge]);\n }\n\n /**\n * Get the list of all gauges.\n *\n * @returns Array of gauge addresses.\n */\n public getGaugeList() {\n return this.getContract().read.getGaugeList();\n }\n\n /**\n * Register a new gauge.\n *\n * @param gauge The gauge address to register.\n * @param metadataURI The metadata URI for the gauge.\n * @returns The transaction.\n */\n public registerGauge(gauge: Address, metadataURI: string) {\n return this.getContract().write.registerGauge([gauge, metadataURI], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Activate a gauge.\n *\n * @param gauge The gauge address to activate.\n * @returns The transaction.\n */\n public activateGauge(gauge: Address) {\n return this.getContract().write.activateGauge([gauge], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Deactivate a gauge.\n *\n * @param gauge The gauge address to deactivate.\n * @returns The transaction.\n */\n public deactivateGauge(gauge: Address) {\n return this.getContract().write.deactivateGauge([gauge], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Update gauge metadata.\n *\n * @param gauge The gauge address to update.\n * @param metadataURI The new metadata URI for the gauge.\n * @returns The transaction.\n */\n public updateGaugeMetadata(gauge: Address, metadataURI: string) {\n return this.getContract().write.updateGaugeMetadata([gauge, metadataURI], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Transfer ownership to a new owner.\n *\n * @param newOwner The new owner address.\n * @returns The transaction.\n */\n public transferOwnership(newOwner: Address) {\n return this.getContract().write.transferOwnership([newOwner], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Accept ownership transfer.\n *\n * @returns The transaction.\n */\n public acceptOwnership() {\n return this.getContract().write.acceptOwnership({\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Renounce ownership.\n *\n * @returns The transaction.\n */\n public renounceOwnership() {\n return this.getContract().write.renounceOwnership({\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n}\n"],"names":["GaugeRegistryHandler","chain","walletClient","publicClient","__publicField","VIEM_CHAINS","address","CONTRACT_ADDRESSES","abi","GaugeRegistry","client","getContract","gauge","metadataURI","newOwner"],"mappings":"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"}
|
package/dist/utils/version.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="1.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="1.27.0",o=e;exports.version=o;
|
|
2
2
|
//# sourceMappingURL=version.cjs.map
|
package/dist/utils/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{type:"function",name:"deposit",inputs:[{name:"assets",type:"uint256",internalType:"uint256"},{name:"receiver",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"depositETH",inputs:[{name:"receiver",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"payable"},{type:"function",name:"balanceOf",inputs:[{name:"account",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"previewDeposit",inputs:[{name:"assets",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"allowance",inputs:[{name:"owner",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"withdraw",inputs:[{name:"assets",type:"uint256",internalType:"uint256"},{name:"receiver",type:"address",internalType:"address"},{name:"owner",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"previewRedeem",inputs:[{name:"shares",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"maxRedeem",inputs:[{name:"owner",type:"address",internalType:"address"}],outputs:[{name:"maxShares",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getExitFeeBasisPoints",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getRemainingAssetsDailyWithdrawalLimit",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"redeem",inputs:[{name:"shares",type:"uint256",internalType:"uint256"},{name:"receiver",type:"address",internalType:"address"},{name:"owner",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"convertToAssets",inputs:[{name:"shares",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"}];exports.PufferVaultV2=e;
|
|
2
|
-
//# sourceMappingURL=PufferVaultV2.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PufferVaultV2.cjs","sources":["../../../../lib/contracts/abis/mainnet/PufferVaultV2.ts"],"sourcesContent":["export const PufferVaultV2 = <const>[\n {\n type: 'function',\n name: 'deposit',\n inputs: [\n {\n name: 'assets',\n type: 'uint256',\n internalType: 'uint256',\n },\n {\n name: 'receiver',\n type: 'address',\n internalType: 'address',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'nonpayable',\n },\n {\n type: 'function',\n name: 'depositETH',\n inputs: [\n {\n name: 'receiver',\n type: 'address',\n internalType: 'address',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'payable',\n },\n {\n type: 'function',\n name: 'balanceOf',\n inputs: [\n {\n name: 'account',\n type: 'address',\n internalType: 'address',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n {\n type: 'function',\n name: 'previewDeposit',\n inputs: [\n {\n name: 'assets',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n {\n type: 'function',\n name: 'allowance',\n inputs: [\n {\n name: 'owner',\n type: 'address',\n internalType: 'address',\n },\n {\n name: 'spender',\n type: 'address',\n internalType: 'address',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n {\n type: 'function',\n name: 'withdraw',\n inputs: [\n {\n name: 'assets',\n type: 'uint256',\n internalType: 'uint256',\n },\n {\n name: 'receiver',\n type: 'address',\n internalType: 'address',\n },\n {\n name: 'owner',\n type: 'address',\n internalType: 'address',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'nonpayable',\n },\n {\n type: 'function',\n name: 'previewRedeem',\n inputs: [\n {\n name: 'shares',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n {\n type: 'function',\n name: 'maxRedeem',\n inputs: [\n {\n name: 'owner',\n type: 'address',\n internalType: 'address',\n },\n ],\n outputs: [\n {\n name: 'maxShares',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n {\n type: 'function',\n name: 'getExitFeeBasisPoints',\n inputs: [],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n {\n type: 'function',\n name: 'getRemainingAssetsDailyWithdrawalLimit',\n inputs: [],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n {\n type: 'function',\n name: 'redeem',\n inputs: [\n {\n name: 'shares',\n type: 'uint256',\n internalType: 'uint256',\n },\n {\n name: 'receiver',\n type: 'address',\n internalType: 'address',\n },\n {\n name: 'owner',\n type: 'address',\n internalType: 'address',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'nonpayable',\n },\n {\n type: 'function',\n name: 'convertToAssets',\n inputs: [\n {\n name: 'shares',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n outputs: [\n {\n name: '',\n type: 'uint256',\n internalType: 'uint256',\n },\n ],\n stateMutability: 'view',\n },\n];\n"],"names":["PufferVaultV2"],"mappings":"gFAAO,MAAMA,EAAuB,CAClC,CACE,KAAM,WACN,KAAM,UACN,OAAQ,CACN,CACE,KAAM,SACN,KAAM,UACN,aAAc,SAChB,EACA,CACE,KAAM,WACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,YACnB,EACA,CACE,KAAM,WACN,KAAM,aACN,OAAQ,CACN,CACE,KAAM,WACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,SACnB,EACA,CACE,KAAM,WACN,KAAM,YACN,OAAQ,CACN,CACE,KAAM,UACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MACnB,EACA,CACE,KAAM,WACN,KAAM,iBACN,OAAQ,CACN,CACE,KAAM,SACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MACnB,EACA,CACE,KAAM,WACN,KAAM,YACN,OAAQ,CACN,CACE,KAAM,QACN,KAAM,UACN,aAAc,SAChB,EACA,CACE,KAAM,UACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MACnB,EACA,CACE,KAAM,WACN,KAAM,WACN,OAAQ,CACN,CACE,KAAM,SACN,KAAM,UACN,aAAc,SAChB,EACA,CACE,KAAM,WACN,KAAM,UACN,aAAc,SAChB,EACA,CACE,KAAM,QACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,YACnB,EACA,CACE,KAAM,WACN,KAAM,gBACN,OAAQ,CACN,CACE,KAAM,SACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MACnB,EACA,CACE,KAAM,WACN,KAAM,YACN,OAAQ,CACN,CACE,KAAM,QACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,YACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MACnB,EACA,CACE,KAAM,WACN,KAAM,wBACN,OAAQ,CAAC,EACT,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MACnB,EACA,CACE,KAAM,WACN,KAAM,yCACN,OAAQ,CAAC,EACT,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MACnB,EACA,CACE,KAAM,WACN,KAAM,SACN,OAAQ,CACN,CACE,KAAM,SACN,KAAM,UACN,aAAc,SAChB,EACA,CACE,KAAM,WACN,KAAM,UACN,aAAc,SAChB,EACA,CACE,KAAM,QACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,YACnB,EACA,CACE,KAAM,WACN,KAAM,kBACN,OAAQ,CACN,CACE,KAAM,SACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,SAAA,CAElB,EACA,gBAAiB,MAAA,CAErB"}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
export declare const PufferVaultV2: readonly [{
|
|
2
|
-
readonly type: "function";
|
|
3
|
-
readonly name: "deposit";
|
|
4
|
-
readonly inputs: readonly [{
|
|
5
|
-
readonly name: "assets";
|
|
6
|
-
readonly type: "uint256";
|
|
7
|
-
readonly internalType: "uint256";
|
|
8
|
-
}, {
|
|
9
|
-
readonly name: "receiver";
|
|
10
|
-
readonly type: "address";
|
|
11
|
-
readonly internalType: "address";
|
|
12
|
-
}];
|
|
13
|
-
readonly outputs: readonly [{
|
|
14
|
-
readonly name: "";
|
|
15
|
-
readonly type: "uint256";
|
|
16
|
-
readonly internalType: "uint256";
|
|
17
|
-
}];
|
|
18
|
-
readonly stateMutability: "nonpayable";
|
|
19
|
-
}, {
|
|
20
|
-
readonly type: "function";
|
|
21
|
-
readonly name: "depositETH";
|
|
22
|
-
readonly inputs: readonly [{
|
|
23
|
-
readonly name: "receiver";
|
|
24
|
-
readonly type: "address";
|
|
25
|
-
readonly internalType: "address";
|
|
26
|
-
}];
|
|
27
|
-
readonly outputs: readonly [{
|
|
28
|
-
readonly name: "";
|
|
29
|
-
readonly type: "uint256";
|
|
30
|
-
readonly internalType: "uint256";
|
|
31
|
-
}];
|
|
32
|
-
readonly stateMutability: "payable";
|
|
33
|
-
}, {
|
|
34
|
-
readonly type: "function";
|
|
35
|
-
readonly name: "balanceOf";
|
|
36
|
-
readonly inputs: readonly [{
|
|
37
|
-
readonly name: "account";
|
|
38
|
-
readonly type: "address";
|
|
39
|
-
readonly internalType: "address";
|
|
40
|
-
}];
|
|
41
|
-
readonly outputs: readonly [{
|
|
42
|
-
readonly name: "";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
readonly internalType: "uint256";
|
|
45
|
-
}];
|
|
46
|
-
readonly stateMutability: "view";
|
|
47
|
-
}, {
|
|
48
|
-
readonly type: "function";
|
|
49
|
-
readonly name: "previewDeposit";
|
|
50
|
-
readonly inputs: readonly [{
|
|
51
|
-
readonly name: "assets";
|
|
52
|
-
readonly type: "uint256";
|
|
53
|
-
readonly internalType: "uint256";
|
|
54
|
-
}];
|
|
55
|
-
readonly outputs: readonly [{
|
|
56
|
-
readonly name: "";
|
|
57
|
-
readonly type: "uint256";
|
|
58
|
-
readonly internalType: "uint256";
|
|
59
|
-
}];
|
|
60
|
-
readonly stateMutability: "view";
|
|
61
|
-
}, {
|
|
62
|
-
readonly type: "function";
|
|
63
|
-
readonly name: "allowance";
|
|
64
|
-
readonly inputs: readonly [{
|
|
65
|
-
readonly name: "owner";
|
|
66
|
-
readonly type: "address";
|
|
67
|
-
readonly internalType: "address";
|
|
68
|
-
}, {
|
|
69
|
-
readonly name: "spender";
|
|
70
|
-
readonly type: "address";
|
|
71
|
-
readonly internalType: "address";
|
|
72
|
-
}];
|
|
73
|
-
readonly outputs: readonly [{
|
|
74
|
-
readonly name: "";
|
|
75
|
-
readonly type: "uint256";
|
|
76
|
-
readonly internalType: "uint256";
|
|
77
|
-
}];
|
|
78
|
-
readonly stateMutability: "view";
|
|
79
|
-
}, {
|
|
80
|
-
readonly type: "function";
|
|
81
|
-
readonly name: "withdraw";
|
|
82
|
-
readonly inputs: readonly [{
|
|
83
|
-
readonly name: "assets";
|
|
84
|
-
readonly type: "uint256";
|
|
85
|
-
readonly internalType: "uint256";
|
|
86
|
-
}, {
|
|
87
|
-
readonly name: "receiver";
|
|
88
|
-
readonly type: "address";
|
|
89
|
-
readonly internalType: "address";
|
|
90
|
-
}, {
|
|
91
|
-
readonly name: "owner";
|
|
92
|
-
readonly type: "address";
|
|
93
|
-
readonly internalType: "address";
|
|
94
|
-
}];
|
|
95
|
-
readonly outputs: readonly [{
|
|
96
|
-
readonly name: "";
|
|
97
|
-
readonly type: "uint256";
|
|
98
|
-
readonly internalType: "uint256";
|
|
99
|
-
}];
|
|
100
|
-
readonly stateMutability: "nonpayable";
|
|
101
|
-
}, {
|
|
102
|
-
readonly type: "function";
|
|
103
|
-
readonly name: "previewRedeem";
|
|
104
|
-
readonly inputs: readonly [{
|
|
105
|
-
readonly name: "shares";
|
|
106
|
-
readonly type: "uint256";
|
|
107
|
-
readonly internalType: "uint256";
|
|
108
|
-
}];
|
|
109
|
-
readonly outputs: readonly [{
|
|
110
|
-
readonly name: "";
|
|
111
|
-
readonly type: "uint256";
|
|
112
|
-
readonly internalType: "uint256";
|
|
113
|
-
}];
|
|
114
|
-
readonly stateMutability: "view";
|
|
115
|
-
}, {
|
|
116
|
-
readonly type: "function";
|
|
117
|
-
readonly name: "maxRedeem";
|
|
118
|
-
readonly inputs: readonly [{
|
|
119
|
-
readonly name: "owner";
|
|
120
|
-
readonly type: "address";
|
|
121
|
-
readonly internalType: "address";
|
|
122
|
-
}];
|
|
123
|
-
readonly outputs: readonly [{
|
|
124
|
-
readonly name: "maxShares";
|
|
125
|
-
readonly type: "uint256";
|
|
126
|
-
readonly internalType: "uint256";
|
|
127
|
-
}];
|
|
128
|
-
readonly stateMutability: "view";
|
|
129
|
-
}, {
|
|
130
|
-
readonly type: "function";
|
|
131
|
-
readonly name: "getExitFeeBasisPoints";
|
|
132
|
-
readonly inputs: readonly [];
|
|
133
|
-
readonly outputs: readonly [{
|
|
134
|
-
readonly name: "";
|
|
135
|
-
readonly type: "uint256";
|
|
136
|
-
readonly internalType: "uint256";
|
|
137
|
-
}];
|
|
138
|
-
readonly stateMutability: "view";
|
|
139
|
-
}, {
|
|
140
|
-
readonly type: "function";
|
|
141
|
-
readonly name: "getRemainingAssetsDailyWithdrawalLimit";
|
|
142
|
-
readonly inputs: readonly [];
|
|
143
|
-
readonly outputs: readonly [{
|
|
144
|
-
readonly name: "";
|
|
145
|
-
readonly type: "uint256";
|
|
146
|
-
readonly internalType: "uint256";
|
|
147
|
-
}];
|
|
148
|
-
readonly stateMutability: "view";
|
|
149
|
-
}, {
|
|
150
|
-
readonly type: "function";
|
|
151
|
-
readonly name: "redeem";
|
|
152
|
-
readonly inputs: readonly [{
|
|
153
|
-
readonly name: "shares";
|
|
154
|
-
readonly type: "uint256";
|
|
155
|
-
readonly internalType: "uint256";
|
|
156
|
-
}, {
|
|
157
|
-
readonly name: "receiver";
|
|
158
|
-
readonly type: "address";
|
|
159
|
-
readonly internalType: "address";
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "owner";
|
|
162
|
-
readonly type: "address";
|
|
163
|
-
readonly internalType: "address";
|
|
164
|
-
}];
|
|
165
|
-
readonly outputs: readonly [{
|
|
166
|
-
readonly name: "";
|
|
167
|
-
readonly type: "uint256";
|
|
168
|
-
readonly internalType: "uint256";
|
|
169
|
-
}];
|
|
170
|
-
readonly stateMutability: "nonpayable";
|
|
171
|
-
}, {
|
|
172
|
-
readonly type: "function";
|
|
173
|
-
readonly name: "convertToAssets";
|
|
174
|
-
readonly inputs: readonly [{
|
|
175
|
-
readonly name: "shares";
|
|
176
|
-
readonly type: "uint256";
|
|
177
|
-
readonly internalType: "uint256";
|
|
178
|
-
}];
|
|
179
|
-
readonly outputs: readonly [{
|
|
180
|
-
readonly name: "";
|
|
181
|
-
readonly type: "uint256";
|
|
182
|
-
readonly internalType: "uint256";
|
|
183
|
-
}];
|
|
184
|
-
readonly stateMutability: "view";
|
|
185
|
-
}];
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
const e = [
|
|
2
|
-
{
|
|
3
|
-
type: "function",
|
|
4
|
-
name: "deposit",
|
|
5
|
-
inputs: [
|
|
6
|
-
{
|
|
7
|
-
name: "assets",
|
|
8
|
-
type: "uint256",
|
|
9
|
-
internalType: "uint256"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
name: "receiver",
|
|
13
|
-
type: "address",
|
|
14
|
-
internalType: "address"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
outputs: [
|
|
18
|
-
{
|
|
19
|
-
name: "",
|
|
20
|
-
type: "uint256",
|
|
21
|
-
internalType: "uint256"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
stateMutability: "nonpayable"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: "function",
|
|
28
|
-
name: "depositETH",
|
|
29
|
-
inputs: [
|
|
30
|
-
{
|
|
31
|
-
name: "receiver",
|
|
32
|
-
type: "address",
|
|
33
|
-
internalType: "address"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
outputs: [
|
|
37
|
-
{
|
|
38
|
-
name: "",
|
|
39
|
-
type: "uint256",
|
|
40
|
-
internalType: "uint256"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
stateMutability: "payable"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
type: "function",
|
|
47
|
-
name: "balanceOf",
|
|
48
|
-
inputs: [
|
|
49
|
-
{
|
|
50
|
-
name: "account",
|
|
51
|
-
type: "address",
|
|
52
|
-
internalType: "address"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
outputs: [
|
|
56
|
-
{
|
|
57
|
-
name: "",
|
|
58
|
-
type: "uint256",
|
|
59
|
-
internalType: "uint256"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
stateMutability: "view"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
type: "function",
|
|
66
|
-
name: "previewDeposit",
|
|
67
|
-
inputs: [
|
|
68
|
-
{
|
|
69
|
-
name: "assets",
|
|
70
|
-
type: "uint256",
|
|
71
|
-
internalType: "uint256"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
outputs: [
|
|
75
|
-
{
|
|
76
|
-
name: "",
|
|
77
|
-
type: "uint256",
|
|
78
|
-
internalType: "uint256"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
stateMutability: "view"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: "function",
|
|
85
|
-
name: "allowance",
|
|
86
|
-
inputs: [
|
|
87
|
-
{
|
|
88
|
-
name: "owner",
|
|
89
|
-
type: "address",
|
|
90
|
-
internalType: "address"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "spender",
|
|
94
|
-
type: "address",
|
|
95
|
-
internalType: "address"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
outputs: [
|
|
99
|
-
{
|
|
100
|
-
name: "",
|
|
101
|
-
type: "uint256",
|
|
102
|
-
internalType: "uint256"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
stateMutability: "view"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
type: "function",
|
|
109
|
-
name: "withdraw",
|
|
110
|
-
inputs: [
|
|
111
|
-
{
|
|
112
|
-
name: "assets",
|
|
113
|
-
type: "uint256",
|
|
114
|
-
internalType: "uint256"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "receiver",
|
|
118
|
-
type: "address",
|
|
119
|
-
internalType: "address"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: "owner",
|
|
123
|
-
type: "address",
|
|
124
|
-
internalType: "address"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
outputs: [
|
|
128
|
-
{
|
|
129
|
-
name: "",
|
|
130
|
-
type: "uint256",
|
|
131
|
-
internalType: "uint256"
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
stateMutability: "nonpayable"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
type: "function",
|
|
138
|
-
name: "previewRedeem",
|
|
139
|
-
inputs: [
|
|
140
|
-
{
|
|
141
|
-
name: "shares",
|
|
142
|
-
type: "uint256",
|
|
143
|
-
internalType: "uint256"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
outputs: [
|
|
147
|
-
{
|
|
148
|
-
name: "",
|
|
149
|
-
type: "uint256",
|
|
150
|
-
internalType: "uint256"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
stateMutability: "view"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
type: "function",
|
|
157
|
-
name: "maxRedeem",
|
|
158
|
-
inputs: [
|
|
159
|
-
{
|
|
160
|
-
name: "owner",
|
|
161
|
-
type: "address",
|
|
162
|
-
internalType: "address"
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
outputs: [
|
|
166
|
-
{
|
|
167
|
-
name: "maxShares",
|
|
168
|
-
type: "uint256",
|
|
169
|
-
internalType: "uint256"
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
stateMutability: "view"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
type: "function",
|
|
176
|
-
name: "getExitFeeBasisPoints",
|
|
177
|
-
inputs: [],
|
|
178
|
-
outputs: [
|
|
179
|
-
{
|
|
180
|
-
name: "",
|
|
181
|
-
type: "uint256",
|
|
182
|
-
internalType: "uint256"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
stateMutability: "view"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
type: "function",
|
|
189
|
-
name: "getRemainingAssetsDailyWithdrawalLimit",
|
|
190
|
-
inputs: [],
|
|
191
|
-
outputs: [
|
|
192
|
-
{
|
|
193
|
-
name: "",
|
|
194
|
-
type: "uint256",
|
|
195
|
-
internalType: "uint256"
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
stateMutability: "view"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
type: "function",
|
|
202
|
-
name: "redeem",
|
|
203
|
-
inputs: [
|
|
204
|
-
{
|
|
205
|
-
name: "shares",
|
|
206
|
-
type: "uint256",
|
|
207
|
-
internalType: "uint256"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
name: "receiver",
|
|
211
|
-
type: "address",
|
|
212
|
-
internalType: "address"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
name: "owner",
|
|
216
|
-
type: "address",
|
|
217
|
-
internalType: "address"
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
outputs: [
|
|
221
|
-
{
|
|
222
|
-
name: "",
|
|
223
|
-
type: "uint256",
|
|
224
|
-
internalType: "uint256"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
stateMutability: "nonpayable"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
type: "function",
|
|
231
|
-
name: "convertToAssets",
|
|
232
|
-
inputs: [
|
|
233
|
-
{
|
|
234
|
-
name: "shares",
|
|
235
|
-
type: "uint256",
|
|
236
|
-
internalType: "uint256"
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
outputs: [
|
|
240
|
-
{
|
|
241
|
-
name: "",
|
|
242
|
-
type: "uint256",
|
|
243
|
-
internalType: "uint256"
|
|
244
|
-
}
|
|
245
|
-
],
|
|
246
|
-
stateMutability: "view"
|
|
247
|
-
}
|
|
248
|
-
];
|
|
249
|
-
export {
|
|
250
|
-
e as PufferVaultV2
|
|
251
|
-
};
|
|
252
|
-
//# sourceMappingURL=PufferVaultV2.js.map
|