@pufferfinance/puffer-sdk 1.27.1 → 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 +3 -0
- package/dist/api/puffer-client.js +20 -13
- 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';\nimport { GaugeRegistryHandler } from '../contracts/handlers/gauge-registry-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\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 }\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"],"mappings":"04DAqCO,MAAMA,CAAa,CAiExB,YACEC,EACAC,EACAC,EACA,CApEMC,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,EAA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AAK,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,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,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,iBAEAA,EAAA,sBAEAA,EAAA,sBAgBC,MAAAC,EAAYC,cAAYL,CAAK,EAG9B,KAAA,aACHC,GACAK,qBAAmB,CACjB,MAAOF,EACP,UAAWG,EAAK,KAAA,CAAA,CACjB,EACE,KAAA,aACHL,GACAM,qBAAmB,CACjB,MAAOJ,EACP,UAAWG,EAAK,KAAA,CAAA,CACjB,EAEH,KAAK,YAAc,IAAIE,EAAA,mBACrBT,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,MAAQ,IAAIU,EAAA,mBACfV,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,UAAY,IAAIW,EAAA,uBACnBX,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,YAAc,IAAIY,EAAA,yBACrBZ,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,UAAY,IAAIa,EAAA,iBACnBb,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,gBAAkB,IAAIc,EAAA,uBACzBd,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,gBAAkB,IAAIe,EAAA,uBACzBf,EACA,KAAK,aACL,KAAK,YACP,EACA,KAAK,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,KAAK,cAAgB,IAAIkC,EAAA,qBACvBlC,EACA,KAAK,aACL,KAAK,YACP,CAAA,CAQF,MAAa,kBAAmB,CACvB,OAAA,MAAM,KAAK,aAAa,iBAAiB,CAAA,CAEpD"}
|
|
@@ -25,6 +25,7 @@ import { InstitutionalAccessManagerHandler } from '../contracts/handlers/institu
|
|
|
25
25
|
import { LagoonVaultHandler } from '../contracts/handlers/lagoon-vault-handler';
|
|
26
26
|
import { VLPufferHandler } from '../contracts/handlers/vl-puffer-handler';
|
|
27
27
|
import { GaugeRegistryHandler } from '../contracts/handlers/gauge-registry-handler';
|
|
28
|
+
import { CarrotVestingHandler } from '../contracts/handlers/carrot-vesting-handler';
|
|
28
29
|
/**
|
|
29
30
|
* The core class and the main entry point of the Puffer SDK.
|
|
30
31
|
*/
|
|
@@ -81,6 +82,8 @@ export declare class PufferClient {
|
|
|
81
82
|
vlPuffer: VLPufferHandler;
|
|
82
83
|
/** Handler for the `GaugeRegistry` contract. */
|
|
83
84
|
gaugeRegistry: GaugeRegistryHandler;
|
|
85
|
+
/** Handler for the `CarrotVesting` contract. */
|
|
86
|
+
carrotVesting: CarrotVestingHandler;
|
|
84
87
|
/**
|
|
85
88
|
* Create the Puffer Client.
|
|
86
89
|
*
|
|
@@ -3,11 +3,11 @@ 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
|
|
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
8
|
import { ERC20PermitHandler as m } from "../contracts/handlers/erc20-permit-handler.js";
|
|
9
|
-
import { PufLockerHandler as
|
|
10
|
-
import { L2RewardManagerHandler as
|
|
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";
|
|
@@ -27,8 +27,9 @@ import { InstitutionalAccessManagerHandler as N } from "../contracts/handlers/in
|
|
|
27
27
|
import { LagoonVaultHandler as y } from "../contracts/handlers/lagoon-vault-handler.js";
|
|
28
28
|
import { VLPufferHandler as I } from "../contracts/handlers/vl-puffer-handler.js";
|
|
29
29
|
import { GaugeRegistryHandler as S } from "../contracts/handlers/gauge-registry-handler.js";
|
|
30
|
-
import {
|
|
31
|
-
|
|
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 {
|
|
32
33
|
/**
|
|
33
34
|
* Create the Puffer Client.
|
|
34
35
|
*
|
|
@@ -92,11 +93,13 @@ class wt {
|
|
|
92
93
|
e(this, "vlPuffer");
|
|
93
94
|
/** Handler for the `GaugeRegistry` contract. */
|
|
94
95
|
e(this, "gaugeRegistry");
|
|
96
|
+
/** Handler for the `CarrotVesting` contract. */
|
|
97
|
+
e(this, "carrotVesting");
|
|
95
98
|
const r = u[t];
|
|
96
|
-
this.walletClient = i ??
|
|
99
|
+
this.walletClient = i ?? B({
|
|
97
100
|
chain: r,
|
|
98
101
|
transport: n()
|
|
99
|
-
}), this.publicClient = a ??
|
|
102
|
+
}), this.publicClient = a ?? O({
|
|
100
103
|
chain: r,
|
|
101
104
|
transport: n()
|
|
102
105
|
}), this.erc20Permit = new m(
|
|
@@ -107,19 +110,19 @@ class wt {
|
|
|
107
110
|
t,
|
|
108
111
|
this.walletClient,
|
|
109
112
|
this.publicClient
|
|
110
|
-
), this.depositor = new
|
|
113
|
+
), this.depositor = new C(
|
|
111
114
|
t,
|
|
112
115
|
this.walletClient,
|
|
113
116
|
this.publicClient
|
|
114
|
-
), this.l2Depositor = new
|
|
117
|
+
), this.l2Depositor = new w(
|
|
115
118
|
t,
|
|
116
119
|
this.walletClient,
|
|
117
120
|
this.publicClient
|
|
118
|
-
), this.pufLocker = new
|
|
121
|
+
), this.pufLocker = new c(
|
|
119
122
|
t,
|
|
120
123
|
this.walletClient,
|
|
121
124
|
this.publicClient
|
|
122
|
-
), this.l2RewardManager = new
|
|
125
|
+
), this.l2RewardManager = new f(
|
|
123
126
|
t,
|
|
124
127
|
this.walletClient,
|
|
125
128
|
this.publicClient
|
|
@@ -199,6 +202,10 @@ class wt {
|
|
|
199
202
|
t,
|
|
200
203
|
this.walletClient,
|
|
201
204
|
this.publicClient
|
|
205
|
+
), this.carrotVesting = new W(
|
|
206
|
+
t,
|
|
207
|
+
this.walletClient,
|
|
208
|
+
this.publicClient
|
|
202
209
|
);
|
|
203
210
|
}
|
|
204
211
|
/**
|
|
@@ -211,6 +218,6 @@ class wt {
|
|
|
211
218
|
}
|
|
212
219
|
}
|
|
213
220
|
export {
|
|
214
|
-
|
|
221
|
+
mt as PufferClient
|
|
215
222
|
};
|
|
216
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';\nimport { GaugeRegistryHandler } from '../contracts/handlers/gauge-registry-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\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 }\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","LagoonVault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A,MACzBzB;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,iBAAiB,IAAI0B;AAAA,MACxB1B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,iBAAiB,IAAI2B;AAAA,MACxB3B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,iBAAiB,IAAI4B;AAAA,MACxB5B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,qBAAqB,IAAI6B;AAAA,MAC5B7B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,6BAA6B,IAAI8B;AAAA,MACpC9B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,cAAc,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,GACA,KAAK,gBAAgB,IAAIiC;AAAA,MACvBjC;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","In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A,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,kBAAkB,IAAIyB;AAAA,MACzBzB;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,iBAAiB,IAAI0B;AAAA,MACxB1B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,iBAAiB,IAAI2B;AAAA,MACxB3B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,iBAAiB,IAAI4B;AAAA,MACxB5B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,qBAAqB,IAAI6B;AAAA,MAC5B7B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,6BAA6B,IAAI8B;AAAA,MACpC9B;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,KAAK,cAAc,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,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,GA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,CAAA,CAErE,EACA,CACE,KAAM,WACN,KAAM,iBACN,gBAAiB,OACjB,QAAS,CAAC,CAAE,KAAM,SAAU,KAAM,GAAI,WAAY,OAAQ,EAC1D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,eACN,gBAAiB,aACjB,OAAQ,CAAC,CAAE,KAAM,UAAW,KAAM,SAAU,WAAY,OAAQ,EAChE,QAAS,CAAA,CACX,EACA,CACE,KAAM,WACN,KAAM,uBACN,gBAAiB,OACjB,QAAS,CAAC,CAAE,KAAM,UAAW,KAAM,GAAI,WAAY,OAAQ,EAC3D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,WACN,gBAAiB,OACjB,QAAS,CAAC,CAAE,KAAM,SAAU,KAAM,GAAI,WAAY,OAAQ,EAC1D,OAAQ,CAAA,CACV,EACA,CACE,KAAM,WACN,KAAM,yBACN,gBAAiB,aACjB,OAAQ,CACN,CACE,KAAM,QACN,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
|
+
}];
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
const t = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "owner",
|
|
5
|
+
stateMutability: "view",
|
|
6
|
+
outputs: [{ type: "address", name: "", simpleType: "address" }],
|
|
7
|
+
inputs: []
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "calculateClaimableAmount",
|
|
12
|
+
stateMutability: "view",
|
|
13
|
+
inputs: [{ type: "address", name: "user", simpleType: "address" }],
|
|
14
|
+
outputs: [{ type: "uint128", name: "", simpleType: "uint" }]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: "function",
|
|
18
|
+
name: "EXCHANGE_RATE",
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
outputs: [{ type: "uint256", name: "", simpleType: "uint" }],
|
|
21
|
+
inputs: []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "function",
|
|
25
|
+
name: "claim",
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
outputs: [{ type: "uint128", name: "", simpleType: "uint" }],
|
|
28
|
+
inputs: []
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "function",
|
|
32
|
+
name: "CARROT",
|
|
33
|
+
stateMutability: "view",
|
|
34
|
+
outputs: [{ type: "address", name: "", simpleType: "address" }],
|
|
35
|
+
inputs: []
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "function",
|
|
39
|
+
name: "PUFFER",
|
|
40
|
+
stateMutability: "view",
|
|
41
|
+
outputs: [{ type: "address", name: "", simpleType: "address" }],
|
|
42
|
+
inputs: []
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "function",
|
|
46
|
+
name: "TOTAL_PUFFER_REWARDS",
|
|
47
|
+
stateMutability: "view",
|
|
48
|
+
outputs: [{ type: "uint256", name: "", simpleType: "uint" }],
|
|
49
|
+
inputs: []
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: "function",
|
|
53
|
+
name: "steps",
|
|
54
|
+
stateMutability: "view",
|
|
55
|
+
outputs: [{ type: "uint32", name: "", simpleType: "uint" }],
|
|
56
|
+
inputs: []
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "function",
|
|
60
|
+
name: "MAX_CARROT_AMOUNT",
|
|
61
|
+
stateMutability: "view",
|
|
62
|
+
outputs: [{ type: "uint256", name: "", simpleType: "uint" }],
|
|
63
|
+
inputs: []
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "function",
|
|
67
|
+
name: "vestings",
|
|
68
|
+
stateMutability: "view",
|
|
69
|
+
inputs: [{ type: "address", name: "user", simpleType: "address" }],
|
|
70
|
+
outputs: [
|
|
71
|
+
{ type: "uint128", name: "depositedAmount", simpleType: "uint" },
|
|
72
|
+
{ type: "uint128", name: "claimedAmount", simpleType: "uint" },
|
|
73
|
+
{ type: "uint48", name: "lastClaimedTimestamp", simpleType: "uint" },
|
|
74
|
+
{ type: "uint48", name: "depositedTimestamp", simpleType: "uint" }
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "function",
|
|
79
|
+
name: "startTimestamp",
|
|
80
|
+
stateMutability: "view",
|
|
81
|
+
outputs: [{ type: "uint48", name: "", simpleType: "uint" }],
|
|
82
|
+
inputs: []
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: "function",
|
|
86
|
+
name: "startVesting",
|
|
87
|
+
stateMutability: "nonpayable",
|
|
88
|
+
inputs: [{ type: "uint256", name: "amount", simpleType: "uint" }],
|
|
89
|
+
outputs: []
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: "function",
|
|
93
|
+
name: "totalDepositedAmount",
|
|
94
|
+
stateMutability: "view",
|
|
95
|
+
outputs: [{ type: "uint128", name: "", simpleType: "uint" }],
|
|
96
|
+
inputs: []
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: "function",
|
|
100
|
+
name: "duration",
|
|
101
|
+
stateMutability: "view",
|
|
102
|
+
outputs: [{ type: "uint32", name: "", simpleType: "uint" }],
|
|
103
|
+
inputs: []
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: "function",
|
|
107
|
+
name: "startVestingWithPermit",
|
|
108
|
+
stateMutability: "nonpayable",
|
|
109
|
+
inputs: [
|
|
110
|
+
{
|
|
111
|
+
type: "tuple",
|
|
112
|
+
name: "permitData",
|
|
113
|
+
simpleType: "tuple",
|
|
114
|
+
components: [
|
|
115
|
+
{ type: "uint256", name: "deadline", simpleType: "uint" },
|
|
116
|
+
{ type: "uint256", name: "amount", simpleType: "uint" },
|
|
117
|
+
{ type: "uint8", name: "v", simpleType: "uint" },
|
|
118
|
+
{ type: "bytes32", name: "r", simpleType: "bytes" },
|
|
119
|
+
{ type: "bytes32", name: "s", simpleType: "bytes" }
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
outputs: []
|
|
124
|
+
}
|
|
125
|
+
];
|
|
126
|
+
export {
|
|
127
|
+
t as CarrotVesting
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=CarrotVesting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarrotVesting.js","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":"AAAO,MAAMA,IAAuB;AAAA,EAClC;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,iBAAiB;AAAA,IACjB,SAAS,CAAC,EAAE,MAAM,WAAW,MAAM,IAAI,YAAY,WAAW;AAAA,IAC9D,QAAQ,CAAA;AAAA,EACV;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,MA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