@boostxyz/sdk 0.0.0-alpha.10 → 0.0.0-alpha.12

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 (100) hide show
  1. package/dist/Actions/Action.js +2 -2
  2. package/dist/Actions/EventAction.cjs +1 -1
  3. package/dist/Actions/EventAction.cjs.map +1 -1
  4. package/dist/Actions/EventAction.d.ts +115 -31
  5. package/dist/Actions/EventAction.d.ts.map +1 -1
  6. package/dist/Actions/EventAction.js +306 -122
  7. package/dist/Actions/EventAction.js.map +1 -1
  8. package/dist/AllowLists/AllowList.cjs +1 -1
  9. package/dist/AllowLists/AllowList.cjs.map +1 -1
  10. package/dist/AllowLists/AllowList.d.ts +6 -4
  11. package/dist/AllowLists/AllowList.d.ts.map +1 -1
  12. package/dist/AllowLists/AllowList.js +45 -23
  13. package/dist/AllowLists/AllowList.js.map +1 -1
  14. package/dist/AllowLists/OpenAllowList.d.ts +240 -0
  15. package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
  16. package/dist/AllowLists/SimpleAllowList.js +1 -1
  17. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  18. package/dist/AllowLists/SimpleDenyList.cjs.map +1 -1
  19. package/dist/AllowLists/SimpleDenyList.d.ts +2 -2
  20. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
  21. package/dist/AllowLists/SimpleDenyList.js +9 -111
  22. package/dist/AllowLists/SimpleDenyList.js.map +1 -1
  23. package/dist/Auth/PassthroughAuth.js +1 -1
  24. package/dist/BoostCore.cjs +2 -2
  25. package/dist/BoostCore.cjs.map +1 -1
  26. package/dist/BoostCore.d.ts +14 -1
  27. package/dist/BoostCore.d.ts.map +1 -1
  28. package/dist/BoostCore.js +169 -151
  29. package/dist/BoostCore.js.map +1 -1
  30. package/dist/BoostRegistry.js +1 -1
  31. package/dist/Budgets/Budget.js +2 -2
  32. package/dist/Budgets/ManagedBudget.cjs +1 -1
  33. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  34. package/dist/Budgets/ManagedBudget.d.ts +29 -27
  35. package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
  36. package/dist/Budgets/ManagedBudget.js +78 -77
  37. package/dist/Budgets/ManagedBudget.js.map +1 -1
  38. package/dist/Budgets/SimpleBudget.d.ts +6 -6
  39. package/dist/Budgets/SimpleBudget.d.ts.map +1 -1
  40. package/dist/Budgets/VestingBudget.d.ts +6 -6
  41. package/dist/Budgets/VestingBudget.d.ts.map +1 -1
  42. package/dist/Deployable/DeployableTarget.cjs.map +1 -1
  43. package/dist/Deployable/DeployableTarget.d.ts +1 -1
  44. package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
  45. package/dist/Deployable/DeployableTarget.js +1 -1
  46. package/dist/Deployable/DeployableTarget.js.map +1 -1
  47. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  48. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  49. package/dist/Incentives/AllowListIncentive.js +2 -2
  50. package/dist/Incentives/CGDAIncentive.js +1 -1
  51. package/dist/Incentives/ERC20Incentive.js +1 -1
  52. package/dist/Incentives/ERC20VariableIncentive.d.ts +5 -5
  53. package/dist/Incentives/Incentive.cjs.map +1 -1
  54. package/dist/Incentives/Incentive.js +16 -16
  55. package/dist/Incentives/Incentive.js.map +1 -1
  56. package/dist/Incentives/PointsIncentive.js +1 -1
  57. package/dist/SimpleDenyList-CqT0BMP7.cjs +2 -0
  58. package/dist/SimpleDenyList-CqT0BMP7.cjs.map +1 -0
  59. package/dist/SimpleDenyList-IJ9Ipya7.js +112 -0
  60. package/dist/SimpleDenyList-IJ9Ipya7.js.map +1 -0
  61. package/dist/Validators/SignerValidator.js +1 -1
  62. package/dist/Validators/Validator.js +2 -2
  63. package/dist/{componentInterfaces-DYkaxBda.js → componentInterfaces-Cmg8tUxq.js} +5 -5
  64. package/dist/componentInterfaces-Cmg8tUxq.js.map +1 -0
  65. package/dist/errors.cjs +1 -1
  66. package/dist/errors.cjs.map +1 -1
  67. package/dist/errors.d.ts +116 -20
  68. package/dist/errors.d.ts.map +1 -1
  69. package/dist/errors.js +106 -52
  70. package/dist/errors.js.map +1 -1
  71. package/dist/{generated-BDeDiaCK.js → generated-HGddZXHJ.js} +21 -21
  72. package/dist/{generated-BDeDiaCK.js.map → generated-HGddZXHJ.js.map} +1 -1
  73. package/dist/index.cjs +1 -1
  74. package/dist/index.js +95 -91
  75. package/package.json +11 -7
  76. package/src/Actions/Action.test.ts +9 -5
  77. package/src/Actions/ContractAction.test.ts +3 -3
  78. package/src/Actions/ERC721MintAction.test.ts +1 -1
  79. package/src/Actions/EventAction.test.ts +527 -99
  80. package/src/Actions/EventAction.ts +296 -58
  81. package/src/AllowLists/AllowList.test.ts +2 -2
  82. package/src/AllowLists/AllowList.ts +5 -3
  83. package/src/AllowLists/OpenAllowList.test.ts +40 -0
  84. package/src/AllowLists/OpenAllowList.ts +45 -0
  85. package/src/AllowLists/SimpleAllowList.test.ts +1 -1
  86. package/src/AllowLists/SimpleDenyList.test.ts +1 -1
  87. package/src/AllowLists/SimpleDenyList.ts +6 -9
  88. package/src/BoostCore.ts +19 -0
  89. package/src/Budgets/ManagedBudget.test.ts +70 -7
  90. package/src/Budgets/ManagedBudget.ts +42 -31
  91. package/src/Budgets/SimpleBudget.test.ts +3 -3
  92. package/src/Budgets/SimpleBudget.ts +6 -6
  93. package/src/Budgets/VestingBudget.test.ts +3 -3
  94. package/src/Budgets/VestingBudget.ts +6 -6
  95. package/src/Deployable/DeployableTarget.ts +1 -1
  96. package/src/Incentives/AllowListIncentive.test.ts +1 -1
  97. package/src/Incentives/ERC20VariableIncentive.ts +5 -5
  98. package/src/Validators/SignerValidator.test.ts +1 -1
  99. package/src/errors.ts +160 -20
  100. package/dist/componentInterfaces-DYkaxBda.js.map +0 -1
