Cleanup contract exports (#4337)
This commit is contained in:
@@ -3,5 +3,6 @@
|
||||
|
||||
export { Abi } from './Abi';
|
||||
export { packageInfo } from './packageInfo';
|
||||
export { Blueprint as BlueprintPromise, Code as CodePromise, Contract as ContractPromise } from './promise';
|
||||
export { Blueprint as BlueprintRx, Code as CodeRx, Contract as ContractRx } from './rx';
|
||||
|
||||
export * from './promise';
|
||||
export * from './rx';
|
||||
|
||||
@@ -5,6 +5,6 @@ import { toPromiseMethod } from '@polkadot/api';
|
||||
|
||||
import { extendBlueprint, extendCode, extendContract } from '../base';
|
||||
|
||||
export const Blueprint = extendBlueprint<'promise'>('promise', toPromiseMethod);
|
||||
export const Code = extendCode<'promise'>('promise', toPromiseMethod);
|
||||
export const Contract = extendContract<'promise'>('promise', toPromiseMethod);
|
||||
export const BlueprintPromise = extendBlueprint<'promise'>('promise', toPromiseMethod);
|
||||
export const CodePromise = extendCode<'promise'>('promise', toPromiseMethod);
|
||||
export const ContractPromise = extendContract<'promise'>('promise', toPromiseMethod);
|
||||
|
||||
@@ -5,6 +5,6 @@ import { toRxMethod } from '@polkadot/api';
|
||||
|
||||
import { extendBlueprint, extendCode, extendContract } from '../base';
|
||||
|
||||
export const Blueprint = extendBlueprint<'rxjs'>('rxjs', toRxMethod);
|
||||
export const Code = extendCode<'rxjs'>('rxjs', toRxMethod);
|
||||
export const Contract = extendContract<'rxjs'>('rxjs', toRxMethod);
|
||||
export const BlueprintRx = extendBlueprint<'rxjs'>('rxjs', toRxMethod);
|
||||
export const CodeRx = extendCode<'rxjs'>('rxjs', toRxMethod);
|
||||
export const ContractRx = extendContract<'rxjs'>('rxjs', toRxMethod);
|
||||
|
||||
@@ -5,6 +5,7 @@ export { Keyring } from '@polkadot/keyring';
|
||||
export { WsProvider, HttpProvider } from '@polkadot/rpc-provider';
|
||||
|
||||
export { packageInfo } from './packageInfo';
|
||||
export * from './promise';
|
||||
export { SubmittableResult } from './submittable';
|
||||
|
||||
export * from './promise';
|
||||
export * from './rx';
|
||||
|
||||
Reference in New Issue
Block a user