@orderly.network/core 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -413,6 +413,8 @@ type OrderlyContracts = {
|
|
|
413
413
|
storyTestnetVaultAddress?: string;
|
|
414
414
|
monadTestnetVaultAddress?: string;
|
|
415
415
|
monadTestnetUSDCAddress?: string;
|
|
416
|
+
abstractVaultAddress?: string;
|
|
417
|
+
abstractUSDCAddress?: string;
|
|
416
418
|
};
|
|
417
419
|
interface IContract {
|
|
418
420
|
getContractInfoByEnv(): OrderlyContracts;
|
|
@@ -539,6 +541,8 @@ declare class BaseContract implements IContract {
|
|
|
539
541
|
})[];
|
|
540
542
|
solanaUSDCAddress: string;
|
|
541
543
|
solanaVaultAddress: string;
|
|
544
|
+
abstractVaultAddress: string;
|
|
545
|
+
abstractUSDCAddress: string;
|
|
542
546
|
storyTestnetVaultAddress?: undefined;
|
|
543
547
|
monadTestnetVaultAddress?: undefined;
|
|
544
548
|
monadTestnetUSDCAddress?: undefined;
|
|
@@ -685,6 +689,8 @@ declare class BaseContract implements IContract {
|
|
|
685
689
|
storyTestnetVaultAddress: string;
|
|
686
690
|
monadTestnetVaultAddress: string;
|
|
687
691
|
monadTestnetUSDCAddress: string;
|
|
692
|
+
abstractUSDCAddress: string;
|
|
693
|
+
abstractVaultAddress: string;
|
|
688
694
|
};
|
|
689
695
|
}
|
|
690
696
|
|
|
@@ -872,10 +878,12 @@ declare class Account {
|
|
|
872
878
|
private readonly configStore;
|
|
873
879
|
readonly keyStore: OrderlyKeyStore;
|
|
874
880
|
static instanceName: string;
|
|
881
|
+
static additionalInfoRepositoryName: string;
|
|
875
882
|
private _singer?;
|
|
876
883
|
private _ee;
|
|
877
884
|
private walletAdapterManager;
|
|
878
885
|
assetsManager: Assets;
|
|
886
|
+
private additionalInfoRepository;
|
|
879
887
|
private _state;
|
|
880
888
|
private readonly contractManger;
|
|
881
889
|
constructor(configStore: ConfigStore, keyStore: OrderlyKeyStore, walletAdapters: WalletAdapter[], options?: Partial<{
|
|
@@ -897,6 +905,7 @@ declare class Account {
|
|
|
897
905
|
};
|
|
898
906
|
[key: string]: any;
|
|
899
907
|
}): Promise<AccountStatusEnum>;
|
|
908
|
+
private saveAdditionalInfo;
|
|
900
909
|
get stateValue(): AccountState;
|
|
901
910
|
get accountId(): string | undefined;
|
|
902
911
|
get accountIdHashStr(): string | undefined;
|
|
@@ -938,6 +947,7 @@ declare class Account {
|
|
|
938
947
|
private _getAccountInfo;
|
|
939
948
|
private _getSettleNonce;
|
|
940
949
|
private _simpleFetch;
|
|
950
|
+
getAdditionalInfo(): Record<string, any> | null;
|
|
941
951
|
get on(): <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
942
952
|
get once(): <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
943
953
|
get off(): <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => EventEmitter<string | symbol, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -413,6 +413,8 @@ type OrderlyContracts = {
|
|
|
413
413
|
storyTestnetVaultAddress?: string;
|
|
414
414
|
monadTestnetVaultAddress?: string;
|
|
415
415
|
monadTestnetUSDCAddress?: string;
|
|
416
|
+
abstractVaultAddress?: string;
|
|
417
|
+
abstractUSDCAddress?: string;
|
|
416
418
|
};
|
|
417
419
|
interface IContract {
|
|
418
420
|
getContractInfoByEnv(): OrderlyContracts;
|
|
@@ -539,6 +541,8 @@ declare class BaseContract implements IContract {
|
|
|
539
541
|
})[];
|
|
540
542
|
solanaUSDCAddress: string;
|
|
541
543
|
solanaVaultAddress: string;
|
|
544
|
+
abstractVaultAddress: string;
|
|
545
|
+
abstractUSDCAddress: string;
|
|
542
546
|
storyTestnetVaultAddress?: undefined;
|
|
543
547
|
monadTestnetVaultAddress?: undefined;
|
|
544
548
|
monadTestnetUSDCAddress?: undefined;
|
|
@@ -685,6 +689,8 @@ declare class BaseContract implements IContract {
|
|
|
685
689
|
storyTestnetVaultAddress: string;
|
|
686
690
|
monadTestnetVaultAddress: string;
|
|
687
691
|
monadTestnetUSDCAddress: string;
|
|
692
|
+
abstractUSDCAddress: string;
|
|
693
|
+
abstractVaultAddress: string;
|
|
688
694
|
};
|
|
689
695
|
}
|
|
690
696
|
|
|
@@ -872,10 +878,12 @@ declare class Account {
|
|
|
872
878
|
private readonly configStore;
|
|
873
879
|
readonly keyStore: OrderlyKeyStore;
|
|
874
880
|
static instanceName: string;
|
|
881
|
+
static additionalInfoRepositoryName: string;
|
|
875
882
|
private _singer?;
|
|
876
883
|
private _ee;
|
|
877
884
|
private walletAdapterManager;
|
|
878
885
|
assetsManager: Assets;
|
|
886
|
+
private additionalInfoRepository;
|
|
879
887
|
private _state;
|
|
880
888
|
private readonly contractManger;
|
|
881
889
|
constructor(configStore: ConfigStore, keyStore: OrderlyKeyStore, walletAdapters: WalletAdapter[], options?: Partial<{
|
|
@@ -897,6 +905,7 @@ declare class Account {
|
|
|
897
905
|
};
|
|
898
906
|
[key: string]: any;
|
|
899
907
|
}): Promise<AccountStatusEnum>;
|
|
908
|
+
private saveAdditionalInfo;
|
|
900
909
|
get stateValue(): AccountState;
|
|
901
910
|
get accountId(): string | undefined;
|
|
902
911
|
get accountIdHashStr(): string | undefined;
|
|
@@ -938,6 +947,7 @@ declare class Account {
|
|
|
938
947
|
private _getAccountInfo;
|
|
939
948
|
private _getSettleNonce;
|
|
940
949
|
private _simpleFetch;
|
|
950
|
+
getAdditionalInfo(): Record<string, any> | null;
|
|
941
951
|
get on(): <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
942
952
|
get once(): <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
943
953
|
get off(): <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => EventEmitter<string | symbol, any>;
|