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
@@ -17,7 +17,7 @@ const _Header = Struct.with(runtimeTypes.types.Header as any) as Constructor<Hea
* @description
* A [[Block]] header with an additional `author` field that indicates the block author
*/
export default class HeaderExtended extends _Header {
export class HeaderExtended extends _Header {
readonly #author?: AccountId;
constructor (registry: Registry, header?: Header, sessionValidators?: AccountId[]) {
@@ -17,7 +17,7 @@ const _SignedBlock = Struct.with(runtimeTypes.types.SignedBlock as any) as Const
* @description
* A [[Block]] header with an additional `author` field that indicates the block author
*/
export default class BlockExtended extends _SignedBlock {
export class SignedBlockExtended extends _SignedBlock {
readonly #author?: AccountId;
constructor (registry: Registry, block?: SignedBlock, sessionValidators?: AccountId[]) {
+2 -2
View File
@@ -1,5 +1,5 @@
// Copyright 2017-2020 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { default as HeaderExtended } from './HeaderExtended';
export { default as SignedBlockExtended } from './SignedBlockExtended';
export { HeaderExtended } from './HeaderExtended';
export { SignedBlockExtended } from './SignedBlockExtended';