Files
api/packages/api-contract/src/rx/index.ts
T
2022-01-01 09:28:18 +02:00

28 lines
935 B
TypeScript

// Copyright 2017-2022 @polkadot/api-contract authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { AccountId, Hash } from '@polkadot/types/interfaces';
import { ApiRx, toRxMethod } from '@polkadot/api';
import { Abi } from '../Abi';
import { Blueprint, Code, Contract } from '../base';
export class BlueprintRx extends Blueprint<'rxjs'> {
constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
super(api, abi, codeHash, toRxMethod);
}
}
export class CodeRx extends Code<'rxjs'> {
constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined) {
super(api, abi, wasm, toRxMethod);
}
}
export class ContractRx extends Contract<'rxjs'> {
constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, address: string | AccountId) {
super(api, abi, address, toRxMethod);
}
}