PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/contractkit/lib

Просмотр файла: contract-cache.d.ts

import { Connection } from '@celo/connect';
import { AddressRegistry } from './address-registry';
import { CeloContract } from './base';
import { ContractCacheType } from './basic-contract-cache-type';
import { StableToken } from './celo-tokens';
import { Ierc20 } from './generated/IERC20';
import { Web3ContractCache } from './web3-contract-cache';
import { AccountsWrapper } from './wrappers/Accounts';
import { AttestationsWrapper } from './wrappers/Attestations';
import { BlockchainParametersWrapper } from './wrappers/BlockchainParameters';
import { DoubleSigningSlasherWrapper } from './wrappers/DoubleSigningSlasher';
import { DowntimeSlasherWrapper } from './wrappers/DowntimeSlasher';
import { ElectionWrapper } from './wrappers/Election';
import { EpochRewardsWrapper } from './wrappers/EpochRewards';
import { Erc20Wrapper } from './wrappers/Erc20Wrapper';
import { EscrowWrapper } from './wrappers/Escrow';
import { ExchangeWrapper } from './wrappers/Exchange';
import { FederatedAttestationsWrapper } from './wrappers/FederatedAttestations';
import { FreezerWrapper } from './wrappers/Freezer';
import { GasPriceMinimumWrapper } from './wrappers/GasPriceMinimum';
import { GoldTokenWrapper } from './wrappers/GoldTokenWrapper';
import { GovernanceWrapper } from './wrappers/Governance';
import { GrandaMentoWrapper } from './wrappers/GrandaMento';
import { LockedGoldWrapper } from './wrappers/LockedGold';
import { MetaTransactionWalletWrapper } from './wrappers/MetaTransactionWallet';
import { MetaTransactionWalletDeployerWrapper } from './wrappers/MetaTransactionWalletDeployer';
import { MultiSigWrapper } from './wrappers/MultiSig';
import { OdisPaymentsWrapper } from './wrappers/OdisPayments';
import { ReserveWrapper } from './wrappers/Reserve';
import { SortedOraclesWrapper } from './wrappers/SortedOracles';
import { StableTokenRegistryWrapper } from './wrappers/StableTokenRegistry';
import { StableTokenWrapper } from './wrappers/StableTokenWrapper';
import { ValidatorsWrapper } from './wrappers/Validators';
declare const WrapperFactories: {
    readonly Accounts: typeof AccountsWrapper;
    readonly BlockchainParameters: typeof BlockchainParametersWrapper;
    readonly EpochRewards: typeof EpochRewardsWrapper;
    readonly ERC20: typeof Erc20Wrapper;
    readonly Escrow: typeof EscrowWrapper;
    readonly Exchange: typeof ExchangeWrapper;
    readonly ExchangeEUR: typeof ExchangeWrapper;
    readonly ExchangeBRL: typeof ExchangeWrapper;
    readonly FederatedAttestations: typeof FederatedAttestationsWrapper;
    readonly Freezer: typeof FreezerWrapper;
    readonly GasPriceMinimum: typeof GasPriceMinimumWrapper;
    readonly GoldToken: typeof GoldTokenWrapper;
    readonly GrandaMento: typeof GrandaMentoWrapper;
    readonly MetaTransactionWallet: typeof MetaTransactionWalletWrapper;
    readonly MetaTransactionWalletDeployer: typeof MetaTransactionWalletDeployerWrapper;
    readonly MultiSig: typeof MultiSigWrapper;
    readonly OdisPayments: typeof OdisPaymentsWrapper;
    readonly Reserve: typeof ReserveWrapper;
    readonly StableToken: typeof StableTokenWrapper;
    readonly StableTokenEUR: typeof StableTokenWrapper;
    readonly StableTokenBRL: typeof StableTokenWrapper;
    readonly StableTokenRegistry: typeof StableTokenRegistryWrapper;
};
declare const WithRegistry: {
    readonly SortedOracles: typeof SortedOraclesWrapper;
};
declare const WrapperFactoriesWhichNeedCache: {
    Attestations: typeof AttestationsWrapper;
    DoubleSigningSlasher: typeof DoubleSigningSlasherWrapper;
    DowntimeSlasher: typeof DowntimeSlasherWrapper;
    Election: typeof ElectionWrapper;
    Governance: typeof GovernanceWrapper;
    LockedGold: typeof LockedGoldWrapper;
    Validators: typeof ValidatorsWrapper;
};
declare type CFType = typeof WrapperFactories;
declare type RegistryType = typeof WithRegistry;
declare type WrapperFactoriesWhichNeedCacheType = typeof WrapperFactoriesWhichNeedCache;
export declare type ValidWrappers = keyof CFType | keyof RegistryType | keyof WrapperFactoriesWhichNeedCacheType;
interface WrapperCacheMap {
    [CeloContract.Accounts]?: AccountsWrapper;
    [CeloContract.Attestations]?: AttestationsWrapper;
    [CeloContract.BlockchainParameters]?: BlockchainParametersWrapper;
    [CeloContract.DoubleSigningSlasher]?: DoubleSigningSlasherWrapper;
    [CeloContract.DowntimeSlasher]?: DowntimeSlasherWrapper;
    [CeloContract.Election]?: ElectionWrapper;
    [CeloContract.EpochRewards]?: EpochRewardsWrapper;
    [CeloContract.ERC20]?: Erc20Wrapper<Ierc20>;
    [CeloContract.Escrow]?: EscrowWrapper;
    [CeloContract.Exchange]?: ExchangeWrapper;
    [CeloContract.ExchangeEUR]?: ExchangeWrapper;
    [CeloContract.ExchangeBRL]?: ExchangeWrapper;
    [CeloContract.FederatedAttestations]?: FederatedAttestationsWrapper;
    [CeloContract.Freezer]?: FreezerWrapper;
    [CeloContract.GasPriceMinimum]?: GasPriceMinimumWrapper;
    [CeloContract.GoldToken]?: GoldTokenWrapper;
    [CeloContract.Governance]?: GovernanceWrapper;
    [CeloContract.GrandaMento]?: GrandaMentoWrapper;
    [CeloContract.LockedGold]?: LockedGoldWrapper;
    [CeloContract.MetaTransactionWallet]?: MetaTransactionWalletWrapper;
    [CeloContract.MetaTransactionWalletDeployer]?: MetaTransactionWalletDeployerWrapper;
    [CeloContract.MultiSig]?: MultiSigWrapper;
    [CeloContract.OdisPayments]?: OdisPaymentsWrapper;
    [CeloContract.Reserve]?: ReserveWrapper;
    [CeloContract.SortedOracles]?: SortedOraclesWrapper;
    [CeloContract.StableToken]?: StableTokenWrapper;
    [CeloContract.StableTokenEUR]?: StableTokenWrapper;
    [CeloContract.StableTokenBRL]?: StableTokenWrapper;
    [CeloContract.StableTokenRegistry]?: StableTokenRegistryWrapper;
    [CeloContract.Validators]?: ValidatorsWrapper;
}
/**
 * Kit ContractWrappers factory & cache.
 *
 * Provides access to all contract wrappers for celo core contracts
 *
 * @remarks
 *
 * Because it provides access to all contract wrappers it must load all wrappers and the contract ABIs for them
 * Consider Using {@link MiniWrapperCache}, building your own, or if you only need one Wrapper using it directly
 */
