@pufferfinance/puffer-sdk 1.22.1 → 1.23.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/dist/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.js +13 -13
- 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 +30 -23
- package/dist/api/puffer-client.js.map +1 -1
- package/dist/{ccip-ChHXXL5d.js → ccip-CiQCCFUl.js} +14 -14
- package/dist/{ccip-ChHXXL5d.js.map → ccip-CiQCCFUl.js.map} +1 -1
- package/dist/{ccip-oOJ9rRj3.cjs → ccip-DIWF4nDh.cjs} +2 -2
- package/dist/{ccip-oOJ9rRj3.cjs.map → ccip-DIWF4nDh.cjs.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.js +1 -1
- package/dist/{constants-LC89CXNv.js → constants-BaHwPdbi.js} +60 -60
- package/dist/{constants-LC89CXNv.js.map → constants-BaHwPdbi.js.map} +1 -1
- package/dist/{constants-BI6T6ZbJ.cjs → constants-c-vATmlG.cjs} +2 -2
- package/dist/{constants-BI6T6ZbJ.cjs.map → constants-c-vATmlG.cjs.map} +1 -1
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.cjs +2 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.d.ts +513 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.js +310 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.js +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.js +2 -2
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
- package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
- package/dist/contracts/handlers/guardian-module-handler.js +2 -2
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs +2 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs.map +1 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +15374 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.js +504 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.js.map +1 -0
- package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.d.ts +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.js +3 -3
- package/dist/contracts/handlers/institutional-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.js +2 -2
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
- package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
- package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
- package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.js +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{createWalletClient-BI9ya5Hq.js → createWalletClient-D74YRepQ.js} +44 -44
- package/dist/{createWalletClient-BI9ya5Hq.js.map → createWalletClient-D74YRepQ.js.map} +1 -1
- package/dist/{createWalletClient-KYWq_Sx_.cjs → createWalletClient-DKSH6l9_.cjs} +2 -2
- package/dist/{createWalletClient-KYWq_Sx_.cjs.map → createWalletClient-DKSH6l9_.cjs.map} +1 -1
- package/dist/{getContract-Ck2VtUkY.js → getContract-DGV8J5xI.js} +11 -11
- package/dist/{getContract-Ck2VtUkY.js.map → getContract-DGV8J5xI.js.map} +1 -1
- package/dist/{getContract-CPwqa1sR.cjs → getContract-RNLlK54b.cjs} +2 -2
- package/dist/{getContract-CPwqa1sR.cjs.map → getContract-RNLlK54b.cjs.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-rB-jsNOU.js → secp256k1-B-LxKJrQ.js} +2 -2
- package/dist/{secp256k1-rB-jsNOU.js.map → secp256k1-B-LxKJrQ.js.map} +1 -1
- package/dist/secp256k1-CC-cv1vD.cjs +2 -0
- package/dist/{secp256k1-93KDDbJS.cjs.map → secp256k1-CC-cv1vD.cjs.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/{writeContract-DlZ0jYhZ.js → writeContract-BU3yK-Xj.js} +513 -512
- package/dist/{writeContract-DlZ0jYhZ.js.map → writeContract-BU3yK-Xj.js.map} +1 -1
- package/dist/{writeContract-DPtg3nGu.cjs → writeContract-CKqv1dsa.cjs} +17 -17
- package/dist/{writeContract-DPtg3nGu.cjs.map → writeContract-CKqv1dsa.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/secp256k1-93KDDbJS.cjs +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
2
|
var o = (e, t, a) => t in e ? r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var c = (e, t, a) => o(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { V as h } from "../../constants-
|
|
4
|
+
import { V as h } from "../../constants-BaHwPdbi.js";
|
|
5
5
|
import { CONTRACT_ADDRESSES as m } from "../addresses.js";
|
|
6
6
|
import { PufferVaultV2 as C } from "../abis/mainnet/PufferVaultV2.js";
|
|
7
|
-
import { g as u } from "../../getContract-
|
|
7
|
+
import { g as u } from "../../getContract-DGV8J5xI.js";
|
|
8
8
|
class l {
|
|
9
9
|
/**
|
|
10
10
|
* Create the handler for the `PufferVaultV2` contract exposing
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var l=(r,t,a)=>t in r?m(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var n=(r,t,a)=>l(r,typeof t!="symbol"?t+"":t,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../addresses.cjs"),C=require("../../constants-
|
|
1
|
+
"use strict";var m=Object.defineProperty;var l=(r,t,a)=>t in r?m(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var n=(r,t,a)=>l(r,typeof t!="symbol"?t+"":t,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../addresses.cjs"),C=require("../../constants-c-vATmlG.cjs"),g=require("./erc20-permit-handler.cjs"),w=require("../tokens.cjs"),W=require("../abis/mainnet/PufferWithdrawalManager.cjs"),d=require("../../getContract-RNLlK54b.cjs");class P{constructor(t,a,e){n(this,"viemChain");n(this,"erc20PermitHandler");this.chain=t,this.walletClient=a,this.publicClient=e,this.viemChain=C.VIEM_CHAINS[t],this.erc20PermitHandler=new g.ERC20PermitHandler(t,a,e)}getContract(){const t=s.CONTRACT_ADDRESSES[this.chain].PufferWithdrawalManager,a=W.PufferWithdrawalManager,e={public:this.publicClient,wallet:this.walletClient};return d.getContract({address:t,abi:a,client:e})}async requestWithdrawal(t,a){return{transact:async()=>await this.getContract().write.requestWithdrawal([a,t],{account:t,chain:this.viemChain}),estimate:async()=>await this.getContract().estimateGas.requestWithdrawal([a,t],{account:t})}}async requestWithdrawalWithPermit(t,a){const{r:e,s:i,v:h,yParity:o,deadline:u}=await this.erc20PermitHandler.withToken(w.Token.pufETH).getPermitSignature(t,s.CONTRACT_ADDRESSES[this.chain].PufferWithdrawalManager,a),c={r:e,s:i,v:Number(h??o),deadline:u,amount:a};return{transact:async()=>await this.getContract().write.requestWithdrawalWithPermit([c,t],{account:t,chain:this.viemChain}),estimate:async()=>await this.getContract().estimateGas.requestWithdrawalWithPermit([c,t],{account:t})}}async completeQueuedWithdrawal(t,a){return{transact:async()=>await this.getContract().write.completeQueuedWithdrawal([a],{account:t,chain:this.viemChain}),estimate:async()=>await this.getContract().estimateGas.completeQueuedWithdrawal([a],{account:t})}}async getWithdrawal(t){return await this.getContract().read.getWithdrawal([t])}}exports.PufferWithdrawalManagerHandler=P;
|
|
2
2
|
//# sourceMappingURL=puffer-withdrawal-manager-handler.cjs.map
|
|
@@ -2,11 +2,11 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var w = (e, t, a) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var n = (e, t, a) => w(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import { CONTRACT_ADDRESSES as s } from "../addresses.js";
|
|
5
|
-
import { V as C } from "../../constants-
|
|
5
|
+
import { V as C } from "../../constants-BaHwPdbi.js";
|
|
6
6
|
import { ERC20PermitHandler as g } from "./erc20-permit-handler.js";
|
|
7
7
|
import { Token as W } from "../tokens.js";
|
|
8
8
|
import { PufferWithdrawalManager as l } from "../abis/mainnet/PufferWithdrawalManager.js";
|
|
9
|
-
import { g as f } from "../../getContract-
|
|
9
|
+
import { g as f } from "../../getContract-DGV8J5xI.js";
|
|
10
10
|
class S {
|
|
11
11
|
/**
|
|
12
12
|
* Create the handler for the `PufferWithdrawalsManager` contract exposing
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var h=Object.defineProperty;var l=(i,t,e)=>t in i?h(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>l(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../constants-
|
|
1
|
+
"use strict";var h=Object.defineProperty;var l=(i,t,e)=>t in i?h(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>l(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../constants-c-vATmlG.cjs"),C=require("../addresses.cjs"),g=require("../abis/mainnet/ValidatorTicket.cjs"),d=require("../../getContract-RNLlK54b.cjs");class m{constructor(t,e,a){r(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=a,this.viemChain=u.VIEM_CHAINS[t]}getContract(){const t=C.CONTRACT_ADDRESSES[this.chain].ValidatorTicket,e=g.ValidatorTicket,a={public:this.publicClient,wallet:this.walletClient};return d.getContract({address:t,abi:e,client:a})}purchaseValidatorTicket(t,e){return this.getContract().write.purchaseValidatorTicket([t],{account:this.walletClient.account,chain:this.viemChain,value:e})}purchaseValidatorTicketWithPufETH(t,e){return this.getContract().write.purchaseValidatorTicketWithPufETH([t,e],{account:this.walletClient.account,chain:this.viemChain})}purchaseValidatorTicketWithPufETHAndPermit(t,e,a){return this.getContract().write.purchaseValidatorTicketWithPufETHAndPermit([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}getBalance(t){return this.getContract().read.balanceOf([t])}getTotalSupply(){return this.getContract().read.totalSupply()}burn(t){return this.getContract().write.burn([t],{account:this.walletClient.account,chain:this.viemChain})}transfer(t,e){return this.getContract().write.transfer([t,e],{account:this.walletClient.account,chain:this.viemChain})}transferFrom(t,e,a){return this.getContract().write.transferFrom([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}getGuardiansFeeRate(){return this.getContract().read.getGuardiansFeeRate()}getProtocolFeeRate(){return this.getContract().read.getProtocolFeeRate()}getDomainSeparator(){return this.getContract().read.DOMAIN_SEPARATOR()}getNonce(t){return this.getContract().read.nonces([t])}permit(t,e,a,n,c,o,s){return this.getContract().write.permit([t,e,a,n,c,o,s],{account:this.walletClient.account,chain:this.viemChain})}getEip712Domain(){return this.getContract().read.eip712Domain()}getName(){return this.getContract().read.name()}getSymbol(){return this.getContract().read.symbol()}getDecimals(){return this.getContract().read.decimals()}}exports.ValidatorTicketHandler=m;
|
|
2
2
|
//# sourceMappingURL=validator-ticket-handler.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var s = Object.defineProperty;
|
|
2
2
|
var l = (i, t, e) => t in i ? s(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var r = (i, t, e) => l(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { V as u } from "../../constants-
|
|
4
|
+
import { V as u } from "../../constants-BaHwPdbi.js";
|
|
5
5
|
import { CONTRACT_ADDRESSES as C } from "../addresses.js";
|
|
6
6
|
import { ValidatorTicket as g } from "../abis/mainnet/ValidatorTicket.js";
|
|
7
|
-
import { g as m } from "../../getContract-
|
|
7
|
+
import { g as m } from "../../getContract-DGV8J5xI.js";
|
|
8
8
|
class v {
|
|
9
9
|
/**
|
|
10
10
|
* Create the handler for the `ValidatorTicket` contract exposing
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../constants-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../constants-c-vATmlG.cjs");var C=(e=>(e.USDT="USDT",e.USDC="USDC",e.DAI="DAI",e.WETH="WETH",e.stETH="stETH",e.wstETH="wstETH",e.eETH="eETH",e.cbETH="cbETH",e.ALT="ALT",e.pufETHwstE="pufETHwstE",e.pufETH="pufETH",e.xPufETH="xPufETH",e.ctTACpufETH="ctTACpufETH",e.WBTC="WBTC",e.LBTC="LBTC",e.tBTC="tBTC",e.cbBTC="cbBTC",e.pumpBTC="pumpBTC",e.SolvBTC="SolvBTC",e.PUFFER="PUFFER",e.vePUFFER="vePUFFER",e.CARROT="CARROT",e.lvlUSD="lvlUSD",e.slvlUSD="slvlUSD",e.mtwCARROT="mtwCARROT",e.sCARROT="sCARROT",e.LINK="LINK",e.TEST="TEST",e.VT="VT",e))(C||{}),i=(e=>(e.unifiETH="unifiETH",e.unifiUSD="unifiUSD",e.unifiBTC="unifiBTC",e.pufETHs="pufETHs",e))(i||{});const n={VT:{[a.Chain.Mainnet]:"0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A",[a.Chain.Holesky]:"0xB028194785178a94Fe608994A4d5AD84c285A640"},TEST:{[a.Chain.Sepolia]:"0xd26e3540a0a368845b234736a0700e0a5a821bba",[a.Chain.OptimismSepolia]:"0x7Fa13D6CB44164ea09dF8BCc673A8849092D435b"},LINK:{[a.Chain.BaseSepolia]:"0xe4ab69c077896252fafbd49efd26b5d171a32410",[a.Chain.OptimismSepolia]:"0xE4aB69C077896252FAFBD49EFD26B5D171A32410"},USDT:{[a.Chain.Mainnet]:"0xdac17f958d2ee523a2206206994597c13d831ec7",[a.Chain.Holesky]:"0xd5bef2c64f418fd460319521d37862327122e3bc",[a.Chain.Sepolia]:"0xaa8e23fb1079ea71e0a56f48a2aa51851d8433d0"},USDC:{[a.Chain.Mainnet]:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",[a.Chain.Holesky]:"0x64Cc0de0429bcb87e875905a0c313ec88f6d1d3E"},DAI:{[a.Chain.Mainnet]:"0x6b175474e89094c44da98b954eedeac495271d0f",[a.Chain.Holesky]:"0x4478905505ddfb7eA1c8A9f46eAEC3695cE542ac"},WETH:{[a.Chain.Mainnet]:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",[a.Chain.Holesky]:"0x1d181cBd1825e9eBC6AD966878D555A7215FF4F0"},stETH:{[a.Chain.Mainnet]:"0xae7ab96520de3a18e5e111b5eaab095312d7fe84",[a.Chain.Holesky]:"0x3F1c547b21f65e10480dE3ad8E19fAAC46C95034"},wstETH:{[a.Chain.Mainnet]:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",[a.Chain.Holesky]:"0x8d09a4502Cc8Cf1547aD300E066060D043f6982D"},eETH:{[a.Chain.Mainnet]:"0x35fa164735182de50811e8e2e824cfb9b6118ac2",[a.Chain.Holesky]:"0x7ba2ee123b5977e3da040e1eacb3a61c82c17876"},cbETH:{[a.Chain.Mainnet]:"0xbe9895146f7af43049ca1c1ae358b0541ea49704",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},ALT:{[a.Chain.Mainnet]:"0x8457ca5040ad67fdebbcc8edce889a335bc0fbfb",[a.Chain.Holesky]:"0xaf5588a571b42c7e50bd440d80f9bf94a4db94ee"},pufETHwstE:{[a.Chain.Mainnet]:"0xeeda34a377dd0ca676b9511ee1324974fa8d980d",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},pufETH:{[a.Chain.Mainnet]:"0xd9a442856c234a39a81a089c06451ebaa4306a72",[a.Chain.Holesky]:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",[a.Chain.Soneium]:"0x6c460b2c6D6719562D5dA43E5152B375e79B9A8B",[a.Chain.Arbitrum]:"0x37D6382B6889cCeF8d6871A8b60E667115eDDBcF",[a.Chain.Berachain]:"0x417b0Ff8358Eb72867Da92225CaB99BCD5e6F205"},xPufETH:{[a.Chain.Mainnet]:"0xD7D2802f6b19843ac4DfE25022771FD83b5A7464",[a.Chain.Base]:"0x23dA5F2d509cb43A59d43C108a43eDf34510eff1",[a.Chain.Bsc]:"0x64274835D88F5c0215da8AADd9A5f2D2A2569381",[a.Chain.ApeChain]:"0x6234E5ef39B12EFdFcbd99dd7F452F27F3fEAE3b",[a.Chain.Zircuit]:"0x9346A5043C590133FE900aec643D9622EDddBA57"},ctTACpufETH:{[a.Chain.Mainnet]:"0x78f314241df1ac151bfd0413eeb51979515f6abd",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},WBTC:{[a.Chain.Mainnet]:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},LBTC:{[a.Chain.Mainnet]:"0x8236a87084f8b84306f72007f36f2618a5634494",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},tBTC:{[a.Chain.Mainnet]:"0x18084fbA666a33d37592fA2633fD49a74DD93a88",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},cbBTC:{[a.Chain.Mainnet]:"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},pumpBTC:{[a.Chain.Mainnet]:"0xf469fbd2abcd6b9de8e169d128226c0fc90a012e",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},SolvBTC:{[a.Chain.Mainnet]:"0x7a56e1c57c7475ccf742a1832b028f0456652f97",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},PUFFER:{[a.Chain.Mainnet]:"0x4d1c297d39c5c1277964d0e3f8aa901493664530",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},vePUFFER:{[a.Chain.Mainnet]:"0xA55eD5808aeCDF23AE3782C1443185f5D2363ce7"},CARROT:{[a.Chain.Mainnet]:"0x282a69142bac47855c3fbe1693fcc4ba3b4d5ed6",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},lvlUSD:{[a.Chain.Mainnet]:"0x7C1156E515aA1A2E851674120074968C905aAF37",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},slvlUSD:{[a.Chain.Mainnet]:"0x4737d9b4592b40d51e110b94c9c043c6654067ae",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},mtwCARROT:{[a.Chain.Mainnet]:"0x8A5A5DE9db5770123Ff2145F59e9F20047f0A8EC",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},sCARROT:{[a.Chain.Mainnet]:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},unifiETH:{[a.Chain.Mainnet]:"0x196ead472583bc1e9af7a05f860d9857e1bd3dcc",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},unifiUSD:{[a.Chain.Mainnet]:"0x82c40e07277eBb92935f79cE92268F80dDc7caB4",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},unifiBTC:{[a.Chain.Mainnet]:"0x170d847a8320f3b6a77ee15b0cae430e3ec933a0",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"},pufETHs:{[a.Chain.Mainnet]:"0x62a4ce0722ee65635c0f8339dd814d549b6f6735",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000"}},c={USDT:"",USDC:"",DAI:"",WETH:"",stETH:"2",wstETH:"1",eETH:"1",cbETH:"2",ALT:"1",pufETHwstE:"v7.0.0",pufETH:"1",xPufETH:"1",ctTACpufETH:"",WBTC:"",LBTC:"",tBTC:"",cbBTC:"",pumpBTC:"",SolvBTC:"",PUFFER:"1",vePUFFER:"1",CARROT:"1",lvlUSD:"1",slvlUSD:"",mtwCARROT:"",sCARROT:"",LINK:"",TEST:"",VT:"1",unifiETH:"1",unifiUSD:"1",unifiBTC:"1",pufETHs:"1"},f={pufETHwstE:{[a.Chain.Mainnet]:"0x0e986ed5610121905f03fd3850cebcc00f66166fc3ab760acb4e087d735d9457",[a.Chain.Holesky]:"0x0000000000000000000000000000000000000000000000000000000000000000"}};exports.TOKENS_ADDRESSES=n;exports.TOKENS_PERMIT_VERSION=c;exports.TOKENS_SALT=f;exports.Token=C;exports.UnifiToken=i;
|
|
2
2
|
//# sourceMappingURL=tokens.cjs.map
|
package/dist/contracts/tokens.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e } from "../constants-
|
|
1
|
+
import { C as e } from "../constants-BaHwPdbi.js";
|
|
2
2
|
var c = /* @__PURE__ */ ((a) => (a.USDT = "USDT", a.USDC = "USDC", a.DAI = "DAI", a.WETH = "WETH", a.stETH = "stETH", a.wstETH = "wstETH", a.eETH = "eETH", a.cbETH = "cbETH", a.ALT = "ALT", a.pufETHwstE = "pufETHwstE", a.pufETH = "pufETH", a.xPufETH = "xPufETH", a.ctTACpufETH = "ctTACpufETH", a.WBTC = "WBTC", a.LBTC = "LBTC", a.tBTC = "tBTC", a.cbBTC = "cbBTC", a.pumpBTC = "pumpBTC", a.SolvBTC = "SolvBTC", a.PUFFER = "PUFFER", a.vePUFFER = "vePUFFER", a.CARROT = "CARROT", a.lvlUSD = "lvlUSD", a.slvlUSD = "slvlUSD", a.mtwCARROT = "mtwCARROT", a.sCARROT = "sCARROT", a.LINK = "LINK", a.TEST = "TEST", a.VT = "VT", a))(c || {}), f = /* @__PURE__ */ ((a) => (a.unifiETH = "unifiETH", a.unifiUSD = "unifiUSD", a.unifiBTC = "unifiBTC", a.pufETHs = "pufETHs", a))(f || {});
|
|
3
3
|
const d = {
|
|
4
4
|
VT: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-c-vATmlG.cjs"),c=require("./tokens.cjs"),a={[c.UnifiToken.unifiETH]:{[e.Chain.Mainnet]:{NucleusBoringVault:"0x196ead472583bc1e9af7a05f860d9857e1bd3dcc",NucleusAccountant:"0xa9fb7e2922216debe3fd5e1bbe7591ee446dc21c",NucleusTeller:"0x08eb2eccdf6ebd7aba601791f23ec5b5f68a1d53"}},[c.UnifiToken.unifiUSD]:{[e.Chain.Mainnet]:{NucleusBoringVault:"0x82c40e07277eBb92935f79cE92268F80dDc7caB4",NucleusAccountant:"0xe0bDb7b9225A2CeB42998dc2E51D4D3CDeb7e3Be",NucleusTeller:"0x5d3Fb47FE7f3F4Ce8fe55518f7E4F7D6061B54DD"}},[c.UnifiToken.unifiBTC]:{[e.Chain.Mainnet]:{NucleusBoringVault:"0x170d847a8320f3b6a77ee15b0cae430e3ec933a0",NucleusAccountant:"0x2afb28b0561d99b5e00829ec2ef54946a00a35f7",NucleusTeller:"0x0743647a607822781f9d0a639454e76289182f0b"}},[c.UnifiToken.pufETHs]:{[e.Chain.Mainnet]:{NucleusBoringVault:"0x62a4ce0722ee65635c0f8339dd814d549b6f6735",NucleusAccountant:"0xa99a92c505ff92c543d9d48295f1f31024afb31f",NucleusTeller:"0xd049ebeaa59b75ba8ee38f9f6830db7293320236"}},[c.Token.ctTACpufETH]:{[e.Chain.Mainnet]:{ConcreteMultiStrategyVault:"0x78f314241df1ac151bfd0413eeb51979515f6abd"}}};exports.VAULTS_ADDRESSES=a;
|
|
2
2
|
//# sourceMappingURL=vaults-addresses.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as nt,
|
|
2
|
-
import { B as F, n as B,
|
|
3
|
-
import { secp256k1 as Dn } from "./secp256k1-
|
|
1
|
+
import { p as nt, n as zr, o as Fr, I as Dr, g as T, r as H, q as V, m as qr, M as ie, h as D, H as te, t as Or, U as ve, S as st, C as at, P as ot, u as it, v as ct, J as ut, L as Ee, T as ft, R as dt, x as lt, y as Ae, z as Te, A as pt, B as ht, D as mt, E as gt, F as bt, G as _r, K as Mr, N as yt, O as jr, Q as ae, V as X, W as wt, X as kt, Y as he, Z as vt, _ as Lr, $ as qe, a0 as Oe, a1 as Hr, a2 as Ur, a3 as _e, a4 as St, a5 as Gr, l as Me, a6 as Vr, a7 as Wr, a8 as Jr, a9 as me, aa as Ie, ab as Zr, ac as Bt, ad as zt, ae as Kr, af as Qr, ag as Pe, ah as Xr, ai as xt, aj as Ft, ak as Yr, k as Dt, j as qt, al as en, am as tn, an as Q, ao as ge, ap as rn, aq as Z, ar as nn, as as sn, at as an, au as on, av as je, aw as Ot, ax as Le, w as cn, s as un, ay as _t, az as Mt, aA as fn, aB as dn, aC as ln, aD as pn, a as hn, aE as He, aF as mn, aG as gn, e as bn, c as yn, aH as jt, aI as Ue, aJ as wn, d as vn } from "./writeContract-BU3yK-Xj.js";
|
|
2
|
+
import { B as F, n as B, af as xn, v as le, i as Lt, b as ne, a as En, m as O, s as re, c as Ge, t as W, z as An, A as Ht, a9 as pe, o as Tn, I as In, l as Re, ag as Pn, x as Rn, F as Ut, ah as Gt, ai as Cn, aj as Vt, ak as $n, a2 as Nn, _ as kn, al as Sn, h as se, am as Bn, an as Wt, ao as zn, J as Fn } from "./constants-BaHwPdbi.js";
|
|
3
|
+
import { secp256k1 as Dn } from "./secp256k1-B-LxKJrQ.js";
|
|
4
4
|
function Et(e) {
|
|
5
5
|
let t;
|
|
6
6
|
if (typeof e == "string")
|
|
@@ -92,7 +92,7 @@ async function Mn(e, { chain: t }) {
|
|
|
92
92
|
}
|
|
93
93
|
const Ce = 256;
|
|
94
94
|
let ce = Ce, ue;
|
|
95
|
-
function
|
|
95
|
+
function Jt(e = 11) {
|
|
96
96
|
if (!ue || ce + e > Ce * 2) {
|
|
97
97
|
ue = "", ce = 0;
|
|
98
98
|
for (let t = 0; t < Ce; t++)
|
|
@@ -100,7 +100,7 @@ function Zt(e = 11) {
|
|
|
100
100
|
}
|
|
101
101
|
return ue.substring(ce, ce++ + e);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Zt(e) {
|
|
104
104
|
const { batch: t, cacheTime: r = e.pollingInterval ?? 4e3, ccipRead: n, key: s = "base", name: a = "Base Client", pollingInterval: o = 4e3, type: c = "base" } = e, u = e.chain, i = e.account ? V(e.account) : void 0, { config: d, request: f, value: l } = e.transport({
|
|
105
105
|
chain: u,
|
|
106
106
|
pollingInterval: o
|
|
@@ -116,7 +116,7 @@ function Jt(e) {
|
|
|
116
116
|
request: f,
|
|
117
117
|
transport: p,
|
|
118
118
|
type: c,
|
|
119
|
-
uid:
|
|
119
|
+
uid: Jt()
|
|
120
120
|
};
|
|
121
121
|
function g(v) {
|
|
122
122
|
return (h) => {
|
|
@@ -262,7 +262,7 @@ function Hn(e) {
|
|
|
262
262
|
return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === Ee.code || e.code === Te.code : e instanceof te && e.status ? e.status === 403 || e.status === 408 || e.status === 413 || e.status === 429 || e.status === 500 || e.status === 502 || e.status === 503 || e.status === 504 : !0;
|
|
263
263
|
}
|
|
264
264
|
function Un({ key: e, methods: t, name: r, request: n, retryCount: s = 3, retryDelay: a = 150, timeout: o, type: c }, u) {
|
|
265
|
-
const i =
|
|
265
|
+
const i = Jt();
|
|
266
266
|
return {
|
|
267
267
|
config: {
|
|
268
268
|
key: e,
|
|
@@ -315,7 +315,7 @@ function Wn() {
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
const At = /* @__PURE__ */ Wn();
|
|
318
|
-
function
|
|
318
|
+
function Jn(e, t = {}) {
|
|
319
319
|
return {
|
|
320
320
|
async request(r) {
|
|
321
321
|
var f;
|
|
@@ -388,7 +388,7 @@ function lo(e, t = {}) {
|
|
|
388
388
|
const { batchSize: m = 1e3, wait: g = 0 } = typeof r == "object" ? r : {}, v = t.retryCount ?? l, h = p ?? t.timeout ?? 1e4, b = e || (f == null ? void 0 : f.rpcUrls.default.http[0]);
|
|
389
389
|
if (!b)
|
|
390
390
|
throw new Gn();
|
|
391
|
-
const y =
|
|
391
|
+
const y = Jn(b, {
|
|
392
392
|
fetchOptions: n,
|
|
393
393
|
onRequest: c,
|
|
394
394
|
onResponse: u,
|
|
@@ -458,7 +458,7 @@ function de(e) {
|
|
|
458
458
|
}
|
|
459
459
|
return ne(t);
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Zn(e) {
|
|
462
462
|
return `[${e.slice(2)}]`;
|
|
463
463
|
}
|
|
464
464
|
function Kn(e) {
|
|
@@ -474,7 +474,7 @@ function be(e) {
|
|
|
474
474
|
const s = t.split(".");
|
|
475
475
|
for (let a = 0; a < s.length; a++) {
|
|
476
476
|
let o = re(s[a]);
|
|
477
|
-
o.byteLength > 255 && (o = re(
|
|
477
|
+
o.byteLength > 255 && (o = re(Zn(Kn(s[a])))), r[n] = o.length, r.set(o, n + 1), n += o.length + 1;
|
|
478
478
|
}
|
|
479
479
|
return r.byteLength !== n + 1 ? r.slice(0, n + 1) : r;
|
|
480
480
|
}
|
|
@@ -612,7 +612,7 @@ function Xt(e) {
|
|
|
612
612
|
async function as({ gatewayUrls: e, uri: t }) {
|
|
613
613
|
try {
|
|
614
614
|
const r = await fetch(t).then((s) => s.json());
|
|
615
|
-
return await
|
|
615
|
+
return await Je({
|
|
616
616
|
gatewayUrls: e,
|
|
617
617
|
uri: Xt(r)
|
|
618
618
|
});
|
|
@@ -620,7 +620,7 @@ async function as({ gatewayUrls: e, uri: t }) {
|
|
|
620
620
|
throw new We({ uri: t });
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
async function
|
|
623
|
+
async function Je({ gatewayUrls: e, uri: t }) {
|
|
624
624
|
const { uri: r, isOnChain: n } = Qt({ uri: t, gatewayUrls: e });
|
|
625
625
|
if (n || await ss(r))
|
|
626
626
|
return r;
|
|
@@ -683,7 +683,7 @@ async function is(e, { nft: t }) {
|
|
|
683
683
|
throw new Yn({ namespace: t.namespace });
|
|
684
684
|
}
|
|
685
685
|
async function cs(e, { gatewayUrls: t, record: r }) {
|
|
686
|
-
return /eip155:/i.test(r) ? us(e, { gatewayUrls: t, record: r }) :
|
|
686
|
+
return /eip155:/i.test(r) ? us(e, { gatewayUrls: t, record: r }) : Je({ uri: r, gatewayUrls: t });
|
|
687
687
|
}
|
|
688
688
|
async function us(e, { gatewayUrls: t, record: r }) {
|
|
689
689
|
const n = os(r), s = await is(e, { nft: n }), { uri: a, isOnChain: o, isEncoded: c } = Qt({ uri: s, gatewayUrls: t });
|
|
@@ -695,7 +695,7 @@ async function us(e, { gatewayUrls: t, record: r }) {
|
|
|
695
695
|
// if it isn't encoded assume it is a JSON string, but it could be anything (it will error if it is)
|
|
696
696
|
a
|
|
697
697
|
), d = JSON.parse(i);
|
|
698
|
-
return
|
|
698
|
+
return Je({ uri: Xt(d), gatewayUrls: t });
|
|
699
699
|
}
|
|
700
700
|
let u = n.tokenID;
|
|
701
701
|
return n.namespace === "erc1155" && (u = u.replace("0x", "").padStart(64, "0")), as({
|
|
@@ -1120,7 +1120,7 @@ function ir(e) {
|
|
|
1120
1120
|
if (p) {
|
|
1121
1121
|
const [g, v] = p;
|
|
1122
1122
|
if (v && Re(f) !== Number.parseInt(v))
|
|
1123
|
-
throw new
|
|
1123
|
+
throw new Jr({
|
|
1124
1124
|
expectedSize: Number.parseInt(v),
|
|
1125
1125
|
givenSize: Re(f)
|
|
1126
1126
|
});
|
|
@@ -1207,7 +1207,7 @@ async function Fs(e, { address: t, blockNumber: r, blockTag: n = "latest", slot:
|
|
|
1207
1207
|
params: [t, s, a || n]
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
|
-
async function
|
|
1210
|
+
async function Ze(e, { blockHash: t, blockNumber: r, blockTag: n, hash: s, index: a }) {
|
|
1211
1211
|
var d, f, l;
|
|
1212
1212
|
const o = n || "latest", c = r !== void 0 ? B(r) : void 0;
|
|
1213
1213
|
let u = null;
|
|
@@ -1233,7 +1233,7 @@ async function Je(e, { blockHash: t, blockNumber: r, blockTag: n, hash: s, index
|
|
|
1233
1233
|
async function Ds(e, { hash: t, transactionReceipt: r }) {
|
|
1234
1234
|
const [n, s] = await Promise.all([
|
|
1235
1235
|
T(e, me, "getBlockNumber")({}),
|
|
1236
|
-
t ? T(e,
|
|
1236
|
+
t ? T(e, Ze, "getTransaction")({ hash: t }) : void 0
|
|
1237
1237
|
]), a = (r == null ? void 0 : r.blockNumber) || (s == null ? void 0 : s.blockNumber);
|
|
1238
1238
|
return a ? n - a + 1n : 0n;
|
|
1239
1239
|
}
|
|
@@ -1298,7 +1298,7 @@ async function qs(e, t) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
const m = await Promise.allSettled(f.map((h) => T(e, H, "readContract")({
|
|
1301
|
-
abi:
|
|
1301
|
+
abi: Zr,
|
|
1302
1302
|
address: d,
|
|
1303
1303
|
args: [h],
|
|
1304
1304
|
blockNumber: s,
|
|
@@ -1503,12 +1503,12 @@ function lr(e, t = {}) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
const Vs = /* @__PURE__ */ new TextEncoder();
|
|
1505
1505
|
function Ws(e) {
|
|
1506
|
-
return e instanceof Uint8Array ? e : typeof e == "string" ?
|
|
1506
|
+
return e instanceof Uint8Array ? e : typeof e == "string" ? Zs(e) : Js(e);
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function Js(e) {
|
|
1509
1509
|
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Zs(e, t = {}) {
|
|
1512
1512
|
const { size: r } = t;
|
|
1513
1513
|
let n = e;
|
|
1514
1514
|
r && (Ke(e, r), n = G(e, r));
|
|
@@ -2360,7 +2360,7 @@ function Sa(e, ...t) {
|
|
|
2360
2360
|
}) : e, s = za(n), a = t.length > 0 ? Er(n.inputs, t[0]) : void 0;
|
|
2361
2361
|
return a ? j(s, a) : s;
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function J(e, t = {}) {
|
|
2364
2364
|
return wr(e, t);
|
|
2365
2365
|
}
|
|
2366
2366
|
function Ba(e, t, r) {
|
|
@@ -2381,7 +2381,7 @@ async function qa(e, t) {
|
|
|
2381
2381
|
bytecode: Xr,
|
|
2382
2382
|
args: [
|
|
2383
2383
|
Da,
|
|
2384
|
-
Sa(
|
|
2384
|
+
Sa(J("function getBalance(address)"), [i.address])
|
|
2385
2385
|
]
|
|
2386
2386
|
}) : void 0, f = o ? await Promise.all(t.calls.map(async (w) => {
|
|
2387
2387
|
if (!w.data && !w.abi)
|
|
@@ -2409,7 +2409,7 @@ async function qa(e, t) {
|
|
|
2409
2409
|
{
|
|
2410
2410
|
calls: f.map((w, S) => ({
|
|
2411
2411
|
abi: [
|
|
2412
|
-
|
|
2412
|
+
J("function balanceOf(address) returns (uint256)")
|
|
2413
2413
|
],
|
|
2414
2414
|
functionName: "balanceOf",
|
|
2415
2415
|
args: [i.address],
|
|
@@ -2442,7 +2442,7 @@ async function qa(e, t) {
|
|
|
2442
2442
|
{
|
|
2443
2443
|
calls: f.map((w, S) => ({
|
|
2444
2444
|
abi: [
|
|
2445
|
-
|
|
2445
|
+
J("function balanceOf(address) returns (uint256)")
|
|
2446
2446
|
],
|
|
2447
2447
|
functionName: "balanceOf",
|
|
2448
2448
|
args: [i.address],
|
|
@@ -2462,7 +2462,7 @@ async function qa(e, t) {
|
|
|
2462
2462
|
calls: f.map((w, S) => ({
|
|
2463
2463
|
to: w,
|
|
2464
2464
|
abi: [
|
|
2465
|
-
|
|
2465
|
+
J("function decimals() returns (uint256)")
|
|
2466
2466
|
],
|
|
2467
2467
|
functionName: "decimals",
|
|
2468
2468
|
from: M,
|
|
@@ -2480,7 +2480,7 @@ async function qa(e, t) {
|
|
|
2480
2480
|
calls: f.map((w, S) => ({
|
|
2481
2481
|
to: w,
|
|
2482
2482
|
abi: [
|
|
2483
|
-
|
|
2483
|
+
J("function tokenURI(uint256) returns (string)")
|
|
2484
2484
|
],
|
|
2485
2485
|
functionName: "tokenURI",
|
|
2486
2486
|
args: [0n],
|
|
@@ -2498,7 +2498,7 @@ async function qa(e, t) {
|
|
|
2498
2498
|
{
|
|
2499
2499
|
calls: f.map((w, S) => ({
|
|
2500
2500
|
to: w,
|
|
2501
|
-
abi: [
|
|
2501
|
+
abi: [J("function symbol() returns (string)")],
|
|
2502
2502
|
functionName: "symbol",
|
|
2503
2503
|
from: M,
|
|
2504
2504
|
nonce: S
|
|
@@ -2712,7 +2712,7 @@ async function ja(e, {
|
|
|
2712
2712
|
return;
|
|
2713
2713
|
}
|
|
2714
2714
|
if (i || (l = !0, await $e(async () => {
|
|
2715
|
-
i = await T(e,
|
|
2715
|
+
i = await T(e, Ze, "getTransaction")({ hash: r }), i.blockNumber && (A = i.blockNumber);
|
|
2716
2716
|
}, {
|
|
2717
2717
|
delay: o,
|
|
2718
2718
|
retryCount: a
|
|
@@ -2727,7 +2727,7 @@ async function ja(e, {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
try {
|
|
2729
2729
|
d = i, l = !0;
|
|
2730
|
-
const C = await $e(() => T(e,
|
|
2730
|
+
const C = await $e(() => T(e, Z, "getBlock")({
|
|
2731
2731
|
blockNumber: A,
|
|
2732
2732
|
includeTransactions: !0
|
|
2733
2733
|
}), {
|
|
@@ -2778,7 +2778,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
|
|
|
2778
2778
|
return Q(m, { onBlock: s, onError: a }, (g) => ge(async () => {
|
|
2779
2779
|
var v;
|
|
2780
2780
|
try {
|
|
2781
|
-
const h = await T(e,
|
|
2781
|
+
const h = await T(e, Z, "getBlock")({
|
|
2782
2782
|
blockTag: t,
|
|
2783
2783
|
includeTransactions: d
|
|
2784
2784
|
});
|
|
@@ -2787,7 +2787,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
|
|
|
2787
2787
|
return;
|
|
2788
2788
|
if (h.number - f.number > 1 && r)
|
|
2789
2789
|
for (let b = (f == null ? void 0 : f.number) + 1n; b < h.number; b++) {
|
|
2790
|
-
const y = await T(e,
|
|
2790
|
+
const y = await T(e, Z, "getBlock")({
|
|
2791
2791
|
blockNumber: b,
|
|
2792
2792
|
includeTransactions: d
|
|
2793
2793
|
});
|
|
@@ -2810,7 +2810,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
|
|
|
2810
2810
|
let m = !0, g = !0, v = () => m = !1;
|
|
2811
2811
|
return (async () => {
|
|
2812
2812
|
try {
|
|
2813
|
-
n && T(e,
|
|
2813
|
+
n && T(e, Z, "getBlock")({
|
|
2814
2814
|
blockTag: t,
|
|
2815
2815
|
includeTransactions: d
|
|
2816
2816
|
}).then((y) => {
|
|
@@ -2827,7 +2827,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
|
|
|
2827
2827
|
async onData(y) {
|
|
2828
2828
|
if (!m)
|
|
2829
2829
|
return;
|
|
2830
|
-
const x = await T(e,
|
|
2830
|
+
const x = await T(e, Z, "getBlock")({
|
|
2831
2831
|
blockNumber: y.blockNumber,
|
|
2832
2832
|
includeTransactions: d
|
|
2833
2833
|
}).catch(() => {
|
|
@@ -3049,7 +3049,7 @@ function Ga(e) {
|
|
|
3049
3049
|
};
|
|
3050
3050
|
}
|
|
3051
3051
|
const Va = /^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/, Wa = /(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;
|
|
3052
|
-
function
|
|
3052
|
+
function Ja(e) {
|
|
3053
3053
|
const { address: t, domain: r, message: n, nonce: s, scheme: a, time: o = /* @__PURE__ */ new Date() } = e;
|
|
3054
3054
|
if (r && n.domain !== r || s && n.nonce !== s || a && n.scheme !== a || n.expirationTime && o >= n.expirationTime || n.notBefore && o < n.notBefore)
|
|
3055
3055
|
return !1;
|
|
@@ -3061,9 +3061,9 @@ function Za(e) {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
return !0;
|
|
3063
3063
|
}
|
|
3064
|
-
async function
|
|
3064
|
+
async function Za(e, t) {
|
|
3065
3065
|
const { address: r, domain: n, message: s, nonce: a, scheme: o, signature: c, time: u = /* @__PURE__ */ new Date(), ...i } = t, d = Ga(s);
|
|
3066
|
-
if (!d.address || !
|
|
3066
|
+
if (!d.address || !Ja({
|
|
3067
3067
|
address: r,
|
|
3068
3068
|
domain: n,
|
|
3069
3069
|
message: d,
|
|
@@ -3092,7 +3092,7 @@ function Ka(e) {
|
|
|
3092
3092
|
estimateGas: (t) => gn(e, t),
|
|
3093
3093
|
getBalance: (t) => mn(e, t),
|
|
3094
3094
|
getBlobBaseFee: () => hs(e),
|
|
3095
|
-
getBlock: (t) =>
|
|
3095
|
+
getBlock: (t) => Z(e, t),
|
|
3096
3096
|
getBlockNumber: (t) => me(e, t),
|
|
3097
3097
|
getBlockTransactionCount: (t) => ms(e, t),
|
|
3098
3098
|
getBytecode: (t) => It(e, t),
|
|
@@ -3114,7 +3114,7 @@ function Ka(e) {
|
|
|
3114
3114
|
getProof: (t) => zs(e, t),
|
|
3115
3115
|
estimateMaxPriorityFeePerGas: (t) => dn(e, t),
|
|
3116
3116
|
getStorageAt: (t) => Fs(e, t),
|
|
3117
|
-
getTransaction: (t) =>
|
|
3117
|
+
getTransaction: (t) => Ze(e, t),
|
|
3118
3118
|
getTransactionConfirmations: (t) => Ds(e, t),
|
|
3119
3119
|
getTransactionCount: (t) => fn(e, t),
|
|
3120
3120
|
getTransactionReceipt: (t) => Ne(e, t),
|
|
@@ -3127,7 +3127,7 @@ function Ka(e) {
|
|
|
3127
3127
|
simulateCalls: (t) => qa(e, t),
|
|
3128
3128
|
simulateContract: (t) => un(e, t),
|
|
3129
3129
|
verifyMessage: (t) => _a(e, t),
|
|
3130
|
-
verifySiweMessage: (t) =>
|
|
3130
|
+
verifySiweMessage: (t) => Za(e, t),
|
|
3131
3131
|
verifyTypedData: (t) => Ma(e, t),
|
|
3132
3132
|
uninstallFilter: (t) => Le(e, t),
|
|
3133
3133
|
waitForTransactionReceipt: (t) => ja(e, t),
|
|
@@ -3140,7 +3140,7 @@ function Ka(e) {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
function mo(e) {
|
|
3142
3142
|
const { key: t = "public", name: r = "Public Client" } = e;
|
|
3143
|
-
return
|
|
3143
|
+
return Zt({
|
|
3144
3144
|
...e,
|
|
3145
3145
|
key: t,
|
|
3146
3146
|
name: r,
|
|
@@ -3273,7 +3273,7 @@ function io(e) {
|
|
|
3273
3273
|
}
|
|
3274
3274
|
function go(e) {
|
|
3275
3275
|
const { key: t = "wallet", name: r = "Wallet Client", transport: n } = e;
|
|
3276
|
-
return
|
|
3276
|
+
return Zt({
|
|
3277
3277
|
...e,
|
|
3278
3278
|
key: t,
|
|
3279
3279
|
name: r,
|
|
@@ -3287,4 +3287,4 @@ export {
|
|
|
3287
3287
|
go as c,
|
|
3288
3288
|
lo as h
|
|
3289
3289
|
};
|
|
3290
|
-
//# sourceMappingURL=createWalletClient-
|
|
3290
|
+
//# sourceMappingURL=createWalletClient-D74YRepQ.js.map
|