@pufferfinance/puffer-sdk 1.27.0 → 1.28.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.cjs +1 -1
- package/dist/api/puffer-client.cjs.map +1 -1
- package/dist/api/puffer-client.d.ts +6 -0
- package/dist/api/puffer-client.js +45 -31
- package/dist/api/puffer-client.js.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotVesting.cjs +2 -0
- package/dist/contracts/abis/mainnet/CarrotVesting.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/CarrotVesting.d.ts +192 -0
- package/dist/contracts/abis/mainnet/CarrotVesting.js +129 -0
- package/dist/contracts/abis/mainnet/CarrotVesting.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 +4 -0
- package/dist/contracts/addresses.js +5 -2
- package/dist/contracts/addresses.js.map +1 -1
- package/dist/contracts/handlers/carrot-vesting-handler.cjs +2 -0
- package/dist/contracts/handlers/carrot-vesting-handler.cjs.map +1 -0
- package/dist/contracts/handlers/carrot-vesting-handler.d.ts +14692 -0
- package/dist/contracts/handlers/carrot-vesting-handler.js +201 -0
- package/dist/contracts/handlers/carrot-vesting-handler.js.map +1 -0
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var u=(l,e,r)=>e in l?s(l,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[e]=r;var t=(l,e,r)=>u(l,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../constants-CxSgz27h.cjs"),o=require("../contracts/handlers/puffer-vault-handler.cjs"),d=require("../contracts/handlers/puffer-depositor-handler.cjs"),h=require("../contracts/handlers/puffer-l2-depositor-handler.cjs"),w=require("../contracts/handlers/erc20-permit-handler.cjs"),C=require("../contracts/handlers/puf-locker-handler.cjs"),p=require("../contracts/handlers/l2-reward-manager-handler.cjs"),
|
|
1
|
+
"use strict";var s=Object.defineProperty;var u=(l,e,r)=>e in l?s(l,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[e]=r;var t=(l,e,r)=>u(l,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../constants-CxSgz27h.cjs"),o=require("../contracts/handlers/puffer-vault-handler.cjs"),d=require("../contracts/handlers/puffer-depositor-handler.cjs"),h=require("../contracts/handlers/puffer-l2-depositor-handler.cjs"),w=require("../contracts/handlers/erc20-permit-handler.cjs"),C=require("../contracts/handlers/puf-locker-handler.cjs"),p=require("../contracts/handlers/l2-reward-manager-handler.cjs"),_=require("../contracts/handlers/l1-reward-manager-handler.cjs"),f=require("../contracts/handlers/puffer-withdrawal-manager-handler.cjs"),H=require("../contracts/handlers/nucleus-boring-vault-handler.cjs"),g=require("../contracts/handlers/nucleus-teller-handler.cjs"),b=require("../contracts/handlers/nucleus-accountant-handler.cjs"),q=require("../contracts/handlers/nucleus-atomic-queue-handler.cjs"),V=require("../contracts/handlers/mtw-carrot-handler.cjs"),M=require("../contracts/handlers/carrot-staking-handler.cjs"),P=require("../contracts/handlers/distributor-handler.cjs"),A=require("../contracts/handlers/concrete-vault-handler.cjs"),m=require("../contracts/handlers/validator-ticket-handler.cjs"),R=require("../contracts/handlers/puffer-oracle-v2-handler.cjs"),k=require("../contracts/handlers/puffer-protocol-handler.cjs"),v=require("../contracts/handlers/guardian-module-handler.cjs"),L=require("../contracts/handlers/institutional-vault-handler.cjs"),T=require("../contracts/handlers/institutional-access-manager-handler.cjs"),y=require("../contracts/handlers/lagoon-vault-handler.cjs"),D=require("../contracts/handlers/vl-puffer-handler.cjs"),S=require("../contracts/handlers/gauge-registry-handler.cjs"),W=require("../contracts/handlers/carrot-vesting-handler.cjs"),n=require("../createWalletClient-Cct6ojqI.cjs");class N{constructor(e,r,a){t(this,"walletClient");t(this,"publicClient");t(this,"erc20Permit");t(this,"vault");t(this,"depositor");t(this,"l2Depositor");t(this,"pufLocker");t(this,"l2RewardManager");t(this,"l1RewardManager");t(this,"pufferWithdrawalManager");t(this,"nucleusBoringVault");t(this,"nucleusTeller");t(this,"nucleusAccountant");t(this,"nucleusAtomicQueue");t(this,"mtwCarrot");t(this,"carrotStaker");t(this,"distributor");t(this,"concreteVault");t(this,"validatorTicket");t(this,"pufferOracleV2");t(this,"pufferProtocol");t(this,"guardianModule");t(this,"institutionalVault");t(this,"institutionalAccessManager");t(this,"lagoonVault");t(this,"vlPuffer");t(this,"gaugeRegistry");t(this,"carrotVesting");const i=c.VIEM_CHAINS[e];this.walletClient=r??n.createWalletClient({chain:i,transport:n.http()}),this.publicClient=a??n.createPublicClient({chain:i,transport:n.http()}),this.erc20Permit=new w.ERC20PermitHandler(e,this.walletClient,this.publicClient),this.vault=new o.PufferVaultHandler(e,this.walletClient,this.publicClient),this.depositor=new d.PufferDepositorHandler(e,this.walletClient,this.publicClient),this.l2Depositor=new h.PufferL2DepositorHandler(e,this.walletClient,this.publicClient),this.pufLocker=new C.PufLockerHandler(e,this.walletClient,this.publicClient),this.l2RewardManager=new p.L2RewardManagerHandler(e,this.walletClient,this.publicClient),this.l1RewardManager=new _.L1RewardManagerHandler(e,this.walletClient,this.publicClient),this.pufferWithdrawalManager=new f.PufferWithdrawalManagerHandler(e,this.walletClient,this.publicClient),this.nucleusBoringVault=new H.NucleusBoringVaultHandler(e,this.walletClient,this.publicClient),this.nucleusTeller=new g.NucleusTellerHandler(e,this.walletClient,this.publicClient),this.nucleusAccountant=new b.NucleusAccountantHandler(e,this.walletClient,this.publicClient),this.nucleusAtomicQueue=new q.NucleusAtomicQueueHandler(e,this.walletClient,this.publicClient),this.mtwCarrot=new V.MtwCarrotHandler(e,this.walletClient,this.publicClient),this.carrotStaker=new M.CarrotStakingHandler(e,this.walletClient,this.publicClient),this.distributor=new P.DistributorHandler(e,this.walletClient,this.publicClient),this.concreteVault=new A.ConcreteVaultHandler(e,this.walletClient,this.publicClient),this.validatorTicket=new m.ValidatorTicketHandler(e,this.walletClient,this.publicClient),this.pufferOracleV2=new R.PufferOracleV2Handler(e,this.walletClient,this.publicClient),this.pufferProtocol=new k.PufferProtocolHandler(e,this.walletClient,this.publicClient),this.guardianModule=new v.GuardianModuleHandler(e,this.walletClient,this.publicClient),this.institutionalVault=new L.InstitutionalVaultHandler(e,this.walletClient,this.publicClient),this.institutionalAccessManager=new T.InstitutionalAccessManagerHandler(e,this.walletClient,this.publicClient),this.lagoonVault=new y.LagoonVaultHandler(e,this.walletClient,this.publicClient),this.vlPuffer=new D.VLPufferHandler(e,this.walletClient,this.publicClient),this.gaugeRegistry=new S.GaugeRegistryHandler(e,this.walletClient,this.publicClient),this.carrotVesting=new W.CarrotVestingHandler(e,this.walletClient,this.publicClient)}async requestAddresses(){return await this.walletClient.requestAddresses()}}exports.PufferClient=N;
|
|
2
2
|
//# sourceMappingURL=puffer-client.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puffer-client.cjs","sources":["../../lib/api/puffer-client.ts"],"sourcesContent":["import {\n PublicClient,\n WalletClient,\n createPublicClient,\n createWalletClient,\n http,\n} from 'viem';\nimport { Chain, VIEM_CHAINS } from '../chains/constants';\nimport { PufferVaultHandler } from '../contracts/handlers/puffer-vault-handler';\nimport { PufferDepositorHandler } from '../contracts/handlers/puffer-depositor-handler';\nimport { PufferL2DepositorHandler } from '../contracts/handlers/puffer-l2-depositor-handler';\nimport { ERC20PermitHandler } from '../contracts/handlers/erc20-permit-handler';\nimport { PufLockerHandler } from '../contracts/handlers/puf-locker-handler';\nimport { L2RewardManagerHandler } from '../contracts/handlers/l2-reward-manager-handler';\nimport { L1RewardManagerHandler } from '../contracts/handlers/l1-reward-manager-handler';\nimport { PufferWithdrawalManagerHandler } from '../contracts/handlers/puffer-withdrawal-manager-handler';\nimport { NucleusBoringVaultHandler } from '../contracts/handlers/nucleus-boring-vault-handler';\nimport { NucleusTellerHandler } from '../contracts/handlers/nucleus-teller-handler';\nimport { NucleusAccountantHandler } from '../contracts/handlers/nucleus-accountant-handler';\nimport { NucleusAtomicQueueHandler } from '../contracts/handlers/nucleus-atomic-queue-handler';\nimport { MtwCarrotHandler } from '../contracts/handlers/mtw-carrot-handler';\nimport { CarrotStakingHandler } from '../contracts/handlers/carrot-staking-handler';\nimport { DistributorHandler } from '../contracts/handlers/distributor-handler';\nimport { ConcreteVaultHandler } from '../contracts/handlers/concrete-vault-handler';\nimport { ValidatorTicketHandler } from '../contracts/handlers/validator-ticket-handler';\nimport { PufferOracleV2Handler } from '../contracts/handlers/puffer-oracle-v2-handler';\nimport { PufferProtocolHandler } from '../contracts/handlers/puffer-protocol-handler';\nimport { GuardianModuleHandler } from '../contracts/handlers/guardian-module-handler';\nimport { InstitutionalVaultHandler } from '../contracts/handlers/institutional-vault-handler';\nimport { InstitutionalAccessManagerHandler } from '../contracts/handlers/institutional-access-manager-handler';\nimport { LagoonVaultHandler } from '../contracts/handlers/lagoon-vault-handler';\nimport { VLPufferHandler } from '../contracts/handlers/vl-puffer-handler';\n\n/**\n * The core class and the main entry point of the Puffer SDK.\n */\nexport class PufferClient {\n private walletClient: WalletClient;\n private publicClient: PublicClient;\n\n // Contract Handlers\n /** Handler for the `ERC20Permit` contract. */\n public erc20Permit: ERC20PermitHandler;\n /** Handler for the `PufferVaultV2` contract. */\n public vault: PufferVaultHandler;\n /** Handler for the `PufferDepositor` contract. */\n public depositor: PufferDepositorHandler;\n /** Handler for the `PufferL2Depositor` contract. */\n public l2Depositor: PufferL2DepositorHandler;\n /** Handler for the `PufLocker` contract. */\n public pufLocker: PufLockerHandler;\n /** Handler for the `L2RewardManager` contract. */\n public l2RewardManager: L2RewardManagerHandler;\n /** Handler for the `L1RewardManager` contract. */\n public l1RewardManager: L1RewardManagerHandler;\n /** Handler for the `PufferWithdrawalManager` contract. */\n public pufferWithdrawalManager: PufferWithdrawalManagerHandler;\n /** Handler for the `NucleusBoringVault` contract. */\n public nucleusBoringVault: NucleusBoringVaultHandler;\n /** Handler for the `NucleusTeller` contract. */\n public nucleusTeller: NucleusTellerHandler;\n /** Handler for the `NucleusAccountant` contract. */\n public nucleusAccountant: NucleusAccountantHandler;\n /** Handler for the `NucleusAtomicQueue` contract. */\n public nucleusAtomicQueue: NucleusAtomicQueueHandler;\n /** Handler for the `mtwCARROT` (Merkl Token Wrapper) contract. */\n public mtwCarrot: MtwCarrotHandler;\n /** Handler for the `CarrotStaker` contract. */\n public carrotStaker: CarrotStakingHandler;\n /** Handler for the `Distributor` contract. */\n public distributor: DistributorHandler;\n /** Handler for the `ConcreteMultiStrategyVault` contract. */\n public concreteVault: ConcreteVaultHandler;\n /** Handler for the `ValidatorTicket` contract. */\n public validatorTicket: ValidatorTicketHandler;\n /** Handler for the `PufferOracleV2` contract. */\n public pufferOracleV2: PufferOracleV2Handler;\n /** Handler for the `PufferProtocol` contract. */\n public pufferProtocol: PufferProtocolHandler;\n /** Handler for the `GuardianModule` contract. */\n public guardianModule: GuardianModuleHandler;\n /** Handler for the `InstitutionalVault` contract. */\n public institutionalVault: InstitutionalVaultHandler;\n /** Handler for the `InstitutionalAccessManager` contract. */\n public institutionalAccessManager: InstitutionalAccessManagerHandler;\n /** Handler for the `LagoonVault` contract. */\n public lagoonVault: LagoonVaultHandler;\n /** Handler for the `vlPUFFER` contract. */\n public vlPuffer: VLPufferHandler;\n\n /**\n * Create the Puffer Client.\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 chain: Chain,\n walletClient?: WalletClient,\n publicClient?: PublicClient,\n ) {\n const viemChain = VIEM_CHAINS[chain];\n\n /* istanbul ignore next */\n this.walletClient =\n walletClient ??\n createWalletClient({\n chain: viemChain,\n transport: http(),\n });\n this.publicClient =\n publicClient ??\n createPublicClient({\n chain: viemChain,\n transport: http(),\n });\n\n this.erc20Permit = new ERC20PermitHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vault = new PufferVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.depositor = new PufferDepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2Depositor = new PufferL2DepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufLocker = new PufLockerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2RewardManager = new L2RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l1RewardManager = new L1RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferWithdrawalManager = new PufferWithdrawalManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusBoringVault = new NucleusBoringVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusTeller = new NucleusTellerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAccountant = new NucleusAccountantHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAtomicQueue = new NucleusAtomicQueueHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.mtwCarrot = new MtwCarrotHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.carrotStaker = new CarrotStakingHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.distributor = new DistributorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.concreteVault = new ConcreteVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.validatorTicket = new ValidatorTicketHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferOracleV2 = new PufferOracleV2Handler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferProtocol = new PufferProtocolHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.guardianModule = new GuardianModuleHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalVault = new InstitutionalVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalAccessManager = new InstitutionalAccessManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.lagoonVault = new LagoonVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vlPuffer = new VLPufferHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n }\n\n /**\n * Request addresses from the wallet.\n *\n * @returns An array of wallet addresses.\n */\n public async requestAddresses() {\n return await this.walletClient.requestAddresses();\n }\n}\n"],"names":["PufferClient","chain","walletClient","publicClient","__publicField","viemChain","VIEM_CHAINS","createWalletClient","http","createPublicClient","ERC20PermitHandler","PufferVaultHandler","PufferDepositorHandler","PufferL2DepositorHandler","PufLockerHandler","L2RewardManagerHandler","L1RewardManagerHandler","PufferWithdrawalManagerHandler","NucleusBoringVaultHandler","NucleusTellerHandler","NucleusAccountantHandler","NucleusAtomicQueueHandler","MtwCarrotHandler","CarrotStakingHandler","DistributorHandler","ConcreteVaultHandler","ValidatorTicketHandler","PufferOracleV2Handler","PufferProtocolHandler","GuardianModuleHandler","InstitutionalVaultHandler","InstitutionalAccessManagerHandler","LagoonVaultHandler","VLPufferHandler"],"mappings":"40DAoCO,MAAMA,CAAa,CA+DxB,YACEC,EACAC,EACAC,EACA,CAlEMC,EAAA,qBACAA,EAAA,qBAIDA,EAAA,oBAEAA,EAAA,cAEAA,EAAA,kBAEAA,EAAA,oBAEAA,EAAA,kBAEAA,EAAA,wBAEAA,EAAA,wBAEAA,EAAA,gCAEAA,EAAA,2BAEAA,EAAA,sBAEAA,EAAA,0BAEAA,EAAA,2BAEAA,EAAA,kBAEAA,EAAA,qBAEAA,EAAA,oBAEAA,EAAA,sBAEAA,EAAA,wBAEAA,EAAA,uBAEAA,EAAA,uBAEAA,EAAA,uBAEAA,EAAA,2BAEAA,EAAA,mCAEAA,EAAA,oBAEAA,EAAA,iBAgBC,MAAAC,EAAYC,cAAYL,CAAK,EAG9B,K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,YACP,EACA,KAAK,gBAAkB,IAAIyB,EAAA,uBACzBzB,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,eAAiB,IAAI0B,EAAA,sBACxB1B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,eAAiB,IAAI2B,EAAA,sBACxB3B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,eAAiB,IAAI4B,EAAA,sBACxB5B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,mBAAqB,IAAI6B,EAAA,0BAC5B7B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,2BAA6B,IAAI8B,EAAA,kCACpC9B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,YAAc,IAAI+B,EAAA,mBACrB/B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,SAAW,IAAIgC,EAAA,gBAClBhC,EACA,KAAK,aACL,KAAK,YACP,CAAA,CAQF,MAAa,kBAAmB,CACvB,OAAA,MAAM,KAAK,aAAa,iBAAiB,CAAA,CAEpD"}
|
|
1
|
+
{"version":3,"file":"puffer-client.cjs","sources":["../../lib/api/puffer-client.ts"],"sourcesContent":["import {\n PublicClient,\n WalletClient,\n createPublicClient,\n createWalletClient,\n http,\n} from 'viem';\nimport { Chain, VIEM_CHAINS } from '../chains/constants';\nimport { PufferVaultHandler } from '../contracts/handlers/puffer-vault-handler';\nimport { PufferDepositorHandler } from '../contracts/handlers/puffer-depositor-handler';\nimport { PufferL2DepositorHandler } from '../contracts/handlers/puffer-l2-depositor-handler';\nimport { ERC20PermitHandler } from '../contracts/handlers/erc20-permit-handler';\nimport { PufLockerHandler } from '../contracts/handlers/puf-locker-handler';\nimport { L2RewardManagerHandler } from '../contracts/handlers/l2-reward-manager-handler';\nimport { L1RewardManagerHandler } from '../contracts/handlers/l1-reward-manager-handler';\nimport { PufferWithdrawalManagerHandler } from '../contracts/handlers/puffer-withdrawal-manager-handler';\nimport { NucleusBoringVaultHandler } from '../contracts/handlers/nucleus-boring-vault-handler';\nimport { NucleusTellerHandler } from '../contracts/handlers/nucleus-teller-handler';\nimport { NucleusAccountantHandler } from '../contracts/handlers/nucleus-accountant-handler';\nimport { NucleusAtomicQueueHandler } from '../contracts/handlers/nucleus-atomic-queue-handler';\nimport { MtwCarrotHandler } from '../contracts/handlers/mtw-carrot-handler';\nimport { CarrotStakingHandler } from '../contracts/handlers/carrot-staking-handler';\nimport { DistributorHandler } from '../contracts/handlers/distributor-handler';\nimport { ConcreteVaultHandler } from '../contracts/handlers/concrete-vault-handler';\nimport { ValidatorTicketHandler } from '../contracts/handlers/validator-ticket-handler';\nimport { PufferOracleV2Handler } from '../contracts/handlers/puffer-oracle-v2-handler';\nimport { PufferProtocolHandler } from '../contracts/handlers/puffer-protocol-handler';\nimport { GuardianModuleHandler } from '../contracts/handlers/guardian-module-handler';\nimport { InstitutionalVaultHandler } from '../contracts/handlers/institutional-vault-handler';\nimport { InstitutionalAccessManagerHandler } from '../contracts/handlers/institutional-access-manager-handler';\nimport { LagoonVaultHandler } from '../contracts/handlers/lagoon-vault-handler';\nimport { VLPufferHandler } from '../contracts/handlers/vl-puffer-handler';\nimport { GaugeRegistryHandler } from '../contracts/handlers/gauge-registry-handler';\nimport { CarrotVestingHandler } from '../contracts/handlers/carrot-vesting-handler';\n\n/**\n * The core class and the main entry point of the Puffer SDK.\n */\nexport class PufferClient {\n private walletClient: WalletClient;\n private publicClient: PublicClient;\n\n // Contract Handlers\n /** Handler for the `ERC20Permit` contract. */\n public erc20Permit: ERC20PermitHandler;\n /** Handler for the `PufferVaultV2` contract. */\n public vault: PufferVaultHandler;\n /** Handler for the `PufferDepositor` contract. */\n public depositor: PufferDepositorHandler;\n /** Handler for the `PufferL2Depositor` contract. */\n public l2Depositor: PufferL2DepositorHandler;\n /** Handler for the `PufLocker` contract. */\n public pufLocker: PufLockerHandler;\n /** Handler for the `L2RewardManager` contract. */\n public l2RewardManager: L2RewardManagerHandler;\n /** Handler for the `L1RewardManager` contract. */\n public l1RewardManager: L1RewardManagerHandler;\n /** Handler for the `PufferWithdrawalManager` contract. */\n public pufferWithdrawalManager: PufferWithdrawalManagerHandler;\n /** Handler for the `NucleusBoringVault` contract. */\n public nucleusBoringVault: NucleusBoringVaultHandler;\n /** Handler for the `NucleusTeller` contract. */\n public nucleusTeller: NucleusTellerHandler;\n /** Handler for the `NucleusAccountant` contract. */\n public nucleusAccountant: NucleusAccountantHandler;\n /** Handler for the `NucleusAtomicQueue` contract. */\n public nucleusAtomicQueue: NucleusAtomicQueueHandler;\n /** Handler for the `mtwCARROT` (Merkl Token Wrapper) contract. */\n public mtwCarrot: MtwCarrotHandler;\n /** Handler for the `CarrotStaker` contract. */\n public carrotStaker: CarrotStakingHandler;\n /** Handler for the `Distributor` contract. */\n public distributor: DistributorHandler;\n /** Handler for the `ConcreteMultiStrategyVault` contract. */\n public concreteVault: ConcreteVaultHandler;\n /** Handler for the `ValidatorTicket` contract. */\n public validatorTicket: ValidatorTicketHandler;\n /** Handler for the `PufferOracleV2` contract. */\n public pufferOracleV2: PufferOracleV2Handler;\n /** Handler for the `PufferProtocol` contract. */\n public pufferProtocol: PufferProtocolHandler;\n /** Handler for the `GuardianModule` contract. */\n public guardianModule: GuardianModuleHandler;\n /** Handler for the `InstitutionalVault` contract. */\n public institutionalVault: InstitutionalVaultHandler;\n /** Handler for the `InstitutionalAccessManager` contract. */\n public institutionalAccessManager: InstitutionalAccessManagerHandler;\n /** Handler for the `LagoonVault` contract. */\n public lagoonVault: LagoonVaultHandler;\n /** Handler for the `vlPUFFER` contract. */\n public vlPuffer: VLPufferHandler;\n /** Handler for the `GaugeRegistry` contract. */\n public gaugeRegistry: GaugeRegistryHandler;\n /** Handler for the `CarrotVesting` contract. */\n public carrotVesting: CarrotVestingHandler;\n\n /**\n * Create the Puffer Client.\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 chain: Chain,\n walletClient?: WalletClient,\n publicClient?: PublicClient,\n ) {\n const viemChain = VIEM_CHAINS[chain];\n\n /* istanbul ignore next */\n this.walletClient =\n walletClient ??\n createWalletClient({\n chain: viemChain,\n transport: http(),\n });\n this.publicClient =\n publicClient ??\n createPublicClient({\n chain: viemChain,\n transport: http(),\n });\n\n this.erc20Permit = new ERC20PermitHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vault = new PufferVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.depositor = new PufferDepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2Depositor = new PufferL2DepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufLocker = new PufLockerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2RewardManager = new L2RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l1RewardManager = new L1RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferWithdrawalManager = new PufferWithdrawalManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusBoringVault = new NucleusBoringVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusTeller = new NucleusTellerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAccountant = new NucleusAccountantHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAtomicQueue = new NucleusAtomicQueueHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.mtwCarrot = new MtwCarrotHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.carrotStaker = new CarrotStakingHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.distributor = new DistributorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.concreteVault = new ConcreteVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.validatorTicket = new ValidatorTicketHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferOracleV2 = new PufferOracleV2Handler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferProtocol = new PufferProtocolHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.guardianModule = new GuardianModuleHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalVault = new InstitutionalVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalAccessManager = new InstitutionalAccessManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.lagoonVault = new LagoonVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vlPuffer = new VLPufferHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.gaugeRegistry = new GaugeRegistryHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.carrotVesting = new CarrotVestingHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n }\n\n /**\n * Request addresses from the wallet.\n *\n * @returns An array of wallet addresses.\n */\n public async requestAddresses() {\n return await this.walletClient.requestAddresses();\n }\n}\n"],"names":["PufferClient","chain","walletClient","publicClient","__publicField","viemChain","VIEM_CHAINS","createWalletClient","http","createPublicClient","ERC20PermitHandler","PufferVaultHandler","PufferDepositorHandler","PufferL2DepositorHandler","PufLockerHandler","L2RewardManagerHandler","L1RewardManagerHandler","PufferWithdrawalManagerHandler","NucleusBoringVaultHandler","NucleusTellerHandler","NucleusAccountantHandler","NucleusAtomicQueueHandler","MtwCarrotHandler","CarrotStakingHandler","DistributorHandler","ConcreteVaultHandler","ValidatorTicketHandler","PufferOracleV2Handler","PufferProtocolHandler","GuardianModuleHandler","InstitutionalVaultHandler","InstitutionalAccessManagerHandler","LagoonVaultHandler","VLPufferHandler","GaugeRegistryHandler","CarrotVestingHandler"],"mappings":"w8DAsCO,MAAMA,CAAa,CAmExB,YACEC,EACAC,EACAC,EACA,CAtEMC,EAAA,qBACAA,EAAA,qBAIDA,EAAA,oBAEAA,EAAA,cAEAA,EAAA,kBAEAA,EAAA,oBAEAA,EAAA,kBAE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K,YACP,EACA,KAAK,mBAAqB,IAAIoB,EAAA,0BAC5BpB,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,UAAY,IAAIqB,EAAA,iBACnBrB,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,aAAe,IAAIsB,EAAA,qBACtBtB,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,YAAc,IAAIuB,EAAA,mBACrBvB,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,cAAgB,IAAIwB,EAAA,qBACvBxB,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,gBAAkB,IAAIyB,EAAA,uBACzBzB,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,eAAiB,IAAI0B,EAAA,sBACxB1B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,eAAiB,IAAI2B,EAAA,sBACxB3B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,eAAiB,IAAI4B,EAAA,sBACxB5B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,mBAAqB,IAAI6B,EAAA,0BAC5B7B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,2BAA6B,IAAI8B,EAAA,kCACpC9B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,YAAc,IAAI+B,EAAA,mBACrB/B,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,SAAW,IAAIgC,EAAA,gBAClBhC,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,cAAgB,IAAIiC,EAAA,qBACvBjC,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,cAAgB,IAAIkC,EAAA,qBACvBlC,EACA,KAAK,aACL,KAAK,YACP,CAAA,CAQF,MAAa,kBAAmB,CACvB,OAAA,MAAM,KAAK,aAAa,iBAAiB,CAAA,CAEpD"}
|
|
@@ -24,6 +24,8 @@ import { InstitutionalVaultHandler } from '../contracts/handlers/institutional-v
|
|
|
24
24
|
import { InstitutionalAccessManagerHandler } from '../contracts/handlers/institutional-access-manager-handler';
|
|
25
25
|
import { LagoonVaultHandler } from '../contracts/handlers/lagoon-vault-handler';
|
|
26
26
|
import { VLPufferHandler } from '../contracts/handlers/vl-puffer-handler';
|
|
27
|
+
import { GaugeRegistryHandler } from '../contracts/handlers/gauge-registry-handler';
|
|
28
|
+
import { CarrotVestingHandler } from '../contracts/handlers/carrot-vesting-handler';
|
|
27
29
|
/**
|
|
28
30
|
* The core class and the main entry point of the Puffer SDK.
|
|
29
31
|
*/
|
|
@@ -78,6 +80,10 @@ export declare class PufferClient {
|
|
|
78
80
|
lagoonVault: LagoonVaultHandler;
|
|
79
81
|
/** Handler for the `vlPUFFER` contract. */
|
|
80
82
|
vlPuffer: VLPufferHandler;
|
|
83
|
+
/** Handler for the `GaugeRegistry` contract. */
|
|
84
|
+
gaugeRegistry: GaugeRegistryHandler;
|
|
85
|
+
/** Handler for the `CarrotVesting` contract. */
|
|
86
|
+
carrotVesting: CarrotVestingHandler;
|
|
81
87
|
/**
|
|
82
88
|
* Create the Puffer Client.
|
|
83
89
|
*
|
|
@@ -3,31 +3,33 @@ var o = (l, t, i) => t in l ? s(l, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var e = (l, t, i) => o(l, typeof t != "symbol" ? t + "" : t, i);
|
|
4
4
|
import { V as u } from "../constants-C9YZ6Ewc.js";
|
|
5
5
|
import { PufferVaultHandler as p } from "../contracts/handlers/puffer-vault-handler.js";
|
|
6
|
-
import { PufferDepositorHandler as
|
|
7
|
-
import { PufferL2DepositorHandler as
|
|
8
|
-
import { ERC20PermitHandler as
|
|
9
|
-
import { PufLockerHandler as
|
|
10
|
-
import { L2RewardManagerHandler as
|
|
6
|
+
import { PufferDepositorHandler as C } from "../contracts/handlers/puffer-depositor-handler.js";
|
|
7
|
+
import { PufferL2DepositorHandler as w } from "../contracts/handlers/puffer-l2-depositor-handler.js";
|
|
8
|
+
import { ERC20PermitHandler as m } from "../contracts/handlers/erc20-permit-handler.js";
|
|
9
|
+
import { PufLockerHandler as c } from "../contracts/handlers/puf-locker-handler.js";
|
|
10
|
+
import { L2RewardManagerHandler as f } from "../contracts/handlers/l2-reward-manager-handler.js";
|
|
11
11
|
import { L1RewardManagerHandler as h } from "../contracts/handlers/l1-reward-manager-handler.js";
|
|
12
12
|
import { PufferWithdrawalManagerHandler as d } from "../contracts/handlers/puffer-withdrawal-manager-handler.js";
|
|
13
13
|
import { NucleusBoringVaultHandler as b } from "../contracts/handlers/nucleus-boring-vault-handler.js";
|
|
14
|
-
import { NucleusTellerHandler as
|
|
15
|
-
import { NucleusAccountantHandler as
|
|
14
|
+
import { NucleusTellerHandler as g } from "../contracts/handlers/nucleus-teller-handler.js";
|
|
15
|
+
import { NucleusAccountantHandler as H } from "../contracts/handlers/nucleus-accountant-handler.js";
|
|
16
16
|
import { NucleusAtomicQueueHandler as V } from "../contracts/handlers/nucleus-atomic-queue-handler.js";
|
|
17
17
|
import { MtwCarrotHandler as P } from "../contracts/handlers/mtw-carrot-handler.js";
|
|
18
18
|
import { CarrotStakingHandler as M } from "../contracts/handlers/carrot-staking-handler.js";
|
|
19
19
|
import { DistributorHandler as A } from "../contracts/handlers/distributor-handler.js";
|
|
20
|
-
import { ConcreteVaultHandler as
|
|
21
|
-
import { ValidatorTicketHandler as
|
|
22
|
-
import { PufferOracleV2Handler as
|
|
23
|
-
import { PufferProtocolHandler as
|
|
20
|
+
import { ConcreteVaultHandler as R } from "../contracts/handlers/concrete-vault-handler.js";
|
|
21
|
+
import { ValidatorTicketHandler as k } from "../contracts/handlers/validator-ticket-handler.js";
|
|
22
|
+
import { PufferOracleV2Handler as L } from "../contracts/handlers/puffer-oracle-v2-handler.js";
|
|
23
|
+
import { PufferProtocolHandler as v } from "../contracts/handlers/puffer-protocol-handler.js";
|
|
24
24
|
import { GuardianModuleHandler as T } from "../contracts/handlers/guardian-module-handler.js";
|
|
25
25
|
import { InstitutionalVaultHandler as D } from "../contracts/handlers/institutional-vault-handler.js";
|
|
26
26
|
import { InstitutionalAccessManagerHandler as N } from "../contracts/handlers/institutional-access-manager-handler.js";
|
|
27
|
-
import { LagoonVaultHandler as
|
|
28
|
-
import { VLPufferHandler as
|
|
29
|
-
import {
|
|
30
|
-
|
|
27
|
+
import { LagoonVaultHandler as y } from "../contracts/handlers/lagoon-vault-handler.js";
|
|
28
|
+
import { VLPufferHandler as I } from "../contracts/handlers/vl-puffer-handler.js";
|
|
29
|
+
import { GaugeRegistryHandler as S } from "../contracts/handlers/gauge-registry-handler.js";
|
|
30
|
+
import { CarrotVestingHandler as W } from "../contracts/handlers/carrot-vesting-handler.js";
|
|
31
|
+
import { c as B, h as n, a as O } from "../createWalletClient-DAuQCrLq.js";
|
|
32
|
+
class mt {
|
|
31
33
|
/**
|
|
32
34
|
* Create the Puffer Client.
|
|
33
35
|
*
|
|
@@ -89,14 +91,18 @@ class ut {
|
|
|
89
91
|
e(this, "lagoonVault");
|
|
90
92
|
/** Handler for the `vlPUFFER` contract. */
|
|
91
93
|
e(this, "vlPuffer");
|
|
94
|
+
/** Handler for the `GaugeRegistry` contract. */
|
|
95
|
+
e(this, "gaugeRegistry");
|
|
96
|
+
/** Handler for the `CarrotVesting` contract. */
|
|
97
|
+
e(this, "carrotVesting");
|
|
92
98
|
const r = u[t];
|
|
93
|
-
this.walletClient = i ??
|
|
99
|
+
this.walletClient = i ?? B({
|
|
94
100
|
chain: r,
|
|
95
101
|
transport: n()
|
|
96
|
-
}), this.publicClient = a ??
|
|
102
|
+
}), this.publicClient = a ?? O({
|
|
97
103
|
chain: r,
|
|
98
104
|
transport: n()
|
|
99
|
-
}), this.erc20Permit = new
|
|
105
|
+
}), this.erc20Permit = new m(
|
|
100
106
|
t,
|
|
101
107
|
this.walletClient,
|
|
102
108
|
this.publicClient
|
|
@@ -104,19 +110,19 @@ class ut {
|
|
|
104
110
|
t,
|
|
105
111
|
this.walletClient,
|
|
106
112
|
this.publicClient
|
|
107
|
-
), this.depositor = new
|
|
113
|
+
), this.depositor = new C(
|
|
108
114
|
t,
|
|
109
115
|
this.walletClient,
|
|
110
116
|
this.publicClient
|
|
111
|
-
), this.l2Depositor = new
|
|
117
|
+
), this.l2Depositor = new w(
|
|
112
118
|
t,
|
|
113
119
|
this.walletClient,
|
|
114
120
|
this.publicClient
|
|
115
|
-
), this.pufLocker = new
|
|
121
|
+
), this.pufLocker = new c(
|
|
116
122
|
t,
|
|
117
123
|
this.walletClient,
|
|
118
124
|
this.publicClient
|
|
119
|
-
), this.l2RewardManager = new
|
|
125
|
+
), this.l2RewardManager = new f(
|
|
120
126
|
t,
|
|
121
127
|
this.walletClient,
|
|
122
128
|
this.publicClient
|
|
@@ -132,11 +138,11 @@ class ut {
|
|
|
132
138
|
t,
|
|
133
139
|
this.walletClient,
|
|
134
140
|
this.publicClient
|
|
135
|
-
), this.nucleusTeller = new
|
|
141
|
+
), this.nucleusTeller = new g(
|
|
136
142
|
t,
|
|
137
143
|
this.walletClient,
|
|
138
144
|
this.publicClient
|
|
139
|
-
), this.nucleusAccountant = new
|
|
145
|
+
), this.nucleusAccountant = new H(
|
|
140
146
|
t,
|
|
141
147
|
this.walletClient,
|
|
142
148
|
this.publicClient
|
|
@@ -156,19 +162,19 @@ class ut {
|
|
|
156
162
|
t,
|
|
157
163
|
this.walletClient,
|
|
158
164
|
this.publicClient
|
|
159
|
-
), this.concreteVault = new
|
|
165
|
+
), this.concreteVault = new R(
|
|
160
166
|
t,
|
|
161
167
|
this.walletClient,
|
|
162
168
|
this.publicClient
|
|
163
|
-
), this.validatorTicket = new
|
|
169
|
+
), this.validatorTicket = new k(
|
|
164
170
|
t,
|
|
165
171
|
this.walletClient,
|
|
166
172
|
this.publicClient
|
|
167
|
-
), this.pufferOracleV2 = new
|
|
173
|
+
), this.pufferOracleV2 = new L(
|
|
168
174
|
t,
|
|
169
175
|
this.walletClient,
|
|
170
176
|
this.publicClient
|
|
171
|
-
), this.pufferProtocol = new
|
|
177
|
+
), this.pufferProtocol = new v(
|
|
172
178
|
t,
|
|
173
179
|
this.walletClient,
|
|
174
180
|
this.publicClient
|
|
@@ -184,11 +190,19 @@ class ut {
|
|
|
184
190
|
t,
|
|
185
191
|
this.walletClient,
|
|
186
192
|
this.publicClient
|
|
187
|
-
), this.lagoonVault = new
|
|
193
|
+
), this.lagoonVault = new y(
|
|
188
194
|
t,
|
|
189
195
|
this.walletClient,
|
|
190
196
|
this.publicClient
|
|
191
|
-
), this.vlPuffer = new
|
|
197
|
+
), this.vlPuffer = new I(
|
|
198
|
+
t,
|
|
199
|
+
this.walletClient,
|
|
200
|
+
this.publicClient
|
|
201
|
+
), this.gaugeRegistry = new S(
|
|
202
|
+
t,
|
|
203
|
+
this.walletClient,
|
|
204
|
+
this.publicClient
|
|
205
|
+
), this.carrotVesting = new W(
|
|
192
206
|
t,
|
|
193
207
|
this.walletClient,
|
|
194
208
|
this.publicClient
|
|
@@ -204,6 +218,6 @@ class ut {
|
|
|
204
218
|
}
|
|
205
219
|
}
|
|
206
220
|
export {
|
|
207
|
-
|
|
221
|
+
mt as PufferClient
|
|
208
222
|
};
|
|
209
223
|
//# sourceMappingURL=puffer-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puffer-client.js","sources":["../../lib/api/puffer-client.ts"],"sourcesContent":["import {\n PublicClient,\n WalletClient,\n createPublicClient,\n createWalletClient,\n http,\n} from 'viem';\nimport { Chain, VIEM_CHAINS } from '../chains/constants';\nimport { PufferVaultHandler } from '../contracts/handlers/puffer-vault-handler';\nimport { PufferDepositorHandler } from '../contracts/handlers/puffer-depositor-handler';\nimport { PufferL2DepositorHandler } from '../contracts/handlers/puffer-l2-depositor-handler';\nimport { ERC20PermitHandler } from '../contracts/handlers/erc20-permit-handler';\nimport { PufLockerHandler } from '../contracts/handlers/puf-locker-handler';\nimport { L2RewardManagerHandler } from '../contracts/handlers/l2-reward-manager-handler';\nimport { L1RewardManagerHandler } from '../contracts/handlers/l1-reward-manager-handler';\nimport { PufferWithdrawalManagerHandler } from '../contracts/handlers/puffer-withdrawal-manager-handler';\nimport { NucleusBoringVaultHandler } from '../contracts/handlers/nucleus-boring-vault-handler';\nimport { NucleusTellerHandler } from '../contracts/handlers/nucleus-teller-handler';\nimport { NucleusAccountantHandler } from '../contracts/handlers/nucleus-accountant-handler';\nimport { NucleusAtomicQueueHandler } from '../contracts/handlers/nucleus-atomic-queue-handler';\nimport { MtwCarrotHandler } from '../contracts/handlers/mtw-carrot-handler';\nimport { CarrotStakingHandler } from '../contracts/handlers/carrot-staking-handler';\nimport { DistributorHandler } from '../contracts/handlers/distributor-handler';\nimport { ConcreteVaultHandler } from '../contracts/handlers/concrete-vault-handler';\nimport { ValidatorTicketHandler } from '../contracts/handlers/validator-ticket-handler';\nimport { PufferOracleV2Handler } from '../contracts/handlers/puffer-oracle-v2-handler';\nimport { PufferProtocolHandler } from '../contracts/handlers/puffer-protocol-handler';\nimport { GuardianModuleHandler } from '../contracts/handlers/guardian-module-handler';\nimport { InstitutionalVaultHandler } from '../contracts/handlers/institutional-vault-handler';\nimport { InstitutionalAccessManagerHandler } from '../contracts/handlers/institutional-access-manager-handler';\nimport { LagoonVaultHandler } from '../contracts/handlers/lagoon-vault-handler';\nimport { VLPufferHandler } from '../contracts/handlers/vl-puffer-handler';\n\n/**\n * The core class and the main entry point of the Puffer SDK.\n */\nexport class PufferClient {\n private walletClient: WalletClient;\n private publicClient: PublicClient;\n\n // Contract Handlers\n /** Handler for the `ERC20Permit` contract. */\n public erc20Permit: ERC20PermitHandler;\n /** Handler for the `PufferVaultV2` contract. */\n public vault: PufferVaultHandler;\n /** Handler for the `PufferDepositor` contract. */\n public depositor: PufferDepositorHandler;\n /** Handler for the `PufferL2Depositor` contract. */\n public l2Depositor: PufferL2DepositorHandler;\n /** Handler for the `PufLocker` contract. */\n public pufLocker: PufLockerHandler;\n /** Handler for the `L2RewardManager` contract. */\n public l2RewardManager: L2RewardManagerHandler;\n /** Handler for the `L1RewardManager` contract. */\n public l1RewardManager: L1RewardManagerHandler;\n /** Handler for the `PufferWithdrawalManager` contract. */\n public pufferWithdrawalManager: PufferWithdrawalManagerHandler;\n /** Handler for the `NucleusBoringVault` contract. */\n public nucleusBoringVault: NucleusBoringVaultHandler;\n /** Handler for the `NucleusTeller` contract. */\n public nucleusTeller: NucleusTellerHandler;\n /** Handler for the `NucleusAccountant` contract. */\n public nucleusAccountant: NucleusAccountantHandler;\n /** Handler for the `NucleusAtomicQueue` contract. */\n public nucleusAtomicQueue: NucleusAtomicQueueHandler;\n /** Handler for the `mtwCARROT` (Merkl Token Wrapper) contract. */\n public mtwCarrot: MtwCarrotHandler;\n /** Handler for the `CarrotStaker` contract. */\n public carrotStaker: CarrotStakingHandler;\n /** Handler for the `Distributor` contract. */\n public distributor: DistributorHandler;\n /** Handler for the `ConcreteMultiStrategyVault` contract. */\n public concreteVault: ConcreteVaultHandler;\n /** Handler for the `ValidatorTicket` contract. */\n public validatorTicket: ValidatorTicketHandler;\n /** Handler for the `PufferOracleV2` contract. */\n public pufferOracleV2: PufferOracleV2Handler;\n /** Handler for the `PufferProtocol` contract. */\n public pufferProtocol: PufferProtocolHandler;\n /** Handler for the `GuardianModule` contract. */\n public guardianModule: GuardianModuleHandler;\n /** Handler for the `InstitutionalVault` contract. */\n public institutionalVault: InstitutionalVaultHandler;\n /** Handler for the `InstitutionalAccessManager` contract. */\n public institutionalAccessManager: InstitutionalAccessManagerHandler;\n /** Handler for the `LagoonVault` contract. */\n public lagoonVault: LagoonVaultHandler;\n /** Handler for the `vlPUFFER` contract. */\n public vlPuffer: VLPufferHandler;\n\n /**\n * Create the Puffer Client.\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 chain: Chain,\n walletClient?: WalletClient,\n publicClient?: PublicClient,\n ) {\n const viemChain = VIEM_CHAINS[chain];\n\n /* istanbul ignore next */\n this.walletClient =\n walletClient ??\n createWalletClient({\n chain: viemChain,\n transport: http(),\n });\n this.publicClient =\n publicClient ??\n createPublicClient({\n chain: viemChain,\n transport: http(),\n });\n\n this.erc20Permit = new ERC20PermitHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vault = new PufferVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.depositor = new PufferDepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2Depositor = new PufferL2DepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufLocker = new PufLockerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2RewardManager = new L2RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l1RewardManager = new L1RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferWithdrawalManager = new PufferWithdrawalManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusBoringVault = new NucleusBoringVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusTeller = new NucleusTellerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAccountant = new NucleusAccountantHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAtomicQueue = new NucleusAtomicQueueHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.mtwCarrot = new MtwCarrotHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.carrotStaker = new CarrotStakingHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.distributor = new DistributorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.concreteVault = new ConcreteVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.validatorTicket = new ValidatorTicketHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferOracleV2 = new PufferOracleV2Handler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferProtocol = new PufferProtocolHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.guardianModule = new GuardianModuleHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalVault = new InstitutionalVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalAccessManager = new InstitutionalAccessManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.lagoonVault = new LagoonVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vlPuffer = new VLPufferHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n }\n\n /**\n * Request addresses from the wallet.\n *\n * @returns An array of wallet addresses.\n */\n public async requestAddresses() {\n return await this.walletClient.requestAddresses();\n }\n}\n"],"names":["PufferClient","chain","walletClient","publicClient","__publicField","viemChain","VIEM_CHAINS","createWalletClient","http","createPublicClient","ERC20PermitHandler","PufferVaultHandler","PufferDepositorHandler","PufferL2DepositorHandler","PufLockerHandler","L2RewardManagerHandler","L1RewardManagerHandler","PufferWithdrawalManagerHandler","NucleusBoringVaultHandler","NucleusTellerHandler","NucleusAccountantHandler","NucleusAtomicQueueHandler","MtwCarrotHandler","CarrotStakingHandler","DistributorHandler","ConcreteVaultHandler","ValidatorTicketHandler","PufferOracleV2Handler","PufferProtocolHandler","GuardianModuleHandler","InstitutionalVaultHandler","InstitutionalAccessManagerHandler","LagoonVaultHandler","VLPufferHandler"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCO,MAAMA,GAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA+DxB,YACEC,GACAC,GACAC,GACA;AAlEM,IAAAC,EAAA;AACA,IAAAA,EAAA;AAID;AAAA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AA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IAAI+B;AAAA,MACrB/B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,WAAW,IAAIgC;AAAA,MAClBhC;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQF,MAAa,mBAAmB;AACvB,WAAA,MAAM,KAAK,aAAa,iBAAiB;AAAA,EAAA;AAEpD;"}
|
|
1
|
+
{"version":3,"file":"puffer-client.js","sources":["../../lib/api/puffer-client.ts"],"sourcesContent":["import {\n PublicClient,\n WalletClient,\n createPublicClient,\n createWalletClient,\n http,\n} from 'viem';\nimport { Chain, VIEM_CHAINS } from '../chains/constants';\nimport { PufferVaultHandler } from '../contracts/handlers/puffer-vault-handler';\nimport { PufferDepositorHandler } from '../contracts/handlers/puffer-depositor-handler';\nimport { PufferL2DepositorHandler } from '../contracts/handlers/puffer-l2-depositor-handler';\nimport { ERC20PermitHandler } from '../contracts/handlers/erc20-permit-handler';\nimport { PufLockerHandler } from '../contracts/handlers/puf-locker-handler';\nimport { L2RewardManagerHandler } from '../contracts/handlers/l2-reward-manager-handler';\nimport { L1RewardManagerHandler } from '../contracts/handlers/l1-reward-manager-handler';\nimport { PufferWithdrawalManagerHandler } from '../contracts/handlers/puffer-withdrawal-manager-handler';\nimport { NucleusBoringVaultHandler } from '../contracts/handlers/nucleus-boring-vault-handler';\nimport { NucleusTellerHandler } from '../contracts/handlers/nucleus-teller-handler';\nimport { NucleusAccountantHandler } from '../contracts/handlers/nucleus-accountant-handler';\nimport { NucleusAtomicQueueHandler } from '../contracts/handlers/nucleus-atomic-queue-handler';\nimport { MtwCarrotHandler } from '../contracts/handlers/mtw-carrot-handler';\nimport { CarrotStakingHandler } from '../contracts/handlers/carrot-staking-handler';\nimport { DistributorHandler } from '../contracts/handlers/distributor-handler';\nimport { ConcreteVaultHandler } from '../contracts/handlers/concrete-vault-handler';\nimport { ValidatorTicketHandler } from '../contracts/handlers/validator-ticket-handler';\nimport { PufferOracleV2Handler } from '../contracts/handlers/puffer-oracle-v2-handler';\nimport { PufferProtocolHandler } from '../contracts/handlers/puffer-protocol-handler';\nimport { GuardianModuleHandler } from '../contracts/handlers/guardian-module-handler';\nimport { InstitutionalVaultHandler } from '../contracts/handlers/institutional-vault-handler';\nimport { InstitutionalAccessManagerHandler } from '../contracts/handlers/institutional-access-manager-handler';\nimport { LagoonVaultHandler } from '../contracts/handlers/lagoon-vault-handler';\nimport { VLPufferHandler } from '../contracts/handlers/vl-puffer-handler';\nimport { GaugeRegistryHandler } from '../contracts/handlers/gauge-registry-handler';\nimport { CarrotVestingHandler } from '../contracts/handlers/carrot-vesting-handler';\n\n/**\n * The core class and the main entry point of the Puffer SDK.\n */\nexport class PufferClient {\n private walletClient: WalletClient;\n private publicClient: PublicClient;\n\n // Contract Handlers\n /** Handler for the `ERC20Permit` contract. */\n public erc20Permit: ERC20PermitHandler;\n /** Handler for the `PufferVaultV2` contract. */\n public vault: PufferVaultHandler;\n /** Handler for the `PufferDepositor` contract. */\n public depositor: PufferDepositorHandler;\n /** Handler for the `PufferL2Depositor` contract. */\n public l2Depositor: PufferL2DepositorHandler;\n /** Handler for the `PufLocker` contract. */\n public pufLocker: PufLockerHandler;\n /** Handler for the `L2RewardManager` contract. */\n public l2RewardManager: L2RewardManagerHandler;\n /** Handler for the `L1RewardManager` contract. */\n public l1RewardManager: L1RewardManagerHandler;\n /** Handler for the `PufferWithdrawalManager` contract. */\n public pufferWithdrawalManager: PufferWithdrawalManagerHandler;\n /** Handler for the `NucleusBoringVault` contract. */\n public nucleusBoringVault: NucleusBoringVaultHandler;\n /** Handler for the `NucleusTeller` contract. */\n public nucleusTeller: NucleusTellerHandler;\n /** Handler for the `NucleusAccountant` contract. */\n public nucleusAccountant: NucleusAccountantHandler;\n /** Handler for the `NucleusAtomicQueue` contract. */\n public nucleusAtomicQueue: NucleusAtomicQueueHandler;\n /** Handler for the `mtwCARROT` (Merkl Token Wrapper) contract. */\n public mtwCarrot: MtwCarrotHandler;\n /** Handler for the `CarrotStaker` contract. */\n public carrotStaker: CarrotStakingHandler;\n /** Handler for the `Distributor` contract. */\n public distributor: DistributorHandler;\n /** Handler for the `ConcreteMultiStrategyVault` contract. */\n public concreteVault: ConcreteVaultHandler;\n /** Handler for the `ValidatorTicket` contract. */\n public validatorTicket: ValidatorTicketHandler;\n /** Handler for the `PufferOracleV2` contract. */\n public pufferOracleV2: PufferOracleV2Handler;\n /** Handler for the `PufferProtocol` contract. */\n public pufferProtocol: PufferProtocolHandler;\n /** Handler for the `GuardianModule` contract. */\n public guardianModule: GuardianModuleHandler;\n /** Handler for the `InstitutionalVault` contract. */\n public institutionalVault: InstitutionalVaultHandler;\n /** Handler for the `InstitutionalAccessManager` contract. */\n public institutionalAccessManager: InstitutionalAccessManagerHandler;\n /** Handler for the `LagoonVault` contract. */\n public lagoonVault: LagoonVaultHandler;\n /** Handler for the `vlPUFFER` contract. */\n public vlPuffer: VLPufferHandler;\n /** Handler for the `GaugeRegistry` contract. */\n public gaugeRegistry: GaugeRegistryHandler;\n /** Handler for the `CarrotVesting` contract. */\n public carrotVesting: CarrotVestingHandler;\n\n /**\n * Create the Puffer Client.\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 chain: Chain,\n walletClient?: WalletClient,\n publicClient?: PublicClient,\n ) {\n const viemChain = VIEM_CHAINS[chain];\n\n /* istanbul ignore next */\n this.walletClient =\n walletClient ??\n createWalletClient({\n chain: viemChain,\n transport: http(),\n });\n this.publicClient =\n publicClient ??\n createPublicClient({\n chain: viemChain,\n transport: http(),\n });\n\n this.erc20Permit = new ERC20PermitHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vault = new PufferVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.depositor = new PufferDepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2Depositor = new PufferL2DepositorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufLocker = new PufLockerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l2RewardManager = new L2RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.l1RewardManager = new L1RewardManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferWithdrawalManager = new PufferWithdrawalManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusBoringVault = new NucleusBoringVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusTeller = new NucleusTellerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAccountant = new NucleusAccountantHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.nucleusAtomicQueue = new NucleusAtomicQueueHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.mtwCarrot = new MtwCarrotHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.carrotStaker = new CarrotStakingHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.distributor = new DistributorHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.concreteVault = new ConcreteVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.validatorTicket = new ValidatorTicketHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferOracleV2 = new PufferOracleV2Handler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.pufferProtocol = new PufferProtocolHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.guardianModule = new GuardianModuleHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalVault = new InstitutionalVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.institutionalAccessManager = new InstitutionalAccessManagerHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.lagoonVault = new LagoonVaultHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.vlPuffer = new VLPufferHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.gaugeRegistry = new GaugeRegistryHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n this.carrotVesting = new CarrotVestingHandler(\n chain,\n this.walletClient,\n this.publicClient,\n );\n }\n\n /**\n * Request addresses from the wallet.\n *\n * @returns An array of wallet addresses.\n */\n public async requestAddresses() {\n return await this.walletClient.requestAddresses();\n }\n}\n"],"names":["PufferClient","chain","walletClient","publicClient","__publicField","viemChain","VIEM_CHAINS","createWalletClient","http","createPublicClient","ERC20PermitHandler","PufferVaultHandler","PufferDepositorHandler","PufferL2DepositorHandler","PufLockerHandler","L2RewardManagerHandler","L1RewardManagerHandler","PufferWithdrawalManagerHandler","NucleusBoringVaultHandler","NucleusTellerHandler","NucleusAccountantHandler","NucleusAtomicQueueHandler","MtwCarrotHandler","CarrotStakingHandler","DistributorHandler","ConcreteVaultHandler","ValidatorTicketHandler","PufferOracleV2Handler","PufferProtocolHandler","GuardianModuleHandler","InstitutionalVaultHandler","InstitutionalAccessManagerHandler","LagoonVaultHandler","VLPufferHandler","GaugeRegistryHandler","CarrotVestingHandler"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCO,MAAMA,GAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmExB,YACEC,GACAC,GACAC,GACA;AAtEM,IAAAC,EAAA;AACA,IAAAA,EAAA;AAID;AAAA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EAAA;AAEA;AAAA,IAAAA,EA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/B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,WAAW,IAAIgC;AAAA,MAClBhC;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,gBAAgB,IAAIiC;AAAA,MACvBjC;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,gBAAgB,IAAIkC;AAAA,MACvBlC;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQF,MAAa,mBAAmB;AACvB,WAAA,MAAM,KAAK,aAAa,iBAAiB;AAAA,EAAA;AAEpD;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{type:"function",name:"owner",stateMutability:"view",outputs:[{type:"address",name:"",simpleType:"address"}],inputs:[]},{type:"function",name:"calculateClaimableAmount",stateMutability:"view",inputs:[{type:"address",name:"user",simpleType:"address"}],outputs:[{type:"uint128",name:"",simpleType:"uint"}]},{type:"function",name:"EXCHANGE_RATE",stateMutability:"view",outputs:[{type:"uint256",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"claim",stateMutability:"nonpayable",outputs:[{type:"uint128",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"CARROT",stateMutability:"view",outputs:[{type:"address",name:"",simpleType:"address"}],inputs:[]},{type:"function",name:"PUFFER",stateMutability:"view",outputs:[{type:"address",name:"",simpleType:"address"}],inputs:[]},{type:"function",name:"TOTAL_PUFFER_REWARDS",stateMutability:"view",outputs:[{type:"uint256",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"steps",stateMutability:"view",outputs:[{type:"uint32",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"MAX_CARROT_AMOUNT",stateMutability:"view",outputs:[{type:"uint256",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"vestings",stateMutability:"view",inputs:[{type:"address",name:"user",simpleType:"address"}],outputs:[{type:"uint128",name:"depositedAmount",simpleType:"uint"},{type:"uint128",name:"claimedAmount",simpleType:"uint"},{type:"uint48",name:"lastClaimedTimestamp",simpleType:"uint"},{type:"uint48",name:"depositedTimestamp",simpleType:"uint"}]},{type:"function",name:"startTimestamp",stateMutability:"view",outputs:[{type:"uint48",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"startVesting",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount",simpleType:"uint"}],outputs:[]},{type:"function",name:"totalDepositedAmount",stateMutability:"view",outputs:[{type:"uint128",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"duration",stateMutability:"view",outputs:[{type:"uint32",name:"",simpleType:"uint"}],inputs:[]},{type:"function",name:"startVestingWithPermit",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"permitData",simpleType:"tuple",components:[{type:"uint256",name:"deadline",simpleType:"uint"},{type:"uint256",name:"amount",simpleType:"uint"},{type:"uint8",name:"v",simpleType:"uint"},{type:"bytes32",name:"r",simpleType:"bytes"},{type:"bytes32",name:"s",simpleType:"bytes"}]}],outputs:[]}];exports.CarrotVesting=t;
|
|
2
|
+
//# sourceMappingURL=CarrotVesting.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarrotVesting.cjs","sources":["../../../../lib/contracts/abis/mainnet/CarrotVesting.ts"],"sourcesContent":["export const CarrotVesting = <const>[\n {\n type: 'function',\n name: 'owner',\n stateMutability: 'view',\n outputs: [{ type: 'address', name: '', simpleType: 'address' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'calculateClaimableAmount',\n stateMutability: 'view',\n inputs: [{ type: 'address', name: 'user', simpleType: 'address' }],\n outputs: [{ type: 'uint128', name: '', simpleType: 'uint' }],\n },\n {\n type: 'function',\n name: 'EXCHANGE_RATE',\n stateMutability: 'view',\n outputs: [{ type: 'uint256', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'claim',\n stateMutability: 'nonpayable',\n outputs: [{ type: 'uint128', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'CARROT',\n stateMutability: 'view',\n outputs: [{ type: 'address', name: '', simpleType: 'address' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'PUFFER',\n stateMutability: 'view',\n outputs: [{ type: 'address', name: '', simpleType: 'address' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'TOTAL_PUFFER_REWARDS',\n stateMutability: 'view',\n outputs: [{ type: 'uint256', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'steps',\n stateMutability: 'view',\n outputs: [{ type: 'uint32', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'MAX_CARROT_AMOUNT',\n stateMutability: 'view',\n outputs: [{ type: 'uint256', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'vestings',\n stateMutability: 'view',\n inputs: [{ type: 'address', name: 'user', simpleType: 'address' }],\n outputs: [\n { type: 'uint128', name: 'depositedAmount', simpleType: 'uint' },\n { type: 'uint128', name: 'claimedAmount', simpleType: 'uint' },\n { type: 'uint48', name: 'lastClaimedTimestamp', simpleType: 'uint' },\n { type: 'uint48', name: 'depositedTimestamp', simpleType: 'uint' },\n ],\n },\n {\n type: 'function',\n name: 'startTimestamp',\n stateMutability: 'view',\n outputs: [{ type: 'uint48', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'startVesting',\n stateMutability: 'nonpayable',\n inputs: [{ type: 'uint256', name: 'amount', simpleType: 'uint' }],\n outputs: [],\n },\n {\n type: 'function',\n name: 'totalDepositedAmount',\n stateMutability: 'view',\n outputs: [{ type: 'uint128', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'duration',\n stateMutability: 'view',\n outputs: [{ type: 'uint32', name: '', simpleType: 'uint' }],\n inputs: [],\n },\n {\n type: 'function',\n name: 'startVestingWithPermit',\n stateMutability: 'nonpayable',\n inputs: [\n {\n type: 'tuple',\n name: 'permitData',\n simpleType: 'tuple',\n components: [\n { type: 'uint256', name: 'deadline', simpleType: 'uint' },\n { type: 'uint256', name: 'amount', simpleType: 'uint' },\n { type: 'uint8', name: 'v', simpleType: 'uint' },\n { type: 'bytes32', name: 'r', simpleType: 'bytes' },\n { type: 'bytes32', name: 's', simpleType: 'bytes' },\n ],\n },\n ],\n outputs: [],\n },\n];\n"],"names":["CarrotVesting"],"mappings":"gFAAO,MAAMA,EAAuB,CAClC,CACE,KAAM,WACN,KAAM,QACN,gBAAiB,OACjB,QAAS,CAAC,CAAE,KAAM,UAAW,KAAM,GAAI,WAAY,UAAW,EAC9D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,2BACN,gBAAiB,OACjB,OAAQ,CAAC,CAAE,KAAM,UAAW,KAAM,OAAQ,WAAY,UAAW,EACjE,QAAS,CAAC,CAAE,KAAM,UAAW,KAAM,GAAI,WAAY,MAAQ,CAAA,CAC7D,EACA,CACE,KAAM,WACN,KAAM,gBACN,gBAAiB,OACjB,QAAS,CAAC,CAAE,KAAM,UAAW,KAAM,GAAI,WAAY,OAAQ,EAC3D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,QACN,gBAAiB,aACjB,QAAS,CAAC,CAAE,KAAM,UAAW,KAAM,GAAI,WAAY,OAAQ,EAC3D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,SACN,gBAAiB,OACjB,QAAS,CAAC,CAAE,KAAM,UAAW,KAAM,GAAI,WAAY,UAAW,EAC9D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,SACN,gBAAiB,OACjB,QAAS,CAAC,CAAE,KAAM,UAAW,KAAM,GAAI,WAAY,UAAW,EAC9D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,uBACN,gBAAiB,OACjB,QAAS,CAAC,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,KAAM,aACN,WAAY,QACZ,WAAY,CACV,CAAE,KAAM,UAAW,KAAM,WAAY,WAAY,MAAO,EACxD,CAAE,KAAM,UAAW,KAAM,SAAU,WAAY,MAAO,EACtD,CAAE,KAAM,QAAS,KAAM,IAAK,WAAY,MAAO,EAC/C,CAAE,KAAM,UAAW,KAAM,IAAK,WAAY,OAAQ,EAClD,CAAE,KAAM,UAAW,KAAM,IAAK,WAAY,OAAQ,CAAA,CACpD,CAEJ,EACA,QAAS,CAAA,CAAC,CAEd"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export declare const CarrotVesting: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "owner";
|
|
4
|
+
readonly stateMutability: "view";
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
readonly name: "";
|
|
8
|
+
readonly simpleType: "address";
|
|
9
|
+
}];
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "calculateClaimableAmount";
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
readonly name: "user";
|
|
18
|
+
readonly simpleType: "address";
|
|
19
|
+
}];
|
|
20
|
+
readonly outputs: readonly [{
|
|
21
|
+
readonly type: "uint128";
|
|
22
|
+
readonly name: "";
|
|
23
|
+
readonly simpleType: "uint";
|
|
24
|
+
}];
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly name: "EXCHANGE_RATE";
|
|
28
|
+
readonly stateMutability: "view";
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
readonly name: "";
|
|
32
|
+
readonly simpleType: "uint";
|
|
33
|
+
}];
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly name: "claim";
|
|
38
|
+
readonly stateMutability: "nonpayable";
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly type: "uint128";
|
|
41
|
+
readonly name: "";
|
|
42
|
+
readonly simpleType: "uint";
|
|
43
|
+
}];
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
}, {
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "CARROT";
|
|
48
|
+
readonly stateMutability: "view";
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
readonly name: "";
|
|
52
|
+
readonly simpleType: "address";
|
|
53
|
+
}];
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
}, {
|
|
56
|
+
readonly type: "function";
|
|
57
|
+
readonly name: "PUFFER";
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
readonly outputs: readonly [{
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
readonly name: "";
|
|
62
|
+
readonly simpleType: "address";
|
|
63
|
+
}];
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
}, {
|
|
66
|
+
readonly type: "function";
|
|
67
|
+
readonly name: "TOTAL_PUFFER_REWARDS";
|
|
68
|
+
readonly stateMutability: "view";
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
readonly name: "";
|
|
72
|
+
readonly simpleType: "uint";
|
|
73
|
+
}];
|
|
74
|
+
readonly inputs: readonly [];
|
|
75
|
+
}, {
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly name: "steps";
|
|
78
|
+
readonly stateMutability: "view";
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly type: "uint32";
|
|
81
|
+
readonly name: "";
|
|
82
|
+
readonly simpleType: "uint";
|
|
83
|
+
}];
|
|
84
|
+
readonly inputs: readonly [];
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "function";
|
|
87
|
+
readonly name: "MAX_CARROT_AMOUNT";
|
|
88
|
+
readonly stateMutability: "view";
|
|
89
|
+
readonly outputs: readonly [{
|
|
90
|
+
readonly type: "uint256";
|
|
91
|
+
readonly name: "";
|
|
92
|
+
readonly simpleType: "uint";
|
|
93
|
+
}];
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
}, {
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
readonly name: "vestings";
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
readonly name: "user";
|
|
102
|
+
readonly simpleType: "address";
|
|
103
|
+
}];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly type: "uint128";
|
|
106
|
+
readonly name: "depositedAmount";
|
|
107
|
+
readonly simpleType: "uint";
|
|
108
|
+
}, {
|
|
109
|
+
readonly type: "uint128";
|
|
110
|
+
readonly name: "claimedAmount";
|
|
111
|
+
readonly simpleType: "uint";
|
|
112
|
+
}, {
|
|
113
|
+
readonly type: "uint48";
|
|
114
|
+
readonly name: "lastClaimedTimestamp";
|
|
115
|
+
readonly simpleType: "uint";
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "uint48";
|
|
118
|
+
readonly name: "depositedTimestamp";
|
|
119
|
+
readonly simpleType: "uint";
|
|
120
|
+
}];
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly name: "startTimestamp";
|
|
124
|
+
readonly stateMutability: "view";
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly type: "uint48";
|
|
127
|
+
readonly name: "";
|
|
128
|
+
readonly simpleType: "uint";
|
|
129
|
+
}];
|
|
130
|
+
readonly inputs: readonly [];
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
readonly name: "startVesting";
|
|
134
|
+
readonly stateMutability: "nonpayable";
|
|
135
|
+
readonly inputs: readonly [{
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
readonly name: "amount";
|
|
138
|
+
readonly simpleType: "uint";
|
|
139
|
+
}];
|
|
140
|
+
readonly outputs: readonly [];
|
|
141
|
+
}, {
|
|
142
|
+
readonly type: "function";
|
|
143
|
+
readonly name: "totalDepositedAmount";
|
|
144
|
+
readonly stateMutability: "view";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly type: "uint128";
|
|
147
|
+
readonly name: "";
|
|
148
|
+
readonly simpleType: "uint";
|
|
149
|
+
}];
|
|
150
|
+
readonly inputs: readonly [];
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "function";
|
|
153
|
+
readonly name: "duration";
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
readonly outputs: readonly [{
|
|
156
|
+
readonly type: "uint32";
|
|
157
|
+
readonly name: "";
|
|
158
|
+
readonly simpleType: "uint";
|
|
159
|
+
}];
|
|
160
|
+
readonly inputs: readonly [];
|
|
161
|
+
}, {
|
|
162
|
+
readonly type: "function";
|
|
163
|
+
readonly name: "startVestingWithPermit";
|
|
164
|
+
readonly stateMutability: "nonpayable";
|
|
165
|
+
readonly inputs: readonly [{
|
|
166
|
+
readonly type: "tuple";
|
|
167
|
+
readonly name: "permitData";
|
|
168
|
+
readonly simpleType: "tuple";
|
|
169
|
+
readonly components: readonly [{
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
readonly name: "deadline";
|
|
172
|
+
readonly simpleType: "uint";
|
|
173
|
+
}, {
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
readonly name: "amount";
|
|
176
|
+
readonly simpleType: "uint";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "uint8";
|
|
179
|
+
readonly name: "v";
|
|
180
|
+
readonly simpleType: "uint";
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "bytes32";
|
|
183
|
+
readonly name: "r";
|
|
184
|
+
readonly simpleType: "bytes";
|
|
185
|
+
}, {
|
|
186
|
+
readonly type: "bytes32";
|
|
187
|
+
readonly name: "s";
|
|
188
|
+
readonly simpleType: "bytes";
|
|
189
|
+
}];
|
|
190
|
+
}];
|
|
191
|
+
readonly outputs: readonly [];
|
|
192
|
+
}];
|