@boostxyz/sdk 7.2.0 → 7.4.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/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +29 -0
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +481 -397
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.js +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +2 -2
- package/dist/BoostCore.cjs +1 -1
- package/dist/BoostCore.js +4 -4
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +1 -1
- package/dist/{Budget-uGKa2qzz.cjs → Budget-CBvRK5Ia.cjs} +2 -2
- package/dist/{Budget-uGKa2qzz.cjs.map → Budget-CBvRK5Ia.cjs.map} +1 -1
- package/dist/{Budget-B-grnRq9.js → Budget-DlN8SRIG.js} +2 -2
- package/dist/{Budget-B-grnRq9.js.map → Budget-DlN8SRIG.js.map} +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.js +1 -1
- package/dist/{Incentive-Dufx0ZjH.cjs → Incentive-CoOu1lA8.cjs} +2 -2
- package/dist/{Incentive-Dufx0ZjH.cjs.map → Incentive-CoOu1lA8.cjs.map} +1 -1
- package/dist/{Incentive-Bz_g-nID.js → Incentive-OiTBMgKz.js} +2 -2
- package/dist/{Incentive-Bz_g-nID.js.map → Incentive-OiTBMgKz.js.map} +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +2 -2
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +173 -149
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts +3 -2
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +127 -103
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +1 -1
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +1 -1
- package/dist/{SimpleDenyList-B2YDJ_gk.cjs → SimpleDenyList-DMTx64jC.cjs} +2 -2
- package/dist/{SimpleDenyList-B2YDJ_gk.cjs.map → SimpleDenyList-DMTx64jC.cjs.map} +1 -1
- package/dist/{SimpleDenyList-BlLgvhjE.js → SimpleDenyList-DWaW4ZEU.js} +2 -2
- package/dist/{SimpleDenyList-BlLgvhjE.js.map → SimpleDenyList-DWaW4ZEU.js.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.js +1 -1
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +1 -1
- package/dist/{deployments-DKtAq6BT.js → deployments-CW15LXS5.js} +29 -9
- package/dist/{deployments-DKtAq6BT.js.map → deployments-CW15LXS5.js.map} +1 -1
- package/dist/deployments-DKScOGTf.cjs +2 -0
- package/dist/deployments-DKScOGTf.cjs.map +1 -0
- package/dist/deployments.json +21 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/Actions/EventAction.ts +144 -5
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.ts +47 -8
- package/src/Incentives/ERC20VariableCriteriaIncentiveV2.ts +49 -8
- package/dist/deployments-Dk-Z1L2X.cjs +0 -2
- package/dist/deployments-Dk-Z1L2X.cjs.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { getTransactionReceipt as
|
|
3
|
-
import { parseEventLogs as
|
|
4
|
-
import { f as
|
|
5
|
-
import { SignatureType as
|
|
6
|
-
import { DeployableTarget as
|
|
7
|
-
import { prepareClaimPayload as
|
|
8
|
-
import {
|
|
9
|
-
import { RegistryType as
|
|
10
|
-
const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6122ba806100895f395ff3fe6080604052600436106102ab575f3560e01c8063715018a611610165578063c884ef83116100c6578063ec87621c1161007c578063f2fde38b11610062578063f2fde38b146107a9578063fe9fbb80146107bc578063fee81cf4146107db575f80fd5b8063ec87621c14610782578063f04e283e14610796575f80fd5b8063db09da12116100ac578063db09da121461072f578063dcc213611461074e578063dcc59b6f1461076d575f80fd5b8063c884ef83146106ec578063d54ad2a11461071a575f80fd5b8063a4d66daf1161011b578063bb1757cf11610101578063bb1757cf1461069a578063be4994f8146106b9578063c213f3f9146106d8575f80fd5b8063a4d66daf14610664578063a871ced214610679575f80fd5b8063775486871161014b57806377548687146105b45780638da5cb5b146106225780639214fa4d1461063a575f80fd5b8063715018a61461059857806375b238fc146105a0575f80fd5b806330db555f1161020f5780634a4ee7b1116101c5578063514e62fc116101ab578063514e62fc14610546578063547d18641461057b57806354d1f13d14610590575f80fd5b80634a4ee7b1146105075780634e7165a21461051a575f80fd5b80634359d28a116101f55780634359d28a14610480578063439fab911461049f578063474f5a44146104be575f80fd5b806330db555f1461043557806338d52e0f14610454575f80fd5b80631f1cb62b11610264578063256929621161024a57806325692962146103c257806328d6183b146103ca5780632de9480714610404575f80fd5b80631f1cb62b1461035d578063228cb733146103ae575f80fd5b8063183a4f6e11610294578063183a4f6e146103005780631c10893f146103155780631cd64df414610328575f80fd5b806301ffc9a7146102af57806307621eca146102e3575b5f80fd5b3480156102ba575f80fd5b506102ce6102c93660046119c5565b61080c565b60405190151581526020015b60405180910390f35b3480156102ee575f80fd5b505f545b6040519081526020016102da565b61031361030e366004611a0b565b610867565b005b610313610323366004611a4a565b610874565b348015610333575f80fd5b506102ce610342366004611a4a565b638b78c6d8600c9081525f9290925260209091205481161490565b348015610368575f80fd5b50600a546103899073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102da565b3480156103b9575f80fd5b506102f25f5481565b61031361088a565b3480156103d5575f80fd5b506040517ff60c99c90000000000000000000000000000000000000000000000000000000081526020016102da565b34801561040f575f80fd5b506102f261041e366004611a72565b638b78c6d8600c9081525f91909152602090205490565b348015610440575f80fd5b5061031361044f366004611a0b565b6108d7565b34801561045f575f80fd5b506006546103899073ffffffffffffffffffffffffffffffffffffffff1681565b34801561048b575f80fd5b5061031361049a366004611ad3565b610993565b3480156104aa575f80fd5b506103136104b9366004611b7d565b610a8d565b3480156104c9575f80fd5b506104dd6104d8366004611b7d565b610e1c565b6040805192835273ffffffffffffffffffffffffffffffffffffffff9091166020830152016102da565b610313610515366004611a4a565b610f7e565b348015610525575f80fd5b50610539610534366004611b7d565b610f90565b6040516102da9190611c08565b348015610551575f80fd5b506102ce610560366004611a4a565b638b78c6d8600c9081525f9290925260209091205416151590565b348015610586575f80fd5b506102f260025481565b61031361102a565b610313611063565b3480156105ab575f80fd5b506102f2600281565b3480156105bf575f80fd5b506003546004546005546106119260ff90811692918082169173ffffffffffffffffffffffffffffffffffffffff61010083041691750100000000000000000000000000000000000000000090041685565b6040516102da959493929190611c57565b34801561062d575f80fd5b50638b78c6d81954610389565b348015610645575f80fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610389565b34801561066f575f80fd5b506102f260085481565b348015610684575f80fd5b5061068d611076565b6040516102da9190611d0a565b3480156106a5575f80fd5b506102ce6106b4366004611d18565b61115c565b3480156106c4575f80fd5b506103136106d3366004611ad3565b611389565b3480156106e3575f80fd5b50600b546102f2565b3480156106f7575f80fd5b506102ce610706366004611a72565b60016020525f908152604090205460ff1681565b348015610725575f80fd5b506102f260095481565b34801561073a575f80fd5b506102ce610749366004611d18565b611427565b348015610759575f80fd5b50610313610768366004611ad3565b61149a565b348015610778575f80fd5b506102f260075481565b34801561078d575f80fd5b506102f2600181565b6103136107a4366004611a72565b611538565b6103136107b7366004611a72565b611572565b3480156107c7575f80fd5b506102ce6107d6366004611a72565b611598565b3480156107e6575f80fd5b506102f26107f5366004611a72565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167ff60c99c90000000000000000000000000000000000000000000000000000000014806108615750610861826115f7565b92915050565b610871338261164c565b50565b61087c611657565b6108868282611671565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b60016108e28161167d565b815f0361091b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006546109409073ffffffffffffffffffffffffffffffffffffffff163330856116ae565b8160085f8282546109519190611d94565b909155505060408051338152602081018490527fa64c2da41decbd538f8629e54c8fa0b7362c9102b691386a0fb6a1797454e9c6910160405180910390a15050565b600261099e8161167d565b8382146109d7576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a85575f8484838181106109f4576109f4611da7565b9050602002016020810190610a099190611dd4565b9050801515600103610a4b57610a46878784818110610a2a57610a2a611da7565b9050602002016020810190610a3f9190611a72565b6001611671565b610a7c565b610a7c878784818110610a6057610a60611da7565b9050602002016020810190610a759190611a72565b600161164c565b506001016109d9565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011328054600382558015610ade5760018160011c14303b10610ad55763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f610aec83850185611e9b565b905080606001515f03610b2b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606081015181515f90610b549073ffffffffffffffffffffffffffffffffffffffff1630611710565b905081811015610bbd5782516040517f5c54305e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018290526044810183905260640160405180910390fd5b60c083015183516006805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556020860151600a805491909316911617905560408401515f55606084015160085560a0840151600b5580516003805483929082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018381811115610c7157610c71611c1a565b021790555060208201516001808301919091556040830151600283018054606086015173ffffffffffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911660ff90931692909217919091178082556080850151927fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909116907501000000000000000000000000000000000000000000908490811115610d3657610d36611c1a565b0217905550905050610d4733611743565b610d568460800151600161178b565b836020015173ffffffffffffffffffffffffffffffffffffffff16845f015173ffffffffffffffffffffffffffffffffffffffff167f2610f3b22dbb1fc9e125919ede742dad90b4f3dd49ce0c10118c6ef34410e3c98660400151876060015188608001518960a001518a60c00151604051610dd6959493929190611fa1565b60405180910390a3505050508015610e17576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610e298161167d565b5f610e3685870187612093565b90505f8160200151806020019051810190610e519190612110565b90508060085f828254610e649190612127565b90915550508151600654610e919173ffffffffffffffffffffffffffffffffffffffff90911690836117cc565b81516006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529183901b90911660348201526048810183905273ffffffffffffffffffffffffffffffffffffffff909116907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610f4f91611c08565b60405180910390a260065490945073ffffffffffffffffffffffffffffffffffffffff16925050509250929050565b610f86611657565b610886828261164c565b60605f610f9f83850185611e9b565b6060818101516040805160808101825260018152845173ffffffffffffffffffffffffffffffffffffffff16602080830191909152308284015282518082018452849052825180820185905283518082038301815290840184529482019490945290519394509092611011920161213a565b6040516020818303038152906040529250505092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b61106b611657565b6110745f61181f565b565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a0810190915260038054829060ff1660018111156110c5576110c5611c1a565b60018111156110d6576110d6611c1a565b81526001828101546020830152600283015460ff808216604085015273ffffffffffffffffffffffffffffffffffffffff61010083041660608501526080909301927501000000000000000000000000000000000000000000909104169081111561114357611143611c1a565b600181111561115457611154611c1a565b905250919050565b5f611165611657565b5f611172838501856121b8565b90505f816020015180602001905181019061118d9190612110565b90505f80545f0361119f5750806111c2565b670de0b6b3a7640000825f546111b59190612235565b6111bf919061224c565b90505b600b54158015906111d45750600b5481115b156111de5750600b545b6111e781611869565b61121d576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008548160095461122e9190611d94565b1115611266576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060095f8282546112779190611d94565b92505081905550600160075f8282546112909190611d94565b90915550506006546112b99073ffffffffffffffffffffffffffffffffffffffff1688836117cc565b6006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529189901b90911660348201526048810182905273ffffffffffffffffffffffffffffffffffffffff8816907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261137491611c08565b60405180910390a25060019695505050505050565b60026113948161167d565b8382146113cd576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a855761141f8686838181106113ec576113ec611da7565b90506020020160208101906114019190611a72565b85858481811061141357611413611da7565b90506020020135611671565b6001016113cf565b5f8080611436848601866121b8565b90505f81602001518060200190518101906114519190612110565b90505f545f0361146357809250611486565b670de0b6b3a7640000815f546114799190612235565b611483919061224c565b92505b61148f83611869565b979650505050505050565b60026114a58161167d565b8382146114de576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a85576115308686838181106114fd576114fd611da7565b90506020020160208101906115129190611a72565b85858481811061152457611524611da7565b9050602002013561164c565b6001016114e0565b611540611657565b63389a75e1600c52805f526020600c20805442111561156657636f5e88185f526004601cfd5b5f90556108718161181f565b61157a611657565b8060601b61158f57637448fbae5f526004601cfd5b6108718161181f565b5f8173ffffffffffffffffffffffffffffffffffffffff166115bd638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806108615750638b78c6d8600c9081525f83905260209020546003161515610861565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f56586338000000000000000000000000000000000000000000000000000000001480610861575061086182611883565b61088682825f6118d8565b638b78c6d819543314611074576382b429005f526004601cfd5b610886828260016118d8565b638b78c6d81954331461087157638b78c6d8600c52335f52806020600c205416610871576382b429005f526004601cfd5b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af18060015f51141661170257803d873b15171061170257637939f4245f526004601cfd5b505f60605260405250505050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661181557803d853b151710611815576390b8ec185f526004601cfd5b505f603452505050565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f6008548260095461187b9190611d94565b111592915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fa921670500000000000000000000000000000000000000000000000000000000148061086157506108618261192f565b638b78c6d8600c52825f526020600c208054838117836118f9575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d00000000000000000000000000000000000000000000000000000000148061086157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610861565b5f602082840312156119d5575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611a04575f80fd5b9392505050565b5f60208284031215611a1b575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a45575f80fd5b919050565b5f8060408385031215611a5b575f80fd5b611a6483611a22565b946020939093013593505050565b5f60208284031215611a82575f80fd5b611a0482611a22565b5f8083601f840112611a9b575f80fd5b50813567ffffffffffffffff811115611ab2575f80fd5b6020830191508360208260051b8501011115611acc575f80fd5b9250929050565b5f805f8060408587031215611ae6575f80fd5b843567ffffffffffffffff811115611afc575f80fd5b611b0887828801611a8b565b909550935050602085013567ffffffffffffffff811115611b27575f80fd5b611b3387828801611a8b565b95989497509550505050565b5f8083601f840112611b4f575f80fd5b50813567ffffffffffffffff811115611b66575f80fd5b602083019150836020828501011115611acc575f80fd5b5f8060208385031215611b8e575f80fd5b823567ffffffffffffffff811115611ba4575f80fd5b611bb085828601611b3f565b90969095509350505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f611a046020830184611bbc565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061087157610871611c1a565b60a08101611c6487611c47565b86825285602083015260ff8516604083015273ffffffffffffffffffffffffffffffffffffffff84166060830152611c9b83611c47565b8260808301529695505050505050565b8051611cb681611c47565b808352506020810151602083015260ff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff60608201511660608301526080810151611cff81611c47565b806080840152505050565b60a081016108618284611cab565b5f805f60408486031215611d2a575f80fd5b611d3384611a22565b9250602084013567ffffffffffffffff811115611d4e575f80fd5b611d5a86828701611b3f565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082018082111561086157610861611d67565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611de4575f80fd5b81358015158114611a04575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160e0810167ffffffffffffffff81118282101715611e4357611e43611df3565b60405290565b60405160a0810167ffffffffffffffff81118282101715611e4357611e43611df3565b6040805190810167ffffffffffffffff81118282101715611e4357611e43611df3565b60028110610871575f80fd5b5f81830361016081128015611eae575f80fd5b50611eb7611e20565b611ec084611a22565b8152611ece60208501611a22565b60208201526040848101359082015260608085013590820152611ef360808501611a22565b608082015260a084810135818301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4083011215611f2f575f80fd5b611f37611e49565b915060c0840135611f4781611e8f565b825260e0840135602083015261010084013560ff81168114611f67575f80fd5b6040830152611f796101208501611a22565b6060830152610140840135611f8d81611e8f565b608083015260c08101919091529392505050565b8581526020810185905273ffffffffffffffffffffffffffffffffffffffff84166040820152606081018390526101208101611fe06080830184611cab565b9695505050505050565b5f82601f830112611ff9575f80fd5b813567ffffffffffffffff81111561201357612013611df3565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff8111828210171561206057612060611df3565b604052818152838201602001851015612077575f80fd5b816020850160208301375f918101602001919091529392505050565b5f602082840312156120a3575f80fd5b813567ffffffffffffffff8111156120b9575f80fd5b8201604081850312156120ca575f80fd5b6120d2611e6c565b6120db82611a22565b8152602082013567ffffffffffffffff8111156120f6575f80fd5b61210286828501611fea565b602083015250949350505050565b5f60208284031215612120575f80fd5b5051919050565b8181038181111561086157610861611d67565b602081525f82516003811061215157612151611c1a565b8060208401525073ffffffffffffffffffffffffffffffffffffffff602084015116604083015273ffffffffffffffffffffffffffffffffffffffff604084015116606083015260608301516080808401526121b060a0840182611bbc565b949350505050565b5f602082840312156121c8575f80fd5b813567ffffffffffffffff8111156121de575f80fd5b8201604081850312156121ef575f80fd5b6121f7611e6c565b813567ffffffffffffffff81111561220d575f80fd5b61221986828501611fea565b825250602082013567ffffffffffffffff8111156120f6575f80fd5b808202811582820484141761086157610861611d67565b5f8261227f577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea26469706673582212204e4cf647127c9375d9d4d84240a56dd4ae0f1f1727bcc814e7c0f19d99a9cc9664736f6c634300081a0033", u = class u extends Q {
|
|
1
|
+
import { d as C, bC as _, bD as E, bE as P, bF as $, bG as N, bH as O, bI as B, bJ as F, bK as L, bL as G, bM as M, bN as U, bO as H, bP as S, bQ as k, bR as q, bS as z } from "../generated-CINzoGbl.js";
|
|
2
|
+
import { getTransactionReceipt as A, getTransaction as J } from "@wagmi/core";
|
|
3
|
+
import { parseEventLogs as K, decodeFunctionData as j, zeroAddress as o, zeroHash as Q, encodeAbiParameters as y, decodeAbiParameters as g, parseEther as v } from "viem";
|
|
4
|
+
import { f as W } from "../deployments-CW15LXS5.js";
|
|
5
|
+
import { SignatureType as x, decodeAndReorderLogArgs as X, isCriteriaFieldIndexTuple as p, getScalarValueFromTuple as h } from "../Actions/EventAction.js";
|
|
6
|
+
import { DeployableTarget as Z } from "../Deployable/DeployableTarget.js";
|
|
7
|
+
import { prepareClaimPayload as I } from "../claiming.js";
|
|
8
|
+
import { DecodedArgsError as n, NoMatchingLogsError as T, InvalidCriteriaTypeError as Y, IncentiveCriteriaNotFoundError as f0 } from "../errors.js";
|
|
9
|
+
import { RegistryType as a0, CheatCodes as e0 } from "../utils.js";
|
|
10
|
+
const b0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6122ba806100895f395ff3fe6080604052600436106102ab575f3560e01c8063715018a611610165578063c884ef83116100c6578063ec87621c1161007c578063f2fde38b11610062578063f2fde38b146107a9578063fe9fbb80146107bc578063fee81cf4146107db575f80fd5b8063ec87621c14610782578063f04e283e14610796575f80fd5b8063db09da12116100ac578063db09da121461072f578063dcc213611461074e578063dcc59b6f1461076d575f80fd5b8063c884ef83146106ec578063d54ad2a11461071a575f80fd5b8063a4d66daf1161011b578063bb1757cf11610101578063bb1757cf1461069a578063be4994f8146106b9578063c213f3f9146106d8575f80fd5b8063a4d66daf14610664578063a871ced214610679575f80fd5b8063775486871161014b57806377548687146105b45780638da5cb5b146106225780639214fa4d1461063a575f80fd5b8063715018a61461059857806375b238fc146105a0575f80fd5b806330db555f1161020f5780634a4ee7b1116101c5578063514e62fc116101ab578063514e62fc14610546578063547d18641461057b57806354d1f13d14610590575f80fd5b80634a4ee7b1146105075780634e7165a21461051a575f80fd5b80634359d28a116101f55780634359d28a14610480578063439fab911461049f578063474f5a44146104be575f80fd5b806330db555f1461043557806338d52e0f14610454575f80fd5b80631f1cb62b11610264578063256929621161024a57806325692962146103c257806328d6183b146103ca5780632de9480714610404575f80fd5b80631f1cb62b1461035d578063228cb733146103ae575f80fd5b8063183a4f6e11610294578063183a4f6e146103005780631c10893f146103155780631cd64df414610328575f80fd5b806301ffc9a7146102af57806307621eca146102e3575b5f80fd5b3480156102ba575f80fd5b506102ce6102c93660046119c5565b61080c565b60405190151581526020015b60405180910390f35b3480156102ee575f80fd5b505f545b6040519081526020016102da565b61031361030e366004611a0b565b610867565b005b610313610323366004611a4a565b610874565b348015610333575f80fd5b506102ce610342366004611a4a565b638b78c6d8600c9081525f9290925260209091205481161490565b348015610368575f80fd5b50600a546103899073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102da565b3480156103b9575f80fd5b506102f25f5481565b61031361088a565b3480156103d5575f80fd5b506040517ff60c99c90000000000000000000000000000000000000000000000000000000081526020016102da565b34801561040f575f80fd5b506102f261041e366004611a72565b638b78c6d8600c9081525f91909152602090205490565b348015610440575f80fd5b5061031361044f366004611a0b565b6108d7565b34801561045f575f80fd5b506006546103899073ffffffffffffffffffffffffffffffffffffffff1681565b34801561048b575f80fd5b5061031361049a366004611ad3565b610993565b3480156104aa575f80fd5b506103136104b9366004611b7d565b610a8d565b3480156104c9575f80fd5b506104dd6104d8366004611b7d565b610e1c565b6040805192835273ffffffffffffffffffffffffffffffffffffffff9091166020830152016102da565b610313610515366004611a4a565b610f7e565b348015610525575f80fd5b50610539610534366004611b7d565b610f90565b6040516102da9190611c08565b348015610551575f80fd5b506102ce610560366004611a4a565b638b78c6d8600c9081525f9290925260209091205416151590565b348015610586575f80fd5b506102f260025481565b61031361102a565b610313611063565b3480156105ab575f80fd5b506102f2600281565b3480156105bf575f80fd5b506003546004546005546106119260ff90811692918082169173ffffffffffffffffffffffffffffffffffffffff61010083041691750100000000000000000000000000000000000000000090041685565b6040516102da959493929190611c57565b34801561062d575f80fd5b50638b78c6d81954610389565b348015610645575f80fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610389565b34801561066f575f80fd5b506102f260085481565b348015610684575f80fd5b5061068d611076565b6040516102da9190611d0a565b3480156106a5575f80fd5b506102ce6106b4366004611d18565b61115c565b3480156106c4575f80fd5b506103136106d3366004611ad3565b611389565b3480156106e3575f80fd5b50600b546102f2565b3480156106f7575f80fd5b506102ce610706366004611a72565b60016020525f908152604090205460ff1681565b348015610725575f80fd5b506102f260095481565b34801561073a575f80fd5b506102ce610749366004611d18565b611427565b348015610759575f80fd5b50610313610768366004611ad3565b61149a565b348015610778575f80fd5b506102f260075481565b34801561078d575f80fd5b506102f2600181565b6103136107a4366004611a72565b611538565b6103136107b7366004611a72565b611572565b3480156107c7575f80fd5b506102ce6107d6366004611a72565b611598565b3480156107e6575f80fd5b506102f26107f5366004611a72565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167ff60c99c90000000000000000000000000000000000000000000000000000000014806108615750610861826115f7565b92915050565b610871338261164c565b50565b61087c611657565b6108868282611671565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b60016108e28161167d565b815f0361091b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006546109409073ffffffffffffffffffffffffffffffffffffffff163330856116ae565b8160085f8282546109519190611d94565b909155505060408051338152602081018490527fa64c2da41decbd538f8629e54c8fa0b7362c9102b691386a0fb6a1797454e9c6910160405180910390a15050565b600261099e8161167d565b8382146109d7576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a85575f8484838181106109f4576109f4611da7565b9050602002016020810190610a099190611dd4565b9050801515600103610a4b57610a46878784818110610a2a57610a2a611da7565b9050602002016020810190610a3f9190611a72565b6001611671565b610a7c565b610a7c878784818110610a6057610a60611da7565b9050602002016020810190610a759190611a72565b600161164c565b506001016109d9565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011328054600382558015610ade5760018160011c14303b10610ad55763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f610aec83850185611e9b565b905080606001515f03610b2b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606081015181515f90610b549073ffffffffffffffffffffffffffffffffffffffff1630611710565b905081811015610bbd5782516040517f5c54305e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018290526044810183905260640160405180910390fd5b60c083015183516006805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556020860151600a805491909316911617905560408401515f55606084015160085560a0840151600b5580516003805483929082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018381811115610c7157610c71611c1a565b021790555060208201516001808301919091556040830151600283018054606086015173ffffffffffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911660ff90931692909217919091178082556080850151927fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909116907501000000000000000000000000000000000000000000908490811115610d3657610d36611c1a565b0217905550905050610d4733611743565b610d568460800151600161178b565b836020015173ffffffffffffffffffffffffffffffffffffffff16845f015173ffffffffffffffffffffffffffffffffffffffff167f2610f3b22dbb1fc9e125919ede742dad90b4f3dd49ce0c10118c6ef34410e3c98660400151876060015188608001518960a001518a60c00151604051610dd6959493929190611fa1565b60405180910390a3505050508015610e17576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610e298161167d565b5f610e3685870187612093565b90505f8160200151806020019051810190610e519190612110565b90508060085f828254610e649190612127565b90915550508151600654610e919173ffffffffffffffffffffffffffffffffffffffff90911690836117cc565b81516006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529183901b90911660348201526048810183905273ffffffffffffffffffffffffffffffffffffffff909116907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610f4f91611c08565b60405180910390a260065490945073ffffffffffffffffffffffffffffffffffffffff16925050509250929050565b610f86611657565b610886828261164c565b60605f610f9f83850185611e9b565b6060818101516040805160808101825260018152845173ffffffffffffffffffffffffffffffffffffffff16602080830191909152308284015282518082018452849052825180820185905283518082038301815290840184529482019490945290519394509092611011920161213a565b6040516020818303038152906040529250505092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b61106b611657565b6110745f61181f565b565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a0810190915260038054829060ff1660018111156110c5576110c5611c1a565b60018111156110d6576110d6611c1a565b81526001828101546020830152600283015460ff808216604085015273ffffffffffffffffffffffffffffffffffffffff61010083041660608501526080909301927501000000000000000000000000000000000000000000909104169081111561114357611143611c1a565b600181111561115457611154611c1a565b905250919050565b5f611165611657565b5f611172838501856121b8565b90505f816020015180602001905181019061118d9190612110565b90505f80545f0361119f5750806111c2565b670de0b6b3a7640000825f546111b59190612235565b6111bf919061224c565b90505b600b54158015906111d45750600b5481115b156111de5750600b545b6111e781611869565b61121d576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008548160095461122e9190611d94565b1115611266576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060095f8282546112779190611d94565b92505081905550600160075f8282546112909190611d94565b90915550506006546112b99073ffffffffffffffffffffffffffffffffffffffff1688836117cc565b6006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529189901b90911660348201526048810182905273ffffffffffffffffffffffffffffffffffffffff8816907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261137491611c08565b60405180910390a25060019695505050505050565b60026113948161167d565b8382146113cd576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a855761141f8686838181106113ec576113ec611da7565b90506020020160208101906114019190611a72565b85858481811061141357611413611da7565b90506020020135611671565b6001016113cf565b5f8080611436848601866121b8565b90505f81602001518060200190518101906114519190612110565b90505f545f0361146357809250611486565b670de0b6b3a7640000815f546114799190612235565b611483919061224c565b92505b61148f83611869565b979650505050505050565b60026114a58161167d565b8382146114de576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a85576115308686838181106114fd576114fd611da7565b90506020020160208101906115129190611a72565b85858481811061152457611524611da7565b9050602002013561164c565b6001016114e0565b611540611657565b63389a75e1600c52805f526020600c20805442111561156657636f5e88185f526004601cfd5b5f90556108718161181f565b61157a611657565b8060601b61158f57637448fbae5f526004601cfd5b6108718161181f565b5f8173ffffffffffffffffffffffffffffffffffffffff166115bd638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806108615750638b78c6d8600c9081525f83905260209020546003161515610861565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f56586338000000000000000000000000000000000000000000000000000000001480610861575061086182611883565b61088682825f6118d8565b638b78c6d819543314611074576382b429005f526004601cfd5b610886828260016118d8565b638b78c6d81954331461087157638b78c6d8600c52335f52806020600c205416610871576382b429005f526004601cfd5b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af18060015f51141661170257803d873b15171061170257637939f4245f526004601cfd5b505f60605260405250505050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661181557803d853b151710611815576390b8ec185f526004601cfd5b505f603452505050565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f6008548260095461187b9190611d94565b111592915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fa921670500000000000000000000000000000000000000000000000000000000148061086157506108618261192f565b638b78c6d8600c52825f526020600c208054838117836118f9575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d00000000000000000000000000000000000000000000000000000000148061086157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610861565b5f602082840312156119d5575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611a04575f80fd5b9392505050565b5f60208284031215611a1b575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a45575f80fd5b919050565b5f8060408385031215611a5b575f80fd5b611a6483611a22565b946020939093013593505050565b5f60208284031215611a82575f80fd5b611a0482611a22565b5f8083601f840112611a9b575f80fd5b50813567ffffffffffffffff811115611ab2575f80fd5b6020830191508360208260051b8501011115611acc575f80fd5b9250929050565b5f805f8060408587031215611ae6575f80fd5b843567ffffffffffffffff811115611afc575f80fd5b611b0887828801611a8b565b909550935050602085013567ffffffffffffffff811115611b27575f80fd5b611b3387828801611a8b565b95989497509550505050565b5f8083601f840112611b4f575f80fd5b50813567ffffffffffffffff811115611b66575f80fd5b602083019150836020828501011115611acc575f80fd5b5f8060208385031215611b8e575f80fd5b823567ffffffffffffffff811115611ba4575f80fd5b611bb085828601611b3f565b90969095509350505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f611a046020830184611bbc565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061087157610871611c1a565b60a08101611c6487611c47565b86825285602083015260ff8516604083015273ffffffffffffffffffffffffffffffffffffffff84166060830152611c9b83611c47565b8260808301529695505050505050565b8051611cb681611c47565b808352506020810151602083015260ff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff60608201511660608301526080810151611cff81611c47565b806080840152505050565b60a081016108618284611cab565b5f805f60408486031215611d2a575f80fd5b611d3384611a22565b9250602084013567ffffffffffffffff811115611d4e575f80fd5b611d5a86828701611b3f565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082018082111561086157610861611d67565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611de4575f80fd5b81358015158114611a04575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160e0810167ffffffffffffffff81118282101715611e4357611e43611df3565b60405290565b60405160a0810167ffffffffffffffff81118282101715611e4357611e43611df3565b6040805190810167ffffffffffffffff81118282101715611e4357611e43611df3565b60028110610871575f80fd5b5f81830361016081128015611eae575f80fd5b50611eb7611e20565b611ec084611a22565b8152611ece60208501611a22565b60208201526040848101359082015260608085013590820152611ef360808501611a22565b608082015260a084810135818301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4083011215611f2f575f80fd5b611f37611e49565b915060c0840135611f4781611e8f565b825260e0840135602083015261010084013560ff81168114611f67575f80fd5b6040830152611f796101208501611a22565b6060830152610140840135611f8d81611e8f565b608083015260c08101919091529392505050565b8581526020810185905273ffffffffffffffffffffffffffffffffffffffff84166040820152606081018390526101208101611fe06080830184611cab565b9695505050505050565b5f82601f830112611ff9575f80fd5b813567ffffffffffffffff81111561201357612013611df3565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff8111828210171561206057612060611df3565b604052818152838201602001851015612077575f80fd5b816020850160208301375f918101602001919091529392505050565b5f602082840312156120a3575f80fd5b813567ffffffffffffffff8111156120b9575f80fd5b8201604081850312156120ca575f80fd5b6120d2611e6c565b6120db82611a22565b8152602082013567ffffffffffffffff8111156120f6575f80fd5b61210286828501611fea565b602083015250949350505050565b5f60208284031215612120575f80fd5b5051919050565b8181038181111561086157610861611d67565b602081525f82516003811061215157612151611c1a565b8060208401525073ffffffffffffffffffffffffffffffffffffffff602084015116604083015273ffffffffffffffffffffffffffffffffffffffff604084015116606083015260608301516080808401526121b060a0840182611bbc565b949350505050565b5f602082840312156121c8575f80fd5b813567ffffffffffffffff8111156121de575f80fd5b8201604081850312156121ef575f80fd5b6121f7611e6c565b813567ffffffffffffffff81111561220d575f80fd5b61221986828501611fea565b825250602082013567ffffffffffffffff8111156120f6575f80fd5b808202811582820484141761086157610861611d67565b5f8261227f577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea26469706673582212204e4cf647127c9375d9d4d84240a56dd4ae0f1f1727bcc814e7c0f19d99a9cc9664736f6c634300081a0033", u = class u extends Z {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this.abi =
|
|
12
|
+
super(...arguments), this.abi = C;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* The owner of the incentive
|
|
@@ -20,7 +20,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
20
20
|
* @returns {Promise<Address>}
|
|
21
21
|
*/
|
|
22
22
|
async owner(f) {
|
|
23
|
-
return await
|
|
23
|
+
return await _(this._config, {
|
|
24
24
|
address: this.assertValidAddress(),
|
|
25
25
|
args: [],
|
|
26
26
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
@@ -36,7 +36,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
36
36
|
* @returns {Promise<bigint>} - The current reward
|
|
37
37
|
*/
|
|
38
38
|
async currentReward(f) {
|
|
39
|
-
return await
|
|
39
|
+
return await E(
|
|
40
40
|
this._config,
|
|
41
41
|
{
|
|
42
42
|
address: this.assertValidAddress(),
|
|
@@ -55,7 +55,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
55
55
|
* @returns {Promise<bigint>} The maximum reward amount per claim
|
|
56
56
|
*/
|
|
57
57
|
async getMaxReward(f) {
|
|
58
|
-
return await
|
|
58
|
+
return await P(
|
|
59
59
|
this._config,
|
|
60
60
|
{
|
|
61
61
|
...f,
|
|
@@ -71,76 +71,100 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
71
71
|
* @returns {Promise<bigint>}
|
|
72
72
|
* @throws {InvalidCriteriaTypeError | NoMatchingLogsError | DecodedArgsError}
|
|
73
73
|
*/
|
|
74
|
-
async getIncentiveScalar({ chainId: f, hash:
|
|
75
|
-
var
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
const
|
|
74
|
+
async getIncentiveScalar({ chainId: f, hash: e, knownSignatures: b, logs: d }, s) {
|
|
75
|
+
var w;
|
|
76
|
+
const a = await this.getIncentiveCriteria(s);
|
|
77
|
+
if (a.criteriaType === x.EVENT) {
|
|
78
|
+
const m = b[a.signature];
|
|
79
|
+
if (a.fieldIndex === e0.GAS_REBATE_INCENTIVE) {
|
|
80
|
+
const t = await A(this._config, {
|
|
81
|
+
chainId: f,
|
|
82
|
+
hash: e
|
|
83
|
+
});
|
|
84
|
+
return t.gasUsed * t.effectiveGasPrice + // Normal gas cost
|
|
85
|
+
(t.blobGasUsed ?? 0n) * (t.blobGasPrice ?? 0n);
|
|
86
|
+
}
|
|
87
|
+
if (d && d.length > 0)
|
|
88
|
+
try {
|
|
89
|
+
const t = d.filter((c) => c.topics && c.topics[0] === a.signature).map((c) => X(m, c));
|
|
90
|
+
if (t.length > 0)
|
|
91
|
+
for (const c of t) {
|
|
92
|
+
if (p(a.fieldIndex))
|
|
93
|
+
return h(
|
|
94
|
+
c.args,
|
|
95
|
+
a.fieldIndex
|
|
96
|
+
);
|
|
97
|
+
const r = c.args ? c.args[a.fieldIndex] : void 0;
|
|
98
|
+
if (r !== void 0)
|
|
99
|
+
return BigInt(r);
|
|
100
|
+
}
|
|
101
|
+
} catch (t) {
|
|
102
|
+
throw new n(
|
|
103
|
+
`An error occurred while extracting scalar from logs: ${t.message}`
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
const i = (await A(this._config, {
|
|
79
107
|
chainId: f,
|
|
80
|
-
hash:
|
|
81
|
-
});
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const r = s.logs;
|
|
86
|
-
if (r.length === 0)
|
|
87
|
-
throw new v(
|
|
88
|
-
`No logs found for event signature ${e.signature}`
|
|
108
|
+
hash: e
|
|
109
|
+
})).logs;
|
|
110
|
+
if (i.length === 0)
|
|
111
|
+
throw new T(
|
|
112
|
+
`No logs found for event signature ${a.signature}`
|
|
89
113
|
);
|
|
90
114
|
try {
|
|
91
|
-
const
|
|
92
|
-
abi: [
|
|
93
|
-
logs:
|
|
115
|
+
const t = b[a.signature], c = K({
|
|
116
|
+
abi: [t],
|
|
117
|
+
logs: i
|
|
94
118
|
});
|
|
95
119
|
if (c == null || c.length === 0)
|
|
96
|
-
throw new
|
|
97
|
-
`No logs found for event signature ${
|
|
120
|
+
throw new T(
|
|
121
|
+
`No logs found for event signature ${a.signature}`
|
|
98
122
|
);
|
|
99
|
-
if (
|
|
100
|
-
return
|
|
101
|
-
(
|
|
102
|
-
|
|
123
|
+
if (p(a.fieldIndex))
|
|
124
|
+
return h(
|
|
125
|
+
(w = c[0]) == null ? void 0 : w.args,
|
|
126
|
+
a.fieldIndex
|
|
103
127
|
);
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
-
throw new
|
|
107
|
-
`Decoded argument at index ${
|
|
128
|
+
const r = c[0] && c[0].args ? c[0].args[a.fieldIndex] : void 0;
|
|
129
|
+
if (r === void 0)
|
|
130
|
+
throw new n(
|
|
131
|
+
`Decoded argument at index ${a.fieldIndex} is undefined`
|
|
108
132
|
);
|
|
109
|
-
return BigInt(
|
|
110
|
-
} catch (
|
|
111
|
-
throw new
|
|
112
|
-
`Failed to decode event log for signature ${
|
|
133
|
+
return BigInt(r);
|
|
134
|
+
} catch (t) {
|
|
135
|
+
throw new n(
|
|
136
|
+
`Failed to decode event log for signature ${a.signature}: ${t.message}`
|
|
113
137
|
);
|
|
114
138
|
}
|
|
115
|
-
} else if (
|
|
116
|
-
const
|
|
139
|
+
} else if (a.criteriaType === x.FUNC) {
|
|
140
|
+
const m = await J(this._config, {
|
|
117
141
|
chainId: f,
|
|
118
|
-
hash:
|
|
142
|
+
hash: e
|
|
119
143
|
});
|
|
120
144
|
try {
|
|
121
|
-
const
|
|
122
|
-
abi: [
|
|
123
|
-
data:
|
|
145
|
+
const l = b[a.signature], i = j({
|
|
146
|
+
abi: [l],
|
|
147
|
+
data: m.input
|
|
124
148
|
});
|
|
125
|
-
if (
|
|
126
|
-
return
|
|
149
|
+
if (p(a.fieldIndex))
|
|
150
|
+
return h(
|
|
127
151
|
i.args,
|
|
128
|
-
|
|
152
|
+
a.fieldIndex
|
|
129
153
|
);
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
throw new
|
|
133
|
-
`Decoded argument at index ${
|
|
154
|
+
const t = i.args[a.fieldIndex];
|
|
155
|
+
if (t == null)
|
|
156
|
+
throw new n(
|
|
157
|
+
`Decoded argument at index ${a.fieldIndex} is undefined`
|
|
134
158
|
);
|
|
135
|
-
return BigInt(
|
|
136
|
-
} catch (
|
|
137
|
-
throw new
|
|
138
|
-
`Failed to decode function data for signature ${
|
|
159
|
+
return BigInt(t);
|
|
160
|
+
} catch (l) {
|
|
161
|
+
throw new n(
|
|
162
|
+
`Failed to decode function data for signature ${a.signature}: ${l.message}`
|
|
139
163
|
);
|
|
140
164
|
}
|
|
141
165
|
} else
|
|
142
|
-
throw new
|
|
143
|
-
`Invalid criteria type ${
|
|
166
|
+
throw new Y(
|
|
167
|
+
`Invalid criteria type ${a.criteriaType}`
|
|
144
168
|
);
|
|
145
169
|
}
|
|
146
170
|
/**
|
|
@@ -152,7 +176,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
152
176
|
* @returns {Promise<bigint>}
|
|
153
177
|
*/
|
|
154
178
|
async claims(f) {
|
|
155
|
-
return await
|
|
179
|
+
return await $(
|
|
156
180
|
this._config,
|
|
157
181
|
{
|
|
158
182
|
address: this.assertValidAddress(),
|
|
@@ -171,7 +195,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
171
195
|
* @returns {Promise<bigint>}
|
|
172
196
|
*/
|
|
173
197
|
async totalClaimed(f) {
|
|
174
|
-
return await
|
|
198
|
+
return await N(
|
|
175
199
|
this._config,
|
|
176
200
|
{
|
|
177
201
|
address: this.assertValidAddress(),
|
|
@@ -190,14 +214,14 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
190
214
|
* @param {?ReadParams} [params]
|
|
191
215
|
* @returns {Promise<boolean>}
|
|
192
216
|
*/
|
|
193
|
-
async claimed(f,
|
|
194
|
-
return await
|
|
217
|
+
async claimed(f, e) {
|
|
218
|
+
return await O(
|
|
195
219
|
this._config,
|
|
196
220
|
{
|
|
197
221
|
address: this.assertValidAddress(),
|
|
198
222
|
args: [f],
|
|
199
223
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
200
|
-
...
|
|
224
|
+
...e
|
|
201
225
|
}
|
|
202
226
|
);
|
|
203
227
|
}
|
|
@@ -210,7 +234,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
210
234
|
* @returns {Promise<Address>}
|
|
211
235
|
*/
|
|
212
236
|
async asset(f) {
|
|
213
|
-
return await
|
|
237
|
+
return await B(this._config, {
|
|
214
238
|
address: this.assertValidAddress(),
|
|
215
239
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
216
240
|
...f
|
|
@@ -225,7 +249,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
225
249
|
* @returns {Promise<Address>}
|
|
226
250
|
*/
|
|
227
251
|
async peg(f) {
|
|
228
|
-
return await
|
|
252
|
+
return await F(this._config, {
|
|
229
253
|
address: this.assertValidAddress(),
|
|
230
254
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
231
255
|
...f
|
|
@@ -240,7 +264,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
240
264
|
* @returns {Promise<bigint>}
|
|
241
265
|
*/
|
|
242
266
|
async reward(f) {
|
|
243
|
-
return await
|
|
267
|
+
return await L(
|
|
244
268
|
this._config,
|
|
245
269
|
{
|
|
246
270
|
address: this.assertValidAddress(),
|
|
@@ -258,7 +282,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
258
282
|
* @returns {Promise<bigint>}
|
|
259
283
|
*/
|
|
260
284
|
async limit(f) {
|
|
261
|
-
return await
|
|
285
|
+
return await G(this._config, {
|
|
262
286
|
address: this.assertValidAddress(),
|
|
263
287
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
264
288
|
...f
|
|
@@ -273,8 +297,8 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
273
297
|
* @param {?WriteParams} [params]
|
|
274
298
|
* @returns {Promise<boolean>} - Returns true if successfully claimed
|
|
275
299
|
*/
|
|
276
|
-
async claim(f,
|
|
277
|
-
return await this.awaitResult(this.claimRaw(f,
|
|
300
|
+
async claim(f, e) {
|
|
301
|
+
return await this.awaitResult(this.claimRaw(f, e));
|
|
278
302
|
}
|
|
279
303
|
/**
|
|
280
304
|
* Claim the incentive
|
|
@@ -285,18 +309,18 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
285
309
|
* @param {?WriteParams} [params]
|
|
286
310
|
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - Returns true if successfully claimed
|
|
287
311
|
*/
|
|
288
|
-
async claimRaw(f,
|
|
289
|
-
const { request: b, result:
|
|
312
|
+
async claimRaw(f, e) {
|
|
313
|
+
const { request: b, result: d } = await M(this._config, {
|
|
290
314
|
address: this.assertValidAddress(),
|
|
291
|
-
args: [
|
|
315
|
+
args: [I(f)],
|
|
292
316
|
...this.optionallyAttachAccount(),
|
|
293
317
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
294
|
-
...
|
|
318
|
+
...e
|
|
295
319
|
});
|
|
296
|
-
return { hash: await
|
|
320
|
+
return { hash: await U(
|
|
297
321
|
this._config,
|
|
298
322
|
b
|
|
299
|
-
), result:
|
|
323
|
+
), result: d };
|
|
300
324
|
}
|
|
301
325
|
/**
|
|
302
326
|
* Clawback assets from the incentive
|
|
@@ -307,8 +331,8 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
307
331
|
* @param {?WriteParams} [params]
|
|
308
332
|
* @returns {Promise<boolean>} - True if the assets were successfully clawbacked
|
|
309
333
|
*/
|
|
310
|
-
async clawback(f,
|
|
311
|
-
return await this.awaitResult(this.clawbackRaw(f,
|
|
334
|
+
async clawback(f, e) {
|
|
335
|
+
return await this.awaitResult(this.clawbackRaw(f, e));
|
|
312
336
|
}
|
|
313
337
|
/**
|
|
314
338
|
* Clawback assets from the incentive
|
|
@@ -319,21 +343,21 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
319
343
|
* @param {?WriteParams} [params]
|
|
320
344
|
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the assets were successfully clawbacked
|
|
321
345
|
*/
|
|
322
|
-
async clawbackRaw(f,
|
|
323
|
-
const { request: b, result:
|
|
346
|
+
async clawbackRaw(f, e) {
|
|
347
|
+
const { request: b, result: d } = await H(
|
|
324
348
|
this._config,
|
|
325
349
|
{
|
|
326
350
|
address: this.assertValidAddress(),
|
|
327
|
-
args: [
|
|
351
|
+
args: [I(f)],
|
|
328
352
|
...this.optionallyAttachAccount(),
|
|
329
353
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
330
|
-
...
|
|
354
|
+
...e
|
|
331
355
|
}
|
|
332
356
|
);
|
|
333
357
|
return { hash: await S(
|
|
334
358
|
this._config,
|
|
335
359
|
b
|
|
336
|
-
), result:
|
|
360
|
+
), result: d };
|
|
337
361
|
}
|
|
338
362
|
/**
|
|
339
363
|
* Check if an incentive is claimable.
|
|
@@ -344,14 +368,14 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
344
368
|
* @param {?ReadParams} [params]
|
|
345
369
|
* @returns {Promise<boolean>} = True if the incentive is claimable based on the data payload
|
|
346
370
|
*/
|
|
347
|
-
async isClaimable(f,
|
|
348
|
-
return await
|
|
371
|
+
async isClaimable(f, e) {
|
|
372
|
+
return await k(
|
|
349
373
|
this._config,
|
|
350
374
|
{
|
|
351
375
|
address: this.assertValidAddress(),
|
|
352
376
|
args: [f.target, f.data],
|
|
353
377
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
354
|
-
...
|
|
378
|
+
...e
|
|
355
379
|
}
|
|
356
380
|
);
|
|
357
381
|
}
|
|
@@ -364,7 +388,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
364
388
|
* @returns {Promise<Address>} = The address of the token the reward is pegged to
|
|
365
389
|
*/
|
|
366
390
|
async getPeg(f) {
|
|
367
|
-
return await
|
|
391
|
+
return await q(
|
|
368
392
|
this._config,
|
|
369
393
|
{
|
|
370
394
|
address: this.assertValidAddress(),
|
|
@@ -405,11 +429,11 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
405
429
|
* @returns {Promise<bigint>} - True if total claims is less than limit
|
|
406
430
|
*/
|
|
407
431
|
async getRemainingClaimPotential(f) {
|
|
408
|
-
const [
|
|
432
|
+
const [e, b] = await Promise.all([
|
|
409
433
|
this.totalClaimed(f),
|
|
410
434
|
this.limit(f)
|
|
411
435
|
]);
|
|
412
|
-
return b -
|
|
436
|
+
return b - e;
|
|
413
437
|
}
|
|
414
438
|
/**
|
|
415
439
|
*Functions from the ERC20VariableIncentive contract
|
|
@@ -423,15 +447,15 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
423
447
|
*/
|
|
424
448
|
async getIncentiveCriteria(f) {
|
|
425
449
|
try {
|
|
426
|
-
return await
|
|
450
|
+
return await z(
|
|
427
451
|
this._config,
|
|
428
452
|
{
|
|
429
453
|
...f,
|
|
430
454
|
address: this.assertValidAddress()
|
|
431
455
|
}
|
|
432
456
|
);
|
|
433
|
-
} catch (
|
|
434
|
-
throw new
|
|
457
|
+
} catch (e) {
|
|
458
|
+
throw new f0(e);
|
|
435
459
|
}
|
|
436
460
|
}
|
|
437
461
|
/**
|
|
@@ -444,19 +468,19 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
444
468
|
* @returns {Hex} The ABI-encoded payload with the updated `limit`.
|
|
445
469
|
*/
|
|
446
470
|
async getTopupPayload(f) {
|
|
447
|
-
var
|
|
448
|
-
return
|
|
449
|
-
asset: await this.asset() ??
|
|
450
|
-
peg: ((
|
|
471
|
+
var e, b, d, s, a;
|
|
472
|
+
return D({
|
|
473
|
+
asset: await this.asset() ?? o,
|
|
474
|
+
peg: ((e = this.payload) == null ? void 0 : e.peg) ?? o,
|
|
451
475
|
reward: ((b = this.payload) == null ? void 0 : b.reward) ?? 0n,
|
|
452
476
|
limit: f,
|
|
453
|
-
maxReward: ((
|
|
454
|
-
manager: ((
|
|
455
|
-
criteria: ((
|
|
477
|
+
maxReward: ((d = this.payload) == null ? void 0 : d.maxReward) ?? 0n,
|
|
478
|
+
manager: ((s = this.payload) == null ? void 0 : s.manager) ?? o,
|
|
479
|
+
criteria: ((a = this.payload) == null ? void 0 : a.criteria) ?? {
|
|
456
480
|
criteriaType: 0,
|
|
457
|
-
signature:
|
|
481
|
+
signature: Q,
|
|
458
482
|
fieldIndex: 0,
|
|
459
|
-
targetContract:
|
|
483
|
+
targetContract: o,
|
|
460
484
|
valueType: 0
|
|
461
485
|
}
|
|
462
486
|
});
|
|
@@ -469,16 +493,16 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
469
493
|
* @param {?DeployableOptions} [_options]
|
|
470
494
|
* @returns {GenericDeployableParams}
|
|
471
495
|
*/
|
|
472
|
-
buildParameters(f,
|
|
473
|
-
const [b,
|
|
496
|
+
buildParameters(f, e) {
|
|
497
|
+
const [b, d] = this.validateDeploymentConfig(
|
|
474
498
|
f,
|
|
475
|
-
|
|
499
|
+
e
|
|
476
500
|
);
|
|
477
501
|
return {
|
|
478
|
-
abi:
|
|
479
|
-
bytecode:
|
|
480
|
-
args: [
|
|
481
|
-
...this.optionallyAttachAccount(
|
|
502
|
+
abi: C,
|
|
503
|
+
bytecode: b0,
|
|
504
|
+
args: [D(b)],
|
|
505
|
+
...this.optionallyAttachAccount(d.account)
|
|
482
506
|
};
|
|
483
507
|
}
|
|
484
508
|
/**
|
|
@@ -489,7 +513,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
489
513
|
* @returns {Hex} - Returns an encoded uint256
|
|
490
514
|
*/
|
|
491
515
|
buildClawbackData(f) {
|
|
492
|
-
return
|
|
516
|
+
return y([{ type: "uint256" }], [f]);
|
|
493
517
|
}
|
|
494
518
|
/**
|
|
495
519
|
* Builds the claim data for the ERC20PeggedVariableCriteriaIncentivePayload.
|
|
@@ -500,7 +524,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
500
524
|
* @description This function returns the encoded claim data for the ERC20PeggedVariableCriteriaIncentiveV2Payload.
|
|
501
525
|
*/
|
|
502
526
|
buildClaimData(f) {
|
|
503
|
-
return
|
|
527
|
+
return y(
|
|
504
528
|
[{ type: "uint256", name: "signedAmount" }],
|
|
505
529
|
[f]
|
|
506
530
|
);
|
|
@@ -514,7 +538,7 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
514
538
|
* @returns {Promise<bigint>} Returns the reward amount from a claim data payload
|
|
515
539
|
*/
|
|
516
540
|
async decodeClaimData(f) {
|
|
517
|
-
const
|
|
541
|
+
const e = g(
|
|
518
542
|
[
|
|
519
543
|
{
|
|
520
544
|
type: "tuple",
|
|
@@ -526,16 +550,16 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
526
550
|
}
|
|
527
551
|
],
|
|
528
552
|
f
|
|
529
|
-
), b =
|
|
553
|
+
), b = g(
|
|
530
554
|
[{ type: "uint256" }],
|
|
531
|
-
|
|
555
|
+
e[0].incentiveData
|
|
532
556
|
)[0];
|
|
533
|
-
let
|
|
534
|
-
const [
|
|
557
|
+
let d = b;
|
|
558
|
+
const [s, a] = await Promise.all([
|
|
535
559
|
this.reward(),
|
|
536
560
|
this.getMaxReward()
|
|
537
561
|
]);
|
|
538
|
-
return
|
|
562
|
+
return s === 0n || (d = s * b / v("1"), a !== 0n && d > a && (d = a)), d;
|
|
539
563
|
}
|
|
540
564
|
/**
|
|
541
565
|
* Decodes claim data for the ERC20PeggedVariableCriteriaIncentiveV2, returning the claim amount.
|
|
@@ -548,8 +572,8 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
548
572
|
* @param {bigint} [maxReward]
|
|
549
573
|
* @returns {BigInt} Returns the reward amount from a claim data payload
|
|
550
574
|
*/
|
|
551
|
-
decodeClaimDataWithRewardDetails(f,
|
|
552
|
-
const
|
|
575
|
+
decodeClaimDataWithRewardDetails(f, e, b) {
|
|
576
|
+
const d = g(
|
|
553
577
|
[
|
|
554
578
|
{
|
|
555
579
|
type: "tuple",
|
|
@@ -561,29 +585,29 @@ const f0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
561
585
|
}
|
|
562
586
|
],
|
|
563
587
|
f
|
|
564
|
-
),
|
|
588
|
+
), s = g(
|
|
565
589
|
[{ type: "uint256" }],
|
|
566
|
-
|
|
590
|
+
d[0].incentiveData
|
|
567
591
|
)[0];
|
|
568
|
-
let
|
|
569
|
-
return
|
|
592
|
+
let a = s;
|
|
593
|
+
return e === 0n || (a = e * s / v("1"), b !== 0n && a > b && (a = b)), a;
|
|
570
594
|
}
|
|
571
595
|
};
|
|
572
596
|
u.bases = {
|
|
573
597
|
31337: void 0,
|
|
574
|
-
...
|
|
575
|
-
}, u.registryType =
|
|
576
|
-
let
|
|
577
|
-
function
|
|
578
|
-
asset:
|
|
598
|
+
...W
|
|
599
|
+
}, u.registryType = a0.INCENTIVE;
|
|
600
|
+
let R = u;
|
|
601
|
+
function D({
|
|
602
|
+
asset: V,
|
|
579
603
|
peg: f,
|
|
580
|
-
reward:
|
|
604
|
+
reward: e,
|
|
581
605
|
limit: b,
|
|
582
|
-
maxReward:
|
|
583
|
-
manager:
|
|
584
|
-
criteria:
|
|
606
|
+
maxReward: d = 0n,
|
|
607
|
+
manager: s = o,
|
|
608
|
+
criteria: a
|
|
585
609
|
}) {
|
|
586
|
-
return
|
|
610
|
+
return y(
|
|
587
611
|
[
|
|
588
612
|
{
|
|
589
613
|
type: "tuple",
|
|
@@ -611,26 +635,26 @@ function I({
|
|
|
611
635
|
],
|
|
612
636
|
[
|
|
613
637
|
{
|
|
614
|
-
asset:
|
|
638
|
+
asset: V,
|
|
615
639
|
peg: f,
|
|
616
|
-
reward:
|
|
640
|
+
reward: e,
|
|
617
641
|
limit: b,
|
|
618
|
-
manager:
|
|
619
|
-
maxReward:
|
|
642
|
+
manager: s,
|
|
643
|
+
maxReward: d,
|
|
620
644
|
criteria: {
|
|
621
|
-
criteriaType:
|
|
622
|
-
signature:
|
|
623
|
-
fieldIndex:
|
|
624
|
-
targetContract:
|
|
625
|
-
valueType:
|
|
645
|
+
criteriaType: a.criteriaType,
|
|
646
|
+
signature: a.signature,
|
|
647
|
+
fieldIndex: a.fieldIndex,
|
|
648
|
+
targetContract: a.targetContract,
|
|
649
|
+
valueType: a.valueType
|
|
626
650
|
}
|
|
627
651
|
}
|
|
628
652
|
]
|
|
629
653
|
);
|
|
630
654
|
}
|
|
631
655
|
export {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
656
|
+
R as ERC20PeggedVariableCriteriaIncentiveV2,
|
|
657
|
+
C as erc20PeggedVariableCriteriaIncentiveV2Abi,
|
|
658
|
+
D as prepareERC20PeggedVariableCriteriaIncentiveV2Payload
|
|
635
659
|
};
|
|
636
660
|
//# sourceMappingURL=ERC20PeggedVariableCriteriaIncentiveV2.js.map
|