Support ABI files with wasm (.contract output) (#2841)

* Support ABI files with wasm (.contract output)

* AbiBase exports

* Additional default exports

* Remove any

* Fix build
This commit is contained in:
Jaco Greeff
2020-11-12 12:23:28 +01:00
committed by GitHub
parent 999e69b031
commit 98a2ef9d72
43 changed files with 228 additions and 68 deletions
@@ -128,7 +128,8 @@ export default {
ContractProjectSource: {
hash: '[u8; 32]',
language: 'Text',
compiler: 'Text'
compiler: 'Text',
wasm: 'Raw'
}
}
} as Definitions;
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import { BTreeMap, Enum, Option, Struct, U8aFixed, Vec } from '@polkadot/types/codec';
import { BTreeMap, Enum, Option, Raw, Struct, U8aFixed, Vec } from '@polkadot/types/codec';
import { Bytes, Text, bool, u32, u64 } from '@polkadot/types/primitive';
import { SiLookupTypeId, SiPath, SiType } from '@polkadot/types/interfaces/scaleInfo';
@@ -140,6 +140,7 @@ export interface ContractProjectSource extends Struct {
readonly hash: U8aFixed;
readonly language: Text;
readonly compiler: Text;
readonly wasm: Raw;
}
/** @name ContractSelector */