@boostxyz/sdk 0.0.0-alpha.11 → 0.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.js +1 -1
- package/dist/Actions/ContractAction.d.ts +2 -2
- package/dist/Actions/ContractAction.d.ts.map +1 -1
- package/dist/Actions/ERC721MintAction.d.ts +2 -2
- package/dist/Actions/ERC721MintAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +117 -33
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +309 -121
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +2 -2
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.d.ts +2 -2
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +23 -19
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.d.ts +2 -2
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +6 -5
- package/dist/AllowLists/SimpleDenyList.js.map +1 -1
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +27 -5
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +438 -347
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.cjs.map +1 -1
- package/dist/BoostRegistry.d.ts +26 -5
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +125 -64
- package/dist/BoostRegistry.js.map +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.d.ts +2 -2
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +41 -37
- package/dist/Budgets/ManagedBudget.js.map +1 -1
- package/dist/Budgets/SimpleBudget.d.ts +2 -2
- package/dist/Budgets/SimpleBudget.d.ts.map +1 -1
- package/dist/Budgets/VestingBudget.d.ts +2 -2
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -1
- package/dist/Deployable/DeployableTarget.d.ts +6 -6
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +22 -17
- package/dist/Deployable/DeployableTarget.js.map +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
- package/dist/Incentives/AllowListIncentive.d.ts +2 -2
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +17 -13
- package/dist/Incentives/AllowListIncentive.js.map +1 -1
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
- package/dist/Incentives/CGDAIncentive.d.ts +14 -2
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +27 -23
- package/dist/Incentives/CGDAIncentive.js.map +1 -1
- package/dist/Incentives/ERC1155Incentive.d.ts +2 -2
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
- package/dist/Incentives/ERC20Incentive.d.ts +2 -2
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +17 -13
- package/dist/Incentives/ERC20Incentive.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.d.ts +2 -2
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.cjs.map +1 -1
- package/dist/Incentives/Incentive.js +34 -30
- package/dist/Incentives/Incentive.js.map +1 -1
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.cjs.map +1 -1
- package/dist/Incentives/PointsIncentive.d.ts +2 -2
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +13 -9
- package/dist/Incentives/PointsIncentive.js.map +1 -1
- package/dist/{SimpleDenyList-4PtOPXTc.js → SimpleDenyList-C21O9Yfi.js} +23 -19
- package/dist/SimpleDenyList-C21O9Yfi.js.map +1 -0
- package/dist/SimpleDenyList-DeJRKD2D.cjs +2 -0
- package/dist/{SimpleDenyList-4PtOPXTc.js.map → SimpleDenyList-DeJRKD2D.cjs.map} +1 -1
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.d.ts +2 -2
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +18 -14
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +1 -1
- package/dist/deployments-BvFcK_eR.js +40 -0
- package/dist/deployments-BvFcK_eR.js.map +1 -0
- package/dist/deployments-Ho4PnGCS.cjs +2 -0
- package/dist/deployments-Ho4PnGCS.cjs.map +1 -0
- package/dist/deployments.json +38 -0
- package/dist/errors.cjs +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.ts +122 -20
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +98 -28
- package/dist/errors.js.map +1 -1
- package/dist/{generated-BDeDiaCK.js → generated-LpgSHrH0.js} +150 -110
- package/dist/generated-LpgSHrH0.js.map +1 -0
- package/dist/generated-tq_HLZJ0.cjs +3 -0
- package/dist/generated-tq_HLZJ0.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +115 -108
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.ts +25 -11
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +38 -23
- package/dist/utils.js.map +1 -1
- package/package.json +10 -6
- package/src/Actions/Action.test.ts +8 -4
- package/src/Actions/ContractAction.ts +5 -3
- package/src/Actions/ERC721MintAction.ts +5 -3
- package/src/Actions/EventAction.test.ts +528 -100
- package/src/Actions/EventAction.ts +302 -60
- package/src/AllowLists/AllowList.test.ts +1 -1
- package/src/AllowLists/SimpleAllowList.ts +6 -3
- package/src/AllowLists/SimpleDenyList.ts +6 -3
- package/src/BoostCore.test.ts +31 -91
- package/src/BoostCore.ts +137 -34
- package/src/BoostRegistry.ts +89 -21
- package/src/Budgets/ManagedBudget.ts +6 -4
- package/src/Budgets/SimpleBudget.ts +4 -3
- package/src/Budgets/VestingBudget.ts +4 -3
- package/src/Deployable/DeployableTarget.ts +22 -11
- package/src/Incentives/AllowListIncentive.ts +6 -3
- package/src/Incentives/CGDAIncentive.ts +6 -3
- package/src/Incentives/ERC1155Incentive.ts +4 -3
- package/src/Incentives/ERC20Incentive.ts +6 -3
- package/src/Incentives/ERC20VariableIncentive.ts +6 -3
- package/src/Incentives/PointsIncentive.ts +6 -3
- package/src/Validators/SignerValidator.ts +6 -3
- package/src/errors.ts +177 -21
- package/src/utils.ts +60 -11
- package/dist/SimpleDenyList-CqT0BMP7.cjs +0 -2
- package/dist/SimpleDenyList-CqT0BMP7.cjs.map +0 -1
- package/dist/generated-BDeDiaCK.js.map +0 -1
- package/dist/generated-wKBNvm48.cjs +0 -3
- package/dist/generated-wKBNvm48.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { eventActionAbi } from '@boostxyz/evm';
|
|
2
|
-
import { type Abi, type AbiEvent, type Address, type ContractEventName, type Hex, type Log } from 'viem';
|
|
2
|
+
import { type Abi, type AbiEvent, type Address, type ContractEventName, type ContractFunctionName, type GetLogsReturnType, type GetTransactionParameters, type Hex, type Log } from 'viem';
|
|
3
3
|
import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
|
|
4
4
|
import { DeployableTarget } from '../Deployable/DeployableTarget';
|
|
5
5
|
import { type GetLogsParams, type ReadParams, RegistryType, type WriteParams } from '../utils';
|
|
@@ -14,7 +14,8 @@ export declare enum FilterType {
|
|
|
14
14
|
NOT_EQUAL = 1,
|
|
15
15
|
GREATER_THAN = 2,
|
|
16
16
|
LESS_THAN = 3,
|
|
17
|
-
CONTAINS = 4
|
|
17
|
+
CONTAINS = 4,
|
|
18
|
+
REGEX = 5
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* The primitive types supported for filtering.
|
|
@@ -153,6 +154,35 @@ export interface ActionStep {
|
|
|
153
154
|
*/
|
|
154
155
|
actionParameter: Criteria;
|
|
155
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Parameters for validating an event step.
|
|
159
|
+
*
|
|
160
|
+
* This type omits the 'address' field from GetLogsParams and adds optional fields
|
|
161
|
+
* for logs and known events.
|
|
162
|
+
*
|
|
163
|
+
* @typedef {Object} ValidateEventStepParams
|
|
164
|
+
* @property {Log[]} [logs]
|
|
165
|
+
* @property {Record<Hex, AbiEvent>} [knownEvents]
|
|
166
|
+
* @property {number} [fromBlock]
|
|
167
|
+
* @property {number} [toBlock]
|
|
168
|
+
* @property {Hex} [blockHash]
|
|
169
|
+
* @property {Abi} abi
|
|
170
|
+
* @property {ContractEventName<Abi>} eventName
|
|
171
|
+
*/
|
|
172
|
+
export type ValidateEventStepParams = Omit<GetLogsParams<Abi, ContractEventName<Abi>> & {
|
|
173
|
+
logs?: Log[];
|
|
174
|
+
knownEvents?: Record<Hex, AbiEvent>;
|
|
175
|
+
}, 'address'>;
|
|
176
|
+
/**
|
|
177
|
+
* Parameters for validating a function step.
|
|
178
|
+
*
|
|
179
|
+
* This type includes all parameters required to get a transaction.
|
|
180
|
+
*
|
|
181
|
+
* @typedef {Object} ValidateFunctionStepParams
|
|
182
|
+
* @property {Hex} hash
|
|
183
|
+
* @property {number} [chainId]
|
|
184
|
+
*/
|
|
185
|
+
export type ValidateFunctionStepParams = GetTransactionParameters;
|
|
156
186
|
/**
|
|
157
187
|
* You can either supply a simplified version of the payload, or one that explicitly declares action steps.
|
|
158
188
|
*
|
|
@@ -223,6 +253,21 @@ export interface EventActionPayloadRaw {
|
|
|
223
253
|
*/
|
|
224
254
|
actionStepFour: ActionStep;
|
|
225
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* Array of event logs to pass into TxParams
|
|
258
|
+
* @export
|
|
259
|
+
* @typedef {EventLogs}
|
|
260
|
+
*/
|
|
261
|
+
export type EventLogs = GetLogsReturnType<AbiEvent, AbiEvent[], true>;
|
|
262
|
+
/**
|
|
263
|
+
* Getter params from the event action contract
|
|
264
|
+
*
|
|
265
|
+
* @export
|
|
266
|
+
* @typedef {ReadEventActionParams}
|
|
267
|
+
* @param {fnName} fnName - The getter function name
|
|
268
|
+
*/
|
|
269
|
+
export type ReadEventActionParams<fnName extends ContractFunctionName<typeof eventActionAbi, 'pure' | 'view'>> = ReadParams<typeof eventActionAbi, fnName>;
|
|
270
|
+
type TxParams = ValidateEventStepParams | ValidateFunctionStepParams;
|
|
226
271
|
/**
|
|
227
272
|
* A generic event action
|
|
228
273
|
*
|
|
@@ -553,9 +598,9 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
553
598
|
*
|
|
554
599
|
* @public
|
|
555
600
|
* @static
|
|
556
|
-
* @type {Address}
|
|
601
|
+
* @type {Record<number, Address>}
|
|
557
602
|
*/
|
|
558
|
-
static
|
|
603
|
+
static bases: Record<number, Address>;
|
|
559
604
|
/**
|
|
560
605
|
* @inheritdoc
|
|
561
606
|
*
|
|
@@ -570,37 +615,37 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
570
615
|
* @public
|
|
571
616
|
* @async
|
|
572
617
|
* @param {number} index The index of the action event to retrieve
|
|
573
|
-
* @param {?
|
|
618
|
+
* @param {?ReadEventActionParams<'getActionStep'>} [params]
|
|
574
619
|
* @returns {Promise<ActionStep>}
|
|
575
620
|
*/
|
|
576
|
-
getActionStep(index: number, params?:
|
|
621
|
+
getActionStep(index: number, params?: ReadEventActionParams<'getActionStep'>): Promise<ActionStep | undefined>;
|
|
577
622
|
/**
|
|
578
623
|
* Gets all action events
|
|
579
624
|
*
|
|
580
625
|
* @public
|
|
581
626
|
* @async
|
|
582
|
-
* @param {?
|
|
627
|
+
* @param {?ReadEventActionParams<'getActionSteps'>} [params]
|
|
583
628
|
* @returns {Promise<ActionStep[]>}
|
|
584
629
|
*/
|
|
585
|
-
getActionSteps(params?:
|
|
630
|
+
getActionSteps(params?: ReadEventActionParams<'getActionSteps'>): Promise<ActionStep[]>;
|
|
586
631
|
/**
|
|
587
632
|
* Gets the count of action events
|
|
588
633
|
*
|
|
589
634
|
* @public
|
|
590
635
|
* @async
|
|
591
|
-
* @param {?
|
|
636
|
+
* @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
|
|
592
637
|
* @returns {Promise<bigint>}
|
|
593
638
|
*/
|
|
594
|
-
getActionStepsCount(params?:
|
|
639
|
+
getActionStepsCount(params?: ReadEventActionParams<'getActionStepsCount'>): Promise<number>;
|
|
595
640
|
/**
|
|
596
641
|
* Retrieves the payload describing how claimants can be identified from logs or function calls.
|
|
597
642
|
*
|
|
598
643
|
* @public
|
|
599
644
|
* @async
|
|
600
|
-
* @param {?
|
|
645
|
+
* @param {?ReadEventActionParams<'getActionClaimant'>} [params]
|
|
601
646
|
* @returns {Promise<ActionClaimant>}
|
|
602
647
|
*/
|
|
603
|
-
getActionClaimant(params?:
|
|
648
|
+
getActionClaimant(params?: ReadEventActionParams<'getActionClaimant'>): Promise<Pick<ActionClaimant, "signatureType" | "signature" | "fieldIndex" | "targetContract"> & {
|
|
604
649
|
chainid: bigint;
|
|
605
650
|
} & {
|
|
606
651
|
chainid: number;
|
|
@@ -634,42 +679,79 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
634
679
|
*
|
|
635
680
|
* @public
|
|
636
681
|
* @async
|
|
637
|
-
* @param {?
|
|
638
|
-
* GetLogsParams<Abi, ContractEventName<Abi>> & {
|
|
639
|
-
* knownEvents?: Record<Hex, AbiEvent>;
|
|
640
|
-
* logs?: Log[];
|
|
641
|
-
* }} [params]
|
|
682
|
+
* @param {?TxParams} [params]
|
|
642
683
|
* @returns {Promise<boolean>}
|
|
643
684
|
*/
|
|
644
|
-
validateActionSteps(params?:
|
|
645
|
-
knownEvents?: Record<Hex, AbiEvent>;
|
|
646
|
-
logs?: Log[];
|
|
647
|
-
}): Promise<boolean>;
|
|
685
|
+
validateActionSteps(params?: TxParams): Promise<boolean>;
|
|
648
686
|
/**
|
|
649
|
-
* Validates a single action step with a given criteria against logs.
|
|
650
|
-
* If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
|
|
687
|
+
* Validates a single action step with a given criteria against logs or function calls.
|
|
688
|
+
* If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
|
|
689
|
+
* For functions a hash is required.
|
|
651
690
|
*
|
|
652
691
|
* @public
|
|
653
692
|
* @async
|
|
654
|
-
* @param {ActionStep} actionStep
|
|
655
|
-
* @param {?
|
|
656
|
-
* knownEvents?: Record<Hex, AbiEvent>;
|
|
657
|
-
* logs?: Log[];
|
|
658
|
-
* }} [params]
|
|
693
|
+
* @param {ActionStep} actionStep - The action step to validate. Can be a function of event step.
|
|
694
|
+
* @param {?TxParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, logs, and chain ID.
|
|
659
695
|
* @returns {Promise<boolean>}
|
|
660
696
|
*/
|
|
661
|
-
isActionStepValid(actionStep: ActionStep, params?:
|
|
662
|
-
|
|
663
|
-
|
|
697
|
+
isActionStepValid(actionStep: ActionStep, params?: TxParams & {
|
|
698
|
+
chainId?: number;
|
|
699
|
+
}): Promise<boolean>;
|
|
700
|
+
/**
|
|
701
|
+
* Validates a single action event with a given criteria against logs.
|
|
702
|
+
* If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
|
|
703
|
+
*
|
|
704
|
+
* @public
|
|
705
|
+
* @async
|
|
706
|
+
* @param {ActionStep} actionStep - The action step containing the event to validate.
|
|
707
|
+
* @param {?ValidateEventStepParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, logs, and chain ID.
|
|
708
|
+
* @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
|
|
709
|
+
*/
|
|
710
|
+
isActionEventValid(actionStep: ActionStep, params?: ValidateEventStepParams & {
|
|
711
|
+
chainId?: number;
|
|
664
712
|
}): Promise<boolean>;
|
|
713
|
+
/**
|
|
714
|
+
* Validates a single action function with a given criteria against the transaction input.
|
|
715
|
+
* If a transaction hash is provided in the optional `params` argument, then the transaction
|
|
716
|
+
* will be fetched and decoded using the configured client.
|
|
717
|
+
*
|
|
718
|
+
* @public
|
|
719
|
+
* @async
|
|
720
|
+
* @param {ActionStep} actionStep - The action step containing the function to validate.
|
|
721
|
+
* @param {?ValidateFunctionStepParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, transaction hash, and chain ID.
|
|
722
|
+
* @returns {Promise<boolean>} Resolves to true if the action function is valid, throws if the inputs are invalid, otherwise false.
|
|
723
|
+
*/
|
|
724
|
+
isActionFunctionValid(actionStep: ActionStep, params?: ValidateFunctionStepParams & {
|
|
725
|
+
chainId?: number;
|
|
726
|
+
}): Promise<boolean>;
|
|
727
|
+
/**
|
|
728
|
+
* Validates a field against a given criteria.
|
|
729
|
+
*
|
|
730
|
+
* @param {Criteria} criteria - The criteria to validate against.
|
|
731
|
+
* @param {string | bigint} fieldValue - The field value to validate.
|
|
732
|
+
* @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
|
|
733
|
+
*/
|
|
734
|
+
validateFieldAgainstCriteria(criteria: Criteria, fieldValue: string | bigint | Hex, input: {
|
|
735
|
+
log: EventLogs[0];
|
|
736
|
+
} | {
|
|
737
|
+
decodedArgs: readonly (string | bigint)[];
|
|
738
|
+
}): boolean;
|
|
665
739
|
/**
|
|
666
740
|
* Validates a {@link Log} against a given criteria.
|
|
667
741
|
*
|
|
668
742
|
* @param {Criteria} criteria - The criteria to validate against.
|
|
669
743
|
* @param {Log} log - The Viem event log.
|
|
670
|
-
* @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
|
|
744
|
+
* @returns {Promise<boolean>} - Returns true if the log passes the criteria, false otherwise.
|
|
745
|
+
*/
|
|
746
|
+
validateLogAgainstCriteria(criteria: Criteria, log: EventLogs[0]): boolean;
|
|
747
|
+
/**
|
|
748
|
+
* Validates a function's decoded arguments against a given criteria.
|
|
749
|
+
*
|
|
750
|
+
* @param {Criteria} criteria - The criteria to validate against.
|
|
751
|
+
* @param {unknown[]} decodedArgs - The decoded arguments of the function call.
|
|
752
|
+
* @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
|
|
671
753
|
*/
|
|
672
|
-
|
|
754
|
+
validateFunctionAgainstCriteria(criteria: Criteria, decodedArgs: readonly (string | bigint)[]): boolean;
|
|
673
755
|
/**
|
|
674
756
|
* @inheritdoc
|
|
675
757
|
*
|
|
@@ -679,6 +761,7 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
679
761
|
* @returns {GenericDeployableParams}
|
|
680
762
|
*/
|
|
681
763
|
buildParameters(_payload?: EventActionPayload, _options?: DeployableOptions): GenericDeployableParams;
|
|
764
|
+
isArraylikeIndexed(step: ActionStep, event: AbiEvent): boolean;
|
|
682
765
|
}
|
|
683
766
|
/**
|
|
684
767
|
* Function to properly encode an event action payload.
|
|
@@ -691,4 +774,5 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
691
774
|
* @returns {Hex}
|
|
692
775
|
*/
|
|
693
776
|
export declare function prepareEventActionPayload({ actionClaimant, actionStepOne, actionStepTwo, actionStepThree, actionStepFour, }: EventActionPayloadRaw): `0x${string}`;
|
|
777
|
+
export {};
|
|
694
778
|
//# sourceMappingURL=EventAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EventAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAKf,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"EventAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EventAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAKf,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,KAAK,GAAG,EACR,KAAK,QAAQ,EAEb,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EACR,KAAK,GAAG,EAOT,MAAM,MAAM,CAAC;AAGd,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAYlE,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAMlB;;;;;GAKG;AACH,oBAAY,UAAU;IACpB,KAAK,IAAI;IACT,SAAS,IAAI;IACb,YAAY,IAAI;IAChB,SAAS,IAAI;IACb,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