Constructors

Properties

Methods

Constructors

Properties

abi: readonly [{
    inputs: readonly [];
    name: "SUPER_TOKEN_FACTORY_ALREADY_EXISTS";
    type: "error";
}, {
    inputs: readonly [];
    name: "SUPER_TOKEN_FACTORY_DOES_NOT_EXIST";
    type: "error";
}, {
    inputs: readonly [];
    name: "SUPER_TOKEN_FACTORY_NON_UPGRADEABLE_IS_DEPRECATED";
    type: "error";
}, {
    inputs: readonly [];
    name: "SUPER_TOKEN_FACTORY_ONLY_HOST";
    type: "error";
}, {
    inputs: readonly [];
    name: "SUPER_TOKEN_FACTORY_UNINITIALIZED";
    type: "error";
}, {
    inputs: readonly [];
    name: "SUPER_TOKEN_FACTORY_ZERO_ADDRESS";
    type: "error";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "contract ISuperToken";
        name: "token";
        type: "address";
    }];
    name: "CustomSuperTokenCreated";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "contract ISuperToken";
        name: "token";
        type: "address";
    }];
    name: "SuperTokenCreated";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "contract ISuperToken";
        name: "tokenLogic";
        type: "address";
    }];
    name: "SuperTokenLogicCreated";
    type: "event";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "_underlyingToken";
        type: "address";
    }];
    name: "computeCanonicalERC20WrapperAddress";
    outputs: readonly [{
        internalType: "address";
        name: "superTokenAddress";
        type: "address";
    }, {
        internalType: "bool";
        name: "isDeployed";
        type: "bool";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "contract IERC20Metadata";
        name: "_underlyingToken";
        type: "address";
    }];
    name: "createCanonicalERC20Wrapper";
    outputs: readonly [{
        internalType: "contract ISuperToken";
        name: "";
        type: "address";
    }];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "contract IERC20Metadata";
        name: "underlyingToken";
        type: "address";
    }, {
        internalType: "enum ISuperTokenFactory.Upgradability";
        name: "upgradability";
        type: "uint8";
    }, {
        internalType: "string";
        name: "name";
        type: "string";
    }, {
        internalType: "string";
        name: "symbol";
        type: "string";
    }];
    name: "createERC20Wrapper";
    outputs: readonly [{
        internalType: "contract ISuperToken";
        name: "superToken";
        type: "address";
    }];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "contract IERC20Metadata";
        name: "underlyingToken";
        type: "address";
    }, {
        internalType: "enum ISuperTokenFactory.Upgradability";
        name: "upgradability";
        type: "uint8";
    }, {
        internalType: "string";
        name: "name";
        type: "string";
    }, {
        internalType: "string";
        name: "symbol";
        type: "string";
    }, {
        internalType: "address";
        name: "admin";
        type: "address";
    }];
    name: "createERC20Wrapper";
    outputs: readonly [{
        internalType: "contract ISuperToken";
        name: "superToken";
        type: "address";
    }];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "contract IERC20Metadata";
        name: "underlyingToken";
        type: "address";
    }, {
        internalType: "uint8";
        name: "underlyingDecimals";
        type: "uint8";
    }, {
        internalType: "enum ISuperTokenFactory.Upgradability";
        name: "upgradability";
        type: "uint8";
    }, {
        internalType: "string";
        name: "name";
        type: "string";
    }, {
        internalType: "string";
        name: "symbol";
        type: "string";
    }];
    name: "createERC20Wrapper";
    outputs: readonly [{
        internalType: "contract ISuperToken";
        name: "superToken";
        type: "address";
    }];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "contract IERC20Metadata";
        name: "underlyingToken";
        type: "address";
    }, {
        internalType: "uint8";
        name: "underlyingDecimals";
        type: "uint8";
    }, {
        internalType: "enum ISuperTokenFactory.Upgradability";
        name: "upgradability";
        type: "uint8";
    }, {
        internalType: "string";
        name: "name";
        type: "string";
    }, {
        internalType: "string";
        name: "symbol";
        type: "string";
    }, {
        internalType: "address";
        name: "admin";
        type: "address";
    }];
    name: "createERC20Wrapper";
    outputs: readonly [{
        internalType: "contract ISuperToken";
        name: "superToken";
        type: "address";
    }];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "_underlyingTokenAddress";
        type: "address";
    }];
    name: "getCanonicalERC20Wrapper";
    outputs: readonly [{
        internalType: "address";
        name: "superTokenAddress";
        type: "address";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "getHost";
    outputs: readonly [{
        internalType: "address";
        name: "host";
        type: "address";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "getSuperTokenLogic";
    outputs: readonly [{
        internalType: "contract ISuperToken";
        name: "superToken";
        type: "address";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "initialize";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "customSuperTokenProxy";
        type: "address";
    }];
    name: "initializeCustomSuperToken";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}]

Methods

  • Parameters

    • address: string
    • signerOrProvider: Signer | Provider

    Returns ISuperTokenFactory

  • Returns ISuperTokenFactoryInterface

Generated using TypeDoc