@boostxyz/sdk 0.0.0-alpha.9 → 1.1.0-alpha.23
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/Action.cjs +1 -1
- package/dist/Actions/Action.cjs.map +1 -1
- package/dist/Actions/Action.js +2 -2
- package/dist/Actions/ContractAction.d.ts +11 -11
- package/dist/Actions/ContractAction.d.ts.map +1 -1
- package/dist/Actions/ERC721MintAction.d.ts +14 -14
- package/dist/Actions/ERC721MintAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +174 -41
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +557 -129
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.cjs.map +1 -1
- package/dist/AllowLists/AllowList.d.ts +6 -4
- package/dist/AllowLists/AllowList.d.ts.map +1 -1
- package/dist/AllowLists/AllowList.js +45 -23
- package/dist/AllowLists/AllowList.js.map +1 -1
- package/dist/AllowLists/OpenAllowList.d.ts +423 -0
- package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.d.ts +92 -37
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +60 -75
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs.map +1 -1
- package/dist/AllowLists/SimpleDenyList.d.ts +203 -11
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +11 -112
- package/dist/AllowLists/SimpleDenyList.js.map +1 -1
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/Boost.cjs +1 -1
- package/dist/Boost.cjs.map +1 -1
- package/dist/Boost.d.ts +20 -21
- package/dist/Boost.d.ts.map +1 -1
- package/dist/Boost.js +43 -57
- package/dist/Boost.js.map +1 -1
- package/dist/BoostCore-Btl5BdAs.cjs +3 -0
- package/dist/BoostCore-Btl5BdAs.cjs.map +1 -0
- package/dist/BoostCore-CD56zbYX.js +2641 -0
- package/dist/BoostCore-CD56zbYX.js.map +1 -0
- package/dist/BoostCore.cjs +1 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +749 -78
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +29 -1150
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.cjs.map +1 -1
- package/dist/BoostRegistry.d.ts +80 -25
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +164 -82
- package/dist/BoostRegistry.js.map +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.cjs.map +1 -1
- package/dist/Budgets/Budget.d.ts.map +1 -1
- package/dist/Budgets/Budget.js +2 -2
- package/dist/Budgets/Budget.js.map +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.d.ts +103 -221
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +81 -298
- package/dist/Budgets/ManagedBudget.js.map +1 -1
- package/dist/Budgets/VestingBudget.d.ts +223 -89
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/Contract.cjs +1 -1
- package/dist/Deployable/Contract.cjs.map +1 -1
- package/dist/Deployable/Contract.d.ts +4 -5
- package/dist/Deployable/Contract.d.ts.map +1 -1
- package/dist/Deployable/Contract.js +5 -7
- package/dist/Deployable/Contract.js.map +1 -1
- package/dist/Deployable/Deployable.cjs.map +1 -1
- package/dist/Deployable/Deployable.d.ts +1 -1
- package/dist/Deployable/Deployable.d.ts.map +1 -1
- package/dist/Deployable/Deployable.js +3 -5
- package/dist/Deployable/Deployable.js.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -1
- package/dist/Deployable/DeployableTarget.d.ts +13 -13
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +28 -25
- package/dist/Deployable/DeployableTarget.js.map +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +2 -0
- package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts +248 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js +320 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -0
- package/dist/Incentive-CcnOIc8L.cjs +2 -0
- package/dist/Incentive-CcnOIc8L.cjs.map +1 -0
- package/dist/Incentive-rM5nKznp.js +313 -0
- package/dist/Incentive-rM5nKznp.js.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
- package/dist/Incentives/AllowListIncentive.d.ts +38 -16
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +43 -29
- package/dist/Incentives/AllowListIncentive.js.map +1 -1
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
- package/dist/Incentives/CGDAIncentive.d.ts +234 -21
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +46 -32
- package/dist/Incentives/CGDAIncentive.js.map +1 -1
- package/dist/Incentives/ERC1155Incentive.d.ts +224 -37
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
- package/dist/Incentives/ERC20Incentive.d.ts +234 -30
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +62 -46
- package/dist/Incentives/ERC20Incentive.js.map +1 -1
- package/dist/{Budgets/SimpleBudget.d.ts → Incentives/ERC20VariableCriteriaIncentive.d.ts} +333 -438
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +231 -29
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.cjs.map +1 -1
- package/dist/Incentives/Incentive.d.ts +4 -4
- package/dist/Incentives/Incentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.js +16 -296
- package/dist/Incentives/Incentive.js.map +1 -1
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.cjs.map +1 -1
- package/dist/Incentives/PointsIncentive.d.ts +40 -18
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +38 -24
- package/dist/Incentives/PointsIncentive.js.map +1 -1
- package/dist/SimpleDenyList-BDXpY74P.js +133 -0
- package/dist/SimpleDenyList-BDXpY74P.js.map +1 -0
- package/dist/SimpleDenyList-DNj5qDWM.cjs +2 -0
- package/dist/SimpleDenyList-DNj5qDWM.cjs.map +1 -0
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.d.ts +16 -16
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +32 -28
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.cjs.map +1 -1
- package/dist/Validators/Validator.d.ts +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/Validators/Validator.js.map +1 -1
- package/dist/claiming.cjs.map +1 -1
- package/dist/claiming.d.ts +1 -1
- package/dist/claiming.js.map +1 -1
- package/dist/componentInterfaces-BBCFkrZv.js +14 -0
- package/dist/componentInterfaces-BBCFkrZv.js.map +1 -0
- package/dist/componentInterfaces-DRI_dQ-P.cjs +2 -0
- package/dist/componentInterfaces-DRI_dQ-P.cjs.map +1 -0
- package/dist/deployments-DF_6-7hH.cjs +2 -0
- package/dist/deployments-DF_6-7hH.cjs.map +1 -0
- package/dist/deployments-fJsWblwS.js +56 -0
- package/dist/deployments-fJsWblwS.js.map +1 -0
- package/dist/deployments.json +58 -0
- package/dist/errors.cjs +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.ts +256 -20
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +183 -26
- package/dist/errors.js.map +1 -1
- package/dist/{generated-57_Kffpz.js → generated-CsNyWPKA.js} +3843 -2084
- package/dist/generated-CsNyWPKA.js.map +1 -0
- package/dist/generated-DHerxf1y.cjs +3 -0
- package/dist/generated-DHerxf1y.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +142 -108
- package/dist/index.js.map +1 -1
- package/dist/transfers.cjs.map +1 -1
- package/dist/transfers.d.ts +1 -1
- package/dist/transfers.js.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.ts +26 -12
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +38 -23
- package/dist/utils.js.map +1 -1
- package/package.json +20 -10
- package/src/Actions/Action.test.ts +14 -13
- package/src/Actions/ContractAction.test.ts +10 -10
- package/src/Actions/ContractAction.ts +11 -12
- package/src/Actions/ERC721MintAction.test.ts +6 -6
- package/src/Actions/ERC721MintAction.ts +14 -15
- package/src/Actions/EventAction.test.ts +735 -109
- package/src/Actions/EventAction.ts +527 -88
- package/src/AllowLists/AllowList.test.ts +7 -7
- package/src/AllowLists/AllowList.ts +5 -3
- package/src/AllowLists/OpenAllowList.test.ts +40 -0
- package/src/AllowLists/OpenAllowList.ts +45 -0
- package/src/AllowLists/SimpleAllowList.test.ts +4 -4
- package/src/AllowLists/SimpleAllowList.ts +40 -61
- package/src/AllowLists/SimpleDenyList.test.ts +4 -4
- package/src/AllowLists/SimpleDenyList.ts +41 -17
- package/src/Auth/PassthroughAuth.test.ts +1 -1
- package/src/Boost.ts +21 -24
- package/src/BoostCore.test.ts +361 -306
- package/src/BoostCore.ts +403 -220
- package/src/BoostRegistry.test.ts +53 -0
- package/src/BoostRegistry.ts +161 -40
- package/src/Budgets/Budget.test.ts +2 -2
- package/src/Budgets/Budget.ts +1 -2
- package/src/Budgets/ManagedBudget.test.ts +106 -19
- package/src/Budgets/ManagedBudget.ts +49 -321
- package/src/Budgets/VestingBudget.test.ts +7 -7
- package/src/Budgets/VestingBudget.ts +36 -106
- package/src/Deployable/Contract.ts +4 -5
- package/src/Deployable/Deployable.ts +1 -1
- package/src/Deployable/DeployableTarget.ts +30 -19
- package/src/Deployable/DeployableTargetWithRBAC.test.ts +103 -0
- package/src/Deployable/DeployableTargetWithRBAC.ts +447 -0
- package/src/Incentives/AllowListIncentive.test.ts +12 -12
- package/src/Incentives/AllowListIncentive.ts +30 -15
- package/src/Incentives/CGDAIncentive.test.ts +9 -6
- package/src/Incentives/CGDAIncentive.ts +39 -18
- package/src/Incentives/ERC1155Incentive.test.ts +3 -3
- package/src/Incentives/ERC1155Incentive.ts +30 -29
- package/src/Incentives/ERC20Incentive.test.ts +9 -6
- package/src/Incentives/ERC20Incentive.ts +54 -27
- package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.ts +325 -0
- package/src/Incentives/ERC20VariableIncentive.test.ts +8 -11
- package/src/Incentives/ERC20VariableIncentive.ts +50 -26
- package/src/Incentives/Incentive.test.ts +4 -1
- package/src/Incentives/Incentive.ts +7 -6
- package/src/Incentives/PointsIncentive.test.ts +24 -25
- package/src/Incentives/PointsIncentive.ts +32 -17
- package/src/Validators/SignerValidator.test.ts +6 -6
- package/src/Validators/SignerValidator.ts +20 -17
- package/src/Validators/Validator.test.ts +2 -2
- package/src/Validators/Validator.ts +1 -1
- package/src/claiming.ts +1 -1
- package/src/errors.ts +345 -21
- package/src/index.test.ts +118 -36
- package/src/index.ts +5 -0
- package/src/transfers.ts +1 -1
- package/src/utils.test.ts +2 -2
- package/src/utils.ts +61 -12
- package/dist/Budgets/SimpleBudget.d.ts.map +0 -1
- package/dist/componentInterfaces-CKCBwG16.cjs +0 -2
- package/dist/componentInterfaces-CKCBwG16.cjs.map +0 -1
- package/dist/componentInterfaces-DYkaxBda.js +0 -13
- package/dist/componentInterfaces-DYkaxBda.js.map +0 -1
- package/dist/generated-57_Kffpz.js.map +0 -1
- package/dist/generated-wKBNvm48.cjs +0 -3
- package/dist/generated-wKBNvm48.cjs.map +0 -1
- package/src/Budgets/SimpleBudget.test.ts +0 -152
- package/src/Budgets/SimpleBudget.ts +0 -564
|
@@ -1,18 +1,183 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { isAddressEqual as
|
|
4
|
-
import {
|
|
5
|
-
import { DeployableTarget as
|
|
6
|
-
import {
|
|
7
|
-
import { RegistryType as
|
|
8
|
-
const v = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660048111156105305761052f6115d7565b5b6004811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600481111561076e5761076d6115d7565b5b60048111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600481111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600481111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600581106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60058110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220a8ee5f8b5a49a9c61c1747482b13d7b4617cfc02983722a0395994bf27c456a064736f6c634300081a0033";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { a$ as U, b0 as $, b1 as z, b2 as q, b3 as J } from "../generated-CsNyWPKA.js";
|
|
2
|
+
import { getTransactionReceipt as V, getTransaction as Y } from "@wagmi/core";
|
|
3
|
+
import { isAddressEqual as I, decodeEventLog as k, decodeFunctionData as G, isAddress as Z, fromHex as C, zeroHash as B, encodeAbiParameters as F } from "viem";
|
|
4
|
+
import { c as f0 } from "../deployments-fJsWblwS.js";
|
|
5
|
+
import { DeployableTarget as e0 } from "../Deployable/DeployableTarget.js";
|
|
6
|
+
import { ValidationAbiMissingError as x, FunctionDataDecodeError as j, UnparseableAbiParamError as t0, UnrecognizedFilterTypeError as b0, FieldValueNotComparableError as H, InvalidNumericalCriteriaError as K, DecodedArgsMalformedError as n0, FieldValueUndefinedError as O, NoEventActionStepsProvidedError as a0, TooManyEventActionStepsProvidedError as i0 } from "../errors.js";
|
|
7
|
+
import { RegistryType as s0 } from "../utils.js";
|
|
8
|
+
const r0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea26469706673582212208eb365eda8d73b432dcac87772fa84d3bb11eb90f5c05dbe00a55fa3412254c364736f6c634300081a0033", g = Symbol.for("@ts-pattern/matcher"), c0 = Symbol.for("@ts-pattern/isVariadic"), P = "@ts-pattern/anonymous-select-key", _ = (t) => !!(t && typeof t == "object"), N = (t) => t && !!t[g], p = (t, f, e) => {
|
|
9
|
+
if (N(t)) {
|
|
10
|
+
const b = t[g](), { matched: n, selections: a } = b.match(f);
|
|
11
|
+
return n && a && Object.keys(a).forEach((i) => e(i, a[i])), n;
|
|
12
|
+
}
|
|
13
|
+
if (_(t)) {
|
|
14
|
+
if (!_(f)) return !1;
|
|
15
|
+
if (Array.isArray(t)) {
|
|
16
|
+
if (!Array.isArray(f)) return !1;
|
|
17
|
+
let b = [], n = [], a = [];
|
|
18
|
+
for (const i of t.keys()) {
|
|
19
|
+
const r = t[i];
|
|
20
|
+
N(r) && r[c0] ? a.push(r) : a.length ? n.push(r) : b.push(r);
|
|
21
|
+
}
|
|
22
|
+
if (a.length) {
|
|
23
|
+
if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
24
|
+
if (f.length < b.length + n.length) return !1;
|
|
25
|
+
const i = f.slice(0, b.length), r = n.length === 0 ? [] : f.slice(-n.length), c = f.slice(b.length, n.length === 0 ? 1 / 0 : -n.length);
|
|
26
|
+
return b.every((o, y) => p(o, i[y], e)) && n.every((o, y) => p(o, r[y], e)) && (a.length === 0 || p(a[0], c, e));
|
|
27
|
+
}
|
|
28
|
+
return t.length === f.length && t.every((i, r) => p(i, f[r], e));
|
|
29
|
+
}
|
|
30
|
+
return Reflect.ownKeys(t).every((b) => {
|
|
31
|
+
const n = t[b];
|
|
32
|
+
return (b in f || N(a = n) && a[g]().matcherType === "optional") && p(n, f[b], e);
|
|
33
|
+
var a;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return Object.is(f, t);
|
|
37
|
+
}, T = (t) => {
|
|
38
|
+
var f, e, b;
|
|
39
|
+
return _(t) ? N(t) ? (f = (e = (b = t[g]()).getSelectionKeys) == null ? void 0 : e.call(b)) != null ? f : [] : Array.isArray(t) ? S(t, T) : S(Object.values(t), T) : [];
|
|
40
|
+
}, S = (t, f) => t.reduce((e, b) => e.concat(f(b)), []);
|
|
41
|
+
function u(t) {
|
|
42
|
+
return Object.assign(t, { optional: () => d0(t), and: (f) => d(t, f), or: (f) => o0(t, f), select: (f) => f === void 0 ? W(t) : W(f, t) });
|
|
43
|
+
}
|
|
44
|
+
function d0(t) {
|
|
45
|
+
return u({ [g]: () => ({ match: (f) => {
|
|
46
|
+
let e = {};
|
|
47
|
+
const b = (n, a) => {
|
|
48
|
+
e[n] = a;
|
|
49
|
+
};
|
|
50
|
+
return f === void 0 ? (T(t).forEach((n) => b(n, void 0)), { matched: !0, selections: e }) : { matched: p(t, f, b), selections: e };
|
|
51
|
+
}, getSelectionKeys: () => T(t), matcherType: "optional" }) });
|
|
52
|
+
}
|
|
53
|
+
function d(...t) {
|
|
54
|
+
return u({ [g]: () => ({ match: (f) => {
|
|
55
|
+
let e = {};
|
|
56
|
+
const b = (n, a) => {
|
|
57
|
+
e[n] = a;
|
|
58
|
+
};
|
|
59
|
+
return { matched: t.every((n) => p(n, f, b)), selections: e };
|
|
60
|
+
}, getSelectionKeys: () => S(t, T), matcherType: "and" }) });
|
|
61
|
+
}
|
|
62
|
+
function o0(...t) {
|
|
63
|
+
return u({ [g]: () => ({ match: (f) => {
|
|
64
|
+
let e = {};
|
|
65
|
+
const b = (n, a) => {
|
|
66
|
+
e[n] = a;
|
|
67
|
+
};
|
|
68
|
+
return S(t, T).forEach((n) => b(n, void 0)), { matched: t.some((n) => p(n, f, b)), selections: e };
|
|
69
|
+
}, getSelectionKeys: () => S(t, T), matcherType: "or" }) });
|
|
12
70
|
}
|
|
13
|
-
|
|
71
|
+
function s(t) {
|
|
72
|
+
return { [g]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
|
|
73
|
+
}
|
|
74
|
+
function W(...t) {
|
|
75
|
+
const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
76
|
+
return u({ [g]: () => ({ match: (b) => {
|
|
77
|
+
let n = { [f ?? P]: b };
|
|
78
|
+
return { matched: e === void 0 || p(e, b, (a, i) => {
|
|
79
|
+
n[a] = i;
|
|
80
|
+
}), selections: n };
|
|
81
|
+
}, getSelectionKeys: () => [f ?? P].concat(e === void 0 ? [] : T(e)) }) });
|
|
82
|
+
}
|
|
83
|
+
function l(t) {
|
|
84
|
+
return typeof t == "number";
|
|
85
|
+
}
|
|
86
|
+
function m(t) {
|
|
87
|
+
return typeof t == "string";
|
|
88
|
+
}
|
|
89
|
+
function A(t) {
|
|
90
|
+
return typeof t == "bigint";
|
|
91
|
+
}
|
|
92
|
+
u(s(function(t) {
|
|
93
|
+
return !0;
|
|
94
|
+
}));
|
|
95
|
+
const w = (t) => Object.assign(u(t), { startsWith: (f) => {
|
|
96
|
+
return w(d(t, (e = f, s((b) => m(b) && b.startsWith(e)))));
|
|
97
|
+
var e;
|
|
98
|
+
}, endsWith: (f) => {
|
|
99
|
+
return w(d(t, (e = f, s((b) => m(b) && b.endsWith(e)))));
|
|
100
|
+
var e;
|
|
101
|
+
}, minLength: (f) => w(d(t, ((e) => s((b) => m(b) && b.length >= e))(f))), length: (f) => w(d(t, ((e) => s((b) => m(b) && b.length === e))(f))), maxLength: (f) => w(d(t, ((e) => s((b) => m(b) && b.length <= e))(f))), includes: (f) => {
|
|
102
|
+
return w(d(t, (e = f, s((b) => m(b) && b.includes(e)))));
|
|
103
|
+
var e;
|
|
104
|
+
}, regex: (f) => {
|
|
105
|
+
return w(d(t, (e = f, s((b) => m(b) && !!b.match(e)))));
|
|
106
|
+
var e;
|
|
107
|
+
} });
|
|
108
|
+
w(s(m));
|
|
109
|
+
const h = (t) => Object.assign(u(t), { between: (f, e) => h(d(t, ((b, n) => s((a) => l(a) && b <= a && n >= a))(f, e))), lt: (f) => h(d(t, ((e) => s((b) => l(b) && b < e))(f))), gt: (f) => h(d(t, ((e) => s((b) => l(b) && b > e))(f))), lte: (f) => h(d(t, ((e) => s((b) => l(b) && b <= e))(f))), gte: (f) => h(d(t, ((e) => s((b) => l(b) && b >= e))(f))), int: () => h(d(t, s((f) => l(f) && Number.isInteger(f)))), finite: () => h(d(t, s((f) => l(f) && Number.isFinite(f)))), positive: () => h(d(t, s((f) => l(f) && f > 0))), negative: () => h(d(t, s((f) => l(f) && f < 0))) });
|
|
110
|
+
h(s(l));
|
|
111
|
+
const v = (t) => Object.assign(u(t), { between: (f, e) => v(d(t, ((b, n) => s((a) => A(a) && b <= a && n >= a))(f, e))), lt: (f) => v(d(t, ((e) => s((b) => A(b) && b < e))(f))), gt: (f) => v(d(t, ((e) => s((b) => A(b) && b > e))(f))), lte: (f) => v(d(t, ((e) => s((b) => A(b) && b <= e))(f))), gte: (f) => v(d(t, ((e) => s((b) => A(b) && b >= e))(f))), positive: () => v(d(t, s((f) => A(f) && f > 0))), negative: () => v(d(t, s((f) => A(f) && f < 0))) });
|
|
112
|
+
v(s(A));
|
|
113
|
+
u(s(function(t) {
|
|
114
|
+
return typeof t == "boolean";
|
|
115
|
+
}));
|
|
116
|
+
u(s(function(t) {
|
|
117
|
+
return typeof t == "symbol";
|
|
118
|
+
}));
|
|
119
|
+
u(s(function(t) {
|
|
120
|
+
return t == null;
|
|
121
|
+
}));
|
|
122
|
+
u(s(function(t) {
|
|
123
|
+
return t != null;
|
|
124
|
+
}));
|
|
125
|
+
class u0 extends Error {
|
|
126
|
+
constructor(f) {
|
|
127
|
+
let e;
|
|
128
|
+
try {
|
|
129
|
+
e = JSON.stringify(f);
|
|
130
|
+
} catch {
|
|
131
|
+
e = f;
|
|
132
|
+
}
|
|
133
|
+
super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
const L = { matched: !1, value: void 0 };
|
|
137
|
+
function M(t) {
|
|
138
|
+
return new R(t, L);
|
|
139
|
+
}
|
|
140
|
+
class R {
|
|
141
|
+
constructor(f, e) {
|
|
142
|
+
this.input = void 0, this.state = void 0, this.input = f, this.state = e;
|
|
143
|
+
}
|
|
144
|
+
with(...f) {
|
|
145
|
+
if (this.state.matched) return this;
|
|
146
|
+
const e = f[f.length - 1], b = [f[0]];
|
|
147
|
+
let n;
|
|
148
|
+
f.length === 3 && typeof f[1] == "function" ? n = f[1] : f.length > 2 && b.push(...f.slice(1, f.length - 1));
|
|
149
|
+
let a = !1, i = {};
|
|
150
|
+
const r = (o, y) => {
|
|
151
|
+
a = !0, i[o] = y;
|
|
152
|
+
}, c = !b.some((o) => p(o, this.input, r)) || n && !n(this.input) ? L : { matched: !0, value: e(a ? P in i ? i[P] : i : this.input, this.input) };
|
|
153
|
+
return new R(this.input, c);
|
|
154
|
+
}
|
|
155
|
+
when(f, e) {
|
|
156
|
+
if (this.state.matched) return this;
|
|
157
|
+
const b = !!f(this.input);
|
|
158
|
+
return new R(this.input, b ? { matched: !0, value: e(this.input, this.input) } : L);
|
|
159
|
+
}
|
|
160
|
+
otherwise(f) {
|
|
161
|
+
return this.state.matched ? this.state.value : f(this.input);
|
|
162
|
+
}
|
|
163
|
+
exhaustive() {
|
|
164
|
+
if (this.state.matched) return this.state.value;
|
|
165
|
+
throw new u0(this.input);
|
|
166
|
+
}
|
|
167
|
+
run() {
|
|
168
|
+
return this.exhaustive();
|
|
169
|
+
}
|
|
170
|
+
returnType() {
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
var l0 = /* @__PURE__ */ ((t) => (t[t.EQUAL = 0] = "EQUAL", t[t.NOT_EQUAL = 1] = "NOT_EQUAL", t[t.GREATER_THAN = 2] = "GREATER_THAN", t[t.LESS_THAN = 3] = "LESS_THAN", t[t.CONTAINS = 4] = "CONTAINS", t[t.REGEX = 5] = "REGEX", t))(l0 || {}), h0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(h0 || {}), p0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(p0 || {});
|
|
175
|
+
function y0(t) {
|
|
176
|
+
return Array.isArray(t.actionSteps);
|
|
177
|
+
}
|
|
178
|
+
const D = class D extends e0 {
|
|
14
179
|
constructor() {
|
|
15
|
-
super(...arguments), this.abi =
|
|
180
|
+
super(...arguments), this.abi = U;
|
|
16
181
|
}
|
|
17
182
|
/**
|
|
18
183
|
* Gets a specific action event by index
|
|
@@ -20,7 +185,7 @@ const s = class s extends N {
|
|
|
20
185
|
* @public
|
|
21
186
|
* @async
|
|
22
187
|
* @param {number} index The index of the action event to retrieve
|
|
23
|
-
* @param {?
|
|
188
|
+
* @param {?ReadEventActionParams<'getActionStep'>} [params]
|
|
24
189
|
* @returns {Promise<ActionStep>}
|
|
25
190
|
*/
|
|
26
191
|
async getActionStep(f, e) {
|
|
@@ -31,24 +196,24 @@ const s = class s extends N {
|
|
|
31
196
|
*
|
|
32
197
|
* @public
|
|
33
198
|
* @async
|
|
34
|
-
* @param {?
|
|
199
|
+
* @param {?ReadEventActionParams<'getActionSteps'>} [params]
|
|
35
200
|
* @returns {Promise<ActionStep[]>}
|
|
36
201
|
*/
|
|
37
202
|
async getActionSteps(f) {
|
|
38
|
-
const e = await
|
|
203
|
+
const e = await $(this._config, {
|
|
39
204
|
address: this.assertValidAddress(),
|
|
40
205
|
...this.optionallyAttachAccount(),
|
|
41
206
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
42
207
|
...f
|
|
43
208
|
});
|
|
44
|
-
return
|
|
209
|
+
return g0(e.map(X));
|
|
45
210
|
}
|
|
46
211
|
/**
|
|
47
212
|
* Gets the count of action events
|
|
48
213
|
*
|
|
49
214
|
* @public
|
|
50
215
|
* @async
|
|
51
|
-
* @param {?
|
|
216
|
+
* @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
|
|
52
217
|
* @returns {Promise<bigint>}
|
|
53
218
|
*/
|
|
54
219
|
async getActionStepsCount(f) {
|
|
@@ -59,17 +224,16 @@ const s = class s extends N {
|
|
|
59
224
|
*
|
|
60
225
|
* @public
|
|
61
226
|
* @async
|
|
62
|
-
* @param {?
|
|
227
|
+
* @param {?ReadEventActionParams<'getActionClaimant'>} [params]
|
|
63
228
|
* @returns {Promise<ActionClaimant>}
|
|
64
229
|
*/
|
|
65
230
|
async getActionClaimant(f) {
|
|
66
|
-
const e = await
|
|
231
|
+
const e = await z(this._config, {
|
|
67
232
|
address: this.assertValidAddress(),
|
|
68
233
|
...this.optionallyAttachAccount(),
|
|
69
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
70
234
|
...f
|
|
71
235
|
});
|
|
72
|
-
return
|
|
236
|
+
return X(e);
|
|
73
237
|
}
|
|
74
238
|
/**
|
|
75
239
|
* Executes a prepared event action
|
|
@@ -77,7 +241,7 @@ const s = class s extends N {
|
|
|
77
241
|
* @public
|
|
78
242
|
* @async
|
|
79
243
|
* @param {Hex} data
|
|
80
|
-
* @param {?WriteParams
|
|
244
|
+
* @param {?WriteParams} [params]
|
|
81
245
|
* @returns {Promise<readonly [boolean, `0x${string}`]>}
|
|
82
246
|
*/
|
|
83
247
|
async execute(f, e) {
|
|
@@ -89,18 +253,117 @@ const s = class s extends N {
|
|
|
89
253
|
* @public
|
|
90
254
|
* @async
|
|
91
255
|
* @param {Hex} data
|
|
92
|
-
* @param {?WriteParams
|
|
93
|
-
* @returns {
|
|
256
|
+
* @param {?WriteParams} [params]
|
|
257
|
+
* @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
|
|
94
258
|
*/
|
|
95
259
|
async executeRaw(f, e) {
|
|
96
|
-
const { request:
|
|
260
|
+
const { request: b, result: n } = await q(this._config, {
|
|
97
261
|
address: this.assertValidAddress(),
|
|
98
262
|
...this.optionallyAttachAccount(),
|
|
99
263
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
100
264
|
...e,
|
|
101
265
|
args: [f]
|
|
102
266
|
});
|
|
103
|
-
return { hash: await
|
|
267
|
+
return { hash: await J(this._config, b), result: n };
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Derives the action claimant address from a transaction based on the provided ActionClaimant configuration.
|
|
271
|
+
* This method supports both event-based and function-based claimant derivation.
|
|
272
|
+
*
|
|
273
|
+
** @example
|
|
274
|
+
* // Example usage
|
|
275
|
+
* const eventAction = boost.action as EventAction
|
|
276
|
+
* const claimant = await eventAction.getActionClaimant() // {
|
|
277
|
+
* signatureType: SignatureType.EVENT,
|
|
278
|
+
* signature: '0x1234...',
|
|
279
|
+
* fieldIndex: 2,
|
|
280
|
+
* targetContract: '0xabcd...',
|
|
281
|
+
* chainid: 1
|
|
282
|
+
* };
|
|
283
|
+
* const params: ValidateActionStepParams = {
|
|
284
|
+
* hash: '0x5678...',
|
|
285
|
+
* chainId: 1,
|
|
286
|
+
* knownSignatures: {
|
|
287
|
+
* '0x1234...': {
|
|
288
|
+
* type: 'event',
|
|
289
|
+
* name: 'Transfer(...)'
|
|
290
|
+
* }
|
|
291
|
+
* }
|
|
292
|
+
* };
|
|
293
|
+
* const claimantAddress = await eventAction.deriveActionClaimantFromTransaction(claimant, params);
|
|
294
|
+
*
|
|
295
|
+
* @param {ActionClaimant} claimant - The configuration specifying how to derive the claimant.
|
|
296
|
+
* @param {ValidateActionStepParams} params - Parameters for validation, including transaction hash, known signatures, logs, and chain ID.
|
|
297
|
+
* @returns {Promise<Address | undefined>} The derived claimant address if found, undefined otherwise.
|
|
298
|
+
* @throws {ValidationAbiMissingError} If the ABI for the specified signature is not found.
|
|
299
|
+
* @throws {FunctionDataDecodeError} If there's an error decoding function data (for function-based derivation).
|
|
300
|
+
*/
|
|
301
|
+
async deriveActionClaimantFromTransaction(f, e) {
|
|
302
|
+
const b = f.signature;
|
|
303
|
+
if (f.signatureType === 0) {
|
|
304
|
+
let n;
|
|
305
|
+
if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
|
|
306
|
+
throw new x(b);
|
|
307
|
+
let a;
|
|
308
|
+
if ("logs" in e) {
|
|
309
|
+
for (let c of e.logs) {
|
|
310
|
+
if (!I(c.address, f.targetContract)) continue;
|
|
311
|
+
let o = this.validateClaimantAgainstArgs(
|
|
312
|
+
f,
|
|
313
|
+
c
|
|
314
|
+
);
|
|
315
|
+
o && (a = o);
|
|
316
|
+
}
|
|
317
|
+
return a;
|
|
318
|
+
}
|
|
319
|
+
const r = (await V(this._config, e)).logs.map((c) => {
|
|
320
|
+
const { eventName: o, args: y } = k({
|
|
321
|
+
abi: [n],
|
|
322
|
+
data: c.data,
|
|
323
|
+
topics: c.topics
|
|
324
|
+
});
|
|
325
|
+
return { ...c, eventName: o, args: y };
|
|
326
|
+
});
|
|
327
|
+
for (let c of r) {
|
|
328
|
+
if (!I(c.address, f.targetContract)) continue;
|
|
329
|
+
let o = this.validateClaimantAgainstArgs(f, c);
|
|
330
|
+
o && (a = o);
|
|
331
|
+
}
|
|
332
|
+
return a;
|
|
333
|
+
}
|
|
334
|
+
if (f.signatureType === 1 && "hash" in e && "chainId" in e) {
|
|
335
|
+
const n = await Y(this._config, {
|
|
336
|
+
hash: e.hash
|
|
337
|
+
});
|
|
338
|
+
if (!I(n.to, f.targetContract)) return;
|
|
339
|
+
let a;
|
|
340
|
+
if (e.abiItem ? a = e.abiItem : a = e.knownSignatures[b], !a)
|
|
341
|
+
throw new x(f.signature);
|
|
342
|
+
let i;
|
|
343
|
+
try {
|
|
344
|
+
i = G({
|
|
345
|
+
abi: [a],
|
|
346
|
+
data: n.input
|
|
347
|
+
});
|
|
348
|
+
} catch (r) {
|
|
349
|
+
throw new j([a], r);
|
|
350
|
+
}
|
|
351
|
+
return this.validateClaimantAgainstArgs(f, i);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Validates the action claimant against the arguments of a log or function data.
|
|
356
|
+
*
|
|
357
|
+
* @param {ActionClaimant} claimant - The action claimant to validate.
|
|
358
|
+
* @param {Object} [logOrFnData] - Optional object containing the arguments to validate against.
|
|
359
|
+
* @param {Array<any> | readonly unknown[] | Record<string, unknown>} [logOrFnData.args] - The arguments from the log or function data.
|
|
360
|
+
* @returns {Address | undefined} The validated address if found and valid, otherwise undefined.
|
|
361
|
+
*/
|
|
362
|
+
validateClaimantAgainstArgs(f, e) {
|
|
363
|
+
if (!e || !Array.isArray(e == null ? void 0 : e.args) || (e == null ? void 0 : e.args.length) <= f.fieldIndex)
|
|
364
|
+
return;
|
|
365
|
+
const b = e.args.at(f.fieldIndex);
|
|
366
|
+
if (Z(b)) return b;
|
|
104
367
|
}
|
|
105
368
|
/**
|
|
106
369
|
* Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
|
|
@@ -108,86 +371,235 @@ const s = class s extends N {
|
|
|
108
371
|
*
|
|
109
372
|
* @public
|
|
110
373
|
* @async
|
|
111
|
-
* @param
|
|
112
|
-
* GetLogsParams<Abi, ContractEventName<Abi>> & {
|
|
113
|
-
* knownEvents?: Record<Hex, AbiEvent>;
|
|
114
|
-
* logs?: Log[];
|
|
115
|
-
* }} [params]
|
|
374
|
+
* @param ValidateActionStepParams params
|
|
116
375
|
* @returns {Promise<boolean>}
|
|
117
376
|
*/
|
|
118
377
|
async validateActionSteps(f) {
|
|
119
|
-
const e = await this.getActionSteps(
|
|
120
|
-
for (const
|
|
121
|
-
if (!await this.isActionStepValid(
|
|
378
|
+
const e = await this.getActionSteps();
|
|
379
|
+
for (const b of e)
|
|
380
|
+
if (!await this.isActionStepValid(b, f))
|
|
122
381
|
return !1;
|
|
123
382
|
return !0;
|
|
124
383
|
}
|
|
125
384
|
/**
|
|
126
|
-
* Validates a single action step with a given criteria against logs.
|
|
127
|
-
* If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
|
|
385
|
+
* Validates a single action step with a given criteria against logs or function calls.
|
|
386
|
+
* If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
|
|
387
|
+
* For functions a hash is required.
|
|
128
388
|
*
|
|
129
389
|
* @public
|
|
130
390
|
* @async
|
|
131
|
-
* @param {ActionStep} actionStep
|
|
132
|
-
* @param {
|
|
133
|
-
* knownEvents?: Record<Hex, AbiEvent>;
|
|
134
|
-
* logs?: Log[];
|
|
135
|
-
* }} [params]
|
|
391
|
+
* @param {ActionStep} actionStep - The action step to validate. Can be a function of event step.
|
|
392
|
+
* @param {ValidateActionStepParams} params - Additional parameters for validation, including hash, known events, logs, and chain ID.
|
|
136
393
|
* @returns {Promise<boolean>}
|
|
137
394
|
*/
|
|
138
395
|
async isActionStepValid(f, e) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
396
|
+
if (f.signatureType === 0) {
|
|
397
|
+
const b = f.signature;
|
|
398
|
+
let n;
|
|
399
|
+
if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
|
|
400
|
+
throw new x(b);
|
|
401
|
+
if (this.isArraylikeIndexed(f, n))
|
|
402
|
+
throw new t0(
|
|
403
|
+
f.actionParameter.fieldIndex,
|
|
404
|
+
n
|
|
405
|
+
);
|
|
406
|
+
if ("logs" in e)
|
|
407
|
+
return this.isActionEventValid(f, e.logs);
|
|
408
|
+
const r = (await this._config.getClient({
|
|
409
|
+
chainId: e.chainId
|
|
410
|
+
}).getTransactionReceipt({
|
|
411
|
+
hash: e.hash
|
|
412
|
+
})).logs.map((c) => {
|
|
413
|
+
const { eventName: o, args: y } = k({
|
|
414
|
+
abi: [n],
|
|
415
|
+
data: c.data,
|
|
416
|
+
topics: c.topics
|
|
417
|
+
});
|
|
418
|
+
return { ...c, eventName: o, args: y };
|
|
419
|
+
});
|
|
420
|
+
return this.isActionEventValid(f, r);
|
|
421
|
+
}
|
|
422
|
+
if (f.signatureType === 1 && "hash" in e && "chainId" in e) {
|
|
423
|
+
const n = await this._config.getClient({
|
|
424
|
+
chainId: e.chainId
|
|
425
|
+
}).getTransaction({
|
|
426
|
+
hash: e.hash
|
|
427
|
+
});
|
|
428
|
+
return this.isActionFunctionValid(f, n, e);
|
|
429
|
+
}
|
|
430
|
+
return !1;
|
|
155
431
|
}
|
|
156
432
|
/**
|
|
157
|
-
* Validates a
|
|
433
|
+
* Validates a single action event with a given criteria against logs.
|
|
434
|
+
* If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
|
|
435
|
+
*
|
|
436
|
+
* @public
|
|
437
|
+
* @async
|
|
438
|
+
* @param {ActionStep} actionStep - The action step containing the event to validate.
|
|
439
|
+
* @param {EventLogs} logs - Event logs to validate the given step against
|
|
440
|
+
* @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
|
|
441
|
+
*/
|
|
442
|
+
isActionEventValid(f, e) {
|
|
443
|
+
const b = f.actionParameter;
|
|
444
|
+
if (!e.length) return !1;
|
|
445
|
+
for (let n of e)
|
|
446
|
+
if (this.validateLogAgainstCriteria(b, n))
|
|
447
|
+
return !0;
|
|
448
|
+
return !1;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Validates a single action function with a given criteria against the transaction input.
|
|
452
|
+
*
|
|
453
|
+
* @public
|
|
454
|
+
* @param {ActionStep} actionStep - The action step containing the function to validate.
|
|
455
|
+
* @param {Transaction} transaction - The transaction that will be validated against.
|
|
456
|
+
* @param {Object} [params] - Parameters for validation.
|
|
457
|
+
* @param {AbiItem} [params.abiItem] - The ABI item for the function, if known.
|
|
458
|
+
* @param {Record<Hex, AbiEvent | AbiFunction>} [params.knownSignatures] - A record of known signatures.
|
|
459
|
+
* @returns {boolean} Returns true if the action function is valid, false otherwise.
|
|
460
|
+
* @throws {ValidationAbiMissingError} Throws if the ABI for the function signature is not found.
|
|
461
|
+
* @throws {FunctionDataDecodeError} Throws if there's an error decoding the function data.
|
|
462
|
+
*/
|
|
463
|
+
isActionFunctionValid(f, e, b) {
|
|
464
|
+
const n = f.actionParameter;
|
|
465
|
+
let a = f.signature, i;
|
|
466
|
+
if (b.abiItem ? i = b == null ? void 0 : b.abiItem : i = b.knownSignatures[a], !i)
|
|
467
|
+
throw new x(a);
|
|
468
|
+
let r;
|
|
469
|
+
try {
|
|
470
|
+
r = G({
|
|
471
|
+
abi: [i],
|
|
472
|
+
data: e.input
|
|
473
|
+
});
|
|
474
|
+
} catch (o) {
|
|
475
|
+
throw new j([i], o);
|
|
476
|
+
}
|
|
477
|
+
const c = r.args;
|
|
478
|
+
return !(!c || !r || !this.validateFunctionAgainstCriteria(
|
|
479
|
+
n,
|
|
480
|
+
c
|
|
481
|
+
));
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Validates a field against a given criteria.
|
|
158
485
|
*
|
|
159
486
|
* @param {Criteria} criteria - The criteria to validate against.
|
|
160
|
-
* @param {
|
|
161
|
-
* @
|
|
487
|
+
* @param {string | bigint | Hex} fieldValue - The field value to validate.
|
|
488
|
+
* @param {Object} input - Additional context for validation.
|
|
489
|
+
* @param {EventLogs[0]} [input.log] - The event log, if validating an event.
|
|
490
|
+
* @param {readonly (string | bigint)[]} [input.decodedArgs] - The decoded function arguments, if validating a function call.
|
|
491
|
+
* @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
|
|
162
492
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
throw new C({ log: e, criteria: f, fieldValue: a });
|
|
493
|
+
validateFieldAgainstCriteria(f, e, b) {
|
|
494
|
+
if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === 255)
|
|
495
|
+
return !0;
|
|
167
496
|
switch (f.filterType) {
|
|
168
497
|
case 0:
|
|
169
|
-
return f.fieldType
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
)
|
|
498
|
+
return M(f.fieldType).with(
|
|
499
|
+
1,
|
|
500
|
+
() => I(f.filterData, e)
|
|
501
|
+
).with(
|
|
502
|
+
0,
|
|
503
|
+
() => BigInt(e) === BigInt(f.filterData)
|
|
504
|
+
).with(
|
|
505
|
+
3,
|
|
506
|
+
() => e === C(f.filterData, "string")
|
|
507
|
+
).otherwise(() => e === f.filterData);
|
|
173
508
|
case 1:
|
|
174
|
-
return
|
|
509
|
+
return M(f.fieldType).with(
|
|
510
|
+
1,
|
|
511
|
+
() => !I(f.filterData, e)
|
|
512
|
+
).with(
|
|
513
|
+
0,
|
|
514
|
+
() => BigInt(e) !== BigInt(f.filterData)
|
|
515
|
+
).with(
|
|
516
|
+
3,
|
|
517
|
+
() => e !== C(f.filterData, "string")
|
|
518
|
+
).otherwise(() => e !== f.filterData);
|
|
175
519
|
case 2:
|
|
176
520
|
if (f.fieldType === 0)
|
|
177
|
-
return BigInt(
|
|
178
|
-
throw new
|
|
521
|
+
return BigInt(e) > BigInt(f.filterData);
|
|
522
|
+
throw new K({
|
|
523
|
+
...b,
|
|
524
|
+
criteria: f,
|
|
525
|
+
fieldValue: e
|
|
526
|
+
});
|
|
179
527
|
case 3:
|
|
180
528
|
if (f.fieldType === 0)
|
|
181
|
-
return BigInt(
|
|
182
|
-
throw new
|
|
529
|
+
return BigInt(e) < BigInt(f.filterData);
|
|
530
|
+
throw new K({
|
|
531
|
+
...b,
|
|
532
|
+
criteria: f,
|
|
533
|
+
fieldValue: e
|
|
534
|
+
});
|
|
183
535
|
case 4:
|
|
184
|
-
if (f.fieldType === 2 || f.fieldType === 3)
|
|
185
|
-
|
|
186
|
-
|
|
536
|
+
if (f.fieldType === 2 || f.fieldType === 3) {
|
|
537
|
+
let n;
|
|
538
|
+
return f.fieldType === 3 ? n = C(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
|
|
539
|
+
}
|
|
540
|
+
throw new H({
|
|
541
|
+
...b,
|
|
542
|
+
criteria: f,
|
|
543
|
+
fieldValue: e
|
|
544
|
+
});
|
|
545
|
+
case 5:
|
|
546
|
+
if (typeof e != "string")
|
|
547
|
+
throw new H({
|
|
548
|
+
...b,
|
|
549
|
+
criteria: f,
|
|
550
|
+
fieldValue: e
|
|
551
|
+
});
|
|
552
|
+
if (f.fieldType === 3) {
|
|
553
|
+
const n = C(f.filterData, "string");
|
|
554
|
+
return new RegExp(n).test(e);
|
|
555
|
+
}
|
|
187
556
|
default:
|
|
188
|
-
throw new
|
|
557
|
+
throw new b0({
|
|
558
|
+
...b,
|
|
559
|
+
criteria: f,
|
|
560
|
+
fieldValue: e
|
|
561
|
+
});
|
|
189
562
|
}
|
|
190
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* Validates a {@link Log} against a given criteria.
|
|
566
|
+
* If the criteria's fieldIndex is 255, it is reserved for anyValidation
|
|
567
|
+
*
|
|
568
|
+
* @param {Criteria} criteria - The criteria to validate against.
|
|
569
|
+
* @param {Log} log - The Viem event log.
|
|
570
|
+
* @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
|
|
571
|
+
*/
|
|
572
|
+
validateLogAgainstCriteria(f, e) {
|
|
573
|
+
if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex && f.fieldIndex !== 255)
|
|
574
|
+
throw new n0({
|
|
575
|
+
log: e,
|
|
576
|
+
criteria: f,
|
|
577
|
+
fieldValue: void 0
|
|
578
|
+
});
|
|
579
|
+
const b = f.fieldIndex === 255 ? B : e.args.at(f.fieldIndex);
|
|
580
|
+
if (b === void 0)
|
|
581
|
+
throw new O({ log: e, criteria: f, fieldValue: b });
|
|
582
|
+
return this.validateFieldAgainstCriteria(f, b, { log: e });
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Validates a function's decoded arguments against a given criteria.
|
|
586
|
+
* If the criteria's fieldIndex is 255, it is reserved for anyValidation
|
|
587
|
+
*
|
|
588
|
+
* @param {Criteria} criteria - The criteria to validate against.
|
|
589
|
+
* @param {unknown[]} decodedArgs - The decoded arguments of the function call.
|
|
590
|
+
* @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
|
|
591
|
+
*/
|
|
592
|
+
validateFunctionAgainstCriteria(f, e) {
|
|
593
|
+
const b = f.fieldIndex === 255 ? B : e[f.fieldIndex];
|
|
594
|
+
if (b === void 0)
|
|
595
|
+
throw new O({
|
|
596
|
+
criteria: f,
|
|
597
|
+
fieldValue: b
|
|
598
|
+
});
|
|
599
|
+
return this.validateFieldAgainstCriteria(f, b, {
|
|
600
|
+
decodedArgs: e
|
|
601
|
+
});
|
|
602
|
+
}
|
|
191
603
|
/**
|
|
192
604
|
* @inheritdoc
|
|
193
605
|
*
|
|
@@ -197,67 +609,74 @@ const s = class s extends N {
|
|
|
197
609
|
* @returns {GenericDeployableParams}
|
|
198
610
|
*/
|
|
199
611
|
buildParameters(f, e) {
|
|
200
|
-
const [
|
|
612
|
+
const [b, n] = this.validateDeploymentConfig(
|
|
201
613
|
f,
|
|
202
614
|
e
|
|
203
615
|
);
|
|
204
|
-
let
|
|
205
|
-
if (
|
|
206
|
-
let
|
|
207
|
-
if (
|
|
208
|
-
throw new
|
|
209
|
-
if (
|
|
210
|
-
throw new
|
|
211
|
-
let
|
|
212
|
-
|
|
213
|
-
actionClaimant:
|
|
214
|
-
actionStepOne:
|
|
215
|
-
actionStepTwo:
|
|
216
|
-
actionStepThree:
|
|
217
|
-
actionStepFour:
|
|
616
|
+
let a;
|
|
617
|
+
if (y0(b)) {
|
|
618
|
+
let i = b.actionSteps.filter((c) => !!c);
|
|
619
|
+
if (i.length === 0)
|
|
620
|
+
throw new a0();
|
|
621
|
+
if (i.length > 4)
|
|
622
|
+
throw new i0();
|
|
623
|
+
let r = Array.from({ length: 4 }, (c, o) => i.at(o) || i.at(-1));
|
|
624
|
+
a = {
|
|
625
|
+
actionClaimant: b.actionClaimant,
|
|
626
|
+
actionStepOne: r[0],
|
|
627
|
+
actionStepTwo: r[1],
|
|
628
|
+
actionStepThree: r[2],
|
|
629
|
+
actionStepFour: r[3]
|
|
218
630
|
};
|
|
219
631
|
} else
|
|
220
|
-
|
|
632
|
+
a = b;
|
|
221
633
|
return {
|
|
222
|
-
abi:
|
|
223
|
-
bytecode:
|
|
224
|
-
args: [
|
|
225
|
-
...this.optionallyAttachAccount(
|
|
634
|
+
abi: U,
|
|
635
|
+
bytecode: r0,
|
|
636
|
+
args: [m0(a)],
|
|
637
|
+
...this.optionallyAttachAccount(n.account)
|
|
226
638
|
};
|
|
227
639
|
}
|
|
640
|
+
isArraylikeIndexed(f, e) {
|
|
641
|
+
var b;
|
|
642
|
+
return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((b = e.inputs[f.actionParameter.fieldIndex]) != null && b.indexed));
|
|
643
|
+
}
|
|
228
644
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
645
|
+
D.bases = {
|
|
646
|
+
31337: void 0,
|
|
647
|
+
...f0
|
|
648
|
+
}, D.registryType = s0.ACTION;
|
|
649
|
+
let Q = D;
|
|
650
|
+
function g0(t) {
|
|
232
651
|
const f = [], e = {};
|
|
233
|
-
for (let
|
|
234
|
-
const
|
|
235
|
-
e[
|
|
652
|
+
for (let b of t) {
|
|
653
|
+
const n = JSON.stringify(b);
|
|
654
|
+
e[n] || (f.push(b), e[n] = !0);
|
|
236
655
|
}
|
|
237
656
|
return f;
|
|
238
657
|
}
|
|
239
|
-
function
|
|
658
|
+
function E(t) {
|
|
240
659
|
return {
|
|
241
|
-
...
|
|
242
|
-
chainid: BigInt(
|
|
660
|
+
...t,
|
|
661
|
+
chainid: BigInt(t.chainid)
|
|
243
662
|
};
|
|
244
663
|
}
|
|
245
|
-
function
|
|
246
|
-
if (
|
|
664
|
+
function X(t) {
|
|
665
|
+
if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
|
|
247
666
|
throw new Error("Chain ID exceeds max safe integer");
|
|
248
667
|
return {
|
|
249
|
-
...
|
|
250
|
-
chainid: Number(
|
|
668
|
+
...t,
|
|
669
|
+
chainid: Number(t.chainid)
|
|
251
670
|
};
|
|
252
671
|
}
|
|
253
|
-
function
|
|
254
|
-
actionClaimant:
|
|
672
|
+
function m0({
|
|
673
|
+
actionClaimant: t,
|
|
255
674
|
actionStepOne: f,
|
|
256
675
|
actionStepTwo: e,
|
|
257
|
-
actionStepThree:
|
|
258
|
-
actionStepFour:
|
|
676
|
+
actionStepThree: b,
|
|
677
|
+
actionStepFour: n
|
|
259
678
|
}) {
|
|
260
|
-
return
|
|
679
|
+
return F(
|
|
261
680
|
[
|
|
262
681
|
{
|
|
263
682
|
type: "tuple",
|
|
@@ -363,33 +782,42 @@ function G({
|
|
|
363
782
|
],
|
|
364
783
|
[
|
|
365
784
|
{
|
|
366
|
-
actionClaimant:
|
|
785
|
+
actionClaimant: E(t),
|
|
367
786
|
actionStepOne: {
|
|
368
|
-
...
|
|
787
|
+
...E(f),
|
|
369
788
|
actionType: f.actionType || 0
|
|
370
789
|
},
|
|
371
790
|
actionStepTwo: {
|
|
372
|
-
...
|
|
791
|
+
...E(e),
|
|
373
792
|
actionType: e.actionType || 0
|
|
374
793
|
},
|
|
375
794
|
actionStepThree: {
|
|
376
|
-
...
|
|
377
|
-
actionType:
|
|
795
|
+
...E(b),
|
|
796
|
+
actionType: b.actionType || 0
|
|
378
797
|
},
|
|
379
798
|
actionStepFour: {
|
|
380
|
-
...
|
|
381
|
-
actionType:
|
|
799
|
+
...E(n),
|
|
800
|
+
actionType: n.actionType || 0
|
|
382
801
|
}
|
|
383
802
|
}
|
|
384
803
|
]
|
|
385
804
|
);
|
|
386
805
|
}
|
|
806
|
+
function C0() {
|
|
807
|
+
return {
|
|
808
|
+
filterType: 0,
|
|
809
|
+
fieldType: 2,
|
|
810
|
+
fieldIndex: 255,
|
|
811
|
+
filterData: B
|
|
812
|
+
};
|
|
813
|
+
}
|
|
387
814
|
export {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
815
|
+
Q as EventAction,
|
|
816
|
+
l0 as FilterType,
|
|
817
|
+
h0 as PrimitiveType,
|
|
818
|
+
p0 as SignatureType,
|
|
819
|
+
C0 as anyActionParameter,
|
|
820
|
+
y0 as isEventActionPayloadSimple,
|
|
821
|
+
m0 as prepareEventActionPayload
|
|
394
822
|
};
|
|
395
823
|
//# sourceMappingURL=EventAction.js.map
|