@@ -1,22 +1,25 @@
1
- import { aV as o, aW as g, aX as h, aY as A, aZ as T } from "../generated-BDeDiaCK.js";
2
- import { isAddressEqual as p, encodeAbiParameters as w } from "viem";
3
- import { getLogs as S } from "viem/actions";
4
- import { DeployableTarget as E } from "../Deployable/DeployableTarget.js";
5
- import { FieldValueUndefinedError as N, UnrecognizedFilterTypeError as x, FieldValueNotComparableError as C, InvalidNumericalCriteriaError as u, NoEventActionStepsProvidedError as I, TooManyEventActionStepsProvidedError as D } from "../errors.js";
6
- import { RegistryType as v } from "../utils.js";
7
- const R = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660048111156105305761052f6115d7565b5b6004811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600481111561076e5761076d6115d7565b5b60048111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600481111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600481111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600581106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60058110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220a8ee5f8b5a49a9c61c1747482b13d7b4617cfc02983722a0395994bf27c456a064736f6c634300081a0033", _ = {
1
+ import { b8 as u, b9 as w, ba as x, bb as T, bc as E } from "../generated-HGddZXHJ.js";
2
+ import { trim as I, decodeFunctionData as S, fromHex as p, isAddressEqual as C, encodeAbiParameters as N } from "viem";
3
+ import { getLogs as v } from "viem/actions";
4
+ import { DeployableTarget as D } from "../Deployable/DeployableTarget.js";
5
+ import { UnparseableAbiParamError as R, FunctionDataDecodeError as P, UnrecognizedFilterTypeError as _, FieldValueNotComparableError as y, InvalidNumericalCriteriaError as l, DecodedArgsMalformedError as B, FieldValueUndefinedError as g, NoEventActionStepsProvidedError as U, TooManyEventActionStepsProvidedError as L } from "../errors.js";
6
+ import { RegistryType as G } from "../utils.js";
7
+ const O = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c0fb13f888b0a69e33db3d7586e65062d85bac26cd33b0773ccbf5249746b2b264736f6c634300081a0033", F = {
8
8
  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
