Restrictions
Extensions are external smart contracts that can be added to the Paymaster contract. These restrictions are used to enforce specific conditions rules that must be met for a transaction to be eligible
createRestriction
async function createRestriction(
name: string,
type: RestrictionMethod,
runner: Signer | Wallet,
items?: RestrictionItems,
restrictionFactoryContractAddress?: string
): Promise<Address>types
PaymasterParams
PaymasterType
RestrictionMethod
PaymasterOptions
PaymasterOverrides
BaseRestrictionItem
AddressOrBaseRestrictionItem
ContractItems
UserItems
FunctionItems
RestrictionItems
typechain
Last updated