@abstract-foundation/agw-client
Version:
Abstract Global Wallet Client SDK
483 lines (481 loc) • 8.67 kB
text/typescript
const AccountFactoryAbi = [
{
inputs: [
{
internalType: "address",
name: "_implementation",
type: "address",
},
{
internalType: "bytes4",
name: "_initializerSelector",
type: "bytes4",
},
{
internalType: "address",
name: "_registry",
type: "address",
},
{
internalType: "bytes32",
name: "_proxyBytecodeHash",
type: "bytes32",
},
{
internalType: "address",
name: "_deployer",
type: "address",
},
{
internalType: "address",
name: "_owner",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [],
name: "ALREADY_CREATED",
type: "error",
},
{
inputs: [],
name: "DEPLOYMENT_FAILED",
type: "error",
},
{
inputs: [],
name: "INVALID_INITIALIZER",
type: "error",
},
{
inputs: [],
name: "NOT_FROM_DEPLOYER",
type: "error",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
],
name: "OwnableInvalidOwner",
type: "error",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "OwnableUnauthorizedAccount",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "accountAddress",
type: "address",
},
],
name: "AGWAccountCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "accountAddress",
type: "address",
},
],
name: "AGWAccountDeployed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "deployer",
type: "address",
},
{
indexed: true,
internalType: "bool",
name: "authorized",
type: "bool",
},
],
name: "DeployerAuthorized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "newImplementation",
type: "address",
},
],
name: "ImplementationChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferStarted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferred",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "newRegistry",
type: "address",
},
],
name: "RegistryChanged",
type: "event",
},
{
inputs: [],
name: "acceptOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "accountToDeployer",
outputs: [
{
internalType: "address",
name: "deployer",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "accountAddress",
type: "address",
},
],
name: "agwAccountCreated",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "deployer",
type: "address",
},
],
name: "authorizedDeployers",
outputs: [
{
internalType: "bool",
name: "authorized",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address",
},
{
internalType: "bytes4",
name: "newInitializerSelector",
type: "bytes4",
},
],
name: "changeImplementation",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newRegistry",
type: "address",
},
],
name: "changeRegistry",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "salt",
type: "bytes32",
},
{
internalType: "bytes",
name: "initializer",
type: "bytes",
},
],
name: "deployAccount",
outputs: [
{
internalType: "address",
name: "accountAddress",
type: "address",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "salt",
type: "bytes32",
},
],
name: "getAddressForSalt",
outputs: [
{
internalType: "address",
name: "accountAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "salt",
type: "bytes32",
},
{
internalType: "address",
name: "_implementation",
type: "address",
},
],
name: "getAddressForSaltAndImplementation",
outputs: [
{
internalType: "address",
name: "accountAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "implementationAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "initializerSelector",
outputs: [
{
internalType: "bytes4",
name: "",
type: "bytes4",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "pendingOwner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "proxyBytecodeHash",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "registry",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "salt",
type: "bytes32",
},
],
name: "saltToAccount",
outputs: [
{
internalType: "address",
name: "accountAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "deployer",
type: "address",
},
{
internalType: "bool",
name: "authorized",
type: "bool",
},
],
name: "setDeployer",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
export default AccountFactoryAbi;