@orderly.network/core 2.0.4 → 2.0.5-alpha.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 +8 -0
- package/dist/index.d.ts +8 -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 +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -411,6 +411,8 @@ type OrderlyContracts = {
|
|
|
411
411
|
solanaUSDCAddress: string;
|
|
412
412
|
solanaVaultAddress: string;
|
|
413
413
|
storyTestnetVaultAddress?: string;
|
|
414
|
+
monadTestnetVaultAddress?: string;
|
|
415
|
+
monadTestnetUSDCAddress?: string;
|
|
414
416
|
};
|
|
415
417
|
interface IContract {
|
|
416
418
|
getContractInfoByEnv(): OrderlyContracts;
|
|
@@ -538,6 +540,8 @@ declare class BaseContract implements IContract {
|
|
|
538
540
|
solanaUSDCAddress: string;
|
|
539
541
|
solanaVaultAddress: string;
|
|
540
542
|
storyTestnetVaultAddress?: undefined;
|
|
543
|
+
monadTestnetVaultAddress?: undefined;
|
|
544
|
+
monadTestnetUSDCAddress?: undefined;
|
|
541
545
|
} | {
|
|
542
546
|
usdcAddress: string;
|
|
543
547
|
usdcAbi: ({
|
|
@@ -679,6 +683,8 @@ declare class BaseContract implements IContract {
|
|
|
679
683
|
anonymous?: undefined;
|
|
680
684
|
})[];
|
|
681
685
|
storyTestnetVaultAddress: string;
|
|
686
|
+
monadTestnetVaultAddress: string;
|
|
687
|
+
monadTestnetUSDCAddress: string;
|
|
682
688
|
};
|
|
683
689
|
}
|
|
684
690
|
|
|
@@ -896,6 +902,7 @@ declare class Account {
|
|
|
896
902
|
get accountIdHashStr(): string | undefined;
|
|
897
903
|
get address(): string | undefined;
|
|
898
904
|
get chainId(): number | string | undefined;
|
|
905
|
+
get apiBaseUrl(): string | undefined;
|
|
899
906
|
private _bindEvents;
|
|
900
907
|
private _checkAccount;
|
|
901
908
|
private _checkAccountExist;
|
|
@@ -964,6 +971,7 @@ declare abstract class BaseWalletAdapter<Config> implements WalletAdapter<Config
|
|
|
964
971
|
abstract generateAddOrderlyKeyMessage(inputs: AddOrderlyKeyInputs): Promise<Message>;
|
|
965
972
|
abstract getBalance(): Promise<bigint>;
|
|
966
973
|
abstract chainNamespace: ChainNamespace;
|
|
974
|
+
signMessageByOrderlyKey(payload: any): Promise<SignedMessagePayload>;
|
|
967
975
|
abstract call(address: string, method: string, params: any[], options?: {
|
|
968
976
|
abi: any;
|
|
969
977
|
}): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -411,6 +411,8 @@ type OrderlyContracts = {
|
|
|
411
411
|
solanaUSDCAddress: string;
|
|
412
412
|
solanaVaultAddress: string;
|
|
413
413
|
storyTestnetVaultAddress?: string;
|
|
414
|
+
monadTestnetVaultAddress?: string;
|
|
415
|
+
monadTestnetUSDCAddress?: string;
|
|
414
416
|
};
|
|
415
417
|
interface IContract {
|
|
416
418
|
getContractInfoByEnv(): OrderlyContracts;
|
|
@@ -538,6 +540,8 @@ declare class BaseContract implements IContract {
|
|
|
538
540
|
solanaUSDCAddress: string;
|
|
539
541
|
solanaVaultAddress: string;
|
|
540
542
|
storyTestnetVaultAddress?: undefined;
|
|
543
|
+
monadTestnetVaultAddress?: undefined;
|
|
544
|
+
monadTestnetUSDCAddress?: undefined;
|
|
541
545
|
} | {
|
|
542
546
|
usdcAddress: string;
|
|
543
547
|
usdcAbi: ({
|
|
@@ -679,6 +683,8 @@ declare class BaseContract implements IContract {
|
|
|
679
683
|
anonymous?: undefined;
|
|
680
684
|
})[];
|
|
681
685
|
storyTestnetVaultAddress: string;
|
|
686
|
+
monadTestnetVaultAddress: string;
|
|
687
|
+
monadTestnetUSDCAddress: string;
|
|
682
688
|
};
|
|
683
689
|
}
|
|
684
690
|
|
|
@@ -896,6 +902,7 @@ declare class Account {
|
|
|
896
902
|
get accountIdHashStr(): string | undefined;
|
|
897
903
|
get address(): string | undefined;
|
|
898
904
|
get chainId(): number | string | undefined;
|
|
905
|
+
get apiBaseUrl(): string | undefined;
|
|
899
906
|
private _bindEvents;
|
|
900
907
|
private _checkAccount;
|
|
901
908
|
private _checkAccountExist;
|
|
@@ -964,6 +971,7 @@ declare abstract class BaseWalletAdapter<Config> implements WalletAdapter<Config
|
|
|
964
971
|
abstract generateAddOrderlyKeyMessage(inputs: AddOrderlyKeyInputs): Promise<Message>;
|
|
965
972
|
abstract getBalance(): Promise<bigint>;
|
|
966
973
|
abstract chainNamespace: ChainNamespace;
|
|
974
|
+
signMessageByOrderlyKey(payload: any): Promise<SignedMessagePayload>;
|
|
967
975
|
abstract call(address: string, method: string, params: any[], options?: {
|
|
968
976
|
abi: any;
|
|
969
977
|
}): Promise<any>;
|