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