Remove onCall, use decorateMethod (#987)
* update signature of doublemap storage function * add test cases * update doublemap implementation * update implementation * remove duplicate test case * update test cases * Add hkt * Fix derive types * Make derive work * Fix some bugs * Fix some bugs * More stuff * Make some more stuff work * Fix types in derive * Fix all tests in derive * Change back ApiType * Remove vscode * Fix Submittables * Fix some errors * Fix some bugs * Change some stuff * Fix merge conflict * Fix types * Add console.log * Add console.log * Re-add decorateMethod * Fix tests * Skip e2e * Small fixes * Fix signAndSend * Fix typings in test * Fix lint * Add comments * One line * Remove useless * URI->ApiType * Indentation
This commit is contained in:
@@ -239,7 +239,7 @@ describe('createType', () => {
|
||||
).toEqual('0x1200230045006700');
|
||||
});
|
||||
|
||||
it('throw error when create base is a StorageData with null value and isPedantic is true' , () => {
|
||||
it('throw error when create base is a StorageData with null value and isPedantic is true', () => {
|
||||
const base = createType('StorageData', null);
|
||||
|
||||
expect(
|
||||
@@ -247,7 +247,7 @@ describe('createType', () => {
|
||||
).toThrow(/Encoding for input doesn't match output, created 0x00 from 0x/);
|
||||
});
|
||||
|
||||
it('throw error when create base is a StorageData with null value and isPedantic is true' , () => {
|
||||
it('throw error when create base is a StorageData with null value and isPedantic is true', () => {
|
||||
const base = createType('StorageData', null);
|
||||
|
||||
expect(
|
||||
|
||||
@@ -17,7 +17,7 @@ export type IKeyringPair = {
|
||||
|
||||
export type CodecArg = Codec | BN | Boolean | String | Uint8Array | boolean | number | string | undefined | CodecArgArray | CodecArgObject;
|
||||
|
||||
export type CodecCallback<T extends Codec = any> = (result: T) => any;
|
||||
export type Callback<T> = (result: T) => void | Promise<void>;
|
||||
|
||||
interface CodecArgObject {
|
||||
[index: string]: CodecArg;
|
||||
@@ -25,6 +25,8 @@ interface CodecArgObject {
|
||||
|
||||
interface CodecArgArray extends Array<CodecArg> { }
|
||||
|
||||
export type AnyFunction = (...args: any[]) => any;
|
||||
|
||||
export type AnyNumber = BN | Uint8Array | number | string;
|
||||
|
||||
export type AnyString = string | String;
|
||||
|
||||
Reference in New Issue
Block a user