@boostxyz/sdk 5.2.1 → 5.3.1

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.
Files changed (97) hide show
  1. package/README.md +10 -0
  2. package/dist/Actions/Action.cjs +1 -1
  3. package/dist/Actions/Action.js +1 -1
  4. package/dist/Actions/EventAction.cjs +1 -1
  5. package/dist/Actions/EventAction.cjs.map +1 -1
  6. package/dist/Actions/EventAction.d.ts +84 -41
  7. package/dist/Actions/EventAction.d.ts.map +1 -1
  8. package/dist/Actions/EventAction.js +1866 -378
  9. package/dist/Actions/EventAction.js.map +1 -1
  10. package/dist/AllowLists/AllowList.cjs +1 -1
  11. package/dist/AllowLists/AllowList.js +2 -2
  12. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  13. package/dist/AllowLists/SimpleAllowList.js +2 -2
  14. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  15. package/dist/AllowLists/SimpleDenyList.js +3 -3
  16. package/dist/Auth/PassthroughAuth.cjs +1 -1
  17. package/dist/Auth/PassthroughAuth.js +1 -1
  18. package/dist/BoostCore.cjs +2 -2
  19. package/dist/BoostCore.cjs.map +1 -1
  20. package/dist/BoostCore.d.ts +42 -1
  21. package/dist/BoostCore.d.ts.map +1 -1
  22. package/dist/BoostCore.js +360 -318
  23. package/dist/BoostCore.js.map +1 -1
  24. package/dist/BoostRegistry.cjs +1 -1
  25. package/dist/BoostRegistry.js +2 -2
  26. package/dist/{Budget-N0YEfSt2.cjs → Budget-AoNx7uFd.cjs} +2 -2
  27. package/dist/{Budget-N0YEfSt2.cjs.map → Budget-AoNx7uFd.cjs.map} +1 -1
  28. package/dist/{Budget-C0SMvfEl.js → Budget-DYIV9iNK.js} +3 -3
  29. package/dist/{Budget-C0SMvfEl.js.map → Budget-DYIV9iNK.js.map} +1 -1
  30. package/dist/Budgets/Budget.cjs +1 -1
  31. package/dist/Budgets/Budget.js +2 -2
  32. package/dist/Budgets/ManagedBudget.cjs +1 -1
  33. package/dist/Budgets/ManagedBudget.js +2 -2
  34. package/dist/Deployable/DeployableTarget.cjs +1 -1
  35. package/dist/Deployable/DeployableTarget.js +1 -1
  36. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  37. package/dist/Deployable/DeployableTargetWithRBAC.js +2 -2
  38. package/dist/Incentive-BbkfwGOb.cjs +2 -0
  39. package/dist/Incentive-BbkfwGOb.cjs.map +1 -0
  40. package/dist/{Incentive-DBZHQ9Np.js → Incentive-qlnv5kQB.js} +77 -50
  41. package/dist/Incentive-qlnv5kQB.js.map +1 -0
  42. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  43. package/dist/Incentives/AllowListIncentive.js +3 -3
  44. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  45. package/dist/Incentives/CGDAIncentive.js +2 -2
  46. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  47. package/dist/Incentives/ERC20Incentive.js +6 -6
  48. package/dist/Incentives/ERC20PeggedIncentive.d.ts +10 -1
  49. package/dist/Incentives/ERC20PeggedIncentive.d.ts.map +1 -1
  50. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  51. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +2 -2
  52. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  53. package/dist/Incentives/ERC20VariableIncentive.js +2 -2
  54. package/dist/Incentives/Incentive.cjs +1 -1
  55. package/dist/Incentives/Incentive.js +2 -2
  56. package/dist/Incentives/PointsIncentive.cjs +1 -1
  57. package/dist/Incentives/PointsIncentive.js +2 -2
  58. package/dist/{SimpleDenyList-B8QeJthf.js → SimpleDenyList-ByAr4X1r.js} +3 -3
  59. package/dist/{SimpleDenyList-B8QeJthf.js.map → SimpleDenyList-ByAr4X1r.js.map} +1 -1
  60. package/dist/{SimpleDenyList-DIb4xX3j.cjs → SimpleDenyList-CsRXJPwm.cjs} +2 -2
  61. package/dist/{SimpleDenyList-DIb4xX3j.cjs.map → SimpleDenyList-CsRXJPwm.cjs.map} +1 -1
  62. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  63. package/dist/Validators/LimitedSignerValidator.js +2 -2
  64. package/dist/Validators/SignerValidator.cjs +1 -1
  65. package/dist/Validators/SignerValidator.js +2 -2
  66. package/dist/Validators/Validator.cjs +1 -1
  67. package/dist/Validators/Validator.js +1 -1
  68. package/dist/{deployments-COxshLqt.js → deployments-D0fs26TV.js} +16 -16
  69. package/dist/{deployments-COxshLqt.js.map → deployments-D0fs26TV.js.map} +1 -1
  70. package/dist/{deployments-BGpr4ppG.cjs → deployments-DoIOqxco.cjs} +2 -2
  71. package/dist/deployments-DoIOqxco.cjs.map +1 -0
  72. package/dist/deployments.json +3 -3
  73. package/dist/errors.cjs +1 -1
  74. package/dist/errors.cjs.map +1 -1
  75. package/dist/errors.d.ts +40 -0
  76. package/dist/errors.d.ts.map +1 -1
  77. package/dist/errors.js +42 -16
  78. package/dist/errors.js.map +1 -1
  79. package/dist/{generated-ClbO_ULI.js → generated-Cyvr_Tjx.js} +446 -438
  80. package/dist/generated-Cyvr_Tjx.js.map +1 -0
  81. package/dist/{generated-CRD9XfOT.cjs → generated-DtYPHhtX.cjs} +2 -2
  82. package/dist/generated-DtYPHhtX.cjs.map +1 -0
  83. package/dist/index.cjs +1 -1
  84. package/dist/index.js +160 -155
  85. package/package.json +1 -1
  86. package/src/Actions/EventAction.test.ts +294 -3
  87. package/src/Actions/EventAction.ts +417 -154
  88. package/src/BoostCore.test.ts +51 -3
  89. package/src/BoostCore.ts +73 -0
  90. package/src/Incentives/ERC20PeggedIncentive.ts +33 -4
  91. package/src/errors.ts +50 -0
  92. package/dist/Incentive-BpZePiOD.cjs +0 -2
  93. package/dist/Incentive-BpZePiOD.cjs.map +0 -1
  94. package/dist/Incentive-DBZHQ9Np.js.map +0 -1
  95. package/dist/deployments-BGpr4ppG.cjs.map +0 -1
  96. package/dist/generated-CRD9XfOT.cjs.map +0 -1
  97. package/dist/generated-ClbO_ULI.js.map +0 -1
