@rabby-wallet/gnosis-sdk 1.4.8-alpha-1 → 1.4.8-alpha-2
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/api.d.ts +4 -9
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/src/api.ts +6 -3
- package/src/utils.ts +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -75,13 +75,8 @@ export type SafeOpenApiService = {
|
|
|
75
75
|
}) => Promise<string | undefined>;
|
|
76
76
|
};
|
|
77
77
|
export declare const GNOSIS_SUPPORT_CHAINS: string[];
|
|
78
|
-
export declare const HOST_MAP:
|
|
79
|
-
|
|
80
|
-
* blast
|
|
81
|
-
*/
|
|
82
|
-
"81457": string;
|
|
83
|
-
};
|
|
84
|
-
export declare const getTxServiceUrl: (chainId: string) => any;
|
|
78
|
+
export declare const HOST_MAP: Record<string, string>;
|
|
79
|
+
export declare const getTxServiceUrl: (chainId: string) => string;
|
|
85
80
|
export default class RequestProvider {
|
|
86
81
|
prefix: string;
|
|
87
82
|
request: Axios;
|
|
@@ -95,9 +90,9 @@ export default class RequestProvider {
|
|
|
95
90
|
getPendingTransactions(safeAddress: string, nonce: number): Promise<{
|
|
96
91
|
results: SafeTransactionItem[];
|
|
97
92
|
}>;
|
|
98
|
-
postTransactions(safeAddres: string, data: any): Promise<void>;
|
|
93
|
+
postTransactions(safeAddres: string, data: Record<string, any>): Promise<void>;
|
|
99
94
|
getSafeInfo(safeAddress: string): Promise<SafeInfo>;
|
|
100
|
-
confirmTransaction(safeTransactionHash: string, data: any): Promise<void>;
|
|
95
|
+
confirmTransaction(safeTransactionHash: string, data: Record<string, any>): Promise<void>;
|
|
101
96
|
getSafeTxGas(safeAddress: string, safeVersion: string, safeTxData: SafeTransactionDataPartial): Promise<string | undefined>;
|
|
102
97
|
}
|
|
103
98
|
export {};
|
package/dist/utils.js
CHANGED
|
@@ -106,7 +106,7 @@ export async function standardizeSafeTransactionData(safeAddress, safeContract,
|
|
|
106
106
|
(await request.getSafeTxGas(safeAddress, version, standardizedTxs));
|
|
107
107
|
return {
|
|
108
108
|
...standardizedTxs,
|
|
109
|
-
safeTxGas: safeTxGas || "0"
|
|
109
|
+
safeTxGas: `${safeTxGas || "0"}`,
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
export function generatePreValidatedSignature(ownerAddress) {
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -287,7 +287,7 @@ const networkMap = networks.reduce<Record<string, string>>(
|
|
|
287
287
|
{}
|
|
288
288
|
);
|
|
289
289
|
|
|
290
|
-
export const HOST_MAP = {
|
|
290
|
+
export const HOST_MAP: Record<string, string> = {
|
|
291
291
|
/**
|
|
292
292
|
* blast
|
|
293
293
|
*/
|
|
@@ -363,7 +363,7 @@ export default class RequestProvider {
|
|
|
363
363
|
);
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
postTransactions(safeAddres: string, data): Promise<void> {
|
|
366
|
+
postTransactions(safeAddres: string, data: Record<string, any>): Promise<void> {
|
|
367
367
|
const checksumAddress = ethers.utils.getAddress(safeAddres);
|
|
368
368
|
if (
|
|
369
369
|
this.shouldUseOpenapiService &&
|
|
@@ -396,7 +396,10 @@ export default class RequestProvider {
|
|
|
396
396
|
);
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
confirmTransaction(
|
|
399
|
+
confirmTransaction(
|
|
400
|
+
safeTransactionHash: string,
|
|
401
|
+
data: Record<string, any>
|
|
402
|
+
): Promise<void> {
|
|
400
403
|
if (
|
|
401
404
|
this.shouldUseOpenapiService &&
|
|
402
405
|
this.openapiService?.confirmSafeTransaction
|
package/src/utils.ts
CHANGED