@safe-global/api-kit
Advanced tools
| /** | ||
| * Allows mapping reserved keywords or double underscore params for API calls | ||
| */ | ||
| export declare const QUERY_PARAMS_MAP: Record<string, string>; | ||
| //# sourceMappingURL=queryParamsMap.d.ts.map |
| {"version":3,"file":"queryParamsMap.d.ts","sourceRoot":"","sources":["../../../src/utils/queryParamsMap.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEnD,CAAA"} |
+252
-248
@@ -114,5 +114,7 @@ "use strict"; | ||
| "100": "https://safe-transaction-gnosis-chain.safe.global/api", | ||
| "130": "https://safe-transaction-unichain.safe.global/api", | ||
| "137": "https://safe-transaction-polygon.safe.global/api", | ||
| "196": "https://safe-transaction-xlayer.safe.global/api", | ||
| "324": "https://safe-transaction-zksync.safe.global/api", | ||
| "480": "https://safe-transaction-worldchain.safe.global/api", | ||
| "1101": "https://safe-transaction-zkevm.safe.global/api", | ||
@@ -157,2 +159,7 @@ "5000": "https://safe-transaction-mantle.safe.global/api", | ||
| // src/utils/queryParamsMap.ts | ||
| var QUERY_PARAMS_MAP = { | ||
| from: "_from" | ||
| }; | ||
| // src/SafeApiKit.ts | ||
@@ -188,2 +195,20 @@ var SafeApiKit = class { | ||
| /** | ||
| * Adds query parameters from an options object to a given URL. | ||
| * Converts parameter names to snake_case automatically. If a specific mapping exists in QUERY_PARAMS_MAP, | ||
| * it will be used instead of the converted name. | ||
| * | ||
| * @param {URL} url - The URL object to which query parameters will be added. | ||
| * @param {T} options - An object containing key-value pairs representing query parameters. | ||
| * @returns {void} | ||
| */ | ||
| #addUrlQueryParams(url, options) { | ||
| const camelToSnake = (str) => str.replace(/([A-Z])/g, "_$1").toLowerCase(); | ||
| Object.entries(options || {}).forEach(([key, value]) => { | ||
| if (value !== void 0) { | ||
| const name = QUERY_PARAMS_MAP[key] ?? camelToSnake(key); | ||
| url.searchParams.set(name, value.toString()); | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the information and configuration of the service. | ||
@@ -235,121 +260,2 @@ * | ||
| /** | ||
| * Returns the list of Safes where the address provided is an owner. | ||
| * | ||
| * @param ownerAddress - The owner address | ||
| * @returns The list of Safes where the address provided is an owner | ||
| * @throws "Invalid owner address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafesByOwner(ownerAddress) { | ||
| if (ownerAddress === "") { | ||
| throw new Error("Invalid owner address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(ownerAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/owners/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of Safes where the module address provided is enabled. | ||
| * | ||
| * @param moduleAddress - The Safe module address | ||
| * @returns The list of Safe addresses where the module provided is enabled | ||
| * @throws "Invalid module address" | ||
| * @throws "Module address checksum not valid" | ||
| */ | ||
| async getSafesByModule(moduleAddress) { | ||
| if (moduleAddress === "") { | ||
| throw new Error("Invalid module address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(moduleAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/modules/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns all the information of a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction | ||
| * @returns The information of a Safe transaction | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Not found." | ||
| */ | ||
| async getTransaction(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of confirmations for a given a Safe transaction. | ||
| * | ||
| * @param safeTxHash - The hash of the Safe transaction | ||
| * @returns The list of confirmations | ||
| * @throws "Invalid safeTxHash" | ||
| */ | ||
| async getTransactionConfirmations(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Adds a confirmation for a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction that will be confirmed | ||
| * @param signature - Signature of the transaction | ||
| * @returns | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Invalid signature" | ||
| * @throws "Malformed data" | ||
| * @throws "Error processing data" | ||
| */ | ||
| async confirmTransaction(safeTxHash, signature) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| if (signature === "") { | ||
| throw new Error("Invalid signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the information and configuration of the provided Safe address. | ||
| * | ||
| * @param safeAddress - The Safe address | ||
| * @returns The information and configuration of the provided Safe address | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafeInfo(safeAddress) { | ||
| if (safeAddress === "") { | ||
| throw new Error("Invalid Safe address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/`, | ||
| method: "get" /* Get */ | ||
| }).then((response) => { | ||
| if (!response?.singleton) { | ||
| const { masterCopy, ...rest } = response; | ||
| return { ...rest, singleton: masterCopy }; | ||
| } | ||
| return response; | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of delegates. | ||
@@ -476,2 +382,185 @@ * | ||
| /** | ||
| * Get a message by its safe message hash | ||
| * @param messageHash The Safe message hash | ||
| * @returns The message | ||
| */ | ||
| async getMessage(messageHash) { | ||
| if (!messageHash) { | ||
| throw new Error("Invalid messageHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Get the list of messages associated to a Safe account | ||
| * @param safeAddress The safe address | ||
| * @param options The options to filter the list of messages | ||
| * @returns The paginated list of messages | ||
| */ | ||
| async getMessages(safeAddress, options = {}) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Creates a new message with an initial signature | ||
| * Add more signatures from other owners using addMessageSignature() | ||
| * @param safeAddress The safe address | ||
| * @param options The raw message to add, signature and safeAppId if any | ||
| */ | ||
| async addMessage(safeAddress, addMessageOptions) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`, | ||
| method: "post" /* Post */, | ||
| body: addMessageOptions | ||
| }); | ||
| } | ||
| /** | ||
| * Add a signature to an existing message | ||
| * @param messageHash The safe message hash | ||
| * @param signature The signature | ||
| */ | ||
| async addMessageSignature(messageHash, signature) { | ||
| if (!messageHash || !signature) { | ||
| throw new Error("Invalid messageHash or signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/signatures/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of Safes where the address provided is an owner. | ||
| * | ||
| * @param ownerAddress - The owner address | ||
| * @returns The list of Safes where the address provided is an owner | ||
| * @throws "Invalid owner address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafesByOwner(ownerAddress) { | ||
| if (ownerAddress === "") { | ||
| throw new Error("Invalid owner address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(ownerAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/owners/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of Safes where the module address provided is enabled. | ||
| * | ||
| * @param moduleAddress - The Safe module address | ||
| * @returns The list of Safe addresses where the module provided is enabled | ||
| * @throws "Invalid module address" | ||
| * @throws "Module address checksum not valid" | ||
| */ | ||
| async getSafesByModule(moduleAddress) { | ||
| if (moduleAddress === "") { | ||
| throw new Error("Invalid module address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(moduleAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/modules/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns all the information of a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction | ||
| * @returns The information of a Safe transaction | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Not found." | ||
| */ | ||
| async getTransaction(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of confirmations for a given a Safe transaction. | ||
| * | ||
| * @param safeTxHash - The hash of the Safe transaction | ||
| * @returns The list of confirmations | ||
| * @throws "Invalid safeTxHash" | ||
| */ | ||
| async getTransactionConfirmations(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Adds a confirmation for a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction that will be confirmed | ||
| * @param signature - Signature of the transaction | ||
| * @returns | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Invalid signature" | ||
| * @throws "Malformed data" | ||
| * @throws "Error processing data" | ||
| */ | ||
| async confirmTransaction(safeTxHash, signature) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| if (signature === "") { | ||
| throw new Error("Invalid signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the information and configuration of the provided Safe address. | ||
| * | ||
| * @param safeAddress - The Safe address | ||
| * @returns The information and configuration of the provided Safe address | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafeInfo(safeAddress) { | ||
| if (safeAddress === "") { | ||
| throw new Error("Invalid Safe address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/`, | ||
| method: "get" /* Get */ | ||
| }).then((response) => { | ||
| if (!response?.singleton) { | ||
| const { masterCopy, ...rest } = response; | ||
| return { ...rest, singleton: masterCopy }; | ||
| } | ||
| return response; | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the creation information of a Safe. | ||
@@ -566,2 +655,3 @@ * | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of incoming transactions | ||
@@ -571,3 +661,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| async getIncomingTransactions(safeAddress) { | ||
| async getIncomingTransactions(safeAddress, options) { | ||
| if (safeAddress === "") { | ||
@@ -577,4 +667,6 @@ throw new Error("Invalid Safe address"); | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/incoming-transfers/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/incoming-transfers?executed=true`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
@@ -587,2 +679,3 @@ }); | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of module transactions | ||
@@ -593,3 +686,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| async getModuleTransactions(safeAddress) { | ||
| async getModuleTransactions(safeAddress, options) { | ||
| if (safeAddress === "") { | ||
@@ -599,4 +692,6 @@ throw new Error("Invalid Safe address"); | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/module-transactions/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/module-transactions/`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
@@ -609,2 +704,3 @@ }); | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of multi-signature transactions | ||
@@ -614,3 +710,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| async getMultisigTransactions(safeAddress) { | ||
| async getMultisigTransactions(safeAddress, options) { | ||
| if (safeAddress === "") { | ||
@@ -620,25 +716,24 @@ throw new Error("Invalid Safe address"); | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/multisig-transactions/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/multisig-transactions/`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| async getPendingTransactions(safeAddress, propsOrCurrentNonce = {}) { | ||
| /** | ||
| * Returns the list of multi-signature transactions that are waiting for the confirmation of the Safe owners. | ||
| * | ||
| * @param safeAddress - The Safe address | ||
| * @param {PendingTransactionsOptions} options The options to filter the list of transactions | ||
| * @returns The list of transactions waiting for the confirmation of the Safe owners | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Invalid data" | ||
| * @throws "Invalid ethereum address" | ||
| */ | ||
| async getPendingTransactions(safeAddress, options = {}) { | ||
| if (safeAddress === "") { | ||
| throw new Error("Invalid Safe address"); | ||
| } | ||
| let currentNonce; | ||
| let hasConfirmations; | ||
| let ordering; | ||
| let limit; | ||
| let offset; | ||
| if (typeof propsOrCurrentNonce === "object") { | ||
| ; | ||
| ({ currentNonce, hasConfirmations, ordering, limit, offset } = propsOrCurrentNonce); | ||
| } else { | ||
| console.warn( | ||
| "Deprecated: Use `currentNonce` inside an object instead. See `PendingTransactionsOptions`." | ||
| ); | ||
| currentNonce = propsOrCurrentNonce; | ||
| } | ||
| const { currentNonce, hasConfirmations, ordering, limit, offset } = options; | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
@@ -670,5 +765,7 @@ const nonce = currentNonce ? currentNonce : (await this.getSafeInfo(address)).nonce; | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The list of transactions waiting for the confirmation of the Safe owners | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Checksum address validation failed" | ||
| * @throws "Ordering field is not valid" | ||
| */ | ||
@@ -681,8 +778,3 @@ async getAllTransactions(safeAddress, options) { | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/all-transactions/`); | ||
| const trusted = options?.trusted?.toString() || "true"; | ||
| url.searchParams.set("trusted", trusted); | ||
| const queued = options?.queued?.toString() || "true"; | ||
| url.searchParams.set("queued", queued); | ||
| const executed = options?.executed?.toString() || "false"; | ||
| url.searchParams.set("executed", executed); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
@@ -721,7 +813,10 @@ url: url.toString(), | ||
| * | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The list of all the ERC20 tokens | ||
| */ | ||
| async getTokenList() { | ||
| async getTokenList(options) { | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/tokens/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/tokens/`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
@@ -749,76 +844,5 @@ }); | ||
| /** | ||
| * Get a message by its safe message hash | ||
| * @param messageHash The Safe message hash | ||
| * @returns The message | ||
| */ | ||
| async getMessage(messageHash) { | ||
| if (!messageHash) { | ||
| throw new Error("Invalid messageHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Get the list of messages associated to a Safe account | ||
| * @param safeAddress The safe address | ||
| * @param options The options to filter the list of messages | ||
| * @returns The paginated list of messages | ||
| */ | ||
| async getMessages(safeAddress, { ordering, limit, offset } = {}) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`); | ||
| if (ordering) { | ||
| url.searchParams.set("ordering", ordering); | ||
| } | ||
| if (limit != null) { | ||
| url.searchParams.set("limit", limit.toString()); | ||
| } | ||
| if (offset != null) { | ||
| url.searchParams.set("offset", offset.toString()); | ||
| } | ||
| return sendRequest({ | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Creates a new message with an initial signature | ||
| * Add more signatures from other owners using addMessageSignature() | ||
| * @param safeAddress The safe address | ||
| * @param options The raw message to add, signature and safeAppId if any | ||
| */ | ||
| async addMessage(safeAddress, addMessageProps) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`, | ||
| method: "post" /* Post */, | ||
| body: addMessageProps | ||
| }); | ||
| } | ||
| /** | ||
| * Add a signature to an existing message | ||
| * @param messageHash The safe message hash | ||
| * @param signature The signature | ||
| */ | ||
| async addMessageSignature(messageHash, signature) { | ||
| if (!messageHash || !signature) { | ||
| throw new Error("Invalid messageHash or signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/signatures/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Get the SafeOperations that were sent from a particular address. | ||
| * @param getSafeOperationsProps - The parameters to filter the list of SafeOperations | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @throws "Safe address must not be empty" | ||
@@ -828,10 +852,3 @@ * @throws "Invalid Ethereum address {safeAddress}" | ||
| */ | ||
| async getSafeOperationsByAddress({ | ||
| safeAddress, | ||
| executed, | ||
| hasConfirmations, | ||
| ordering, | ||
| limit, | ||
| offset | ||
| }) { | ||
| async getSafeOperationsByAddress(safeAddress, options) { | ||
| if (!safeAddress) { | ||
@@ -842,17 +859,3 @@ throw new Error("Safe address must not be empty"); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/safe-operations/`); | ||
| if (ordering) { | ||
| url.searchParams.set("ordering", ordering); | ||
| } | ||
| if (limit != null) { | ||
| url.searchParams.set("limit", limit.toString()); | ||
| } | ||
| if (offset != null) { | ||
| url.searchParams.set("offset", offset.toString()); | ||
| } | ||
| if (hasConfirmations != null) { | ||
| url.searchParams.set("has_confirmations", hasConfirmations.toString()); | ||
| } | ||
| if (executed != null) { | ||
| url.searchParams.set("executed", executed.toString()); | ||
| } | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
@@ -865,3 +868,4 @@ url: url.toString(), | ||
| * Get the SafeOperations that are pending to send to the bundler | ||
| * @param getSafeOperationsProps - The parameters to filter the list of SafeOperations | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @throws "Safe address must not be empty" | ||
@@ -871,5 +875,5 @@ * @throws "Invalid Ethereum address {safeAddress}" | ||
| */ | ||
| async getPendingSafeOperations(props) { | ||
| return this.getSafeOperationsByAddress({ | ||
| ...props, | ||
| async getPendingSafeOperations(safeAddress, options) { | ||
| return this.getSafeOperationsByAddress(safeAddress, { | ||
| ...options, | ||
| executed: false | ||
@@ -876,0 +880,0 @@ }); |
+252
-248
@@ -78,5 +78,7 @@ // src/utils/httpRequests.ts | ||
| "100": "https://safe-transaction-gnosis-chain.safe.global/api", | ||
| "130": "https://safe-transaction-unichain.safe.global/api", | ||
| "137": "https://safe-transaction-polygon.safe.global/api", | ||
| "196": "https://safe-transaction-xlayer.safe.global/api", | ||
| "324": "https://safe-transaction-zksync.safe.global/api", | ||
| "480": "https://safe-transaction-worldchain.safe.global/api", | ||
| "1101": "https://safe-transaction-zkevm.safe.global/api", | ||
@@ -121,2 +123,7 @@ "5000": "https://safe-transaction-mantle.safe.global/api", | ||
| // src/utils/queryParamsMap.ts | ||
| var QUERY_PARAMS_MAP = { | ||
| from: "_from" | ||
| }; | ||
| // src/SafeApiKit.ts | ||
@@ -152,2 +159,20 @@ var SafeApiKit = class { | ||
| /** | ||
| * Adds query parameters from an options object to a given URL. | ||
| * Converts parameter names to snake_case automatically. If a specific mapping exists in QUERY_PARAMS_MAP, | ||
| * it will be used instead of the converted name. | ||
| * | ||
| * @param {URL} url - The URL object to which query parameters will be added. | ||
| * @param {T} options - An object containing key-value pairs representing query parameters. | ||
| * @returns {void} | ||
| */ | ||
| #addUrlQueryParams(url, options) { | ||
| const camelToSnake = (str) => str.replace(/([A-Z])/g, "_$1").toLowerCase(); | ||
| Object.entries(options || {}).forEach(([key, value]) => { | ||
| if (value !== void 0) { | ||
| const name = QUERY_PARAMS_MAP[key] ?? camelToSnake(key); | ||
| url.searchParams.set(name, value.toString()); | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the information and configuration of the service. | ||
@@ -199,121 +224,2 @@ * | ||
| /** | ||
| * Returns the list of Safes where the address provided is an owner. | ||
| * | ||
| * @param ownerAddress - The owner address | ||
| * @returns The list of Safes where the address provided is an owner | ||
| * @throws "Invalid owner address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafesByOwner(ownerAddress) { | ||
| if (ownerAddress === "") { | ||
| throw new Error("Invalid owner address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(ownerAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/owners/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of Safes where the module address provided is enabled. | ||
| * | ||
| * @param moduleAddress - The Safe module address | ||
| * @returns The list of Safe addresses where the module provided is enabled | ||
| * @throws "Invalid module address" | ||
| * @throws "Module address checksum not valid" | ||
| */ | ||
| async getSafesByModule(moduleAddress) { | ||
| if (moduleAddress === "") { | ||
| throw new Error("Invalid module address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(moduleAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/modules/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns all the information of a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction | ||
| * @returns The information of a Safe transaction | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Not found." | ||
| */ | ||
| async getTransaction(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of confirmations for a given a Safe transaction. | ||
| * | ||
| * @param safeTxHash - The hash of the Safe transaction | ||
| * @returns The list of confirmations | ||
| * @throws "Invalid safeTxHash" | ||
| */ | ||
| async getTransactionConfirmations(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Adds a confirmation for a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction that will be confirmed | ||
| * @param signature - Signature of the transaction | ||
| * @returns | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Invalid signature" | ||
| * @throws "Malformed data" | ||
| * @throws "Error processing data" | ||
| */ | ||
| async confirmTransaction(safeTxHash, signature) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| if (signature === "") { | ||
| throw new Error("Invalid signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the information and configuration of the provided Safe address. | ||
| * | ||
| * @param safeAddress - The Safe address | ||
| * @returns The information and configuration of the provided Safe address | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafeInfo(safeAddress) { | ||
| if (safeAddress === "") { | ||
| throw new Error("Invalid Safe address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/`, | ||
| method: "get" /* Get */ | ||
| }).then((response) => { | ||
| if (!response?.singleton) { | ||
| const { masterCopy, ...rest } = response; | ||
| return { ...rest, singleton: masterCopy }; | ||
| } | ||
| return response; | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of delegates. | ||
@@ -440,2 +346,185 @@ * | ||
| /** | ||
| * Get a message by its safe message hash | ||
| * @param messageHash The Safe message hash | ||
| * @returns The message | ||
| */ | ||
| async getMessage(messageHash) { | ||
| if (!messageHash) { | ||
| throw new Error("Invalid messageHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Get the list of messages associated to a Safe account | ||
| * @param safeAddress The safe address | ||
| * @param options The options to filter the list of messages | ||
| * @returns The paginated list of messages | ||
| */ | ||
| async getMessages(safeAddress, options = {}) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Creates a new message with an initial signature | ||
| * Add more signatures from other owners using addMessageSignature() | ||
| * @param safeAddress The safe address | ||
| * @param options The raw message to add, signature and safeAppId if any | ||
| */ | ||
| async addMessage(safeAddress, addMessageOptions) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`, | ||
| method: "post" /* Post */, | ||
| body: addMessageOptions | ||
| }); | ||
| } | ||
| /** | ||
| * Add a signature to an existing message | ||
| * @param messageHash The safe message hash | ||
| * @param signature The signature | ||
| */ | ||
| async addMessageSignature(messageHash, signature) { | ||
| if (!messageHash || !signature) { | ||
| throw new Error("Invalid messageHash or signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/signatures/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of Safes where the address provided is an owner. | ||
| * | ||
| * @param ownerAddress - The owner address | ||
| * @returns The list of Safes where the address provided is an owner | ||
| * @throws "Invalid owner address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafesByOwner(ownerAddress) { | ||
| if (ownerAddress === "") { | ||
| throw new Error("Invalid owner address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(ownerAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/owners/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of Safes where the module address provided is enabled. | ||
| * | ||
| * @param moduleAddress - The Safe module address | ||
| * @returns The list of Safe addresses where the module provided is enabled | ||
| * @throws "Invalid module address" | ||
| * @throws "Module address checksum not valid" | ||
| */ | ||
| async getSafesByModule(moduleAddress) { | ||
| if (moduleAddress === "") { | ||
| throw new Error("Invalid module address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(moduleAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/modules/${address}/safes/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns all the information of a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction | ||
| * @returns The information of a Safe transaction | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Not found." | ||
| */ | ||
| async getTransaction(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the list of confirmations for a given a Safe transaction. | ||
| * | ||
| * @param safeTxHash - The hash of the Safe transaction | ||
| * @returns The list of confirmations | ||
| * @throws "Invalid safeTxHash" | ||
| */ | ||
| async getTransactionConfirmations(safeTxHash) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Adds a confirmation for a Safe transaction. | ||
| * | ||
| * @param safeTxHash - Hash of the Safe transaction that will be confirmed | ||
| * @param signature - Signature of the transaction | ||
| * @returns | ||
| * @throws "Invalid safeTxHash" | ||
| * @throws "Invalid signature" | ||
| * @throws "Malformed data" | ||
| * @throws "Error processing data" | ||
| */ | ||
| async confirmTransaction(safeTxHash, signature) { | ||
| if (safeTxHash === "") { | ||
| throw new Error("Invalid safeTxHash"); | ||
| } | ||
| if (signature === "") { | ||
| throw new Error("Invalid signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/multisig-transactions/${safeTxHash}/confirmations/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the information and configuration of the provided Safe address. | ||
| * | ||
| * @param safeAddress - The Safe address | ||
| * @returns The information and configuration of the provided Safe address | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| async getSafeInfo(safeAddress) { | ||
| if (safeAddress === "") { | ||
| throw new Error("Invalid Safe address"); | ||
| } | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/`, | ||
| method: "get" /* Get */ | ||
| }).then((response) => { | ||
| if (!response?.singleton) { | ||
| const { masterCopy, ...rest } = response; | ||
| return { ...rest, singleton: masterCopy }; | ||
| } | ||
| return response; | ||
| }); | ||
| } | ||
| /** | ||
| * Returns the creation information of a Safe. | ||
@@ -530,2 +619,3 @@ * | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of incoming transactions | ||
@@ -535,3 +625,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| async getIncomingTransactions(safeAddress) { | ||
| async getIncomingTransactions(safeAddress, options) { | ||
| if (safeAddress === "") { | ||
@@ -541,4 +631,6 @@ throw new Error("Invalid Safe address"); | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/incoming-transfers/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/incoming-transfers?executed=true`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
@@ -551,2 +643,3 @@ }); | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of module transactions | ||
@@ -557,3 +650,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| async getModuleTransactions(safeAddress) { | ||
| async getModuleTransactions(safeAddress, options) { | ||
| if (safeAddress === "") { | ||
@@ -563,4 +656,6 @@ throw new Error("Invalid Safe address"); | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/module-transactions/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/module-transactions/`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
@@ -573,2 +668,3 @@ }); | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of multi-signature transactions | ||
@@ -578,3 +674,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| async getMultisigTransactions(safeAddress) { | ||
| async getMultisigTransactions(safeAddress, options) { | ||
| if (safeAddress === "") { | ||
@@ -584,25 +680,24 @@ throw new Error("Invalid Safe address"); | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/multisig-transactions/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${address}/multisig-transactions/`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| async getPendingTransactions(safeAddress, propsOrCurrentNonce = {}) { | ||
| /** | ||
| * Returns the list of multi-signature transactions that are waiting for the confirmation of the Safe owners. | ||
| * | ||
| * @param safeAddress - The Safe address | ||
| * @param {PendingTransactionsOptions} options The options to filter the list of transactions | ||
| * @returns The list of transactions waiting for the confirmation of the Safe owners | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Invalid data" | ||
| * @throws "Invalid ethereum address" | ||
| */ | ||
| async getPendingTransactions(safeAddress, options = {}) { | ||
| if (safeAddress === "") { | ||
| throw new Error("Invalid Safe address"); | ||
| } | ||
| let currentNonce; | ||
| let hasConfirmations; | ||
| let ordering; | ||
| let limit; | ||
| let offset; | ||
| if (typeof propsOrCurrentNonce === "object") { | ||
| ; | ||
| ({ currentNonce, hasConfirmations, ordering, limit, offset } = propsOrCurrentNonce); | ||
| } else { | ||
| console.warn( | ||
| "Deprecated: Use `currentNonce` inside an object instead. See `PendingTransactionsOptions`." | ||
| ); | ||
| currentNonce = propsOrCurrentNonce; | ||
| } | ||
| const { currentNonce, hasConfirmations, ordering, limit, offset } = options; | ||
| const { address } = this.#getEip3770Address(safeAddress); | ||
@@ -634,5 +729,7 @@ const nonce = currentNonce ? currentNonce : (await this.getSafeInfo(address)).nonce; | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The list of transactions waiting for the confirmation of the Safe owners | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Checksum address validation failed" | ||
| * @throws "Ordering field is not valid" | ||
| */ | ||
@@ -645,8 +742,3 @@ async getAllTransactions(safeAddress, options) { | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/all-transactions/`); | ||
| const trusted = options?.trusted?.toString() || "true"; | ||
| url.searchParams.set("trusted", trusted); | ||
| const queued = options?.queued?.toString() || "true"; | ||
| url.searchParams.set("queued", queued); | ||
| const executed = options?.executed?.toString() || "false"; | ||
| url.searchParams.set("executed", executed); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
@@ -685,7 +777,10 @@ url: url.toString(), | ||
| * | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The list of all the ERC20 tokens | ||
| */ | ||
| async getTokenList() { | ||
| async getTokenList(options) { | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/tokens/`); | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/tokens/`, | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
@@ -713,76 +808,5 @@ }); | ||
| /** | ||
| * Get a message by its safe message hash | ||
| * @param messageHash The Safe message hash | ||
| * @returns The message | ||
| */ | ||
| async getMessage(messageHash) { | ||
| if (!messageHash) { | ||
| throw new Error("Invalid messageHash"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/`, | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Get the list of messages associated to a Safe account | ||
| * @param safeAddress The safe address | ||
| * @param options The options to filter the list of messages | ||
| * @returns The paginated list of messages | ||
| */ | ||
| async getMessages(safeAddress, { ordering, limit, offset } = {}) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`); | ||
| if (ordering) { | ||
| url.searchParams.set("ordering", ordering); | ||
| } | ||
| if (limit != null) { | ||
| url.searchParams.set("limit", limit.toString()); | ||
| } | ||
| if (offset != null) { | ||
| url.searchParams.set("offset", offset.toString()); | ||
| } | ||
| return sendRequest({ | ||
| url: url.toString(), | ||
| method: "get" /* Get */ | ||
| }); | ||
| } | ||
| /** | ||
| * Creates a new message with an initial signature | ||
| * Add more signatures from other owners using addMessageSignature() | ||
| * @param safeAddress The safe address | ||
| * @param options The raw message to add, signature and safeAppId if any | ||
| */ | ||
| async addMessage(safeAddress, addMessageProps) { | ||
| if (!this.#isValidAddress(safeAddress)) { | ||
| throw new Error("Invalid safeAddress"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/safes/${safeAddress}/messages/`, | ||
| method: "post" /* Post */, | ||
| body: addMessageProps | ||
| }); | ||
| } | ||
| /** | ||
| * Add a signature to an existing message | ||
| * @param messageHash The safe message hash | ||
| * @param signature The signature | ||
| */ | ||
| async addMessageSignature(messageHash, signature) { | ||
| if (!messageHash || !signature) { | ||
| throw new Error("Invalid messageHash or signature"); | ||
| } | ||
| return sendRequest({ | ||
| url: `${this.#txServiceBaseUrl}/v1/messages/${messageHash}/signatures/`, | ||
| method: "post" /* Post */, | ||
| body: { | ||
| signature | ||
| } | ||
| }); | ||
| } | ||
| /** | ||
| * Get the SafeOperations that were sent from a particular address. | ||
| * @param getSafeOperationsProps - The parameters to filter the list of SafeOperations | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @throws "Safe address must not be empty" | ||
@@ -792,10 +816,3 @@ * @throws "Invalid Ethereum address {safeAddress}" | ||
| */ | ||
| async getSafeOperationsByAddress({ | ||
| safeAddress, | ||
| executed, | ||
| hasConfirmations, | ||
| ordering, | ||
| limit, | ||
| offset | ||
| }) { | ||
| async getSafeOperationsByAddress(safeAddress, options) { | ||
| if (!safeAddress) { | ||
@@ -806,17 +823,3 @@ throw new Error("Safe address must not be empty"); | ||
| const url = new URL(`${this.#txServiceBaseUrl}/v1/safes/${address}/safe-operations/`); | ||
| if (ordering) { | ||
| url.searchParams.set("ordering", ordering); | ||
| } | ||
| if (limit != null) { | ||
| url.searchParams.set("limit", limit.toString()); | ||
| } | ||
| if (offset != null) { | ||
| url.searchParams.set("offset", offset.toString()); | ||
| } | ||
| if (hasConfirmations != null) { | ||
| url.searchParams.set("has_confirmations", hasConfirmations.toString()); | ||
| } | ||
| if (executed != null) { | ||
| url.searchParams.set("executed", executed.toString()); | ||
| } | ||
| this.#addUrlQueryParams(url, options); | ||
| return sendRequest({ | ||
@@ -829,3 +832,4 @@ url: url.toString(), | ||
| * Get the SafeOperations that are pending to send to the bundler | ||
| * @param getSafeOperationsProps - The parameters to filter the list of SafeOperations | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @throws "Safe address must not be empty" | ||
@@ -835,5 +839,5 @@ * @throws "Invalid Ethereum address {safeAddress}" | ||
| */ | ||
| async getPendingSafeOperations(props) { | ||
| return this.getSafeOperationsByAddress({ | ||
| ...props, | ||
| async getPendingSafeOperations(safeAddress, options) { | ||
| return this.getSafeOperationsByAddress(safeAddress, { | ||
| ...options, | ||
| executed: false | ||
@@ -840,0 +844,0 @@ }); |
+80
-83
@@ -1,3 +0,3 @@ | ||
| import { AddMessageProps, AddSafeDelegateProps, AddSafeOperationProps, AllTransactionsListResponse, AllTransactionsOptions, DeleteSafeDelegateProps, GetSafeDelegateProps, GetSafeMessageListProps, GetSafeOperationListProps, GetSafeOperationListResponse, ListOptions, ModulesResponse, OwnerResponse, PendingTransactionsOptions, ProposeTransactionProps, SafeCreationInfoResponse, SafeDelegateListResponse, SafeInfoResponse, SafeMessage, SafeMessageListResponse, SafeModuleTransactionListResponse, SafeMultisigTransactionEstimate, SafeMultisigTransactionEstimateResponse, SafeMultisigTransactionListResponse, SafeServiceInfoResponse, SafeSingletonResponse, SignatureResponse, SignedSafeDelegateResponse, TokenInfoListResponse, TokenInfoResponse, TransferListResponse } from './types/safeTransactionServiceTypes'; | ||
| import { SafeMultisigConfirmationListResponse, SafeMultisigTransactionResponse, SafeOperation, SafeOperationConfirmationListResponse, SafeOperationResponse } from '@safe-global/types-kit'; | ||
| import { AddMessageOptions, AddSafeDelegateProps, AddSafeOperationProps, AllTransactionsListResponse, AllTransactionsOptions, DeleteSafeDelegateProps, GetIncomingTransactionsOptions, GetModuleTransactionsOptions, GetMultisigTransactionsOptions, GetPendingSafeOperationListOptions, GetSafeDelegateProps, GetSafeMessageListOptions, GetSafeOperationListOptions, GetSafeOperationListResponse, ListOptions, ModulesResponse, OwnerResponse, PendingTransactionsOptions, ProposeTransactionProps, SafeCreationInfoResponse, SafeDelegateListResponse, SafeInfoResponse, SafeMessage, SafeMessageListResponse, SafeModuleTransactionListResponse, SafeMultisigTransactionEstimate, SafeMultisigTransactionEstimateResponse, SafeMultisigTransactionListResponse, SafeServiceInfoResponse, SafeSingletonResponse, SignatureResponse, SignedSafeDelegateResponse, TokenInfoListOptions, TokenInfoListResponse, TokenInfoResponse, TransferListResponse } from './types/safeTransactionServiceTypes'; | ||
| import { DataDecoded, SafeMultisigConfirmationListResponse, SafeMultisigTransactionResponse, SafeOperation, SafeOperationConfirmationListResponse, SafeOperationResponse } from '@safe-global/types-kit'; | ||
| export interface SafeApiKitConfig { | ||
@@ -34,4 +34,64 @@ /** chainId - The chainId */ | ||
| */ | ||
| decodeData(data: string, to?: string): Promise<any>; | ||
| decodeData(data: string, to?: string): Promise<DataDecoded>; | ||
| /** | ||
| * Returns the list of delegates. | ||
| * | ||
| * @param getSafeDelegateProps - Properties to filter the returned list of delegates | ||
| * @returns The list of delegates | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| getSafeDelegates({ safeAddress, delegateAddress, delegatorAddress, label, limit, offset }: GetSafeDelegateProps): Promise<SafeDelegateListResponse>; | ||
| /** | ||
| * Adds a new delegate for a given Safe address. | ||
| * | ||
| * @param addSafeDelegateProps - The configuration of the new delegate | ||
| * @returns | ||
| * @throws "Invalid Safe delegate address" | ||
| * @throws "Invalid Safe delegator address" | ||
| * @throws "Invalid label" | ||
| * @throws "Checksum address validation failed" | ||
| * @throws "Address <delegate_address> is not checksumed" | ||
| * @throws "Safe=<safe_address> does not exist or it's still not indexed" | ||
| * @throws "Signing owner is not an owner of the Safe" | ||
| */ | ||
| addSafeDelegate({ safeAddress, delegateAddress, delegatorAddress, label, signer }: AddSafeDelegateProps): Promise<SignedSafeDelegateResponse>; | ||
| /** | ||
| * Removes a delegate for a given Safe address. | ||
| * | ||
| * @param deleteSafeDelegateProps - The configuration for the delegate that will be removed | ||
| * @returns | ||
| * @throws "Invalid Safe delegate address" | ||
| * @throws "Invalid Safe delegator address" | ||
| * @throws "Checksum address validation failed" | ||
| * @throws "Signing owner is not an owner of the Safe" | ||
| * @throws "Not found" | ||
| */ | ||
| removeSafeDelegate({ delegateAddress, delegatorAddress, signer }: DeleteSafeDelegateProps): Promise<void>; | ||
| /** | ||
| * Get a message by its safe message hash | ||
| * @param messageHash The Safe message hash | ||
| * @returns The message | ||
| */ | ||
| getMessage(messageHash: string): Promise<SafeMessage>; | ||
| /** | ||
| * Get the list of messages associated to a Safe account | ||
| * @param safeAddress The safe address | ||
| * @param options The options to filter the list of messages | ||
| * @returns The paginated list of messages | ||
| */ | ||
| getMessages(safeAddress: string, options?: GetSafeMessageListOptions): Promise<SafeMessageListResponse>; | ||
| /** | ||
| * Creates a new message with an initial signature | ||
| * Add more signatures from other owners using addMessageSignature() | ||
| * @param safeAddress The safe address | ||
| * @param options The raw message to add, signature and safeAppId if any | ||
| */ | ||
| addMessage(safeAddress: string, addMessageOptions: AddMessageOptions): Promise<void>; | ||
| /** | ||
| * Add a signature to an existing message | ||
| * @param messageHash The safe message hash | ||
| * @param signature The signature | ||
| */ | ||
| addMessageSignature(messageHash: string, signature: string): Promise<void>; | ||
| /** | ||
| * Returns the list of Safes where the address provided is an owner. | ||
@@ -93,36 +153,2 @@ * | ||
| /** | ||
| * Returns the list of delegates. | ||
| * | ||
| * @param getSafeDelegateProps - Properties to filter the returned list of delegates | ||
| * @returns The list of delegates | ||
| * @throws "Checksum address validation failed" | ||
| */ | ||
| getSafeDelegates({ safeAddress, delegateAddress, delegatorAddress, label, limit, offset }: GetSafeDelegateProps): Promise<SafeDelegateListResponse>; | ||
| /** | ||
| * Adds a new delegate for a given Safe address. | ||
| * | ||
| * @param addSafeDelegateProps - The configuration of the new delegate | ||
| * @returns | ||
| * @throws "Invalid Safe delegate address" | ||
| * @throws "Invalid Safe delegator address" | ||
| * @throws "Invalid label" | ||
| * @throws "Checksum address validation failed" | ||
| * @throws "Address <delegate_address> is not checksumed" | ||
| * @throws "Safe=<safe_address> does not exist or it's still not indexed" | ||
| * @throws "Signing owner is not an owner of the Safe" | ||
| */ | ||
| addSafeDelegate({ safeAddress, delegateAddress, delegatorAddress, label, signer }: AddSafeDelegateProps): Promise<SignedSafeDelegateResponse>; | ||
| /** | ||
| * Removes a delegate for a given Safe address. | ||
| * | ||
| * @param deleteSafeDelegateProps - The configuration for the delegate that will be removed | ||
| * @returns | ||
| * @throws "Invalid Safe delegate address" | ||
| * @throws "Invalid Safe delegator address" | ||
| * @throws "Checksum address validation failed" | ||
| * @throws "Signing owner is not an owner of the Safe" | ||
| * @throws "Not found" | ||
| */ | ||
| removeSafeDelegate({ delegateAddress, delegatorAddress, signer }: DeleteSafeDelegateProps): Promise<void>; | ||
| /** | ||
| * Returns the creation information of a Safe. | ||
@@ -165,2 +191,3 @@ * | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of incoming transactions | ||
@@ -170,3 +197,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| getIncomingTransactions(safeAddress: string): Promise<TransferListResponse>; | ||
| getIncomingTransactions(safeAddress: string, options?: GetIncomingTransactionsOptions): Promise<TransferListResponse>; | ||
| /** | ||
@@ -176,2 +203,3 @@ * Returns the history of module transactions of a Safe account. | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of module transactions | ||
@@ -182,3 +210,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| getModuleTransactions(safeAddress: string): Promise<SafeModuleTransactionListResponse>; | ||
| getModuleTransactions(safeAddress: string, options?: GetModuleTransactionsOptions): Promise<SafeModuleTransactionListResponse>; | ||
| /** | ||
@@ -188,2 +216,3 @@ * Returns the history of multi-signature transactions of a Safe account. | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The history of multi-signature transactions | ||
@@ -193,3 +222,3 @@ * @throws "Invalid Safe address" | ||
| */ | ||
| getMultisigTransactions(safeAddress: string): Promise<SafeMultisigTransactionListResponse>; | ||
| getMultisigTransactions(safeAddress: string, options?: GetMultisigTransactionsOptions): Promise<SafeMultisigTransactionListResponse>; | ||
| /** | ||
@@ -199,13 +228,2 @@ * Returns the list of multi-signature transactions that are waiting for the confirmation of the Safe owners. | ||
| * @param safeAddress - The Safe address | ||
| * @param currentNonce - Deprecated, use inside object property: Current nonce of the Safe. | ||
| * @returns The list of transactions waiting for the confirmation of the Safe owners | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Invalid data" | ||
| * @throws "Invalid ethereum address" | ||
| */ | ||
| getPendingTransactions(safeAddress: string, currentNonce?: number): Promise<SafeMultisigTransactionListResponse>; | ||
| /** | ||
| * Returns the list of multi-signature transactions that are waiting for the confirmation of the Safe owners. | ||
| * | ||
| * @param safeAddress - The Safe address | ||
| * @param {PendingTransactionsOptions} options The options to filter the list of transactions | ||
@@ -217,3 +235,3 @@ * @returns The list of transactions waiting for the confirmation of the Safe owners | ||
| */ | ||
| getPendingTransactions(safeAddress: string, { currentNonce, hasConfirmations, ordering, limit, offset }: PendingTransactionsOptions): Promise<SafeMultisigTransactionListResponse>; | ||
| getPendingTransactions(safeAddress: string, options?: PendingTransactionsOptions): Promise<SafeMultisigTransactionListResponse>; | ||
| /** | ||
@@ -223,5 +241,7 @@ * Returns a list of transactions for a Safe. The list has different structures depending on the transaction type | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The list of transactions waiting for the confirmation of the Safe owners | ||
| * @throws "Invalid Safe address" | ||
| * @throws "Checksum address validation failed" | ||
| * @throws "Ordering field is not valid" | ||
| */ | ||
@@ -242,5 +262,6 @@ getAllTransactions(safeAddress: string, options?: AllTransactionsOptions): Promise<AllTransactionsListResponse>; | ||
| * | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @returns The list of all the ERC20 tokens | ||
| */ | ||
| getTokenList(): Promise<TokenInfoListResponse>; | ||
| getTokenList(options?: TokenInfoListOptions): Promise<TokenInfoListResponse>; | ||
| /** | ||
@@ -256,30 +277,5 @@ * Returns the information of a given ERC20 token. | ||
| /** | ||
| * Get a message by its safe message hash | ||
| * @param messageHash The Safe message hash | ||
| * @returns The message | ||
| */ | ||
| getMessage(messageHash: string): Promise<SafeMessage>; | ||
| /** | ||
| * Get the list of messages associated to a Safe account | ||
| * @param safeAddress The safe address | ||
| * @param options The options to filter the list of messages | ||
| * @returns The paginated list of messages | ||
| */ | ||
| getMessages(safeAddress: string, { ordering, limit, offset }?: GetSafeMessageListProps): Promise<SafeMessageListResponse>; | ||
| /** | ||
| * Creates a new message with an initial signature | ||
| * Add more signatures from other owners using addMessageSignature() | ||
| * @param safeAddress The safe address | ||
| * @param options The raw message to add, signature and safeAppId if any | ||
| */ | ||
| addMessage(safeAddress: string, addMessageProps: AddMessageProps): Promise<void>; | ||
| /** | ||
| * Add a signature to an existing message | ||
| * @param messageHash The safe message hash | ||
| * @param signature The signature | ||
| */ | ||
| addMessageSignature(messageHash: string, signature: string): Promise<void>; | ||
| /** | ||
| * Get the SafeOperations that were sent from a particular address. | ||
| * @param getSafeOperationsProps - The parameters to filter the list of SafeOperations | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @throws "Safe address must not be empty" | ||
@@ -289,6 +285,7 @@ * @throws "Invalid Ethereum address {safeAddress}" | ||
| */ | ||
| getSafeOperationsByAddress({ safeAddress, executed, hasConfirmations, ordering, limit, offset }: GetSafeOperationListProps): Promise<GetSafeOperationListResponse>; | ||
| getSafeOperationsByAddress(safeAddress: string, options?: GetSafeOperationListOptions): Promise<GetSafeOperationListResponse>; | ||
| /** | ||
| * Get the SafeOperations that are pending to send to the bundler | ||
| * @param getSafeOperationsProps - The parameters to filter the list of SafeOperations | ||
| * @param safeAddress - The Safe address | ||
| * @param options - Optional parameters to filter or modify the response | ||
| * @throws "Safe address must not be empty" | ||
@@ -298,3 +295,3 @@ * @throws "Invalid Ethereum address {safeAddress}" | ||
| */ | ||
| getPendingSafeOperations(props: Omit<GetSafeOperationListProps, 'executed'>): Promise<GetSafeOperationListResponse>; | ||
| getPendingSafeOperations(safeAddress: string, options?: GetPendingSafeOperationListOptions): Promise<GetSafeOperationListResponse>; | ||
| /** | ||
@@ -301,0 +298,0 @@ * Get a SafeOperation by its hash. |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"SafeApiKit.d.ts","sourceRoot":"","sources":["../../src/SafeApiKit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,WAAW,EACX,eAAe,EACf,aAAa,EACb,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,gBAAgB,EAChB,WAAW,EACX,uBAAuB,EACvB,iCAAiC,EACjC,+BAA+B,EAC/B,uCAAuC,EACvC,mCAAmC,EACnC,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,wDAAwD,CAAA;AAI/D,OAAO,EAEL,oCAAoC,EACpC,+BAA+B,EAC/B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E,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAaxF;AAED,eAAe,UAAU,CAAA"} |
@@ -1,3 +0,3 @@ | ||
| import { Account, Chain, Transport, TypedDataDomain, TypedDataParameter, WalletClient } from 'viem'; | ||
| import { SafeMultisigTransactionResponse, SafeTransactionData, UserOperation, SafeOperationResponse, ListResponse, SignatureType } from '@safe-global/types-kit'; | ||
| import { Account, Chain, Transport, WalletClient } from 'viem'; | ||
| import { EIP712TypedData, SafeMultisigTransactionResponse, SafeTransactionData, UserOperation, SafeOperationResponse, ListResponse, SignatureType, DataDecoded, UserOperationResponse } from '@safe-global/types-kit'; | ||
| export type ListOptions = { | ||
@@ -9,2 +9,5 @@ /** Maximum number of results to return per page */ | ||
| }; | ||
| export type QueryParamsOptions = { | ||
| [key: string]: string | number | boolean | undefined; | ||
| }; | ||
| export type SafeServiceInfoResponse = { | ||
@@ -56,3 +59,5 @@ readonly name: string; | ||
| readonly setupData: string; | ||
| readonly dataDecoded?: string; | ||
| readonly saltNonce: string | null; | ||
| readonly dataDecoded?: DataDecoded; | ||
| readonly userOperation: UserOperationResponse | null; | ||
| }; | ||
@@ -108,2 +113,8 @@ export type GetSafeDelegateProps = { | ||
| }; | ||
| export type GetMultisigTransactionsOptions = { | ||
| executed?: boolean; | ||
| nonce?: string; | ||
| /** Which field to use when ordering the results. It can be: `nonce`, `created`, `modified` (default: `-created`) */ | ||
| ordering?: string; | ||
| } & ListOptions & QueryParamsOptions; | ||
| export type PendingTransactionsOptions = { | ||
@@ -116,2 +127,5 @@ currentNonce?: number; | ||
| export type SafeMultisigTransactionListResponse = ListResponse<SafeMultisigTransactionResponse>; | ||
| export type GetIncomingTransactionsOptions = { | ||
| from?: string; | ||
| } & ListOptions & QueryParamsOptions; | ||
| export type SafeModuleTransaction = { | ||
@@ -127,7 +141,10 @@ readonly created?: string; | ||
| readonly value: string; | ||
| readonly data: string; | ||
| readonly data: string | null; | ||
| readonly operation: number; | ||
| readonly dataDecoded?: string; | ||
| readonly dataDecoded?: DataDecoded; | ||
| }; | ||
| export type SafeModuleTransactionListResponse = ListResponse<SafeModuleTransaction>; | ||
| export type GetModuleTransactionsOptions = { | ||
| module?: string; | ||
| } & ListOptions & QueryParamsOptions; | ||
| export type TransferResponse = { | ||
@@ -157,2 +174,9 @@ readonly type: string; | ||
| export type TokenInfoListResponse = ListResponse<TokenInfoResponse>; | ||
| export type TokenInfoListOptions = { | ||
| /** Search term that will match `name` or `symbol` */ | ||
| search?: string; | ||
| address?: string; | ||
| /** Which field to use when ordering the results. It can be: `name`, `symbol`, `address` (default: `-name`) */ | ||
| ordering?: string; | ||
| } & ListOptions & QueryParamsOptions; | ||
| export type SafeModuleTransactionWithTransfersResponse = SafeModuleTransaction & { | ||
@@ -178,7 +202,3 @@ readonly txType?: 'MODULE_TRANSACTION'; | ||
| }; | ||
| export type AllTransactionsOptions = { | ||
| executed?: boolean; | ||
| queued?: boolean; | ||
| trusted?: boolean; | ||
| }; | ||
| export type AllTransactionsOptions = ListOptions; | ||
| export type AllTransactionsListResponse = ListResponse<SafeModuleTransactionWithTransfersResponse | SafeMultisigTransactionWithTransfersResponse | EthereumTxWithTransfersResponse>; | ||
@@ -208,3 +228,3 @@ export type ModulesResponse = { | ||
| export type SafeMessageListResponse = ListResponse<SafeMessage>; | ||
| export type AddMessageProps = { | ||
| export type AddMessageOptions = { | ||
| message: string | EIP712TypedData; | ||
@@ -214,19 +234,17 @@ safeAppId?: number; | ||
| }; | ||
| export type GetSafeMessageListProps = { | ||
| export type GetSafeMessageListOptions = { | ||
| /** Which field to use when ordering the results. It can be: `created`, `modified` (default: `-created`) */ | ||
| ordering?: string; | ||
| } & ListOptions; | ||
| export type EIP712TypedData = { | ||
| domain: TypedDataDomain; | ||
| types: TypedDataParameter; | ||
| message: Record<string, unknown>; | ||
| }; | ||
| export type GetSafeOperationListProps = { | ||
| /** Address of the Safe to get SafeOperations for */ | ||
| safeAddress: string; | ||
| export type GetSafeOperationListOptions = { | ||
| hasConfirmations?: boolean; | ||
| executed?: boolean; | ||
| /** Which field to use when ordering the results. It can be: `user_operation__nonce`, `created` (default: `-user_operation__nonce`) */ | ||
| ordering?: string; | ||
| executed?: boolean; | ||
| } & ListOptions & QueryParamsOptions; | ||
| export type GetPendingSafeOperationListOptions = { | ||
| hasConfirmations?: boolean; | ||
| } & ListOptions; | ||
| /** Which field to use when ordering the results. It can be: `user_operation__nonce`, `created` (default: `-user_operation__nonce`) */ | ||
| ordering?: string; | ||
| } & ListOptions & QueryParamsOptions; | ||
| export type GetSafeOperationListResponse = ListResponse<SafeOperationResponse>; | ||
@@ -233,0 +251,0 @@ export type AddSafeOperationProps = { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"safeTransactionServiceTypes.d.ts","sourceRoot":"","sources":["../../../src/types/safeTransactionServiceTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnG,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACd,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE;QACjB,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAA;QAChC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAA;QACrC,QA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,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,kBAAkB,CAAA;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAA;IACnB,sIAAsI;IACtI,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,GAAG,WAAW,CAAA;AAEf,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAE9E,MAAM,MAAM,qBAAqB,GAAG;IAClC,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAA;IACrB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAA;IACnB,kCAAkC;IAClC,aAAa,EAAE,aAAa,CAAA;IAC5B,qBAAqB;IACrB,OAAO,CAAC,EAAE;QACR,uEAAuE;QACvE,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,mEAAmE;QACnE,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF,CAAA"} | ||
| {"version":3,"file":"safeTransactionServiceTypes.d.ts","sourceRoot":"","sources":["../../../src/types/safeTransactionServiceTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,qBAAqB,EACtB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,MA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tI,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,WAAW,GAEb,kBAAkB,CAAA;AAEpB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,sIAAsI;IACtI,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,WAAW,GAEb,kBAAkB,CAAA;AAEpB,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAE9E,MAAM,MAAM,qBAAqB,GAAG;IAClC,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAA;IACrB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAA;IACnB,kCAAkC;IAClC,aAAa,EAAE,aAAa,CAAA;IAC5B,qBAAqB;IACrB,OAAO,CAAC,EAAE;QACR,uEAAuE;QACvE,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,mEAAmE;QACnE,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF,CAAA"} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoB3D,CAAA"} | ||
| {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsB3D,CAAA"} |
+5
-5
| { | ||
| "name": "@safe-global/api-kit", | ||
| "version": "3.0.0-alpha.2", | ||
| "version": "3.0.0-alpha.3", | ||
| "description": "SDK that facilitates the interaction with the Safe Transaction Service API", | ||
@@ -51,4 +51,4 @@ "types": "dist/src/index.d.ts", | ||
| "devDependencies": { | ||
| "@safe-global/relay-kit": "^4.0.0-alpha.2", | ||
| "@safe-global/testing-kit": "^0.2.0-alpha.2", | ||
| "@safe-global/relay-kit": "^4.0.0-alpha.3", | ||
| "@safe-global/testing-kit": "^0.2.0-alpha.3", | ||
| "@types/chai": "^4.3.20", | ||
@@ -71,4 +71,4 @@ "@types/chai-as-promised": "^7.1.8", | ||
| "dependencies": { | ||
| "@safe-global/protocol-kit": "^6.0.0-alpha.2", | ||
| "@safe-global/types-kit": "^2.0.0-alpha.2", | ||
| "@safe-global/protocol-kit": "^6.0.0-alpha.3", | ||
| "@safe-global/types-kit": "^2.0.0-alpha.3", | ||
| "node-fetch": "^2.7.0", | ||
@@ -75,0 +75,0 @@ "viem": "^2.21.8" |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
114353
3.73%25
8.7%2568
0.98%