* Support for contracts metadata V2 * Add & use latest * Build interfaces * conversion of V1 -> Latest * spreads * Use V2 in creation, aka s/name/label/ * Extract -> latest conversion * Flatten * Add V2 test contracts (tests are failing) * V2, V1 & V1 catered for in Abi.spec.ts * Explicit v0/v1 -> Latest conversions * Adjust V2/V1/V0 check order * Cleanup type assertions * Save * Remove eslint unsafe * Flatten test exports * Entries... last non-critical, OCD-driven change... * tsc check fixes * Conversion tests * v1ToLatest renames * Text[] * Split conversion (ease of future change) * V2 in V2 conversion * Dedupe? * Additional cleanups * Adjust * Flatten types * Adjust * filter versions adjustments * additional, get it done.
17 lines
434 B
TypeScript
17 lines
434 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, Record<string, unknown>> = {};
|
|
|
|
Object.entries({ ink, solang, user }).forEach(([type, abis]) =>
|
|
Object.entries(abis).forEach(([name, abi]): void => {
|
|
all[`${type}_${name}`] = abi;
|
|
})
|
|
);
|
|
|
|
export default all;
|