feat: local db & evm base vault (#3795)

This commit is contained in:
morizon
2023-11-20 17:41:15 +08:00
committed by GitHub
parent 741dd95624
commit f8ab439c75
156 changed files with 4824 additions and 1166 deletions

View File

@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
declare module '@mymonero/mymonero-lws-client' {
interface MoneroTransaction {
coinbase: boolean;
@@ -87,5 +89,5 @@ declare module '@mymonero/mymonero-lws-client' {
) => Promise<{ amount_outs: AmountOut[] }>;
}
export { MoneroAddressInfo, SpentOutout, MoneroTransaction };
export { MoneroAddressInfo, MoneroTransaction, SpentOutout };
}

4
@types/globals.d.ts vendored
View File

@@ -1,5 +1,6 @@
/* eslint-disable no-var,vars-on-top */
import type { ILocaleIds } from '@onekeyhq/components/src/locale';
import type { LocalDbBase } from '@onekeyhq/kit-bg/src/dbs/local/LocalDbBase';
import type { IBackgroundApi } from '@onekeyhq/kit-bg/src/IBackgroundApi';
import type { JotaiBgSync } from '@onekeyhq/kit-bg/src/states/jotai/jotaiBgSync';
@@ -20,11 +21,12 @@ declare global {
var $appIsReduxReady: boolean;
var $onekey: IWindowOneKeyHub;
var $backgroundApiProxy: IBackgroundApi;
var $backgroundApi: IBackgroundApi;
var $backgroundApi: IBackgroundApi; // not available for ext ui
var $jotaiBgSync: JotaiBgSync;
var $$navigationShortcuts: any;
var $$simpleDb: any;
var $$localDb: LocalDbBase;
var $$appEventBus: any;
var $$appUIEventBus: any;
var $$appStore: EnhancedStore;

1
@types/tronweb.d.ts vendored
View File

@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable camelcase */
type ITokenContract = {
name: () => { call: () => Promise<{ _name: string } | string> };