@orderly.network/core 0.2.4-alpha.1 → 0.2.4-alpha.11
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 +11 -0
- package/dist/index.d.ts +11 -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
|
@@ -586,6 +586,10 @@ declare class SimpleDI {
|
|
|
586
586
|
interface IWalletAdapter {
|
|
587
587
|
get chainId(): number;
|
|
588
588
|
get addresses(): string;
|
|
589
|
+
/**
|
|
590
|
+
* Set the chain id
|
|
591
|
+
*/
|
|
592
|
+
set chainId(chainId: number);
|
|
589
593
|
parseUnits: (amount: string) => string;
|
|
590
594
|
formatUnits: (amount: string) => string;
|
|
591
595
|
send: (method: string, params: Array<any> | Record<string, any>) => Promise<any>;
|
|
@@ -597,7 +601,9 @@ interface IWalletAdapter {
|
|
|
597
601
|
}, options: {
|
|
598
602
|
abi: any;
|
|
599
603
|
}): Promise<TransactionResponse>;
|
|
604
|
+
getTransactionRecipect: (txHash: string) => Promise<any>;
|
|
600
605
|
signTypedData: (address: string, data: any) => Promise<string>;
|
|
606
|
+
pollTransactionReceiptWithBackoff: (txHash: string, baseInterval?: number, maxInterval?: number, maxRetries?: number) => Promise<any>;
|
|
601
607
|
getBalance: (userAddress: string) => Promise<any>;
|
|
602
608
|
call(address: string, method: string, params: any, options: {
|
|
603
609
|
abi: any;
|
|
@@ -724,6 +730,8 @@ declare class Account {
|
|
|
724
730
|
createOrderlyKey(expiration?: number): Promise<any>;
|
|
725
731
|
settle(): Promise<any>;
|
|
726
732
|
disconnect(): Promise<void>;
|
|
733
|
+
switchChainId(chainId: number | string): void;
|
|
734
|
+
private parseChainId;
|
|
727
735
|
private _checkOrderlyKeyState;
|
|
728
736
|
get signer(): Signer;
|
|
729
737
|
get wallet(): IWalletAdapter | undefined;
|
|
@@ -761,6 +769,7 @@ declare class EtherAdapter implements IWalletAdapter {
|
|
|
761
769
|
abi: any;
|
|
762
770
|
}): Promise<any>;
|
|
763
771
|
get chainId(): number;
|
|
772
|
+
set chainId(chainId: number);
|
|
764
773
|
get addresses(): string;
|
|
765
774
|
send(method: string, params: Array<any> | Record<string, any>): Promise<any>;
|
|
766
775
|
sendTransaction(contractAddress: string, method: string, payload: {
|
|
@@ -771,6 +780,8 @@ declare class EtherAdapter implements IWalletAdapter {
|
|
|
771
780
|
}, options: {
|
|
772
781
|
abi: any;
|
|
773
782
|
}): Promise<ethers.TransactionResponse>;
|
|
783
|
+
getTransactionRecipect(txHash: string): Promise<void>;
|
|
784
|
+
pollTransactionReceiptWithBackoff(txHash: string, baseInterval?: number, maxInterval?: number, maxRetries?: number): Promise<ethers.TransactionReceipt>;
|
|
774
785
|
private estimateGas;
|
|
775
786
|
signTypedData(address: string, data: any): Promise<any>;
|
|
776
787
|
verify(data: {
|
package/dist/index.d.ts
CHANGED
|
@@ -586,6 +586,10 @@ declare class SimpleDI {
|
|
|
586
586
|
interface IWalletAdapter {
|
|
587
587
|
get chainId(): number;
|
|
588
588
|
get addresses(): string;
|
|
589
|
+
/**
|
|
590
|
+
* Set the chain id
|
|
591
|
+
*/
|
|
592
|
+
set chainId(chainId: number);
|
|
589
593
|
parseUnits: (amount: string) => string;
|
|
590
594
|
formatUnits: (amount: string) => string;
|
|
591
595
|
send: (method: string, params: Array<any> | Record<string, any>) => Promise<any>;
|
|
@@ -597,7 +601,9 @@ interface IWalletAdapter {
|
|
|
597
601
|
}, options: {
|
|
598
602
|
abi: any;
|
|
599
603
|
}): Promise<TransactionResponse>;
|
|
604
|
+
getTransactionRecipect: (txHash: string) => Promise<any>;
|
|
600
605
|
signTypedData: (address: string, data: any) => Promise<string>;
|
|
606
|
+
pollTransactionReceiptWithBackoff: (txHash: string, baseInterval?: number, maxInterval?: number, maxRetries?: number) => Promise<any>;
|
|
601
607
|
getBalance: (userAddress: string) => Promise<any>;
|
|
602
608
|
call(address: string, method: string, params: any, options: {
|
|
603
609
|
abi: any;
|
|
@@ -724,6 +730,8 @@ declare class Account {
|
|
|
724
730
|
createOrderlyKey(expiration?: number): Promise<any>;
|
|
725
731
|
settle(): Promise<any>;
|
|
726
732
|
disconnect(): Promise<void>;
|
|
733
|
+
switchChainId(chainId: number | string): void;
|
|
734
|
+
private parseChainId;
|
|
727
735
|
private _checkOrderlyKeyState;
|
|
728
736
|
get signer(): Signer;
|
|
729
737
|
get wallet(): IWalletAdapter | undefined;
|
|
@@ -761,6 +769,7 @@ declare class EtherAdapter implements IWalletAdapter {
|
|
|
761
769
|
abi: any;
|
|
762
770
|
}): Promise<any>;
|
|
763
771
|
get chainId(): number;
|
|
772
|
+
set chainId(chainId: number);
|
|
764
773
|
get addresses(): string;
|
|
765
774
|
send(method: string, params: Array<any> | Record<string, any>): Promise<any>;
|
|
766
775
|
sendTransaction(contractAddress: string, method: string, payload: {
|
|
@@ -771,6 +780,8 @@ declare class EtherAdapter implements IWalletAdapter {
|
|
|
771
780
|
}, options: {
|
|
772
781
|
abi: any;
|
|
773
782
|
}): Promise<ethers.TransactionResponse>;
|
|
783
|
+
getTransactionRecipect(txHash: string): Promise<void>;
|
|
784
|
+
pollTransactionReceiptWithBackoff(txHash: string, baseInterval?: number, maxInterval?: number, maxRetries?: number): Promise<ethers.TransactionReceipt>;
|
|
774
785
|
private estimateGas;
|
|
775
786
|
signTypedData(address: string, data: any): Promise<any>;
|
|
776
787
|
verify(data: {
|