9
9
  name: "Transfer",
10
10
  type: "event",
11
11
  inputs: [
12
12
  {
13
- type: "address"
13
+ type: "address",
14
+ indexed: !0
14
15
  },
15
16
  {
16
- type: "address"
17
+ type: "address",
18
+ indexed: !0
17
19
  },
18
20
  {
19
- type: "uint256"
21
+ type: "uint256",
22
+ indexed: !0
20
23
  }
21
24
  ]
22
25
  },
@@ -80,32 +83,101 @@ const R = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f6
80
83
  }
81
84
  ]
82
85
  },
83
- "0x00cb39d6c2c520f0597db0021367767c48fef2964cf402d3c9e9d4df12e43964": {
84
- name: "Test",
86
+ "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b": {
87
+ name: "InfoIndexed",
88
+ type: "event",
89
+ inputs: [
90
+ {
91
+ type: "address",
92
+ indexed: !0
93
+ },
94
+ {
95
+ type: "string",
96
+ indexed: !0
97
+ }
98
+ ]
99
+ },
100
+ "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c": {
101
+ name: "Info",
85
102
  type: "event",
86
103
  inputs: [
104
+ {
105
+ type: "address"
106
+ },
87
107
  {
88
108
  type: "string"
89
109
  }
90
110
  ]
91
111
  }
92
- }, B = {
93
- "Transfer(address,address,uint256)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
112
+ }, k = {
113
+ "Transfer(address indexed,address indexed,uint256 indexed)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
94
114
  "Purchased(address,address,uint256,uint256,uint256)": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
95
115
  "NameRegistered(string,bytes32,address,uint256,uint256,uint256)": "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27",
96
116
  "DelegateChanged(address,address,address)": "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f",
97
- "Test(string)": "0x00cb39d6c2c520f0597db0021367767c48fef2964cf402d3c9e9d4df12e43964"
98
- }, V = {
99
- abi: _,
100
- selectors: B
117
+ "InfoIndexed(address indexed,string indexed)": "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b",
118
+ "Info(address,string)": "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c"
119
+ }, H = {
120
+ abi: F,
121
+ selectors: k
122
+ }, M = {
123
+ "0x40c10f19": {
124
+ name: "mint",
125
+ type: "function",
126
+ stateMutability: "nonpayable",
127
+ inputs: [
128
+ {
129
+ type: "address",
130
+ name: "to"
131
+ },
132
+ {
133
+ type: "uint256",
134
+ name: "amount"
135
+ }
136
+ ],
137
+ outputs: []
138
+ },
139
+ "0x17d304b0": {
140
+ name: "mintPayable",
141
+ type: "function",
142
+ stateMutability: "nonpayable",
143
+ inputs: [
144
+ {
145
+ type: "address",
146
+ name: "to"
147
+ },
148
+ {
149
+ type: "uint256",
150
+ name: "amount"
151
+ }
152
+ ],
153
+ outputs: []
154
+ },
155
+ "0x6a627842": {
156
+ name: "mint",
157
+ type: "function",
158
+ stateMutability: "nonpayable",
159
+ inputs: [
160
+ {
161
+ type: "address"
162
+ }
163
+ ],
164
+ outputs: []
165
+ }
166
+ }, $ = {
167
+ "mint(address to, uint256 amount)": "0x40c10f19",
168
+ "mintPayable(address to, uint256 amount)": "0x17d304b0",
169
+ "mint(address)": "0x6a627842"
170
+ }, Q = {
171
+ abi: M,
172
+ selectors: $
101
173
  };