@@ -1,128 +1,1503 @@
1
- import { bL as M, bM as V, bN as Z, bO as F, bP as f0 } from "../generated-ClbO_ULI.js";
2
- import { getTransaction as C, getTransactionReceipt as G } from "@wagmi/core";
3
- import { isAddressEqual as E, toEventSelector as Q, decodeEventLog as B, decodeFunctionData as Y, isAddress as e0, fromHex as _, zeroHash as k, encodeAbiParameters as t0, zeroAddress as b0 } from "viem";
4
- import { f as n0 } from "../deployments-COxshLqt.js";
5
- import { DeployableTarget as a0 } from "../Deployable/DeployableTarget.js";
6
- import { ValidationAbiMissingError as x, FunctionDataDecodeError as j, UnparseableAbiParamError as i0, DecodedArgsError as r0, UnrecognizedFilterTypeError as s0, FieldValueNotComparableError as K, InvalidNumericalCriteriaError as R, DecodedArgsMalformedError as o0, FieldValueUndefinedError as W, NoEventActionStepsProvidedError as c0, TooManyEventActionStepsProvidedError as d0 } from "../errors.js";
7
- import { RegistryType as u0, CheatCodes as N, TRANSFER_SIGNATURE as X } from "../utils.js";
8
- const l0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6080516123db6100c85f395f61034a01526123db5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611385565b610273565b6040516100c791906113ca565b60405180910390f35b6100ea60048036038101906100e59190611444565b6102ec565b6040516100f89291906114ff565b60405180910390f35b34801561010c575f80fd5b50610115610321565b604051610122919061153c565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c91906115cf565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611444565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e919061193b565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611985565b610648565b6040516101da9190611a36565b60405180910390f35b3480156101ee575f80fd5b5061020960048036038101906102049190611444565b610875565b6040516102169190611a56565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611adc565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611b04565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190612002565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a57610469611629565b5b600181111561047c5761047b611629565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660078111156105305761052f611629565b5b600781111561054257610541611629565b5b81526020015f820160019054906101000a900460ff16600381111561056a57610569611629565b5b600381111561057c5761057b611629565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612076565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612076565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b610650611216565b60048281548110610664576106636120a6565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a7611629565b5b60018111156106ba576106b9611629565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600781111561076e5761076d611629565b5b60078111156107805761077f611629565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a7611629565b5b60038111156107ba576107b9611629565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612076565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612076565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b161127b565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df611629565b5b60018111156108f2576108f1611629565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe82611110565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611189565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a63611629565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b45611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610bee57610bed611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612267565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610d6357610d62611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d91611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612267565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610ed857610ed7611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f06611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612267565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa4611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600781111561104d5761104c611629565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612267565b50505050507ff2cd382b92e0609edafee04c969decf0c2d04013cd112d0f0818268b11e84c69815f01518260200151836040015184606001518560800151604051611105959493929190612336565b60405180910390a150565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806111825750611181826111ad565b5b9050919050565b5f611192610a06565b905080546001166111aa5763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f600181111561123d5761123c611629565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020016112756112d3565b81525090565b6040518060a001604052805f600181111561129957611298611629565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f60078111156112f1576112f0611629565b5b81526020015f600381111561130957611308611629565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61136481611330565b811461136e575f80fd5b50565b5f8135905061137f8161135b565b92915050565b5f6020828403121561139a57611399611328565b5b5f6113a784828501611371565b91505092915050565b5f8115159050919050565b6113c4816113b0565b82525050565b5f6020820190506113dd5f8301846113bb565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611404576114036113e3565b5b8235905067ffffffffffffffff811115611421576114206113e7565b5b60208301915083600182028301111561143d5761143c6113eb565b5b9250929050565b5f806020838503121561145a57611459611328565b5b5f83013567ffffffffffffffff8111156114775761147661132c565b5b611483858286016113ef565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114d18261148f565b6114db8185611499565b93506114eb8185602086016114a9565b6114f4816114b7565b840191505092915050565b5f6040820190506115125f8301856113bb565b818103602083015261152481846114c7565b90509392505050565b61153681611330565b82525050565b5f60208201905061154f5f83018461152d565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61159761159261158d84611555565b611574565b611555565b9050919050565b5f6115a88261157d565b9050919050565b5f6115b98261159e565b9050919050565b6115c9816115af565b82525050565b5f6020820190506115e25f8301846115c0565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b61162381611611565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061166757611666611629565b5b50565b5f81905061167782611656565b919050565b5f6116868261166a565b9050919050565b6116968161167c565b82525050565b5f60ff82169050919050565b6116b18161169c565b82525050565b5f6116c182611555565b9050919050565b6116d1816116b7565b82525050565b5f819050919050565b6116e9816116d7565b82525050565b60088110611700576116ff611629565b5b50565b5f819050611710826116ef565b919050565b5f61171f82611703565b9050919050565b61172f81611715565b82525050565b6004811061174657611745611629565b5b50565b5f81905061175682611735565b919050565b5f61176582611749565b9050919050565b6117758161175b565b82525050565b5f82825260208201905092915050565b5f6117958261148f565b61179f818561177b565b93506117af8185602086016114a9565b6117b8816114b7565b840191505092915050565b5f608083015f8301516117d85f860182611726565b5060208301516117eb602086018261176c565b5060408301516117fe60408601826116a8565b5060608301518482036060860152611816828261178b565b9150508091505092915050565b5f60c083015f8301516118385f86018261161a565b50602083015161184b602086018261168d565b50604083015161185e60408601826116a8565b50606083015161187160608601826116c8565b50608083015161188460808601826116e0565b5060a083015184820360a086015261189c82826117c3565b9150508091505092915050565b5f6118b48383611823565b905092915050565b5f602082019050919050565b5f6118d2826115e8565b6118dc81856115f2565b9350836020820285016118ee85611602565b805f5b85811015611929578484038952815161190a85826118a9565b9450611915836118bc565b925060208a019950506001810190506118f1565b50829750879550505050505092915050565b5f6020820190508181035f83015261195381846118c8565b905092915050565b611964816116d7565b811461196e575f80fd5b50565b5f8135905061197f8161195b565b92915050565b5f6020828403121561199a57611999611328565b5b5f6119a784828501611971565b91505092915050565b5f60c083015f8301516119c55f86018261161a565b5060208301516119d8602086018261168d565b5060408301516119eb60408601826116a8565b5060608301516119fe60608601826116c8565b506080830151611a1160808601826116e0565b5060a083015184820360a0860152611a2982826117c3565b9150508091505092915050565b5f6020820190508181035f830152611a4e81846119b0565b905092915050565b5f6020820190508181035f830152611a6e81846114c7565b905092915050565b60a082015f820151611a8a5f85018261168d565b506020820151611a9d602085018261161a565b506040820151611ab060408501826116a8565b506060820151611ac360608501826116c8565b506080820151611ad660808501826116e0565b50505050565b5f60a082019050611aef5f830184611a76565b92915050565b611afe816116d7565b82525050565b5f602082019050611b175f830184611af5565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b57826114b7565b810181811067ffffffffffffffff82111715611b7657611b75611b21565b5b80604052505050565b5f611b8861131f565b9050611b948282611b4e565b919050565b5f80fd5b60028110611ba9575f80fd5b50565b5f81359050611bba81611b9d565b92915050565b611bc981611611565b8114611bd3575f80fd5b50565b5f81359050611be481611bc0565b92915050565b611bf38161169c565b8114611bfd575f80fd5b50565b5f81359050611c0e81611bea565b92915050565b611c1d816116b7565b8114611c27575f80fd5b50565b5f81359050611c3881611c14565b92915050565b5f60a08284031215611c5357611c52611b1d565b5b611c5d60a0611b7f565b90505f611c6c84828501611bac565b5f830152506020611c7f84828501611bd6565b6020830152506040611c9384828501611c00565b6040830152506060611ca784828501611c2a565b6060830152506080611cbb84828501611971565b60808301525092915050565b60088110611cd3575f80fd5b50565b5f81359050611ce481611cc7565b92915050565b60048110611cf6575f80fd5b50565b5f81359050611d0781611cea565b92915050565b5f80fd5b5f67ffffffffffffffff821115611d2b57611d2a611b21565b5b611d34826114b7565b9050602081019050919050565b828183375f83830152505050565b5f611d61611d5c84611d11565b611b7f565b905082815260208101848484011115611d7d57611d7c611d0d565b5b611d88848285611d41565b509392505050565b5f82601f830112611da457611da36113e3565b5b8135611db4848260208601611d4f565b91505092915050565b5f60808284031215611dd257611dd1611b1d565b5b611ddc6080611b7f565b90505f611deb84828501611cd6565b5f830152506020611dfe84828501611cf9565b6020830152506040611e1284828501611c00565b604083015250606082013567ffffffffffffffff811115611e3657611e35611b99565b5b611e4284828501611d90565b60608301525092915050565b5f60c08284031215611e6357611e62611b1d565b5b611e6d60c0611b7f565b90505f611e7c84828501611bd6565b5f830152506020611e8f84828501611bac565b6020830152506040611ea384828501611c00565b6040830152506060611eb784828501611c2a565b6060830152506080611ecb84828501611971565b60808301525060a082013567ffffffffffffffff811115611eef57611eee611b99565b5b611efb84828501611dbd565b60a08301525092915050565b5f6101208284031215611f1d57611f1c611b1d565b5b611f2760a0611b7f565b90505f611f3684828501611c3e565b5f8301525060a082013567ffffffffffffffff811115611f5957611f58611b99565b5b611f6584828501611e4e565b60208301525060c082013567ffffffffffffffff811115611f8957611f88611b99565b5b611f9584828501611e4e565b60408301525060e082013567ffffffffffffffff811115611fb957611fb8611b99565b5b611fc584828501611e4e565b60608301525061010082013567ffffffffffffffff811115611fea57611fe9611b99565b5b611ff684828501611e4e565b60808301525092915050565b5f6020828403121561201757612016611328565b5b5f82013567ffffffffffffffff8111156120345761203361132c565b5b61204084828501611f07565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061208d57607f821691505b6020821081036120a05761209f612049565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261212f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120f4565b61213986836120f4565b95508019841693508086168417925050509392505050565b5f61216b612166612161846116d7565b611574565b6116d7565b9050919050565b5f819050919050565b61218483612151565b61219861219082612172565b848454612100565b825550505050565b5f90565b6121ac6121a0565b6121b781848461217b565b505050565b5b818110156121da576121cf5f826121a4565b6001810190506121bd565b5050565b601f82111561221f576121f0816120d3565b6121f9846120e5565b81016020851015612208578190505b61221c612214856120e5565b8301826121bc565b50505b505050565b5f82821c905092915050565b5f61223f5f1984600802612224565b1980831691505092915050565b5f6122578383612230565b9150826002028217905092915050565b6122708261148f565b67ffffffffffffffff81111561228957612288611b21565b5b6122938254612076565b61229e8282856121de565b5f60209050601f8311600181146122cf575f84156122bd578287015190505b6122c7858261224c565b86555061232e565b601f1984166122dd866120d3565b5f5b82811015612304578489015182556001820191506020850194506020810190506122df565b86831015612321578489015161231d601f891682612230565b8355505b6001600288020188555050505b505050505050565b5f6101208201905061234a5f830188611a76565b81810360a083015261235c81876119b0565b905081810360c083015261237081866119b0565b905081810360e083015261238481856119b0565b905081810361010083015261239981846119b0565b9050969550505050505056fea2646970667358221220c439b0e7103744e8335fa5fdedab4933ee347354f81aabdc240c3ec23e6a35fb64736f6c634300081a0033", y = Symbol.for("@ts-pattern/matcher"), h0 = Symbol.for("@ts-pattern/isVariadic"), L = "@ts-pattern/anonymous-select-key", O = (t) => !!(t && typeof t == "object"), P = (t) => t && !!t[y], g = (t, f, e) => {
1
+ import { bL as F, bM as a0, bN as s0, bO as r0, bP as b0 } from "../generated-Cyvr_Tjx.js";
2
+ import { getTransaction as k, getTransactionReceipt as V } from "@wagmi/core";
3
+ import { isAddressEqual as N, toEventSelector as Q, decodeFunctionData as j, isAddress as X, decodeEventLog as O, zeroHash as S, fromHex as R, encodeAbiParameters as u0, zeroAddress as o0 } from "viem";
4
+ import { f as p0 } from "../deployments-D0fs26TV.js";
5
+ import { DeployableTarget as c0 } from "../Deployable/DeployableTarget.js";
6
+ import { ValidationAbiMissingError as _, FunctionDataDecodeError as K, UnparseableAbiParamError as $, DecodedArgsMalformedError as y0, DecodedArgsError as n0, FieldValueUndefinedError as z, InvalidTupleDecodingError as v, UnrecognizedFilterTypeError as l0, FieldValueNotComparableError as Y, InvalidNumericalCriteriaError as L, NoEventActionStepsProvidedError as h0, TooManyEventActionStepsProvidedError as g0, InvalidTupleEncodingError as Z } from "../errors.js";
7
+ import { RegistryType as x0, CheatCodes as C, TRANSFER_SIGNATURE as M } from "../utils.js";
8
+ const m0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6080516124506100c85f395f61034a01526124505ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b591906113b2565b610273565b6040516100c791906113f7565b60405180910390f35b6100ea60048036038101906100e59190611471565b6102ec565b6040516100f892919061152c565b60405180910390f35b34801561010c575f80fd5b50610115610321565b6040516101229190611569565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c91906115fc565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611471565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e9190611986565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c891906119d0565b610651565b6040516101da9190611a81565b60405180910390f35b3480156101ee575f80fd5b5061020960048036038101906102049190611471565b610887565b6040516102169190611aa1565b60405180910390f35b34801561022a575f80fd5b506102336108bb565b6040516102409190611b27565b60405180910390f35b348015610254575f80fd5b5061025d610993565b60405161026a9190611b4f565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261099f565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a18565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190612077565b610a41565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610648578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a57610469611656565b5b600181111561047c5761047b611656565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660078111156105305761052f611656565b5b600781111561054257610541611656565b5b81526020015f820160019054906101000a900460ff16600481111561056a57610569611656565b5b600481111561057c5761057b611656565b5b81526020015f820160029054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820180546105b5906120eb565b80601f01602080910402602001604051908101604052809291908181526020018280546105e1906120eb565b801561062c5780601f106106035761010080835404028352916020019161062c565b820191905f5260205f20905b81548152906001019060200180831161060f57829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b610659611240565b6004828154811061066d5761066c61211b565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106b1576106b0611656565b5b60018111156106c3576106c2611656565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600781111561077757610776611656565b5b600781111561078957610788611656565b5b81526020015f820160019054906101000a900460ff1660048111156107b1576107b0611656565b5b60048111156107c3576107c2611656565b5b81526020015f820160029054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820180546107fc906120eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610828906120eb565b80156108735780601f1061084a57610100808354040283529160200191610873565b820191905f5260205f20905b81548152906001019060200180831161085657829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108c36112a5565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108f2576108f1611656565b5b600181111561090457610903611656565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a115750610a108261113a565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a496111b3565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a7657610a75611656565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b5857610b57611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610c0057610bff611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610c2f57610c2e611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610c6f91906122dc565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cd357610cd2611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610d7b57610d7a611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610daa57610da9611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610dea91906122dc565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e4e57610e4d611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610ef657610ef5611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610f2557610f24611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610f6591906122dc565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fc957610fc8611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600781111561107157611070611656565b5b02179055506020820151815f0160016101000a81548160ff021916908360048111156110a05761109f611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160010190816110e091906122dc565b50505050507fdc8145a6c863ebd27b18aa903b7f82f1015527a05a81f227ef06ab79616082b4815f0151826020015183604001518460600151856080015160405161112f9594939291906123ab565b60405180910390a150565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806111ac57506111ab826111d7565b5b9050919050565b5f6111bc610a18565b905080546001166111d45763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f600181111561126757611266611656565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f815260200161129f6112fd565b81525090565b6040518060a001604052805f60018111156112c3576112c2611656565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600781111561131b5761131a611656565b5b81526020015f600481111561133357611332611656565b5b81526020015f63ffffffff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6113918161135d565b811461139b575f80fd5b50565b5f813590506113ac81611388565b92915050565b5f602082840312156113c7576113c6611355565b5b5f6113d48482850161139e565b91505092915050565b5f8115159050919050565b6113f1816113dd565b82525050565b5f60208201905061140a5f8301846113e8565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261143157611430611410565b5b8235905067ffffffffffffffff81111561144e5761144d611414565b5b60208301915083600182028301111561146a57611469611418565b5b9250929050565b5f806020838503121561148757611486611355565b5b5f83013567ffffffffffffffff8111156114a4576114a3611359565b5b6114b08582860161141c565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114fe826114bc565b61150881856114c6565b93506115188185602086016114d6565b611521816114e4565b840191505092915050565b5f60408201905061153f5f8301856113e8565b818103602083015261155181846114f4565b90509392505050565b6115638161135d565b82525050565b5f60208201905061157c5f83018461155a565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f6115c46115bf6115ba84611582565b6115a1565b611582565b9050919050565b5f6115d5826115aa565b9050919050565b5f6115e6826115cb565b9050919050565b6115f6816115dc565b82525050565b5f60208201905061160f5f8301846115ed565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6116508161163e565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061169457611693611656565b5b50565b5f8190506116a482611683565b919050565b5f6116b382611697565b9050919050565b6116c3816116a9565b82525050565b5f60ff82169050919050565b6116de816116c9565b82525050565b5f6116ee82611582565b9050919050565b6116fe816116e4565b82525050565b5f819050919050565b61171681611704565b82525050565b6008811061172d5761172c611656565b5b50565b5f81905061173d8261171c565b919050565b5f61174c82611730565b9050919050565b61175c81611742565b82525050565b6005811061177357611772611656565b5b50565b5f81905061178382611762565b919050565b5f61179282611776565b9050919050565b6117a281611788565b82525050565b5f63ffffffff82169050919050565b6117c0816117a8565b82525050565b5f82825260208201905092915050565b5f6117e0826114bc565b6117ea81856117c6565b93506117fa8185602086016114d6565b611803816114e4565b840191505092915050565b5f608083015f8301516118235f860182611753565b5060208301516118366020860182611799565b50604083015161184960408601826117b7565b506060830151848203606086015261186182826117d6565b9150508091505092915050565b5f60c083015f8301516118835f860182611647565b50602083015161189660208601826116ba565b5060408301516118a960408601826116d5565b5060608301516118bc60608601826116f5565b5060808301516118cf608086018261170d565b5060a083015184820360a08601526118e7828261180e565b9150508091505092915050565b5f6118ff838361186e565b905092915050565b5f602082019050919050565b5f61191d82611615565b611927818561161f565b9350836020820285016119398561162f565b805f5b85811015611974578484038952815161195585826118f4565b945061196083611907565b925060208a0199505060018101905061193c565b50829750879550505050505092915050565b5f6020820190508181035f83015261199e8184611913565b905092915050565b6119af81611704565b81146119b9575f80fd5b50565b5f813590506119ca816119a6565b92915050565b5f602082840312156119e5576119e4611355565b5b5f6119f2848285016119bc565b91505092915050565b5f60c083015f830151611a105f860182611647565b506020830151611a2360208601826116ba565b506040830151611a3660408601826116d5565b506060830151611a4960608601826116f5565b506080830151611a5c608086018261170d565b5060a083015184820360a0860152611a74828261180e565b9150508091505092915050565b5f6020820190508181035f830152611a9981846119fb565b905092915050565b5f6020820190508181035f830152611ab981846114f4565b905092915050565b60a082015f820151611ad55f8501826116ba565b506020820151611ae86020850182611647565b506040820151611afb60408501826116d5565b506060820151611b0e60608501826116f5565b506080820151611b21608085018261170d565b50505050565b5f60a082019050611b3a5f830184611ac1565b92915050565b611b4981611704565b82525050565b5f602082019050611b625f830184611b40565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611ba2826114e4565b810181811067ffffffffffffffff82111715611bc157611bc0611b6c565b5b80604052505050565b5f611bd361134c565b9050611bdf8282611b99565b919050565b5f80fd5b60028110611bf4575f80fd5b50565b5f81359050611c0581611be8565b92915050565b611c148161163e565b8114611c1e575f80fd5b50565b5f81359050611c2f81611c0b565b92915050565b611c3e816116c9565b8114611c48575f80fd5b50565b5f81359050611c5981611c35565b92915050565b611c68816116e4565b8114611c72575f80fd5b50565b5f81359050611c8381611c5f565b92915050565b5f60a08284031215611c9e57611c9d611b68565b5b611ca860a0611bca565b90505f611cb784828501611bf7565b5f830152506020611cca84828501611c21565b6020830152506040611cde84828501611c4b565b6040830152506060611cf284828501611c75565b6060830152506080611d06848285016119bc565b60808301525092915050565b60088110611d1e575f80fd5b50565b5f81359050611d2f81611d12565b92915050565b60058110611d41575f80fd5b50565b5f81359050611d5281611d35565b92915050565b611d61816117a8565b8114611d6b575f80fd5b50565b5f81359050611d7c81611d58565b92915050565b5f80fd5b5f67ffffffffffffffff821115611da057611d9f611b6c565b5b611da9826114e4565b9050602081019050919050565b828183375f83830152505050565b5f611dd6611dd184611d86565b611bca565b905082815260208101848484011115611df257611df1611d82565b5b611dfd848285611db6565b509392505050565b5f82601f830112611e1957611e18611410565b5b8135611e29848260208601611dc4565b91505092915050565b5f60808284031215611e4757611e46611b68565b5b611e516080611bca565b90505f611e6084828501611d21565b5f830152506020611e7384828501611d44565b6020830152506040611e8784828501611d6e565b604083015250606082013567ffffffffffffffff811115611eab57611eaa611be4565b5b611eb784828501611e05565b60608301525092915050565b5f60c08284031215611ed857611ed7611b68565b5b611ee260c0611bca565b90505f611ef184828501611c21565b5f830152506020611f0484828501611bf7565b6020830152506040611f1884828501611c4b565b6040830152506060611f2c84828501611c75565b6060830152506080611f40848285016119bc565b60808301525060a082013567ffffffffffffffff811115611f6457611f63611be4565b5b611f7084828501611e32565b60a08301525092915050565b5f6101208284031215611f9257611f91611b68565b5b611f9c60a0611bca565b90505f611fab84828501611c89565b5f8301525060a082013567ffffffffffffffff811115611fce57611fcd611be4565b5b611fda84828501611ec3565b60208301525060c082013567ffffffffffffffff811115611ffe57611ffd611be4565b5b61200a84828501611ec3565b60408301525060e082013567ffffffffffffffff81111561202e5761202d611be4565b5b61203a84828501611ec3565b60608301525061010082013567ffffffffffffffff81111561205f5761205e611be4565b5b61206b84828501611ec3565b60808301525092915050565b5f6020828403121561208c5761208b611355565b5b5f82013567ffffffffffffffff8111156120a9576120a8611359565b5b6120b584828501611f7c565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061210257607f821691505b602082108103612115576121146120be565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026121a47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612169565b6121ae8683612169565b95508019841693508086168417925050509392505050565b5f6121e06121db6121d684611704565b6115a1565b611704565b9050919050565b5f819050919050565b6121f9836121c6565b61220d612205826121e7565b848454612175565b825550505050565b5f90565b612221612215565b61222c8184846121f0565b505050565b5b8181101561224f576122445f82612219565b600181019050612232565b5050565b601f8211156122945761226581612148565b61226e8461215a565b8101602085101561227d578190505b6122916122898561215a565b830182612231565b50505b505050565b5f82821c905092915050565b5f6122b45f1984600802612299565b1980831691505092915050565b5f6122cc83836122a5565b9150826002028217905092915050565b6122e5826114bc565b67ffffffffffffffff8111156122fe576122fd611b6c565b5b61230882546120eb565b612313828285612253565b5f60209050601f831160018114612344575f8415612332578287015190505b61233c85826122c1565b8655506123a3565b601f19841661235286612148565b5f5b8281101561237957848901518255600182019150602085019450602081019050612354565b868310156123965784890151612392601f8916826122a5565b8355505b6001600288020188555050505b505050505050565b5f610120820190506123bf5f830188611ac1565b81810360a08301526123d181876119fb565b905081810360c08301526123e581866119fb565b905081810360e08301526123f981856119fb565b905081810361010083015261240e81846119fb565b9050969550505050505056fea2646970667358221220c7ff4a150897568d1b0cf381b80c7477adfb1d4a61c0f1dbe23de1a9fd54af2f64736f6c634300081a0033", w0 = {
9
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
10
+ name: "Transfer",
11
+ type: "event",
12
+ inputs: [
13
+ {
14
+ type: "address",
15
+ indexed: !0
16
+ },
17
+ {
18
+ type: "address",
19
+ indexed: !0
20
+ },
21
+ {
22
+ type: "uint256",
23
+ indexed: !0
24
+ }
25
+ ]
26
+ },
27
+ "Transfer(address indexed,address indexed,uint256 indexed)": {
28
+ name: "Transfer",
29
+ type: "event",
30
+ inputs: [
31
+ {
32
+ type: "address",
33
+ indexed: !0
34
+ },
35
+ {
36
+ type: "address",
37
+ indexed: !0
38
+ },
39
+ {
40
+ type: "uint256",
41
+ indexed: !0
42
+ }
43
+ ]
44
+ },
45
+ "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e": {
46
+ name: "Purchased",
47
+ type: "event",
48
+ inputs: [
49
+ {
50
+ type: "address",
51
+ indexed: !0
52
+ },
53
+ {
54
+ type: "address",
55
+ indexed: !0
56
+ },
57
+ {
58
+ type: "uint256",
59
+ indexed: !0
60
+ },
61
+ {
62
+ type: "uint256"
63
+ },
64
+ {
65
+ type: "uint256"
66
+ }
67
+ ]
68
+ },
69
+ "Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)": {
70
+ name: "Purchased",
71
+ type: "event",
72
+ inputs: [
73
+ {
74
+ type: "address",
75
+ indexed: !0
76
+ },
77
+ {
78
+ type: "address",
79
+ indexed: !0
80
+ },
81
+ {
82
+ type: "uint256",
83
+ indexed: !0
84
+ },
85
+ {
86
+ type: "uint256"
87
+ },
88
+ {
89
+ type: "uint256"
90
+ }
91
+ ]
92
+ },
93
+ "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27": {
94
+ name: "NameRegistered",
95
+ type: "event",
96
+ inputs: [
97
+ {
98
+ type: "string"
99
+ },
100
+ {
101
+ type: "bytes32",
102
+ indexed: !0
103
+ },
104
+ {
105
+ type: "address",
106
+ indexed: !0
107
+ },
108
+ {
109
+ type: "uint256"
110
+ },
111
+ {
112
+ type: "uint256"
113
+ },
114
+ {
115
+ type: "uint256"
116
+ }
117
+ ]
118
+ },
119
+ "NameRegistered(string,bytes32 indexed,address indexed,uint256,uint256,uint256)": {
120
+ name: "NameRegistered",
121
+ type: "event",
122
+ inputs: [
123
+ {
124
+ type: "string"
125
+ },
126
+ {
127
+ type: "bytes32",
128
+ indexed: !0
129
+ },
130
+ {
131
+ type: "address",
132
+ indexed: !0
133
+ },
134
+ {
135
+ type: "uint256"
136
+ },
137
+ {
138
+ type: "uint256"
139
+ },
140
+ {
141
+ type: "uint256"
142
+ }
143
+ ]
144
+ },
145
+ "0x0667086d08417333ce63f40d5bc2ef6fd330e25aaaf317b7c489541f8fe600fa": {
146
+ name: "NameRegistered",
147
+ type: "event",
148
+ inputs: [
149
+ {
150
+ type: "string"
151
+ },
152
+ {
153
+ type: "bytes32",
154
+ indexed: !0
155
+ },
156
+ {
157
+ type: "address",
158
+ indexed: !0
159
+ },
160
+ {
161
+ type: "uint256"
162
+ }
163
+ ]
164
+ },
165
+ "NameRegistered(string,bytes32 indexed,address indexed,uint256)": {
166
+ name: "NameRegistered",
167
+ type: "event",
168
+ inputs: [
169
+ {
170
+ type: "string"
171
+ },
172
+ {
173
+ type: "bytes32",
174
+ indexed: !0
175
+ },
176
+ {
177
+ type: "address",
178
+ indexed: !0
179
+ },
180
+ {
181
+ type: "uint256"
182
+ }
183
+ ]
184
+ },
185
+ "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f": {
186
+ name: "DelegateChanged",
187
+ type: "event",
188
+ inputs: [
189
+ {
190
+ type: "address",
191
+ indexed: !0
192
+ },
193
+ {
194
+ type: "address",
195
+ indexed: !0
196
+ },
197
+ {
198
+ type: "address",
199
+ indexed: !0
200
+ }
201
+ ]
202
+ },
203
+ "DelegateChanged(address indexed,address indexed,address indexed)": {
204
+ name: "DelegateChanged",
205
+ type: "event",
206
+ inputs: [
207
+ {
208
+ type: "address",
209
+ indexed: !0
210
+ },
211
+ {
212
+ type: "address",
213
+ indexed: !0
214
+ },
215
+ {
216
+ type: "address",
217
+ indexed: !0
218
+ }
219
+ ]
220
+ },
221
+ "0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0": {
222
+ name: "SwappedV3",
223
+ type: "event",
224
+ inputs: [
225
+ {
226
+ type: "bytes16"
227
+ },
228
+ {
229
+ type: "address"
230
+ },
231
+ {
232
+ type: "uint256"
233
+ },
234
+ {
235
+ type: "address"
236
+ },
237
+ {
238
+ type: "address",
239
+ indexed: !0
240
+ },
241
+ {
242
+ type: "address",
243
+ indexed: !0
244
+ },
245
+ {
246
+ type: "address",
247
+ indexed: !0
248
+ },
249
+ {
250
+ type: "uint256"
251
+ },
252
+ {
253
+ type: "uint256"
254
+ },
255
+ {
256
+ type: "uint256"
257
+ }
258
+ ]
259
+ },
260
+ "SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)": {
261
+ name: "SwappedV3",
262
+ type: "event",
263
+ inputs: [
264
+ {
265
+ type: "bytes16"
266
+ },
267
+ {
268
+ type: "address"
269
+ },
270
+ {
271
+ type: "uint256"
272
+ },
273
+ {
274
+ type: "address"
275
+ },
276
+ {
277
+ type: "address",
278
+ indexed: !0
279
+ },
280
+ {
281
+ type: "address",
282
+ indexed: !0
283
+ },
284
+ {
285
+ type: "address",
286
+ indexed: !0
287
+ },
288
+ {
289
+ type: "uint256"
290
+ },
291
+ {
292
+ type: "uint256"
293
+ },
294
+ {
295
+ type: "uint256"
296
+ }
297
+ ]
298
+ },
299
+ "0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4": {
300
+ name: "VoteCast",
301
+ type: "event",
302
+ inputs: [
303
+ {
304
+ type: "address",
305
+ indexed: !0
306
+ },
307
+ {
308
+ type: "uint256"
309
+ },
310
+ {
311
+ type: "uint8"
312
+ },
313
+ {
314
+ type: "uint256"
315
+ },
316
+ {
317
+ type: "string"
318
+ }
319
+ ]
320
+ },
321
+ "VoteCast(address indexed,uint256,uint8,uint256,string)": {
322
+ name: "VoteCast",
323
+ type: "event",
324
+ inputs: [
325
+ {
326
+ type: "address",
327
+ indexed: !0
328
+ },
329
+ {
330
+ type: "uint256"
331
+ },
332
+ {
333
+ type: "uint8"
334
+ },
335
+ {
336
+ type: "uint256"
337
+ },
338
+ {
339
+ type: "string"
340
+ }
341
+ ]
342
+ },
343
+ "0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa": {
344
+ name: "Minted",
345
+ type: "event",
346
+ inputs: [
347
+ {
348
+ type: "uint8"
349
+ },
350
+ {
351
+ type: "address"
352
+ },
353
+ {
354
+ type: "uint256"
355
+ },
356
+ {
357
+ type: "uint256"
358
+ }
359
+ ]
360
+ },
361
+ "Minted(uint8,address,uint256,uint256)": {
362
+ name: "Minted",
363
+ type: "event",
364
+ inputs: [
365
+ {
366
+ type: "uint8"
367
+ },
368
+ {
369
+ type: "address"
370
+ },
371
+ {
372
+ type: "uint256"
373
+ },
374
+ {
375
+ type: "uint256"
376
+ }
377
+ ]
378
+ },
379
+ "0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888": {
380
+ name: "Minted",
381
+ type: "event",
382
+ inputs: [
383
+ {
384
+ type: "address",
385
+ indexed: !0
386
+ },
387
+ {
388
+ type: "uint8"
389
+ },
390
+ {
391
+ type: "uint8"
392
+ },
393
+ {
394
+ type: "address",
395
+ indexed: !0
396
+ },
397
+ {
398
+ type: "tuple",
399
+ components: [
400
+ {
401
+ type: "uint32"
402
+ },
403
+ {
404
+ type: "uint256"
405
+ },
406
+ {
407
+ type: "address"
408
+ },
409
+ {
410
+ type: "uint32"
411
+ },
412
+ {
413
+ type: "uint32"
414
+ },
415
+ {
416
+ type: "uint32"
417
+ },
418
+ {
419
+ type: "address"
420
+ },
421
+ {
422
+ type: "bool"
423
+ },
424
+ {
425
+ type: "uint256"
426
+ },
427
+ {
428
+ type: "uint256"
429
+ },
430
+ {
431
+ type: "uint256"
432
+ },
433
+ {
434
+ type: "uint256"
435
+ },
436
+ {
437
+ type: "uint256"
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ type: "uint256",
443
+ indexed: !0
444
+ }
445
+ ]
446
+ },
447
+ "Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)": {
448
+ name: "Minted",
449
+ type: "event",
450
+ inputs: [
451
+ {
452
+ type: "address",
453
+ indexed: !0
454
+ },
455
+ {
456
+ type: "uint8"
457
+ },
458
+ {
459
+ type: "uint8"
460
+ },
461
+ {
462
+ type: "address",
463
+ indexed: !0
464
+ },
465
+ {
466
+ type: "tuple",
467
+ components: [
468
+ {
469
+ type: "uint32"
470
+ },
471
+ {
472
+ type: "uint256"
473
+ },
474
+ {
475
+ type: "address"
476
+ },
477
+ {
478
+ type: "uint32"
479
+ },
480
+ {
481
+ type: "uint32"
482
+ },
483
+ {
484
+ type: "uint32"
485
+ },
486
+ {
487
+ type: "address"
488
+ },
489
+ {
490
+ type: "bool"
491
+ },
492
+ {
493
+ type: "uint256"
494
+ },
495
+ {
496
+ type: "uint256"
497
+ },
498
+ {
499
+ type: "uint256"
500
+ },
501
+ {
502
+ type: "uint256"
503
+ },
504
+ {
505
+ type: "uint256"
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ type: "uint256",
511
+ indexed: !0
512
+ }
513
+ ]
514
+ },
515
+ "0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8": {
516
+ name: "ZoraTimedSaleStrategyRewards",
517
+ type: "event",
518
+ inputs: [
519
+ {
520
+ type: "address",
521
+ indexed: !0
522
+ },
523
+ {
524
+ type: "uint256",
525
+ indexed: !0
526
+ },
527
+ {
528
+ type: "address"
529
+ },
530
+ {
531
+ type: "uint256"
532
+ },
533
+ {
534
+ type: "address"
535
+ },
536
+ {
537
+ type: "uint256"
538
+ },
539
+ {
540
+ type: "address"
541
+ },
542
+ {
543
+ type: "uint256"
544
+ },
545
+ {
546
+ type: "address"
547
+ },
548
+ {
549
+ type: "uint256"
550
+ },
551
+ {
552
+ type: "address"
553
+ },
554
+ {
555
+ type: "uint256"
556
+ }
557
+ ]
558
+ },
559
+ "ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)": {
560
+ name: "ZoraTimedSaleStrategyRewards",
561
+ type: "event",
562
+ inputs: [
563
+ {
564
+ type: "address",
565
+ indexed: !0
566
+ },
567
+ {
568
+ type: "uint256",
569
+ indexed: !0
570
+ },
571
+ {
572
+ type: "address"
573
+ },
574
+ {
575
+ type: "uint256"
576
+ },
577
+ {
578
+ type: "address"
579
+ },
580
+ {
581
+ type: "uint256"
582
+ },
583
+ {
584
+ type: "address"
585
+ },
586
+ {
587
+ type: "uint256"
588
+ },
589
+ {
590
+ type: "address"
591
+ },
592
+ {
593
+ type: "uint256"
594
+ },
595
+ {
596
+ type: "address"
597
+ },
598
+ {
599
+ type: "uint256"
600
+ }
601
+ ]
602
+ },
603
+ "0x0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b259547": {
604
+ name: "BoostClaimed",
605
+ type: "event",
606
+ inputs: [
607
+ {
608
+ type: "uint256",
609
+ indexed: !0
610
+ },
611
+ {
612
+ type: "uint256",
613
+ indexed: !0
614
+ },
615
+ {
616
+ type: "address",
617
+ indexed: !0
618
+ },
619
+ {
620
+ type: "address"
621
+ },
622
+ {
623
+ type: "bytes"
624
+ }
625
+ ]
626
+ },
627
+ "BoostClaimed(uint256 indexed,uint256 indexed,address indexed,address,bytes)": {
628
+ name: "BoostClaimed",
629
+ type: "event",
630
+ inputs: [
631
+ {
632
+ type: "uint256",
633
+ indexed: !0
634
+ },
635
+ {
636
+ type: "uint256",
637
+ indexed: !0
638
+ },
639
+ {
640
+ type: "address",
641
+ indexed: !0
642
+ },
643
+ {
644
+ type: "address"
645
+ },
646
+ {
647
+ type: "bytes"
648
+ }
649
+ ]
650
+ },
651
+ "0x116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd": {
652
+ name: "BoostCreated",
653
+ type: "event",
654
+ inputs: [
655
+ {
656
+ type: "uint256",
657
+ indexed: !0
658
+ },
659
+ {
660
+ type: "address",
661
+ indexed: !0
662
+ },
663
+ {
664
+ type: "address",
665
+ indexed: !0
666
+ },
667
+ {
668
+ type: "uint256"
669
+ },
670
+ {
671
+ type: "address"
672
+ },
673
+ {
674
+ type: "address"
675
+ },
676
+ {
677
+ type: "address"
678
+ }
679
+ ]
680
+ },
681
+ "BoostCreated(uint256 indexed,address indexed,address indexed,uint256,address,address,address)": {
682
+ name: "BoostCreated",
683
+ type: "event",
684
+ inputs: [
685
+ {
686
+ type: "uint256",
687
+ indexed: !0
688
+ },
689
+ {
690
+ type: "address",
691
+ indexed: !0
692
+ },
693
+ {
694
+ type: "address",
695
+ indexed: !0
696
+ },
697
+ {
698
+ type: "uint256"
699
+ },
700
+ {
701
+ type: "address"
702
+ },
703
+ {
704
+ type: "address"
705
+ },
706
+ {
707
+ type: "address"
708
+ }
709
+ ]
710
+ },
711
+ "0x72d6b4b5ad0fb12b8a7bb3bcb60edd774c096403d611437859c156ecb3c03a36": {
712
+ name: "SecondaryBuy",
713
+ type: "event",
714
+ inputs: [
715
+ {
716
+ type: "address",
717
+ indexed: !0
718
+ },
719
+ {
720
+ type: "address",
721
+ indexed: !0
722
+ },
723
+ {
724
+ type: "address",
725
+ indexed: !0
726
+ },
727
+ {
728
+ type: "uint256"
729
+ },
730
+ {
731
+ type: "uint256"
732
+ }
733
+ ]
734
+ },
735
+ "SecondaryBuy(address indexed,address indexed,address indexed,uint256,uint256)": {
736
+ name: "SecondaryBuy",
737
+ type: "event",
738
+ inputs: [
739
+ {
740
+ type: "address",
741
+ indexed: !0
742
+ },
743
+ {
744
+ type: "address",
745
+ indexed: !0
746
+ },
747
+ {
748
+ type: "address",
749
+ indexed: !0
750
+ },
751
+ {
752
+ type: "uint256"
753
+ },
754
+ {
755
+ type: "uint256"
756
+ }
757
+ ]
758
+ },
759
+ "0x6779abc30cb1bfb05c1170de8e2ef5828c19a2590043d2fd9579d945929fd8a4": {
760
+ name: "CoopTokenBuy",
761
+ type: "event",
762
+ inputs: [
763
+ {
764
+ type: "address",
765
+ indexed: !0
766
+ },
767
+ {
768
+ type: "address",
769
+ indexed: !0
770
+ },
771
+ {
772
+ type: "address",
773
+ indexed: !0
774
+ },
775
+ {
776
+ type: "uint256"
777
+ },
778
+ {
779
+ type: "uint256"
780
+ },
781
+ {
782
+ type: "uint256"
783
+ },
784
+ {
785
+ type: "uint256"
786
+ },
787
+ {
788
+ type: "uint256"
789
+ },
790
+ {
791
+ type: "string"
792
+ },
793
+ {
794
+ type: "uint256"
795
+ },
796
+ {
797
+ type: "uint8"
798
+ }
799
+ ]
800
+ },
801
+ "CoopTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": {
802
+ name: "CoopTokenBuy",
803
+ type: "event",
804
+ inputs: [
805
+ {
806
+ type: "address",
807
+ indexed: !0
808
+ },
809
+ {
810
+ type: "address",
811
+ indexed: !0
812
+ },
813
+ {
814
+ type: "address",
815
+ indexed: !0
816
+ },
817
+ {
818
+ type: "uint256"
819
+ },
820
+ {
821
+ type: "uint256"
822
+ },
823
+ {
824
+ type: "uint256"
825
+ },
826
+ {
827
+ type: "uint256"
828
+ },
829
+ {
830
+ type: "uint256"
831
+ },
832
+ {
833
+ type: "string"
834
+ },
835
+ {
836
+ type: "uint256"
837
+ },
838
+ {
839
+ type: "uint8"
840
+ }
841
+ ]
842
+ },
843
+ "0x49c4606c4f7f601127761fb65a512e6bca424f62b165476cf1cfdfa51772a6ab": {
844
+ name: "WowTokenBuy",
845
+ type: "event",
846
+ inputs: [
847
+ {
848
+ type: "address",
849
+ indexed: !0
850
+ },
851
+ {
852
+ type: "address",
853
+ indexed: !0
854
+ },
855
+ {
856
+ type: "address",
857
+ indexed: !0
858
+ },
859
+ {
860
+ type: "uint256"
861
+ },
862
+ {
863
+ type: "uint256"
864
+ },
865
+ {
866
+ type: "uint256"
867
+ },
868
+ {
869
+ type: "uint256"
870
+ },
871
+ {
872
+ type: "uint256"
873
+ },
874
+ {
875
+ type: "string"
876
+ },
877
+ {
878
+ type: "uint256"
879
+ },
880
+ {
881
+ type: "uint8"
882
+ }
883
+ ]
884
+ },
885
+ "WowTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": {
886
+ name: "WowTokenBuy",
887
+ type: "event",
888
+ inputs: [
889
+ {
890
+ type: "address",
891
+ indexed: !0
892
+ },
893
+ {
894
+ type: "address",
895
+ indexed: !0
896
+ },
897
+ {
898
+ type: "address",
899
+ indexed: !0
900
+ },
901
+ {
902
+ type: "uint256"
903
+ },
904
+ {
905
+ type: "uint256"
906
+ },
907
+ {
908
+ type: "uint256"
909
+ },
910
+ {
911
+ type: "uint256"
912
+ },
913
+ {
914
+ type: "uint256"
915
+ },
916
+ {
917
+ type: "string"
918
+ },
919
+ {
920
+ type: "uint256"
921
+ },
922
+ {
923
+ type: "uint8"
924
+ }
925
+ ]
926
+ },
927
+ "0xeb3adfe7d8294092cd6b0e7ce95ed01c11d3c5d5d3dc1fecdeb87de43c5e40b2": {
928
+ name: "CoopTokenSell",
929
+ type: "event",
930
+ inputs: [
931
+ {
932
+ type: "address",
933
+ indexed: !0
934
+ },
935
+ {
936
+ type: "address",
937
+ indexed: !0
938
+ },
939
+ {
940
+ type: "address",
941
+ indexed: !0
942
+ },
943
+ {
944
+ type: "uint256"
945
+ },
946
+ {
947
+ type: "uint256"
948
+ },
949
+ {
950
+ type: "uint256"
951
+ },
952
+ {
953
+ type: "uint256"
954
+ },
955
+ {
956
+ type: "uint256"
957
+ },
958
+ {
959
+ type: "string"
960
+ },
961
+ {
962
+ type: "uint256"
963
+ },
964
+ {
965
+ type: "uint8"
966
+ }
967
+ ]
968
+ },
969
+ "CoopTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": {
970
+ name: "CoopTokenSell",
971
+ type: "event",
972
+ inputs: [
973
+ {
974
+ type: "address",
975
+ indexed: !0
976
+ },
977
+ {
978
+ type: "address",
979
+ indexed: !0
980
+ },
981
+ {
982
+ type: "address",
983
+ indexed: !0
984
+ },
985
+ {
986
+ type: "uint256"
987
+ },
988
+ {
989
+ type: "uint256"
990
+ },
991
+ {
992
+ type: "uint256"
993
+ },
994
+ {
995
+ type: "uint256"
996
+ },
997
+ {
998
+ type: "uint256"
999
+ },
1000
+ {
1001
+ type: "string"
1002
+ },
1003
+ {
1004
+ type: "uint256"
1005
+ },
1006
+ {
1007
+ type: "uint8"
1008
+ }
1009
+ ]
1010
+ },
1011
+ "0x0693c83d190a3d36d2ed6c3ac51b1335d2a3588d96f3f3601c8b1e780d0f952a": {
1012
+ name: "WowTokenSell",
1013
+ type: "event",
1014
+ inputs: [
1015
+ {
1016
+ type: "address",
1017
+ indexed: !0
1018
+ },
1019
+ {
1020
+ type: "address",
1021
+ indexed: !0
1022
+ },
1023
+ {
1024
+ type: "address",
1025
+ indexed: !0
1026
+ },
1027
+ {
1028
+ type: "uint256"
1029
+ },
1030
+ {
1031
+ type: "uint256"
1032
+ },
1033
+ {
1034
+ type: "uint256"
1035
+ },
1036
+ {
1037
+ type: "uint256"
1038
+ },
1039
+ {
1040
+ type: "uint256"
1041
+ },
1042
+ {
1043
+ type: "string"
1044
+ },
1045
+ {
1046
+ type: "uint256"
1047
+ },
1048
+ {
1049
+ type: "uint8"
1050
+ }
1051
+ ]
1052
+ },
1053
+ "WowTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": {
1054
+ name: "WowTokenSell",
1055
+ type: "event",
1056
+ inputs: [
1057
+ {
1058
+ type: "address",
1059
+ indexed: !0
1060
+ },
1061
+ {
1062
+ type: "address",
1063
+ indexed: !0
1064
+ },
1065
+ {
1066
+ type: "address",
1067
+ indexed: !0
1068
+ },
1069
+ {
1070
+ type: "uint256"
1071
+ },
1072
+ {
1073
+ type: "uint256"
1074
+ },
1075
+ {
1076
+ type: "uint256"
1077
+ },
1078
+ {
1079
+ type: "uint256"
1080
+ },
1081
+ {
1082
+ type: "uint256"
1083
+ },
1084
+ {
1085
+ type: "string"
1086
+ },
1087
+ {
1088
+ type: "uint256"
1089
+ },
1090
+ {
1091
+ type: "uint8"
1092
+ }
1093
+ ]
1094
+ },
1095
+ "0xd5468362e31bdcdc9884e72dcf3b00f9d46086067621224b7cb759308d597c6c": {
1096
+ name: "CoopTokenFees",
1097
+ type: "event",
1098
+ inputs: [
1099
+ {
1100
+ type: "address",
1101
+ indexed: !0
1102
+ },
1103
+ {
1104
+ type: "address",
1105
+ indexed: !0
1106
+ },
1107
+ {
1108
+ type: "address",
1109
+ indexed: !0
1110
+ },
1111
+ {
1112
+ type: "address"
1113
+ },
1114
+ {
1115
+ type: "uint256"
1116
+ },
1117
+ {
1118
+ type: "uint256"
1119
+ },
1120
+ {
1121
+ type: "uint256"
1122
+ },
1123
+ {
1124
+ type: "uint256"
1125
+ }
1126
+ ]
1127
+ },
1128
+ "CoopTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)": {
1129
+ name: "CoopTokenFees",
1130
+ type: "event",
1131
+ inputs: [
1132
+ {
1133
+ type: "address",
1134
+ indexed: !0
1135
+ },
1136
+ {
1137
+ type: "address",
1138
+ indexed: !0
1139
+ },
1140
+ {
1141
+ type: "address",
1142
+ indexed: !0
1143
+ },
1144
+ {
1145
+ type: "address"
1146
+ },
1147
+ {
1148
+ type: "uint256"
1149
+ },
1150
+ {
1151
+ type: "uint256"
1152
+ },
1153
+ {
1154
+ type: "uint256"
1155
+ },
1156
+ {
1157
+ type: "uint256"
1158
+ }
1159
+ ]
1160
+ },
1161
+ "0xf349fe0373a901f0506d5343f4a872f385a7f0c26371d7b9e6bf5584b69d75fc": {
1162
+ name: "WowTokenFees",
1163
+ type: "event",
1164
+ inputs: [
1165
+ {
1166
+ type: "address",
1167
+ indexed: !0
1168
+ },
1169
+ {
1170
+ type: "address",
1171
+ indexed: !0
1172
+ },
1173
+ {
1174
+ type: "address",
1175
+ indexed: !0
1176
+ },
1177
+ {
1178
+ type: "address"
1179
+ },
1180
+ {
1181
+ type: "uint256"
1182
+ },
1183
+ {
1184
+ type: "uint256"
1185
+ },
1186
+ {
1187
+ type: "uint256"
1188
+ },
1189
+ {
1190
+ type: "uint256"
1191
+ }
1192
+ ]
1193
+ },
1194
+ "WowTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)": {
1195
+ name: "WowTokenFees",
1196
+ type: "event",
1197
+ inputs: [
1198
+ {
1199
+ type: "address",
1200
+ indexed: !0
1201
+ },
1202
+ {
1203
+ type: "address",
1204
+ indexed: !0
1205
+ },
1206
+ {
1207
+ type: "address",
1208
+ indexed: !0
1209
+ },
1210
+ {
1211
+ type: "address"
1212
+ },
1213
+ {
1214
+ type: "uint256"
1215
+ },
1216
+ {
1217
+ type: "uint256"
1218
+ },
1219
+ {
1220
+ type: "uint256"
1221
+ },
1222
+ {
1223
+ type: "uint256"
1224
+ }
1225
+ ]
1226
+ },
1227
+ "0x3be2a577c218a9e2fca79115ab0381630afc182ee832bcad4011c37d323b4843": {
1228
+ name: "CoopTokenTransfer",
1229
+ type: "event",
1230
+ inputs: [
1231
+ {
1232
+ type: "address",
1233
+ indexed: !0
1234
+ },
1235
+ {
1236
+ type: "address",
1237
+ indexed: !0
1238
+ },
1239
+ {
1240
+ type: "uint256"
1241
+ },
1242
+ {
1243
+ type: "uint256"
1244
+ },
1245
+ {
1246
+ type: "uint256"
1247
+ },
1248
+ {
1249
+ type: "uint256"
1250
+ }
1251
+ ]
1252
+ },
1253
+ "CoopTokenTransfer(address indexed,address indexed,uint256,uint256,uint256,uint256)": {
1254
+ name: "CoopTokenTransfer",
1255
+ type: "event",
1256
+ inputs: [
1257
+ {
1258
+ type: "address",
1259
+ indexed: !0
1260
+ },
1261
+ {
1262
+ type: "address",
1263
+ indexed: !0
1264
+ },
1265
+ {
1266
+ type: "uint256"
1267
+ },
1268
+ {
1269
+ type: "uint256"
1270
+ },
1271
+ {
1272
+ type: "uint256"
1273
+ },
1274
+ {
1275
+ type: "uint256"
1276
+ }
1277
+ ]
1278
+ },
1279
+ "0xd19736ba1cd2ffc8c99f90d6c6163e59274d333c89e471cd6668d93849835ac5": {
1280
+ name: "WowTokenTransfer",
1281
+ type: "event",
1282
+ inputs: [
1283
+ {
1284
+ type: "address",
1285
+ indexed: !0
1286
+ },
1287
+ {
1288
+ type: "address",
1289
+ indexed: !0
1290
+ },
1291
+ {
1292
+ type: "uint256"
1293
+ },
1294
+ {
1295
+ type: "uint256"
1296
+ },
1297
+ {
1298
+ type: "uint256"
1299
+ },
1300
+ {
1301
+ type: "uint256"
1302
+ }
1303
+ ]
1304
+ },
1305
+ "WowTokenTransfer(address indexed,address indexed,uint256,uint256,uint256,uint256)": {
1306
+ name: "WowTokenTransfer",
1307
+ type: "event",
1308
+ inputs: [
1309
+ {
1310
+ type: "address",
1311
+ indexed: !0
1312
+ },
1313
+ {
1314
+ type: "address",
1315
+ indexed: !0
1316
+ },
1317
+ {
1318
+ type: "uint256"
1319
+ },
1320
+ {
1321
+ type: "uint256"
1322
+ },
1323
+ {
1324
+ type: "uint256"
1325
+ },
1326
+ {
1327
+ type: "uint256"
1328
+ }
1329
+ ]
1330
+ },
1331
+ "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b": {
1332
+ name: "InfoIndexed",
1333
+ type: "event",
1334
+ inputs: [
1335
+ {
1336
+ type: "address",
1337
+ indexed: !0
1338
+ },
1339
+ {
1340
+ type: "string",
1341
+ indexed: !0
1342
+ }
1343
+ ]
1344
+ },
1345
+ "InfoIndexed(address indexed,string indexed)": {
1346
+ name: "InfoIndexed",
1347
+ type: "event",
1348
+ inputs: [
1349
+ {
1350
+ type: "address",
1351
+ indexed: !0
1352
+ },
1353
+ {
1354
+ type: "string",
1355
+ indexed: !0
1356
+ }
1357
+ ]
1358
+ },
1359
+ "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c": {
1360
+ name: "Info",
1361
+ type: "event",
1362
+ inputs: [
1363
+ {
1364
+ type: "address"
1365
+ },
1366
+ {
1367
+ type: "string"
1368
+ }
1369
+ ]
1370
+ },
1371
+ "Info(address,string)": {
1372
+ name: "Info",
1373
+ type: "event",
1374
+ inputs: [
1375
+ {
1376
+ type: "address"
1377
+ },
1378
+ {
1379
+ type: "string"
1380
+ }
1381
+ ]
1382
+ }
1383
+ }, h = Symbol.for("@ts-pattern/matcher"), A0 = Symbol.for("@ts-pattern/isVariadic"), D = "@ts-pattern/anonymous-select-key", H = (t) => !!(t && typeof t == "object"), P = (t) => t && !!t[h], l = (t, f, e) => {
9
1384
  if (P(t)) {
10
- const b = t[y](), { matched: n, selections: a } = b.match(f);
11
- return n && a && Object.keys(a).forEach((i) => e(i, a[i])), n;
1385
+ const n = t[h](), { matched: d, selections: i } = n.match(f);
1386
+ return d && i && Object.keys(i).forEach((a) => e(a, i[a])), d;
12
1387
  }
13
- if (O(t)) {
14
- if (!O(f)) return !1;
1388
+ if (H(t)) {
1389
+ if (!H(f)) return !1;
15
1390
  if (Array.isArray(t)) {
16
1391
  if (!Array.isArray(f)) return !1;
17
- let b = [], n = [], a = [];
18
- for (const i of t.keys()) {
19
- const r = t[i];
20
- P(r) && r[h0] ? 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), o = f.slice(b.length, n.length === 0 ? 1 / 0 : -n.length);
26
- return b.every((d, v) => g(d, i[v], e)) && n.every((d, v) => g(d, r[v], e)) && (a.length === 0 || g(a[0], o, e));
27
- }
28
- return t.length === f.length && t.every((i, r) => g(i, f[r], e));
1392
+ let n = [], d = [], i = [];
1393
+ for (const a of t.keys()) {
1394
+ const s = t[a];
1395
+ P(s) && s[A0] ? i.push(s) : i.length ? d.push(s) : n.push(s);
1396
+ }
1397
+ if (i.length) {
1398
+ if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
1399
+ if (f.length < n.length + d.length) return !1;
1400
+ const a = f.slice(0, n.length), s = d.length === 0 ? [] : f.slice(-d.length), r = f.slice(n.length, d.length === 0 ? 1 / 0 : -d.length);
1401
+ return n.every((o, E) => l(o, a[E], e)) && d.every((o, E) => l(o, s[E], e)) && (i.length === 0 || l(i[0], r, e));
1402
+ }
1403
+ return t.length === f.length && t.every((a, s) => l(a, f[s], e));
29
1404
  }
30
- return Reflect.ownKeys(t).every((b) => {
31
- const n = t[b];
32
- return (b in f || P(a = n) && a[y]().matcherType === "optional") && g(n, f[b], e);
33
- var a;
1405
+ return Reflect.ownKeys(t).every((n) => {
1406
+ const d = t[n];
1407
+ return (n in f || P(i = d) && i[h]().matcherType === "optional") && l(d, f[n], e);
1408
+ var i;
34
1409
  });
35
1410
  }
36
1411
  return Object.is(f, t);
37
- }, T = (t) => {
38
- var f, e, b;
39
- return O(t) ? P(t) ? (f = (e = (b = t[y]()).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: () => g0(t), and: (f) => c(t, f), or: (f) => y0(t, f), select: (f) => f === void 0 ? z(t) : z(f, t) });
1412
+ }, A = (t) => {
1413
+ var f, e, n;
1414
+ return H(t) ? P(t) ? (f = (e = (n = t[h]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? B(t, A) : B(Object.values(t), A) : [];
1415
+ }, B = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
1416
+ function p(t) {
1417
+ return Object.assign(t, { optional: () => v0(t), and: (f) => u(t, f), or: (f) => T0(t, f), select: (f) => f === void 0 ? q(t) : q(f, t) });
43
1418
  }
44
- function g0(t) {
45
- return u({ [y]: () => ({ match: (f) => {
1419
+ function v0(t) {
1420
+ return p({ [h]: () => ({ match: (f) => {
46
1421
  let e = {};
47
- const b = (n, a) => {
48
- e[n] = a;
1422
+ const n = (d, i) => {
1423
+ e[d] = i;
49
1424
  };
50
- return f === void 0 ? (T(t).forEach((n) => b(n, void 0)), { matched: !0, selections: e }) : { matched: g(t, f, b), selections: e };
51
- }, getSelectionKeys: () => T(t), matcherType: "optional" }) });
1425
+ return f === void 0 ? (A(t).forEach((d) => n(d, void 0)), { matched: !0, selections: e }) : { matched: l(t, f, n), selections: e };
1426
+ }, getSelectionKeys: () => A(t), matcherType: "optional" }) });
52
1427
  }
53
- function c(...t) {
54
- return u({ [y]: () => ({ match: (f) => {
1428
+ function u(...t) {
1429
+ return p({ [h]: () => ({ match: (f) => {
55
1430
  let e = {};
56
- const b = (n, a) => {
57
- e[n] = a;
1431
+ const n = (d, i) => {
1432
+ e[d] = i;
58
1433
  };
59
- return { matched: t.every((n) => g(n, f, b)), selections: e };
60
- }, getSelectionKeys: () => S(t, T), matcherType: "and" }) });
1434
+ return { matched: t.every((d) => l(d, f, n)), selections: e };
1435
+ }, getSelectionKeys: () => B(t, A), matcherType: "and" }) });
61
1436
  }
62
- function y0(...t) {
63
- return u({ [y]: () => ({ match: (f) => {
1437
+ function T0(...t) {
1438
+ return p({ [h]: () => ({ match: (f) => {
64
1439
  let e = {};
65
- const b = (n, a) => {
66
- e[n] = a;
1440
+ const n = (d, i) => {
1441
+ e[d] = i;
67
1442
  };
68
- return S(t, T).forEach((n) => b(n, void 0)), { matched: t.some((n) => g(n, f, b)), selections: e };
69
- }, getSelectionKeys: () => S(t, T), matcherType: "or" }) });
1443
+ return B(t, A).forEach((d) => n(d, void 0)), { matched: t.some((d) => l(d, f, n)), selections: e };
1444
+ }, getSelectionKeys: () => B(t, A), matcherType: "or" }) });
70
1445
  }
71
- function s(t) {
72
- return { [y]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
1446
+ function b(t) {
1447
+ return { [h]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
73
1448
  }
74
- function z(...t) {
1449
+ function q(...t) {
75
1450
  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({ [y]: () => ({ match: (b) => {
77
- let n = { [f ?? L]: b };
78
- return { matched: e === void 0 || g(e, b, (a, i) => {
79
- n[a] = i;
80
- }), selections: n };
81
- }, getSelectionKeys: () => [f ?? L].concat(e === void 0 ? [] : T(e)) }) });
1451
+ return p({ [h]: () => ({ match: (n) => {
1452
+ let d = { [f ?? D]: n };
1453
+ return { matched: e === void 0 || l(e, n, (i, a) => {
1454
+ d[i] = a;
1455
+ }), selections: d };
1456
+ }, getSelectionKeys: () => [f ?? D].concat(e === void 0 ? [] : A(e)) }) });
82
1457
  }
83
- function l(t) {
1458
+ function c(t) {
84
1459
  return typeof t == "number";
85
1460
  }
86
- function p(t) {
1461
+ function g(t) {
87
1462
  return typeof t == "string";
88
1463
  }
89
- function m(t) {
1464
+ function x(t) {
90
1465
  return typeof t == "bigint";
91
1466
  }
92
- u(s(function(t) {
1467
+ p(b(function(t) {
93
1468
  return !0;
94
1469
  }));
95
- const A = (t) => Object.assign(u(t), { startsWith: (f) => {
96
- return A(c(t, (e = f, s((b) => p(b) && b.startsWith(e)))));
1470
+ const m = (t) => Object.assign(p(t), { startsWith: (f) => {
1471
+ return m(u(t, (e = f, b((n) => g(n) && n.startsWith(e)))));
97
1472
  var e;
98
1473
  }, endsWith: (f) => {
99
- return A(c(t, (e = f, s((b) => p(b) && b.endsWith(e)))));
1474
+ return m(u(t, (e = f, b((n) => g(n) && n.endsWith(e)))));
100
1475
  var e;
101
- }, minLength: (f) => A(c(t, ((e) => s((b) => p(b) && b.length >= e))(f))), length: (f) => A(c(t, ((e) => s((b) => p(b) && b.length === e))(f))), maxLength: (f) => A(c(t, ((e) => s((b) => p(b) && b.length <= e))(f))), includes: (f) => {
102
- return A(c(t, (e = f, s((b) => p(b) && b.includes(e)))));
1476
+ }, minLength: (f) => m(u(t, ((e) => b((n) => g(n) && n.length >= e))(f))), length: (f) => m(u(t, ((e) => b((n) => g(n) && n.length === e))(f))), maxLength: (f) => m(u(t, ((e) => b((n) => g(n) && n.length <= e))(f))), includes: (f) => {
1477
+ return m(u(t, (e = f, b((n) => g(n) && n.includes(e)))));
103
1478
  var e;
104
1479
  }, regex: (f) => {
105
- return A(c(t, (e = f, s((b) => p(b) && !!b.match(e)))));
1480
+ return m(u(t, (e = f, b((n) => g(n) && !!n.match(e)))));
106
1481
  var e;
107
1482
  } });
108
- A(s(p));
109
- const h = (t) => Object.assign(u(t), { between: (f, e) => h(c(t, ((b, n) => s((a) => l(a) && b <= a && n >= a))(f, e))), lt: (f) => h(c(t, ((e) => s((b) => l(b) && b < e))(f))), gt: (f) => h(c(t, ((e) => s((b) => l(b) && b > e))(f))), lte: (f) => h(c(t, ((e) => s((b) => l(b) && b <= e))(f))), gte: (f) => h(c(t, ((e) => s((b) => l(b) && b >= e))(f))), int: () => h(c(t, s((f) => l(f) && Number.isInteger(f)))), finite: () => h(c(t, s((f) => l(f) && Number.isFinite(f)))), positive: () => h(c(t, s((f) => l(f) && f > 0))), negative: () => h(c(t, s((f) => l(f) && f < 0))) });
110
- h(s(l));
111
- const w = (t) => Object.assign(u(t), { between: (f, e) => w(c(t, ((b, n) => s((a) => m(a) && b <= a && n >= a))(f, e))), lt: (f) => w(c(t, ((e) => s((b) => m(b) && b < e))(f))), gt: (f) => w(c(t, ((e) => s((b) => m(b) && b > e))(f))), lte: (f) => w(c(t, ((e) => s((b) => m(b) && b <= e))(f))), gte: (f) => w(c(t, ((e) => s((b) => m(b) && b >= e))(f))), positive: () => w(c(t, s((f) => m(f) && f > 0))), negative: () => w(c(t, s((f) => m(f) && f < 0))) });
112
- w(s(m));
113
- u(s(function(t) {
1483
+ m(b(g));
1484
+ const y = (t) => Object.assign(p(t), { between: (f, e) => y(u(t, ((n, d) => b((i) => c(i) && n <= i && d >= i))(f, e))), lt: (f) => y(u(t, ((e) => b((n) => c(n) && n < e))(f))), gt: (f) => y(u(t, ((e) => b((n) => c(n) && n > e))(f))), lte: (f) => y(u(t, ((e) => b((n) => c(n) && n <= e))(f))), gte: (f) => y(u(t, ((e) => b((n) => c(n) && n >= e))(f))), int: () => y(u(t, b((f) => c(f) && Number.isInteger(f)))), finite: () => y(u(t, b((f) => c(f) && Number.isFinite(f)))), positive: () => y(u(t, b((f) => c(f) && f > 0))), negative: () => y(u(t, b((f) => c(f) && f < 0))) });
1485
+ y(b(c));
1486
+ const w = (t) => Object.assign(p(t), { between: (f, e) => w(u(t, ((n, d) => b((i) => x(i) && n <= i && d >= i))(f, e))), lt: (f) => w(u(t, ((e) => b((n) => x(n) && n < e))(f))), gt: (f) => w(u(t, ((e) => b((n) => x(n) && n > e))(f))), lte: (f) => w(u(t, ((e) => b((n) => x(n) && n <= e))(f))), gte: (f) => w(u(t, ((e) => b((n) => x(n) && n >= e))(f))), positive: () => w(u(t, b((f) => x(f) && f > 0))), negative: () => w(u(t, b((f) => x(f) && f < 0))) });
1487
+ w(b(x));
1488
+ p(b(function(t) {
114
1489
  return typeof t == "boolean";
115
1490
  }));
116
- u(s(function(t) {
1491
+ p(b(function(t) {
117
1492
  return typeof t == "symbol";
118
1493
  }));
119
- u(s(function(t) {
1494
+ p(b(function(t) {
120
1495
  return t == null;
121
1496
  }));
122
- u(s(function(t) {
1497
+ p(b(function(t) {
123
1498
  return t != null;
124
1499
  }));
125
- class p0 extends Error {
1500
+ class E0 extends Error {
126
1501
  constructor(f) {
127
1502
  let e;
128
1503
  try {
@@ -133,36 +1508,36 @@ class p0 extends Error {
133
1508
  super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
134
1509
  }
135
1510
  }
136
- const H = { matched: !1, value: void 0 };
137
- function $(t) {
138
- return new D(t, H);
1511
+ const G = { matched: !1, value: void 0 };
1512
+ function J(t) {
1513
+ return new U(t, G);
139
1514
  }
140
- class D {
1515
+ class U {
141
1516
  constructor(f, e) {
142
1517
  this.input = void 0, this.state = void 0, this.input = f, this.state = e;
143
1518
  }
144
1519
  with(...f) {
145
1520
  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 = (d, v) => {
151
- a = !0, i[d] = v;
152
- }, o = !b.some((d) => g(d, this.input, r)) || n && !n(this.input) ? H : { matched: !0, value: e(a ? L in i ? i[L] : i : this.input, this.input) };
153
- return new D(this.input, o);
1521
+ const e = f[f.length - 1], n = [f[0]];
1522
+ let d;
1523
+ f.length === 3 && typeof f[1] == "function" ? d = f[1] : f.length > 2 && n.push(...f.slice(1, f.length - 1));
1524
+ let i = !1, a = {};
1525
+ const s = (o, E) => {
1526
+ i = !0, a[o] = E;
1527
+ }, r = !n.some((o) => l(o, this.input, s)) || d && !d(this.input) ? G : { matched: !0, value: e(i ? D in a ? a[D] : a : this.input, this.input) };
1528
+ return new U(this.input, r);
154
1529
  }
155
1530
  when(f, e) {
156
1531
  if (this.state.matched) return this;
157
- const b = !!f(this.input);
158
- return new D(this.input, b ? { matched: !0, value: e(this.input, this.input) } : H);
1532
+ const n = !!f(this.input);
1533
+ return new U(this.input, n ? { matched: !0, value: e(this.input, this.input) } : G);
159
1534
  }
160
1535
  otherwise(f) {
161
1536
  return this.state.matched ? this.state.value : f(this.input);
162
1537
  }
163
1538
  exhaustive() {
164
1539
  if (this.state.matched) return this.state.value;
165
- throw new p0(this.input);
1540
+ throw new E0(this.input);
166
1541
  }
167
1542
  run() {
168
1543
  return this.exhaustive();
@@ -171,13 +1546,13 @@ class D {
171
1546
  return this;
172
1547
  }
173
1548
  }
174
- var m0 = /* @__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[t.GREATER_THAN_OR_EQUAL = 6] = "GREATER_THAN_OR_EQUAL", t[t.LESS_THAN_OR_EQUAL = 7] = "LESS_THAN_OR_EQUAL", t))(m0 || {}), A0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(A0 || {}), w0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(w0 || {});
175
- function T0(t) {
1549
+ var N0 = /* @__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[t.GREATER_THAN_OR_EQUAL = 6] = "GREATER_THAN_OR_EQUAL", t[t.LESS_THAN_OR_EQUAL = 7] = "LESS_THAN_OR_EQUAL", t))(N0 || {}), I0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t[t.TUPLE = 4] = "TUPLE", t))(I0 || {}), S0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(S0 || {});
1550
+ function C0(t) {
176
1551
  return Array.isArray(t.actionSteps);
177
1552
  }
178
- const U = class U extends a0 {
1553
+ const W = class W extends c0 {
179
1554
  constructor() {
180
- super(...arguments), this.abi = M;
1555
+ super(...arguments), this.abi = F;
181
1556
  }
182
1557
  /**
183
1558
  * Gets a specific action event by index
@@ -200,13 +1575,13 @@ const U = class U extends a0 {
200
1575
  * @returns {Promise<ActionStep[]>}
201
1576
  */
202
1577
  async getActionSteps(f) {
203
- const e = await V(this._config, {
1578
+ const e = await a0(this._config, {
204
1579
  address: this.assertValidAddress(),
205
1580
  ...this.optionallyAttachAccount(),
206
1581
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
207
1582
  ...f
208
1583
  });
209
- return v0(e.map(J));
1584
+ return k0(e.map(e0));
210
1585
  }
211
1586
  /**
212
1587
  * Gets the count of action events
@@ -228,12 +1603,12 @@ const U = class U extends a0 {
228
1603
  * @returns {Promise<ActionClaimant>}
229
1604
  */
230
1605
  async getActionClaimant(f) {
231
- const e = await Z(this._config, {
1606
+ const e = await s0(this._config, {
232
1607
  address: this.assertValidAddress(),
233
1608
  ...this.optionallyAttachAccount(),
234
1609
  ...f
235
1610
  });
236
- return J(e);
1611
+ return e0(e);
237
1612
  }
238
1613
  /**
239
1614
  * Executes a prepared event action
@@ -257,14 +1632,14 @@ const U = class U extends a0 {
257
1632
  * @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
258
1633
  */
259
1634
  async executeRaw(f, e) {
260
- const { request: b, result: n } = await F(this._config, {
1635
+ const { request: n, result: d } = await r0(this._config, {
261
1636
  address: this.assertValidAddress(),
262
1637
  ...this.optionallyAttachAccount(),
263
1638
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
264
1639
  ...e,
265
1640
  args: [f]
266
1641
  });
267
- return { hash: await f0(this._config, b), result: n };
1642
+ return { hash: await b0(this._config, n), result: d };
268
1643
  }
269
1644
  /**
270
1645
  * Derives the action claimant address from a transaction based on the provided ActionClaimant configuration.
@@ -301,84 +1676,78 @@ const U = class U extends a0 {
301
1676
  * @throws {FunctionDataDecodeError} If there's an error decoding function data (for function-based derivation).
302
1677
  */
303
1678
  async deriveActionClaimantFromTransaction(f, e) {
304
- if (f.fieldIndex === N.TX_SENDER_CLAIMANT) {
1679
+ if (f.fieldIndex === C.TX_SENDER_CLAIMANT) {
305
1680
  if ("hash" in e) {
306
- const n = await C(this._config, {
1681
+ const d = await k(this._config, {
307
1682
  ...e,
308
1683
  chainId: f.chainid
309
1684
  });
310
- return e.notBeforeBlockNumber && n.blockNumber < e.notBeforeBlockNumber ? void 0 : n.from;
1685
+ return e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber ? void 0 : d.from;
311
1686
  }
312
1687
  if ("logs" in e) {
313
- for (let n of e.logs)
314
- if (n.transactionHash) {
315
- const a = await C(this._config, {
1688
+ for (let d of e.logs)
1689
+ if (d.transactionHash) {
1690
+ const i = await k(this._config, {
316
1691
  ...e,
317
- hash: n.transactionHash,
1692
+ hash: d.transactionHash,
318
1693
  chainId: f.chainid
319
1694
  });
320
- return e.notBeforeBlockNumber && a.blockNumber < e.notBeforeBlockNumber ? void 0 : a.from;
1695
+ return e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber ? void 0 : i.from;
321
1696
  }
322
1697
  }
323
1698
  return;
324
1699
  }
325
- const b = f.signature;
1700
+ const n = f.signature;
326
1701
  if (f.signatureType === 0) {
327
- let n;
328
- if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
329
- throw new x(b);
330
- let a;
1702
+ let d;
1703
+ if (e.abiItem ? d = e.abiItem : d = e.knownSignatures[n], !d)
1704
+ throw new _(n);
1705
+ let i;
331
1706
  if ("logs" in e) {
332
- for (let o of e.logs) {
333
- if (!E(o.address, f.targetContract)) continue;
334
- let d = this.validateClaimantAgainstArgs(
1707
+ for (let r of e.logs) {
1708
+ if (!N(r.address, f.targetContract)) continue;
1709
+ let o = this.validateClaimantAgainstArgs(
335
1710
  f,
336
- o
1711
+ r
337
1712
  );
338
- d && (a = d);
1713
+ o && (i = o);
339
1714
  }
340
- return a;
1715
+ return i;
341
1716
  }
342
- const i = await G(this._config, {
1717
+ const a = await V(this._config, {
343
1718
  ...e,
344
1719
  chainId: f.chainid
345
1720
  });
346
- if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
1721
+ if (e.notBeforeBlockNumber && a.blockNumber < e.notBeforeBlockNumber)
347
1722
  return;
348
- const r = i.logs.filter((o) => o.topics[0] === Q(n)).map((o) => {
349
- const { eventName: d, args: v } = B({
350
- abi: [n],
351
- data: o.data,
352
- topics: o.topics
353
- });
354
- return { ...o, eventName: d, args: v };
355
- });
356
- for (let o of r) {
357
- if (!E(o.address, f.targetContract)) continue;
358
- let d = this.validateClaimantAgainstArgs(f, o);
359
- d && (a = d);
1723
+ let s;
1724
+ n === M ? { decodedLogs: s } = await this.decodeTransferLogs(a) : s = a.logs.filter((r) => r.topics[0] === Q(d)).map((r) => t0(d, r));
1725
+ for (let r of s) {
1726
+ if (!N(r.address, f.targetContract)) continue;
1727
+ let o = this.validateClaimantAgainstArgs(f, r);
1728
+ o && (i = o);
360
1729
  }
361
- return a;
1730
+ return i;
362
1731
  }
363
1732
  if (f.signatureType === 1 && "hash" in e) {
364
- const n = await C(this._config, {
1733
+ const d = await k(this._config, {
365
1734
  ...e,
366
1735
  chainId: f.chainid
367
1736
  });
368
- if (e.notBeforeBlockNumber && n.blockNumber < e.notBeforeBlockNumber || !E(n.to, f.targetContract)) return;
369
- let a;
370
- if (e.abiItem ? a = e.abiItem : a = e.knownSignatures[b], !a)
371
- throw new x(f.signature);
1737
+ if (e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber || !N(d.to, f.targetContract)) return;
372
1738
  let i;
1739
+ if (e.abiItem ? i = e.abiItem : i = e.knownSignatures[n], !i)
1740
+ throw new _(f.signature);
1741
+ let a;
373
1742
  try {
374
- i = Y({
375
- abi: [a],
376
- data: n.input
1743
+ a = j({
1744
+ abi: [i],
1745
+ data: d.input
377
1746
  });
378
- } catch (r) {
379
- throw new j([a], r);
1747
+ } catch (s) {
1748
+ throw new K([i], s);
380
1749
  }
381
- return this.validateClaimantAgainstArgs(f, i);
1750
+ return this.validateClaimantAgainstArgs(f, a);
382
1751
  }
383
1752
  }
384
1753
  /**
@@ -392,8 +1761,8 @@ const U = class U extends a0 {
392
1761
  validateClaimantAgainstArgs(f, e) {
393
1762
  if (!e || !Array.isArray(e == null ? void 0 : e.args) || (e == null ? void 0 : e.args.length) <= f.fieldIndex)
394
1763
  return;
395
- const b = e.args.at(f.fieldIndex);
396
- if (e0(b)) return b;
1764
+ const n = e.args.at(f.fieldIndex);
1765
+ if (X(n)) return n;
397
1766
  }
398
1767
  /**
399
1768
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
@@ -406,8 +1775,8 @@ const U = class U extends a0 {
406
1775
  */
407
1776
  async validateActionSteps(f) {
408
1777
  const e = await this.getActionSteps();
409
- for (const b of e)
410
- if (!await this.isActionStepValid(b, f))
1778
+ for (const n of e)
1779
+ if (!await this.isActionStepValid(n, f))
411
1780
  return !1;
412
1781
  return !0;
413
1782
  }
@@ -424,64 +1793,73 @@ const U = class U extends a0 {
424
1793
  */
425
1794
  async isActionStepValid(f, e) {
426
1795
  if (f.signatureType === 0) {
427
- const b = f.signature;
428
- let n;
429
- if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
430
- throw new x(b);
431
- if (this.isArraylikeIndexed(f, n))
432
- throw new i0(
1796
+ const n = f.signature;
1797
+ let d;
1798
+ if (e.abiItem ? d = e.abiItem : d = e.knownSignatures[n], !d)
1799
+ throw new _(n);
1800
+ if (this.isArraylikeIndexed(f, d))
1801
+ throw new $(
433
1802
  f.actionParameter.fieldIndex,
434
- n
1803
+ d
435
1804
  );
436
1805
  if ("logs" in e)
437
- return this.isActionEventValid(f, e.logs);
438
- const a = await G(this._config, {
1806
+ return this.isActionEventValid(f, e.logs, d);
1807
+ const i = await V(this._config, {
439
1808
  ...e,
440
1809
  chainId: f.chainid
441
1810
  });
442
- if (e.notBeforeBlockNumber && a.blockNumber < e.notBeforeBlockNumber)
1811
+ if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
443
1812
  return !1;
444
- if (f.signature === X)
445
- return this.decodeTransferLogs(a, f);
446
- const i = a.logs.filter((r) => r.topics[0] === Q(n)).map((r) => {
447
- const { eventName: o, args: d } = B({
448
- abi: [n],
449
- data: r.data,
450
- topics: r.topics
451
- });
452
- return { ...r, eventName: o, args: d };
453
- });
454
- return this.isActionEventValid(f, i);
1813
+ if (f.signature === M) {
1814
+ const { decodedLogs: s, event: r } = await this.decodeTransferLogs(i);
1815
+ return this.isActionEventValid(f, s, r);
1816
+ }
1817
+ const a = i.logs.filter((s) => s.topics[0] === Q(d)).map((s) => t0(d, s));
1818
+ return this.isActionEventValid(f, a, d);
455
1819
  }
456
1820
  if (f.signatureType === 1 && "hash" in e) {
457
- const b = await C(this._config, {
1821
+ const n = await k(this._config, {
458
1822
  ...e,
459
1823
  chainId: f.chainid
460
1824
  });
461
- return e.notBeforeBlockNumber && b.blockNumber < e.notBeforeBlockNumber ? !1 : this.isActionFunctionValid(f, b, e);
1825
+ return e.notBeforeBlockNumber && n.blockNumber < e.notBeforeBlockNumber ? !1 : this.isActionFunctionValid(f, n, e);
462
1826
  }
463
1827
  return !1;
464
1828
  }
465
1829
  /**
466
1830
  * Validates a single action event with a given criteria against logs.
467
- * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
468
1831
  *
469
1832
  * @public
470
- * @async
471
1833
  * @param {ActionStep} actionStep - The action step containing the event to validate.
472
1834
  * @param {EventLogs} logs - Event logs to validate the given step against
473
- * @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
1835
+ * @param {AbiEvent} eventAbi - The ABI definition of the event
1836
+ * @returns {boolean} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
474
1837
  */
475
- isActionEventValid(f, e) {
476
- const b = f.actionParameter;
1838
+ isActionEventValid(f, e, n) {
1839
+ const d = f.actionParameter;
477
1840
  if (!e.length) return !1;
478
- for (let n of e)
479
- if (this.validateLogAgainstCriteria(b, n))
480
- return !0;
1841
+ for (let i of e)
1842
+ try {
1843
+ if (!Array.isArray(i.args))
1844
+ throw new y0({
1845
+ log: i,
1846
+ criteria: d,
1847
+ fieldValue: void 0
1848
+ });
1849
+ const { value: a, type: s } = this.parseFieldFromAbi(
1850
+ i.args,
1851
+ d.fieldIndex,
1852
+ n.inputs || [],
1853
+ d.fieldType
1854
+ );
1855
+ if (d.fieldType = s, this.validateFieldAgainstCriteria(d, a, { log: i }))
1856
+ return !0;
1857
+ } catch {
1858
+ }
481
1859
  return !1;
482
1860
  }
483
1861
  /**
484
- * Decodes transfer logs specifically for ERC721 and ERC20 Transfer events.
1862
+ * Decodes logs specifically for ERC721 and ERC20 Transfer events.
485
1863
  *
486
1864
  * This special handling is required because both ERC20 and ERC721 Transfer events:
487
1865
  * 1. Share the same event signature (0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef)
@@ -493,60 +1871,92 @@ const U = class U extends a0 {
493
1871
  * try decoding both ways to determine which type of Transfer event we're dealing with.
494
1872
  *
495
1873
  * @param {GetTransactionReceiptReturnType} receipt - The transaction receipt containing the logs
496
- * @param {ActionStep} actionStep - The action step being validated
497
- * @returns {Promise<boolean>} - Returns true if the transfer logs are valid for either ERC20 or ERC721
1874
+ * @returns {Promise<{ decodedLogs: EventLogs; event: AbiEvent }>} - Returns the decoded logs and the transfer event ABI used for decoding
498
1875
  * @throws {DecodedArgsError} - Throws if neither ERC20 nor ERC721 decoding succeeds
499
1876
  */
500
- async decodeTransferLogs(f, e) {
501
- const b = f.logs.filter(
502
- (n) => n.topics[0] === X
503
- );
1877
+ async decodeTransferLogs(f) {
1878
+ const e = f.logs.filter(
1879
+ (d) => d.topics[0] === M
1880
+ ), n = w0["Transfer(address indexed,address indexed,uint256 indexed)"];
504
1881
  try {
505
- const n = b.map((a) => {
506
- const { eventName: i, args: r } = B({
507
- abi: [
508
- {
509
- name: "Transfer",
510
- type: "event",
511
- inputs: [
512
- { type: "address", indexed: !0 },
513
- { type: "address", indexed: !0 },
514
- { type: "uint256", indexed: !0 }
515
- ]
516
- }
517
- ],
518
- data: a.data,
519
- topics: a.topics
520
- });
521
- return { ...a, eventName: i, args: r };
522
- });
523
- return this.isActionEventValid(e, n);
1882
+ return {
1883
+ decodedLogs: e.map((i) => {
1884
+ const { eventName: a, args: s } = O({
1885
+ abi: [n],
1886
+ data: i.data,
1887
+ topics: i.topics
1888
+ });
1889
+ return { ...i, eventName: a, args: s };
1890
+ }),
1891
+ event: n
1892
+ };
524
1893
  } catch {
525
1894
  try {
526
- const n = b.map((a) => {
527
- const { eventName: i, args: r } = B({
528
- abi: [
529
- {
530
- name: "Transfer",
531
- type: "event",
532
- inputs: [
533
- { type: "address", indexed: !0 },
534
- { type: "address", indexed: !0 },
535
- { type: "uint256" }
536
- ]
537
- }
538
- ],
539
- data: a.data,
540
- topics: a.topics
541
- });
542
- return { ...a, eventName: i, args: r };
543
- });
544
- return this.isActionEventValid(e, n);
1895
+ return n.inputs[2].indexed = !1, {
1896
+ decodedLogs: e.map((i) => {
1897
+ const { eventName: a, args: s } = O({
1898
+ abi: [n],
1899
+ data: i.data,
1900
+ topics: i.topics
1901
+ });
1902
+ return { ...i, eventName: a, args: s };
1903
+ }),
1904
+ event: n
1905
+ };
545
1906
  } catch {
546
- throw new r0("Failed to decode transfer logs");
1907
+ throw new n0("Failed to decode transfer logs");
547
1908
  }
548
1909
  }
549
1910
  }
1911
+ /**
1912
+ * Parses the final (scalar) field from a set of decoded arguments, given an ABI definition.
1913
+ * If the fieldType is TUPLE, we decode `fieldIndex` as a bitpacked array of indexes to drill down
1914
+ * into nested tuples. Otherwise, we parse the single `fieldIndex` as normal.
1915
+ *
1916
+ * @public
1917
+ * @param {readonly unknown[]} allArgs - The decoded arguments array from an event log or function call.
1918
+ * @param {number} criteriaIndex - The field index (bitpacked if TUPLE).
1919
+ * @param {AbiParameter[]} abiInputs - The ABI inputs describing each decoded argument.
1920
+ * @param {PrimitiveType} declaredType - Either TUPLE or a standard scalar type
1921
+ * @returns {{ value: string | bigint | Hex; type: Exclude<PrimitiveType, PrimitiveType.TUPLE> }}
1922
+ */
1923
+ parseFieldFromAbi(f, e, n, d) {
1924
+ if (e === C.ANY_ACTION_PARAM)
1925
+ return {
1926
+ value: S,
1927
+ type: 2
1928
+ /* BYTES */
1929
+ };
1930
+ if (d !== 4) {
1931
+ if (!Array.isArray(f) || e >= f.length)
1932
+ throw new z({
1933
+ fieldValue: f,
1934
+ criteria: {
1935
+ filterType: 0,
1936
+ fieldType: d,
1937
+ fieldIndex: e,
1938
+ filterData: S
1939
+ }
1940
+ });
1941
+ const a = n[e];
1942
+ if (!a || !a.type)
1943
+ throw new $(e, a);
1944
+ const s = f[e], r = i0(a.type);
1945
+ if (r === 1 && (typeof s != "string" || !X(s)))
1946
+ throw new z({
1947
+ fieldValue: s,
1948
+ criteria: {
1949
+ fieldIndex: e,
1950
+ filterType: 0,
1951
+ fieldType: r,
1952
+ filterData: S
1953
+ }
1954
+ });
1955
+ return { value: s, type: r };
1956
+ }
1957
+ const i = _0(e);
1958
+ return d0(f, i, n);
1959
+ }
550
1960
  /**
551
1961
  * Validates a single action function with a given criteria against the transaction input.
552
1962
  *
@@ -560,162 +1970,140 @@ const U = class U extends a0 {
560
1970
  * @throws {ValidationAbiMissingError} Throws if the ABI for the function signature is not found.
561
1971
  * @throws {FunctionDataDecodeError} Throws if there's an error decoding the function data.
562
1972
  */
563
- isActionFunctionValid(f, e, b) {
564
- const n = f.actionParameter;
565
- let a = f.signature, i;
566
- if (b.abiItem ? i = b == null ? void 0 : b.abiItem : i = b.knownSignatures[a], !i)
567
- throw new x(a);
568
- let r;
1973
+ isActionFunctionValid(f, e, n) {
1974
+ const d = f.actionParameter, i = f.signature;
1975
+ let a;
1976
+ if (n.abiItem ? a = n.abiItem : a = n.knownSignatures[i], !a)
1977
+ throw new _(i);
1978
+ let s;
569
1979
  try {
570
- r = Y({
571
- abi: [i],
1980
+ s = j({
1981
+ abi: [a],
572
1982
  data: e.input
573
1983
  });
574
- } catch (d) {
575
- throw new j([i], d);
1984
+ } catch (r) {
1985
+ throw new K([a], r);
1986
+ }
1987
+ if (!(s != null && s.args))
1988
+ return !1;
1989
+ try {
1990
+ const { value: r, type: o } = this.parseFieldFromAbi(
1991
+ s.args,
1992
+ d.fieldIndex,
1993
+ a.inputs || [],
1994
+ d.fieldType
1995
+ );
1996
+ return d.fieldType = o, this.validateFieldAgainstCriteria(d, r, {
1997
+ decodedArgs: s.args
1998
+ });
1999
+ } catch {
2000
+ return !1;
576
2001
  }
577
- const o = r.args;
578
- return !(!o || !r || !this.validateFunctionAgainstCriteria(
579
- n,
580
- o
581
- ));
582
2002
  }
583
2003
  /**
584
- * Validates a field against a given criteria.
2004
+ * Validates a field against a given criteria. The field is assumed to be a non-tuple scalar,
2005
+ * along with its final resolved `PrimitiveType`. (Any TUPLE logic has been extracted elsewhere.)
585
2006
  *
586
2007
  * @param {Criteria} criteria - The criteria to validate against.
587
2008
  * @param {string | bigint | Hex} fieldValue - The field value to validate.
2009
+ * @param {Exclude<PrimitiveType, PrimitiveType.TUPLE>} fieldType - The final resolved primitive type.
588
2010
  * @param {Object} input - Additional context for validation.
589
2011
  * @param {EventLogs[0]} [input.log] - The event log, if validating an event.
590
2012
  * @param {readonly (string | bigint)[]} [input.decodedArgs] - The decoded function arguments, if validating a function call.
591
- * @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
2013
+ * @returns {boolean} - Returns true if the field passes the criteria, false otherwise.
592
2014
  */
593
- validateFieldAgainstCriteria(f, e, b) {
594
- if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === N.ANY_ACTION_PARAM)
2015
+ validateFieldAgainstCriteria(f, e, n) {
2016
+ if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === C.ANY_ACTION_PARAM)
595
2017
  return !0;
2018
+ if (f.fieldType === 4)
2019
+ throw new v(
2020
+ "Tuples should not be passed into validateFieldAgainstCriteria"
2021
+ );
2022
+ const d = f.fieldType;
596
2023
  switch (f.filterType) {
597
2024
  case 0:
598
- return $(f.fieldType).with(
2025
+ return J(d).with(
599
2026
  1,
600
- () => E(f.filterData, e)
2027
+ () => N(f.filterData, e)
601
2028
  ).with(
602
2029
  0,
603
2030
  () => BigInt(e) === BigInt(f.filterData)
604
2031
  ).with(
605
2032
  3,
606
- () => e === _(f.filterData, "string")
2033
+ () => e === R(f.filterData, "string")
607
2034
  ).otherwise(() => e === f.filterData);
608
2035
  case 1:
609
- return $(f.fieldType).with(
2036
+ return J(d).with(
610
2037
  1,
611
- () => !E(f.filterData, e)
2038
+ () => !N(f.filterData, e)
612
2039
  ).with(
613
2040
  0,
614
2041
  () => BigInt(e) !== BigInt(f.filterData)
615
2042
  ).with(
616
2043
  3,
617
- () => e !== _(f.filterData, "string")
2044
+ () => e !== R(f.filterData, "string")
618
2045
  ).otherwise(() => e !== f.filterData);
619
2046
  case 2:
620
- if (f.fieldType === 0)
2047
+ if (d === 0)
621
2048
  return BigInt(e) > BigInt(f.filterData);
622
- throw new R({
623
- ...b,
2049
+ throw new L({
2050
+ ...n,
624
2051
  criteria: f,
625
2052
  fieldValue: e
626
2053
  });
627
2054
  case 6:
628
- if (f.fieldType === 0)
2055
+ if (d === 0)
629
2056
  return BigInt(e) >= BigInt(f.filterData);
630
- throw new R({
631
- ...b,
2057
+ throw new L({
2058
+ ...n,
632
2059
  criteria: f,
633
2060
  fieldValue: e
634
2061
  });
635
2062
  case 3:
636
- if (f.fieldType === 0)
2063
+ if (d === 0)
637
2064
  return BigInt(e) < BigInt(f.filterData);
638
- throw new R({
639
- ...b,
2065
+ throw new L({
2066
+ ...n,
640
2067
  criteria: f,
641
2068
  fieldValue: e
642
2069
  });
643
2070
  case 7:
644
- if (f.fieldType === 0)
2071
+ if (d === 0)
645
2072
  return BigInt(e) <= BigInt(f.filterData);
646
- throw new R({
647
- ...b,
2073
+ throw new L({
2074
+ ...n,
648
2075
  criteria: f,
649
2076
  fieldValue: e
650
2077
  });
651
2078
  case 4:
652
- if (f.fieldType === 2 || f.fieldType === 3) {
653
- let n;
654
- return f.fieldType === 3 ? n = _(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
2079
+ if (d === 2 || d === 3) {
2080
+ let i;
2081
+ return d === 3 ? i = R(f.filterData, "string") : i = f.filterData.slice(2), e.includes(i);
655
2082
  }
656
- throw new K({
657
- ...b,
2083
+ throw new Y({
2084
+ ...n,
658
2085
  criteria: f,
659
2086
  fieldValue: e
660
2087
  });
661
2088
  case 5:
662
2089
  if (typeof e != "string")
663
- throw new K({
664
- ...b,
2090
+ throw new Y({
2091
+ ...n,
665
2092
  criteria: f,
666
2093
  fieldValue: e
667
2094
  });
668
- if (f.fieldType === 3) {
669
- const n = _(f.filterData, "string");
670
- return new RegExp(n).test(e);
2095
+ if (d === 3) {
2096
+ const i = R(f.filterData, "string");
2097
+ return new RegExp(i).test(e);
671
2098
  }
672
2099
  default:
673
- throw new s0({
674
- ...b,
2100
+ throw new l0({
2101
+ ...n,
675
2102
  criteria: f,
676
2103
  fieldValue: e
677
2104
  });
678
2105
  }
679
2106
  }
680
- /**
681
- * Validates a {@link Log} against a given criteria.
682
- * If the criteria's fieldIndex is 255 (using CheatCodes enum), it is reserved for anyValidation
683
- *
684
- * @param {Criteria} criteria - The criteria to validate against.
685
- * @param {Log} log - The Viem event log.
686
- * @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
687
- */
688
- validateLogAgainstCriteria(f, e) {
689
- if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex && f.fieldIndex !== N.ANY_ACTION_PARAM)
690
- throw new o0({
691
- log: e,
692
- criteria: f,
693
- fieldValue: void 0
694
- });
695
- const b = f.fieldIndex === N.ANY_ACTION_PARAM ? k : e.args.at(f.fieldIndex);
696
- if (b === void 0)
697
- throw new W({ log: e, criteria: f, fieldValue: b });
698
- return this.validateFieldAgainstCriteria(f, b, { log: e });
699
- }
700
- /**
701
- * Validates a function's decoded arguments against a given criteria.
702
- * If the criteria's fieldIndex is 255 (using CheatCodes enum), it is reserved for anyValidation
703
- *
704
- * @param {Criteria} criteria - The criteria to validate against.
705
- * @param {unknown[]} decodedArgs - The decoded arguments of the function call.
706
- * @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
707
- */
708
- validateFunctionAgainstCriteria(f, e) {
709
- const b = f.fieldIndex === N.ANY_ACTION_PARAM ? k : e[f.fieldIndex];
710
- if (b === void 0)
711
- throw new W({
712
- criteria: f,
713
- fieldValue: b
714
- });
715
- return this.validateFieldAgainstCriteria(f, b, {
716
- decodedArgs: e
717
- });
718
- }
719
2107
  /**
720
2108
  * @inheritdoc
721
2109
  *
@@ -725,49 +2113,98 @@ const U = class U extends a0 {
725
2113
  * @returns {GenericDeployableParams}
726
2114
  */
727
2115
  buildParameters(f, e) {
728
- const [b, n] = this.validateDeploymentConfig(
2116
+ const [n, d] = this.validateDeploymentConfig(
729
2117
  f,
730
2118
  e
731
2119
  );
732
- let a;
733
- if (T0(b)) {
734
- let i = b.actionSteps.filter((o) => !!o);
735
- if (i.length === 0)
736
- throw new c0();
737
- if (i.length > 4)
738
- throw new d0();
739
- let r = Array.from({ length: 4 }, (o, d) => i.at(d) || i.at(-1));
740
- a = {
741
- actionClaimant: b.actionClaimant,
742
- actionStepOne: r[0],
743
- actionStepTwo: r[1],
744
- actionStepThree: r[2],
745
- actionStepFour: r[3]
2120
+ let i;
2121
+ if (C0(n)) {
2122
+ let a = n.actionSteps.filter((r) => !!r);
2123
+ if (a.length === 0)
2124
+ throw new h0();
2125
+ if (a.length > 4)
2126
+ throw new g0();
2127
+ let s = Array.from({ length: 4 }, (r, o) => a.at(o) || a.at(-1));
2128
+ i = {
2129
+ actionClaimant: n.actionClaimant,
2130
+ actionStepOne: s[0],
2131
+ actionStepTwo: s[1],
2132
+ actionStepThree: s[2],
2133
+ actionStepFour: s[3]
746
2134
  };
747
2135
  } else
748
- a = b;
2136
+ i = n;
749
2137
  return {
750
- abi: M,
751
- bytecode: l0,
752
- args: [N0(a)],
753
- ...this.optionallyAttachAccount(n.account)
2138
+ abi: F,
2139
+ bytecode: m0,
2140
+ args: [R0(i)],
2141
+ ...this.optionallyAttachAccount(d.account)
754
2142
  };
755
2143
  }
2144
+ /**
2145
+ * Determines whether a string or bytes field is indexed in the event definition.
2146
+ * If the user tries to filter on an indexed string/bytes, we throw an error.
2147
+ *
2148
+ * @public
2149
+ * @param {ActionStep} step
2150
+ * @param {AbiEvent} event
2151
+ * @returns {boolean}
2152
+ */
756
2153
  isArraylikeIndexed(f, e) {
757
- var b;
758
- return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((b = e.inputs[f.actionParameter.fieldIndex]) != null && b.indexed));
2154
+ var n;
2155
+ return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((n = e.inputs[f.actionParameter.fieldIndex]) != null && n.indexed));
759
2156
  }
760
2157
  };
761
- U.bases = {
2158
+ W.bases = {
762
2159
  31337: void 0,
763
- ...n0
764
- }, U.registryType = u0.ACTION;
765
- let q = U;
766
- function v0(t) {
2160
+ ...p0
2161
+ }, W.registryType = x0.ACTION;
2162
+ let f0 = W;
2163
+ function B0(t) {
2164
+ return t.type === "tuple" || t.type.startsWith("tuple[");
2165
+ }
2166
+ function d0(t, f, e) {
2167
+ if (!f.length)
2168
+ throw new v(
2169
+ "No indexes found; cannot parse TUPLE field"
2170
+ );
2171
+ const n = f[0] ?? e.length + 1;
2172
+ if (n >= e.length)
2173
+ throw new v(void 0, n);
2174
+ const d = e[n], i = t[n];
2175
+ if (!B0(d)) {
2176
+ const r = i0(d.type);
2177
+ return { value: i, type: r };
2178
+ }
2179
+ if (!Array.isArray(i))
2180
+ throw new v(
2181
+ "rawValue is not an array, but param.type is tuple"
2182
+ );
2183
+ const a = f.slice(1);
2184
+ if (!a.length)
2185
+ throw new v(void 0, -1);
2186
+ const s = a[0] ?? d.components.length + 1;
2187
+ if (s >= d.components.length)
2188
+ throw new v(void 0, s);
2189
+ return d0(i, a, d.components);
2190
+ }
2191
+ function i0(t) {
2192
+ const f = t.toLowerCase();
2193
+ if (f.startsWith("uint") || f.startsWith("int"))
2194
+ return 0;
2195
+ if (f === "address")
2196
+ return 1;
2197
+ if (f === "bytes" || f.startsWith("bytes"))
2198
+ return 2;
2199
+ if (f === "string")
2200
+ return 3;
2201
+ throw new n0(`Unrecognized ABI type: ${t}`);
2202
+ }
2203
+ function k0(t) {
767
2204
  const f = [], e = {};
768
- for (let b of t) {
769
- const n = JSON.stringify(b);
770
- e[n] || (f.push(b), e[n] = !0);
2205
+ for (let n of t) {
2206
+ const d = JSON.stringify(n);
2207
+ e[d] || (f.push(n), e[d] = !0);
771
2208
  }
772
2209
  return f;
773
2210
  }
@@ -777,7 +2214,7 @@ function I(t) {
777
2214
  chainid: BigInt(t.chainid)
778
2215
  };
779
2216
  }
780
- function J(t) {
2217
+ function e0(t) {
781
2218
  if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
782
2219
  throw new Error("Chain ID exceeds max safe integer");
783
2220
  return {
@@ -785,14 +2222,14 @@ function J(t) {
785
2222
  chainid: Number(t.chainid)
786
2223
  };
787
2224
  }
788
- function N0({
2225
+ function R0({
789
2226
  actionClaimant: t,
790
2227
  actionStepOne: f,
791
2228
  actionStepTwo: e,
792
- actionStepThree: b,
793
- actionStepFour: n
2229
+ actionStepThree: n,
2230
+ actionStepFour: d
794
2231
  }) {
795
- return t0(
2232
+ return u0(
796
2233
  [
797
2234
  {
798
2235
  type: "tuple",
@@ -824,7 +2261,7 @@ function N0({
824
2261
  components: [
825
2262
  { type: "uint8", name: "filterType" },
826
2263
  { type: "uint8", name: "fieldType" },
827
- { type: "uint8", name: "fieldIndex" },
2264
+ { type: "uint32", name: "fieldIndex" },
828
2265
  { type: "bytes", name: "filterData" }
829
2266
  ]
830
2267
  }
@@ -845,7 +2282,7 @@ function N0({
845
2282
  components: [
846
2283
  { type: "uint8", name: "filterType" },
847
2284
  { type: "uint8", name: "fieldType" },
848
- { type: "uint8", name: "fieldIndex" },
2285
+ { type: "uint32", name: "fieldIndex" },
849
2286
  { type: "bytes", name: "filterData" }
850
2287
  ]
851
2288
  }
@@ -866,7 +2303,7 @@ function N0({
866
2303
  components: [
867
2304
  { type: "uint8", name: "filterType" },
868
2305
  { type: "uint8", name: "fieldType" },
869
- { type: "uint8", name: "fieldIndex" },
2306
+ { type: "uint32", name: "fieldIndex" },
870
2307
  { type: "bytes", name: "filterData" }
871
2308
  ]
872
2309
  }
@@ -887,7 +2324,7 @@ function N0({
887
2324
  components: [
888
2325
  { type: "uint8", name: "filterType" },
889
2326
  { type: "uint8", name: "fieldType" },
890
- { type: "uint8", name: "fieldIndex" },
2327
+ { type: "uint32", name: "fieldIndex" },
891
2328
  { type: "bytes", name: "filterData" }
892
2329
  ]
893
2330
  }
@@ -908,42 +2345,93 @@ function N0({
908
2345
  actionType: e.actionType || 0
909
2346
  },
910
2347
  actionStepThree: {
911
- ...I(b),
912
- actionType: b.actionType || 0
913
- },
914
- actionStepFour: {
915
2348
  ...I(n),
916
2349
  actionType: n.actionType || 0
2350
+ },
2351
+ actionStepFour: {
2352
+ ...I(d),
2353
+ actionType: d.actionType || 0
917
2354
  }
918
2355
  }
919
2356
  ]
920
2357
  );
921
2358
  }
922
- function R0() {
2359
+ function H0() {
923
2360
  return {
924
2361
  filterType: 0,
925
2362
  fieldType: 2,
926
- fieldIndex: N.ANY_ACTION_PARAM,
927
- filterData: k
2363
+ fieldIndex: C.ANY_ACTION_PARAM,
2364
+ filterData: S
928
2365
  };
929
2366
  }
930
- function P0(t) {
2367
+ function G0(t) {
931
2368
  return {
932
2369
  signatureType: 0,
933
- signature: k,
934
- fieldIndex: N.TX_SENDER_CLAIMANT,
935
- targetContract: b0,
2370
+ signature: S,
2371
+ fieldIndex: C.TX_SENDER_CLAIMANT,
2372
+ targetContract: o0,
936
2373
  chainid: t
937
2374
  };
938
2375
  }
2376
+ const T = 63;
2377
+ function F0(t) {
2378
+ if (t.length > 5)
2379
+ throw new Z("Can only pack up to 5 indexes.");
2380
+ let f = 0;
2381
+ return t.forEach((e, n) => {
2382
+ if (e > T)
2383
+ throw new Z(
2384
+ `Index ${e} exceeds the maximum allowed value (${T}).`
2385
+ );
2386
+ f |= (e & T) << n * 6;
2387
+ }), t.length < 5 && (f |= T << t.length * 6), f;
2388
+ }
2389
+ function _0(t) {
2390
+ const f = [];
2391
+ for (let e = 0; e < 5; e++) {
2392
+ const n = t >> e * 6 & T;
2393
+ if (n === T) break;
2394
+ f.push(n);
2395
+ }
2396
+ return f;
2397
+ }
2398
+ function t0(t, f) {
2399
+ const e = O({
2400
+ abi: [t],
2401
+ data: f.data,
2402
+ topics: f.topics
2403
+ }), n = Array.isArray(e.args) ? e.args : Object.values(e.args);
2404
+ if (!t.inputs.some((r) => r.indexed))
2405
+ return {
2406
+ ...f,
2407
+ ...e
2408
+ };
2409
+ const d = [], i = [];
2410
+ for (let r = 0; r < t.inputs.length; r++)
2411
+ t.inputs[r].indexed ? d.push(r) : i.push(r);
2412
+ const a = Array.from({ length: t.inputs.length });
2413
+ let s = 0;
2414
+ for (let r = 0; r < d.length; r++)
2415
+ a[d[r]] = n[s++];
2416
+ for (let r = 0; r < i.length; r++)
2417
+ a[i[r]] = n[s++];
2418
+ return {
2419
+ ...f,
2420
+ eventName: e.eventName,
2421
+ args: a
2422
+ };
2423
+ }
939
2424
  export {
940
- q as EventAction,
941
- m0 as FilterType,
942
- A0 as PrimitiveType,
943
- w0 as SignatureType,
944
- R0 as anyActionParameter,
945
- T0 as isEventActionPayloadSimple,
946
- N0 as prepareEventActionPayload,
947
- P0 as transactionSenderClaimant
2425
+ f0 as EventAction,
2426
+ N0 as FilterType,
2427
+ I0 as PrimitiveType,
2428
+ S0 as SignatureType,
2429
+ H0 as anyActionParameter,
2430
+ t0 as decodeAndReorderLogArgs,
2431
+ C0 as isEventActionPayloadSimple,
2432
+ F0 as packFieldIndexes,
2433
+ R0 as prepareEventActionPayload,
2434
+ G0 as transactionSenderClaimant,
2435
+ _0 as unpackFieldIndexes
948
2436
  };
949
2437
  //# sourceMappingURL=EventAction.js.map