@abstract-foundation/agw-client
Version:
Abstract Global Wallet Client SDK
549 lines (548 loc) • 9.81 kB
text/typescript
export const SessionKeyPolicyRegistryAbi = [
{
inputs: [],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
inputs: [],
name: 'AccessControlBadConfirmation',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
{
internalType: 'bytes32',
name: 'neededRole',
type: 'bytes32',
},
],
name: 'AccessControlUnauthorizedAccount',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'target',
type: 'address',
},
],
name: 'AddressEmptyCode',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'implementation',
type: 'address',
},
],
name: 'ERC1967InvalidImplementation',
type: 'error',
},
{
inputs: [],
name: 'ERC1967NonPayable',
type: 'error',
},
{
inputs: [],
name: 'FailedCall',
type: 'error',
},
{
inputs: [],
name: 'InvalidInitialization',
type: 'error',
},
{
inputs: [],
name: 'NotInitializing',
type: 'error',
},
{
inputs: [],
name: 'UUPSUnauthorizedCallContext',
type: 'error',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'slot',
type: 'bytes32',
},
],
name: 'UUPSUnsupportedProxiableUUID',
type: 'error',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint64',
name: 'version',
type: 'uint64',
},
],
name: 'Initialized',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'enum PolicyType',
name: 'policyType',
type: 'uint8',
},
{
indexed: true,
internalType: 'address',
name: 'target',
type: 'address',
},
{
indexed: true,
internalType: 'bytes32',
name: 'data',
type: 'bytes32',
},
{
indexed: false,
internalType: 'enum Status',
name: 'status',
type: 'uint8',
},
],
name: 'PolicyStatusChanged',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
indexed: true,
internalType: 'bytes32',
name: 'previousAdminRole',
type: 'bytes32',
},
{
indexed: true,
internalType: 'bytes32',
name: 'newAdminRole',
type: 'bytes32',
},
],
name: 'RoleAdminChanged',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'sender',
type: 'address',
},
],
name: 'RoleGranted',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'sender',
type: 'address',
},
],
name: 'RoleRevoked',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'implementation',
type: 'address',
},
],
name: 'Upgraded',
type: 'event',
},
{
inputs: [],
name: 'DEFAULT_ADMIN_ROLE',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MANAGER_ROLE',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'UPGRADE_INTERFACE_VERSION',
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'token',
type: 'address',
},
{
internalType: 'address',
name: 'target',
type: 'address',
},
],
name: 'getApprovalTargetStatus',
outputs: [
{
internalType: 'enum Status',
name: '',
type: 'uint8',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'target',
type: 'address',
},
{
internalType: 'bytes4',
name: 'selector',
type: 'bytes4',
},
],
name: 'getCallPolicyStatus',
outputs: [
{
internalType: 'enum Status',
name: '',
type: 'uint8',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
],
name: 'getRoleAdmin',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'target',
type: 'address',
},
],
name: 'getTransferPolicyStatus',
outputs: [
{
internalType: 'enum Status',
name: '',
type: 'uint8',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'grantRole',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'hasRole',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address',
},
],
name: 'initialize',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'proxiableUUID',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'callerConfirmation',
type: 'address',
},
],
name: 'renounceRole',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'revokeRole',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'token',
type: 'address',
},
{
internalType: 'address',
name: 'target',
type: 'address',
},
{
internalType: 'enum Status',
name: 'status',
type: 'uint8',
},
],
name: 'setApprovalTargetStatus',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'target',
type: 'address',
},
{
internalType: 'bytes4',
name: 'selector',
type: 'bytes4',
},
{
internalType: 'enum Status',
name: 'status',
type: 'uint8',
},
],
name: 'setCallPolicyStatus',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'target',
type: 'address',
},
{
internalType: 'enum Status',
name: 'status',
type: 'uint8',
},
],
name: 'setTransferPolicyStatus',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes4',
name: 'interfaceId',
type: 'bytes4',
},
],
name: 'supportsInterface',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
],
name: 'upgradeToAndCall',
outputs: [],
stateMutability: 'payable',
type: 'function',
},
] as const;