102
- var U = /* @__PURE__ */ ((b) => (b[b.EQUAL = 0] = "EQUAL", b[b.NOT_EQUAL = 1] = "NOT_EQUAL", b[b.GREATER_THAN = 2] = "GREATER_THAN", b[b.LESS_THAN = 3] = "LESS_THAN", b[b.CONTAINS = 4] = "CONTAINS", b))(U || {}), L = /* @__PURE__ */ ((b) => (b[b.UINT = 0] = "UINT", b[b.ADDRESS = 1] = "ADDRESS", b[b.BYTES = 2] = "BYTES", b[b.STRING = 3] = "STRING", b))(L || {}), O = /* @__PURE__ */ ((b) => (b[b.EVENT = 0] = "EVENT", b[b.FUNC = 1] = "FUNC", b))(O || {});
103
- function P(b) {
174
+ var V = /* @__PURE__ */ ((b) => (b[b.EQUAL = 0] = "EQUAL", b[b.NOT_EQUAL = 1] = "NOT_EQUAL", b[b.GREATER_THAN = 2] = "GREATER_THAN", b[b.LESS_THAN = 3] = "LESS_THAN", b[b.CONTAINS = 4] = "CONTAINS", b[b.REGEX = 5] = "REGEX", b))(V || {}), X = /* @__PURE__ */ ((b) => (b[b.UINT = 0] = "UINT", b[b.ADDRESS = 1] = "ADDRESS", b[b.BYTES = 2] = "BYTES", b[b.STRING = 3] = "STRING", b))(X || {}), q = /* @__PURE__ */ ((b) => (b[b.EVENT = 0] = "EVENT", b[b.FUNC = 1] = "FUNC", b))(q || {});
175
+ function Y(b) {
104
176
  return Array.isArray(b.actionSteps);
105
177
  }
106
- const r = class r extends E {
178
+ const o = class o extends D {
107
179
  constructor() {
108
- super(...arguments), this.abi = o;
180
+ super(...arguments), this.abi = u;
109
181
  }
110
182
  /**
111
183
  * Gets a specific action event by index
@@ -113,7 +185,7 @@ const r = class r extends E {
113
185
  * @public
114
186
  * @async
115
187
  * @param {number} index The index of the action event to retrieve
116
- * @param {?ReadParams<typeof eventActionAbi, 'getActionStep'>} [params]
188
+ * @param {?ReadEventActionParams<'getActionStep'>} [params]
117
189
  * @returns {Promise<ActionStep>}
118
190
  */
119
191
  async getActionStep(f, e) {
@@ -124,24 +196,24 @@ const r = class r extends E {
124
196
  *
125
197
  * @public
126
198
  * @async
127
- * @param {?ReadParams<typeof eventActionAbi, 'getActionSteps'>} [params]
199
+ * @param {?ReadEventActionParams<'getActionSteps'>} [params]
128
200
  * @returns {Promise<ActionStep[]>}
129
201
  */
130
202
  async getActionSteps(f) {
131
- const e = await g(this._config, {
203
+ const e = await w(this._config, {
132
204
  address: this.assertValidAddress(),
133
205
  ...this.optionallyAttachAccount(),
134
206
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
135
207
  ...f
136
208
  });
137
- return G(e.map(l));
209
+ return z(e.map(h));
138
210
  }
139
211
  /**
140
212
  * Gets the count of action events
141
213
  *
142
214
  * @public
143
215
  * @async
144
- * @param {?ReadParams<typeof eventActionAbi, 'getActionStepsCount'>} [params]
216
+ * @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
145
217
  * @returns {Promise<bigint>}
146
218
  */
147
219
  async getActionStepsCount(f) {
@@ -152,17 +224,16 @@ const r = class r extends E {
152
224
  *
153
225
  * @public
154
226
  * @async
155
- * @param {?ReadParams<typeof eventActionAbi, 'getActionClaimant'>} [params]
227
+ * @param {?ReadEventActionParams<'getActionClaimant'>} [params]
156
228
  * @returns {Promise<ActionClaimant>}
157
229
  */
158
230
  async getActionClaimant(f) {
159
- const e = await h(this._config, {
231
+ const e = await x(this._config, {
160
232
  address: this.assertValidAddress(),
161
233
  ...this.optionallyAttachAccount(),
162
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
163
234
  ...f
164
235
  });
165
- return l(e);
236
+ return h(e);
166
237
  }
167
238
  /**
168
239
  * Executes a prepared event action
@@ -186,14 +257,14 @@ const r = class r extends E {
186
257
  * @returns {unknown}
187
258
  */
188
259
  async executeRaw(f, e) {
189
- const { request: a, result: t } = await A(this._config, {
260
+ const { request: t, result: a } = await T(this._config, {
190
261
  address: this.assertValidAddress(),
191
262
  ...this.optionallyAttachAccount(),
192
263
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
193
264
  ...e,
194
265
  args: [f]
195
266
  });
196
- return { hash: await T(this._config, a), result: t };
267
+ return { hash: await E(this._config, t), result: a };
197
268
  }
198
269
  /**
199
270
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
@@ -201,89 +272,198 @@ const r = class r extends E {
201
272
  *
202
273
  * @public
203
274
  * @async
204
- * @param {?ReadParams<typeof eventActionAbi, 'getActionSteps'> &
205
- * GetLogsParams<Abi, ContractEventName<Abi>> & {
206
- * knownEvents?: Record<Hex, AbiEvent>;
207
- * logs?: Log[];
208
- * }} [params]
275
+ * @param {?TxParams} [params]
209
276
  * @returns {Promise<boolean>}
210
277
  */
211
278
  async validateActionSteps(f) {
212
- const e = await this.getActionSteps(f);
213
- for (const a of e)
214
- if (!await this.isActionStepValid(a, f))
279
+ const e = await this.getActionSteps();
280
+ for (const t of e)
281
+ if (!await this.isActionStepValid(t, f))
215
282
  return !1;
216
283
  return !0;
217
284
  }
218
285
  /**
219
- * Validates a single action step with a given criteria against logs.
220
- * If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
286
+ * Validates a single action step with a given criteria against logs or function calls.
287
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
288
+ * For functions a hash is required.
221
289
  *
222
290
  * @public
223
291
  * @async
224
- * @param {ActionStep} actionStep
225
- * @param {?GetLogsParams<Abi, ContractEventName<Abi>> & {
226
- * knownEvents?: Record<Hex, AbiEvent>;
227
- * logs?: Log[];
228
- * }} [params]
292
+ * @param {ActionStep} actionStep - The action step to validate. Can be a function of event step.
293
+ * @param {?TxParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, logs, and chain ID.
229
294
  * @returns {Promise<boolean>}
230
295
  */
231
296
  async isActionStepValid(f, e) {
232
- const a = f.actionParameter, t = f.signature;
233
- let d;
234
- if (e != null && e.knownEvents ? d = e.knownEvents[t] : d = V.abi[t], !d)
235
- throw new Error(`No known ABI for given event signature: ${t}`);
236
- const c = f.targetContract, n = (e == null ? void 0 : e.logs) || await S(this._config.getClient({ chainId: e == null ? void 0 : e.chainId }), {
297
+ return f.signatureType === 0 ? await this.isActionEventValid(f, e) : f.signatureType === 1 ? await this.isActionFunctionValid(
298
+ f,
299
+ e
300
+ ) : !1;
301
+ }
302
+ /**
303
+ * Validates a single action event with a given criteria against logs.
304
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
305
+ *
306
+ * @public
307
+ * @async
308
+ * @param {ActionStep} actionStep - The action step containing the event to validate.
309
+ * @param {?ValidateEventStepParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, logs, and chain ID.
310
+ * @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
311
+ */
312
+ async isActionEventValid(f, e) {
313
+ const t = f.actionParameter, a = f.signature;
314
+ let n;
315
+ if (e != null && e.knownEvents ? n = e.knownEvents[a] : n = H.abi[a], !n)
316
+ throw new Error(`No known ABI for given event signature: ${a}`);
317
+ if (this.isArraylikeIndexed(f, n))
318
+ throw new R(
319
+ f.actionParameter.fieldIndex,
320
+ n
321
+ );
322
+ const i = f.targetContract, d = (e == null ? void 0 : e.logs) || await v(this._config.getClient({ chainId: e == null ? void 0 : e.chainId }), {
237
323
  // biome-ignore lint/suspicious/noExplicitAny: <explanation>
238
324
  ...e,
239
- address: c,
240
- event: d
325
+ address: i,
326
+ event: n
241
327
  });
242
- if (!n.length)
328
+ if (!d.length)
243
329
  return !1;
244
- for (let i of n)
245
- if (!this.validateLogAgainstCriteria(a, i))
330
+ for (let c of d)
331
+ if (!this.validateLogAgainstCriteria(t, c))
246
332
  return !1;
247
333
  return !0;
248
334
  }
249
335
  /**
250
- * Validates a {@link Log} against a given criteria.
336
+ * Validates a single action function with a given criteria against the transaction input.
337
+ * If a transaction hash is provided in the optional `params` argument, then the transaction
338
+ * will be fetched and decoded using the configured client.
339
+ *
340
+ * @public
341
+ * @async
342
+ * @param {ActionStep} actionStep - The action step containing the function to validate.
343
+ * @param {?ValidateFunctionStepParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, transaction hash, and chain ID.
344
+ * @returns {Promise<boolean>} Resolves to true if the action function is valid, throws if the inputs are invalid, otherwise false.
345
+ */
346
+ async isActionFunctionValid(f, e) {
347
+ const t = f.actionParameter, a = I(f.signature);
348
+ if (!e || !(e != null && e.hash))
349
+ throw new Error("Hash is required for function validation");
350
+ const i = await this._config.getClient({
351
+ chainId: e == null ? void 0 : e.chainId
352
+ }).getTransaction({ hash: e.hash }), d = Q.abi[a];
353
+ if (!d)
354
+ throw new Error(
355
+ `No known ABI for given function signature: ${a}`
356
+ );
357
+ let c;
358
+ try {
359
+ c = S({
360
+ abi: [d],
361
+ data: i.input
362
+ });
363
+ } catch (A) {
364
+ throw new P([d], A);
365
+ }
366
+ const r = c.args;
367
+ return !(!r || !c || !this.validateFunctionAgainstCriteria(
368
+ t,
369
+ r
370
+ ));
371
+ }
372
+ /**
373
+ * Validates a field against a given criteria.
251
374
  *
252
375
  * @param {Criteria} criteria - The criteria to validate against.
253
- * @param {Log} log - The Viem event log.
254
- * @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
376
+ * @param {string | bigint} fieldValue - The field value to validate.
377
+ * @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
255
378
  */
256
- validateLogAgainstCriteria(f, e) {
257
- const a = e.topics.at(f.fieldIndex);
258
- if (a === void 0)
259
- throw new N({ log: e, criteria: f, fieldValue: a });
379
+ validateFieldAgainstCriteria(f, e, t) {
260
380
  switch (f.filterType) {
261
381
  case 0:
262
- return f.fieldType === 1 ? p(
263
- f.filterData,
264
- `0x${a.slice(-40)}`
265
- ) : a === f.filterData;
382
+ return f.fieldType === 1 ? C(f.filterData, e) : e === f.filterData;
266
383
  case 1:
267
- return f.fieldType === 1 ? !p(
268
- f.filterData,
269
- `0x${a.slice(-40)}`
270
- ) : a !== f.filterData;
384
+ return e !== f.filterData;
271
385
  case 2:
272
386
  if (f.fieldType === 0)
273
- return BigInt(a) > BigInt(f.filterData);
274
- throw new u({ log: e, criteria: f, fieldValue: a });
387
+ return BigInt(e) > BigInt(f.filterData);
388
+ throw new l({
389
+ ...t,
390
+ criteria: f,
391
+ fieldValue: e
392
+ });
275
393
  case 3:
276
394
  if (f.fieldType === 0)
277
- return BigInt(a) < BigInt(f.filterData);
278
- throw new u({ log: e, criteria: f, fieldValue: a });
395
+ return BigInt(e) < BigInt(f.filterData);
396
+ throw new l({
397
+ ...t,
398
+ criteria: f,
399
+ fieldValue: e
400
+ });
279
401
  case 4:
280
- if (f.fieldType === 2 || f.fieldType === 3)
281
- return a.includes(f.filterData);
282
- throw new C({ log: e, criteria: f, fieldValue: a });
402
+ if (f.fieldType === 2 || f.fieldType === 3) {
403
+ let a;
404
+ return f.fieldType === 3 ? a = p(f.filterData, "string") : a = f.filterData.slice(2), e.includes(a);
405
+ }
406
+ throw new y({
407
+ ...t,
408
+ criteria: f,
409
+ fieldValue: e
410
+ });
411
+ case 5:
412
+ if (typeof e != "string")
413
+ throw new y({
414
+ ...t,
415
+ criteria: f,
416
+ fieldValue: e
417
+ });
418
+ if (f.fieldType === 3) {
419
+ const a = p(f.filterData, "string");
420
+ return new RegExp(a).test(e);
421
+ }
283
422
  default:
284
- throw new x({ log: e, criteria: f, fieldValue: a });
423
+ throw new _({
424
+ ...t,
425
+ criteria: f,
426
+ fieldValue: e
427
+ });
285
428
  }
286
429
  }
430
+ /**
431
+ * Validates a {@link Log} against a given criteria.
432
+ *
433
+ * @param {Criteria} criteria - The criteria to validate against.
434
+ * @param {Log} log - The Viem event log.
435
+ * @returns {Promise<boolean>} - Returns true if the log passes the criteria, false otherwise.
436
+ */
437
+ validateLogAgainstCriteria(f, e) {
438
+ if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex)
439
+ throw new B({
440
+ log: e,
441
+ criteria: f,
442
+ fieldValue: void 0
443
+ });
444
+ const t = e.args.at(f.fieldIndex);
445
+ if (t === void 0)
446
+ throw new g({ log: e, criteria: f, fieldValue: t });
447
+ return this.validateFieldAgainstCriteria(f, t, { log: e });
448
+ }
449
+ /**
450
+ * Validates a function's decoded arguments against a given criteria.
451
+ *
452
+ * @param {Criteria} criteria - The criteria to validate against.
453
+ * @param {unknown[]} decodedArgs - The decoded arguments of the function call.
454
+ * @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
455
+ */
456
+ validateFunctionAgainstCriteria(f, e) {
457
+ const t = e[f.fieldIndex];
458
+ if (t === void 0)
459
+ throw new g({
460
+ criteria: f,
461
+ fieldValue: t
462
+ });
463
+ return this.validateFieldAgainstCriteria(f, t, {
464
+ decodedArgs: e
465
+ });
466
+ }
287
467
  /**
288
468
  * @inheritdoc
289
469
  *
@@ -293,42 +473,46 @@ const r = class r extends E {
293
473
  * @returns {GenericDeployableParams}
294
474
  */
295
475
  buildParameters(f, e) {
296
- const [a, t] = this.validateDeploymentConfig(
476
+ const [t, a] = this.validateDeploymentConfig(
297
477
  f,
298
478
  e
299
479
  );
300
- let d;
301
- if (P(a)) {
302
- let c = a.actionSteps.filter((i) => !!i);
303
- if (c.length === 0)
304
- throw new I();
305
- if (c.length > 4)
306
- throw new D();
307
- let n = Array.from({ length: 4 }, (i, m) => c.at(m) || c.at(-1));
308
- d = {
309
- actionClaimant: a.actionClaimant,
310
- actionStepOne: n[0],
311
- actionStepTwo: n[1],
312
- actionStepThree: n[2],
313
- actionStepFour: n[3]
480
+ let n;
481
+ if (Y(t)) {
482
+ let i = t.actionSteps.filter((c) => !!c);
483
+ if (i.length === 0)
484
+ throw new U();
485
+ if (i.length > 4)
486
+ throw new L();
487
+ let d = Array.from({ length: 4 }, (c, r) => i.at(r) || i.at(-1));
488
+ n = {
489
+ actionClaimant: t.actionClaimant,
490
+ actionStepOne: d[0],
491
+ actionStepTwo: d[1],
492
+ actionStepThree: d[2],
493
+ actionStepFour: d[3]
314
494
  };
315
495
  } else
316
- d = a;
496
+ n = t;
317
497
  return {
318
- abi: o,
319
- bytecode: R,
320
- args: [H(d)],
321
- ...this.optionallyAttachAccount(t.account)
498
+ abi: u,
499
+ bytecode: O,
500
+ args: [J(n)],
501
+ ...this.optionallyAttachAccount(a.account)
322
502
  };
323
503
  }
504
+ isArraylikeIndexed(f, e) {
505
+ var t;
506
+ return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((t = e.inputs[f.actionParameter.fieldIndex]) != null && t.indexed));
507
+ }
324
508
  };
325
- r.base = "0x2bD655240116b18f5b9F24E4b7b51B87B7b33D37", r.registryType = v.ACTION;
326
- let y = r;
327
- function G(b) {
509
+ o.base = "0x2bD655240116b18f5b9F24E4b7b51B87B7b33D37", o.registryType = G.ACTION;
510
+ let m = o;
511
+ function z(b) {
328
512
  const f = [], e = {};
329
- for (let a of b) {
330
- const t = JSON.stringify(a);
331
- e[t] || (f.push(a), e[t] = !0);
513
+ for (let t of b) {
514
+ const a = JSON.stringify(t);
515
+ e[a] || (f.push(t), e[a] = !0);
332
516
  }
333
517
  return f;
334
518
  }
@@ -338,7 +522,7 @@ function s(b) {
338
522
  chainid: BigInt(b.chainid)
339
523
  };
340
524
  }
341
- function l(b) {
525
+ function h(b) {
342
526
  if (b.chainid > BigInt(Number.MAX_SAFE_INTEGER))
343
527
  throw new Error("Chain ID exceeds max safe integer");
344
528
  return {
@@ -346,14 +530,14 @@ function l(b) {
346
530
  chainid: Number(b.chainid)
347
531
  };
348
532
  }
349
- function H({
533
+ function J({
350
534
  actionClaimant: b,
351
535
  actionStepOne: f,
352
536
  actionStepTwo: e,
353
- actionStepThree: a,
354
- actionStepFour: t
537
+ actionStepThree: t,
538
+ actionStepFour: a
355
539
  }) {
356
- return w(
540
+ return N(
357
541
  [
358
542
  {
359
543
  type: "tuple",
@@ -469,23 +653,23 @@ function H({
469
653
  actionType: e.actionType || 0
470
654
  },
471
655
  actionStepThree: {
472
- ...s(a),
473
- actionType: a.actionType || 0
474
- },
475
- actionStepFour: {
476
656
  ...s(t),
477
657
  actionType: t.actionType || 0
658
+ },
659
+ actionStepFour: {
660
+ ...s(a),
661
+ actionType: a.actionType || 0
478
662
  }
479
663
  }
480
664
  ]
481
665
  );
482
666
  }
483
667
  export {
484
- y as EventAction,
485
- U as FilterType,
486
- L as PrimitiveType,
487
- O as SignatureType,
488
- P as isEventActionPayloadSimple,
489
- H as prepareEventActionPayload
668
+ m as EventAction,
669
+ V as FilterType,
670
+ X as PrimitiveType,
671
+ q as SignatureType,
672
+ Y as isEventActionPayloadSimple,
673
+ J as prepareEventActionPayload
490
674
  };
491
675
  //# sourceMappingURL=EventAction.js.map