From d19a78baf5f89fe567dce4066fab088df62f5860 Mon Sep 17 00:00:00 2001 From: dafuga Date: Tue, 25 Feb 2025 12:13:50 +0900 Subject: [PATCH 1/2] fix: exporting all contract types --- src/contracts/eosio.ts | 2 -- src/index.ts | 10 +++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/contracts/eosio.ts b/src/contracts/eosio.ts index d5a7033..9f3eb2c 100644 --- a/src/contracts/eosio.ts +++ b/src/contracts/eosio.ts @@ -1315,7 +1315,6 @@ export interface TableTypes { } export type RowType = T extends keyof TableTypes ? TableTypes[T] : any export type TableNames = keyof TableTypes -export interface ActionParams {} export namespace ActionParams { export namespace Type { export interface permission_level { @@ -1734,7 +1733,6 @@ export namespace ActionParams { amount: AssetType } } -export const ActionParams: ActionParams = {} as ActionParams export interface ActionNameParams { activate: ActionParams.activate bidname: ActionParams.bidname diff --git a/src/index.ts b/src/index.ts index fe4d6ac..5096221 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,4 +2,12 @@ export * from './account' export * from './permission' export * from './resource' export * from './kit' -export * as SystemContract from './contracts/eosio' +import {abi, abiBlob, Contract, TableMap, Types} from './contracts/eosio' + +export const SystemContract = { + abi, + abiBlob, + Contract, + TableMap, + Types, +} From 4070c4b3ca0dc5d61d58a91e9163ebe3304a354d Mon Sep 17 00:00:00 2001 From: dafuga Date: Tue, 25 Feb 2025 12:27:19 +0900 Subject: [PATCH 2/2] enhancement: exporting SystemContractActionNameParams and SystemContractActionNames --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 5096221..a286923 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,3 +11,8 @@ export const SystemContract = { TableMap, Types, } + +export { + type ActionNameParams as SystemContractActionNameParams, + type ActionNames as SystemContractActionNames, +} from './contracts/eosio'