* Use Si V1 in contracts (w/ PortableRegistry usage) * Type id lookups * Fix build & linting * Remove extra .toNumber() (VSCode has gone crazy) * v1 tests * Cleanup parsing * Explicit type cast for v1 types * Unneeded toNumber * Align events exposure with messages/constructors * dedupe * Re-add typedef extraction tests * with typedefs * Override for always primitives * displayName improvements * Versioned project * New structure * Fixes * Cleanups * Ensure API registry is the default used * Adjust arg & return encoding/decoding * Recursive contract * DoNotConstruct to Si type
22 lines
563 B
TypeScript
22 lines
563 B
TypeScript
// Copyright 2017-2021 @polkadot/api-contract authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import ink from './ink';
|
|
import solang from './solang';
|
|
import user from './user';
|
|
|
|
const all: Record<string, any> = {};
|
|
|
|
function addExport (type: string, abis: Record<string, any>): void {
|
|
Object.keys(abis).forEach((key): void => {
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
all[`${type}_${key}`] = abis[key];
|
|
});
|
|
}
|
|
|
|
addExport('ink', ink);
|
|
addExport('solang', solang);
|
|
addExport('user', user);
|
|
|
|
export default all;
|