@etherspot/prime-sdk
Version:
Etherspot Prime (Account Abstraction) SDK
135 lines (134 loc) • 3.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IEtherspotWalletFactory__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "wallet",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "AccountCreation",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "newImplementation",
type: "address",
},
],
name: "ImplementationSet",
type: "event",
},
{
inputs: [],
name: "accountCreationCode",
outputs: [
{
internalType: "bytes",
name: "",
type: "bytes",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_impl",
type: "address",
},
],
name: "checkImplementation",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "createAccount",
outputs: [
{
internalType: "address",
name: "ret",
type: "address",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getAddress",
outputs: [
{
internalType: "address",
name: "proxy",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
];
class IEtherspotWalletFactory__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IEtherspotWalletFactory__factory = IEtherspotWalletFactory__factory;
IEtherspotWalletFactory__factory.abi = _abi;