OPNet
    Preparing search index...

    Interface IMoto

    This interface represents the IMoto contract. It extends the IOP20Contract and adds the ability to have an admin address that can mint and burn tokens. IMoto

    Contracts

    interface IMoto {
        address: string | Address;
        get p2opOrTweaked(): string;
        admin(): Promise<Admin>;
        adminBurn(from: Address, amount: bigint): Promise<AdminBurn>;
        adminMint(to: Address, amount: bigint): Promise<AdminMint>;
        airdrop(map: AddressMap<bigint>): Promise<Airdrop>;
        airdropWithAmount(
            amount: bigint,
            addresses: Address[],
        ): Promise<AirdropWithAmount>;
        allowance(owner: Address, spender: Address): Promise<Allowance>;
        balanceOf(account: Address): Promise<BalanceOf>;
        burn(value: bigint): Promise<Burn>;
        changeAdmin(newAdmin: Address): Promise<ChangeAdmin>;
        currentGasParameters(): Promise<BlockGasParameters>;
        decimals(): Promise<Decimals>;
        decodeEvent(event: NetEvent): OPNetEvent;
        decodeEvents(events: ContractEvents | NetEvent[]): OPNetEvent<{}>[];
        decreaseAllowance(
            spender: Address,
            amount: bigint,
        ): Promise<DecreaseAllowance>;
        decreaseAllowanceBySignature(
            owner: Address,
            spender: Address,
            amount: bigint,
            deadline: bigint,
            signature: Uint8Array,
        ): Promise<DecreaseAllowanceBySignature>;
        deployer(): Promise<
            CallResult<
                { deployer: Address },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        domainSeparator(): Promise<DomainSeparator>;
        encodeCalldata(method: string, ...args: unknown[]): Buffer;
        icon(): Promise<TokenIcon>;
        increaseAllowance(
            spender: Address,
            amount: bigint,
        ): Promise<IncreaseAllowance>;
        increaseAllowanceBySignature(
            owner: Address,
            spender: Address,
            amount: bigint,
            deadline: bigint,
            signature: Uint8Array,
        ): Promise<IncreaseAllowanceBySignature>;
        maximumSupply(): Promise<MaxSupply>;
        metadata(): Promise<TokenMetadata>;
        mint(address: Address, value: bigint): Promise<Mint>;
        name(): Promise<Name>;
        nonceOf(owner: Address): Promise<NonceOf>;
        safeTransfer(
            to: Address,
            amount: bigint,
            data: Uint8Array,
        ): Promise<SafeTransfer>;
        safeTransferFrom(
            from: Address,
            to: Address,
            amount: bigint,
            data: Uint8Array,
        ): Promise<SafeTransferFrom>;
        setAccessList(accessList: IAccessList): void;
        setSender(sender: Address): void;
        setSimulatedHeight(height: undefined | bigint): void;
        setTransactionDetails(tx: ParsedSimulatedTransaction): void;
        symbol(): Promise<SymbolOf>;
        totalSupply(): Promise<TotalSupply>;
        [key: symbol]: CallResult<{}, OPNetEvent<ContractDecodedObjectResult>[]>;
    }

    Hierarchy (View Summary)

    Indexable

    Index

    Properties

    address: string | Address

    Accessors

    Methods

    • Parameters

      • from: Address

        The address to burn tokens from.

      • amount: bigint

        The amount of tokens to burn.

      Returns Promise<AdminBurn>

      Burns tokens from a specified address. Only callable by the admin.