Update ParaInfo types (#3348)

This commit is contained in:
Jaco Greeff
2021-03-23 10:38:28 +01:00
committed by GitHub
parent eaa5db517f
commit 712d0425d0
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import { Blueprint } from './Blueprint';
import { Contract } from './Contract';
import { createBluePrintTx, EMPTY_SALT, encodeSalt } from './util';
const l = logger('api-contract/code');
const l = logger('Code');
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
public readonly blueprint?: Blueprint<ApiType>;
+1 -1
View File
@@ -24,7 +24,7 @@ import { Base } from './Base';
const MAX_CALL_GAS = new BN(5_000_000_000_000).subn(1);
const ERROR_NO_CALL = 'Your node does not expose the contracts.call RPC. This is most probably due to a runtime configuration.';
const l = logger('api-contract/contract');
const l = logger('Contract');
function createQuery <ApiType extends ApiTypes> (fn: (origin: string | AccountId | Uint8Array, options: ContractOptions, params: CodecArg[]) => ContractCallResult<ApiType, ContractCallOutcome>): ContractQuery<ApiType> {
return (origin: string | AccountId | Uint8Array, options: BigInt | string | number | BN | ContractOptions, ...params: CodecArg[]): ContractCallResult<ApiType, ContractCallOutcome> =>
@@ -231,7 +231,8 @@ export default {
},
ParaId: 'u32',
ParaInfo: {
scheduling: 'Scheduling'
manager: 'AccountId',
deposit: 'Balance'
},
ParaLifecycle: {
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingToParachain', 'DowngradingToParathread', 'OutgoingParathread', 'OutgoingParachain']
@@ -575,7 +575,8 @@ export interface ParaId extends u32 {}
/** @name ParaInfo */
export interface ParaInfo extends Struct {
readonly scheduling: Scheduling;
readonly manager: AccountId;
readonly deposit: Balance;
}
/** @name ParaLifecycle */