Interface ContractProvider

interface ContractProvider {
    at<T>(address, contractAbstractionComposer?): Promise<T>;
    ballot(params): Promise<BallotOperation>;
    batch(params?): OperationBatch;
    drainDelegate(params): Promise<DrainDelegateOperation>;
    failingNoop(params): Promise<FailingNoopOperation>;
    getBigMapKey<T>(contract, key, schema?): Promise<T>;
    getBigMapKeyByID<T>(id, keyToEncode, schema, block?): Promise<T>;
    getBigMapKeysByID<T>(id, keysToEncode, schema, block?, batchSize?): Promise<MichelsonMap<MichelsonMapKey, undefined | T>>;
    getSaplingDiffByID(id, block?): Promise<SaplingDiffResponse>;
    getStorage<T>(contract, schema?): Promise<T>;
    increasePaidStorage(params): Promise<IncreasePaidStorageOperation>;
    originate<TContract>(contract): Promise<OriginationOperation<TContract>>;
    proposals(params): Promise<ProposalsOperation>;
    registerDelegate(params): Promise<DelegateOperation>;
    registerGlobalConstant(params): Promise<RegisterGlobalConstantOperation>;
    reveal(params): Promise<RevealOperation>;
    setDelegate(params): Promise<DelegateOperation>;
    smartRollupAddMessages(params): Promise<SmartRollupAddMessagesOperation>;
    smartRollupExecuteOutboxMessage(params): Promise<SmartRollupExecuteOutboxMessageOperation>;
    smartRollupOriginate(params): Promise<SmartRollupOriginateOperation>;
    transfer(params): Promise<TransactionOperation>;
    transferTicket(params): Promise<TransferTicketOperation>;
    updateConsensusKey(params): Promise<UpdateConsensusKeyOperation>;
}

Hierarchy (view full)

Methods

  • Parameters

    Returns Promise<FailingNoopOperation>

    An operation handle with the result from the rpc node

    Description

    Send arbitrary data inside a failing_noop operation that's guaranteed to fail.

  • Type Parameters

    • T

    Parameters

    • id: string

      Big Map ID

    • keysToEncode: BigMapKeyType[]

      Array of keys to query (will be encoded properly according to the schema)

    • schema: Schema

      Big Map schema (can be determined using your contract type)

    • Optional block: number

      optional block level to fetch the values from

    • Optional batchSize: number

      optional batch size representing the number of requests to execute in parallel

    Returns Promise<MichelsonMap<MichelsonMapKey, undefined | T>>

    An object containing the keys queried in the big map and their value in a well-formatted JSON object format

    Description

    Fetch multiple values in a big map

  • Parameters

    • params: SmartRollupExecuteOutboxMessageParams

    Returns Promise<SmartRollupExecuteOutboxMessageOperation>

    An operation handle with the result from the RPC node

    Description

    Execute a message from a smart rollup's outbox of a cemented commitment

Generated using TypeDoc