export declare class WrapperCache implements ContractCacheType {
    readonly connection: Connection;
    readonly _web3Contracts: Web3ContractCache;
    readonly registry: AddressRegistry;
    private wrapperCache;
    constructor(connection: Connection, _web3Contracts: Web3ContractCache, registry: AddressRegistry);
    getAccounts(): Promise<AccountsWrapper>;
    getAttestations(): Promise<AttestationsWrapper>;
    getBlockchainParameters(): Promise<BlockchainParametersWrapper>;
    getDoubleSigningSlasher(): Promise<DoubleSigningSlasherWrapper>;
    getDowntimeSlasher(): Promise<DowntimeSlasherWrapper>;
    getElection(): Promise<ElectionWrapper>;
    getEpochRewards(): Promise<EpochRewardsWrapper>;
    getErc20(address: string): Promise<Erc20Wrapper<Ierc20>>;
    getEscrow(): Promise<EscrowWrapper>;
    getExchange(stableToken?: StableToken): Promise<ExchangeWrapper>;
    getFreezer(): Promise<FreezerWrapper>;
    getFederatedAttestations(): Promise<FederatedAttestationsWrapper>;
    getGasPriceMinimum(): Promise<GasPriceMinimumWrapper>;
    getGoldToken(): Promise<GoldTokenWrapper>;
    getGovernance(): Promise<GovernanceWrapper>;
    getGrandaMento(): Promise<GrandaMentoWrapper>;
    getLockedGold(): Promise<LockedGoldWrapper>;
    getMetaTransactionWallet(address: string): Promise<MetaTransactionWalletWrapper>;
    getMetaTransactionWalletDeployer(address: string): Promise<MetaTransactionWalletDeployerWrapper>;
    getMultiSig(address: string): Promise<MultiSigWrapper>;
    getOdisPayments(): Promise<OdisPaymentsWrapper>;
    getReserve(): Promise<ReserveWrapper>;
    getSortedOracles(): Promise<SortedOraclesWrapper>;
    getStableToken(stableToken?: StableToken): Promise<StableTokenWrapper>;
    getValidators(): Promise<ValidatorsWrapper>;
    getStableTokenRegistry(): Promise<StableTokenRegistryWrapper>;
    /**
     * Get Contract wrapper
     */
    getContract<C extends ValidWrappers>(contract: C, address?: string): Promise<NonNullable<WrapperCacheMap[C]>>;
    invalidateContract<C extends ValidWrappers>(contract: C): void;
}
export {};

Выполнить команду


Для локальной разработки. Не используйте в интернете!