Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Prepare release #998

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/api-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/api-kit",
"version": "2.5.0",
"version": "2.5.1",
"description": "SDK that facilitates the interaction with the Safe Transaction Service API",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
Expand Down Expand Up @@ -39,7 +39,7 @@
],
"homepage": "https://github.com/safe-global/safe-core-sdk#readme",
"devDependencies": {
"@safe-global/relay-kit": "^3.2.0",
"@safe-global/relay-kit": "^3.2.1",
"@safe-global/testing-kit": "^0.1.0",
"@types/chai": "^4.3.19",
"@types/chai-as-promised": "^7.1.8",
Expand All @@ -58,7 +58,7 @@
"web3": "^4.12.1"
},
"dependencies": {
"@safe-global/protocol-kit": "^5.0.0",
"@safe-global/protocol-kit": "^5.0.1",
"@safe-global/types-kit": "^1.0.0",
"node-fetch": "^2.7.0",
"viem": "^2.21.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-kit/src/SafeApiKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
)
}

this.#txServiceBaseUrl = `${url}/api`
this.#txServiceBaseUrl = url
}
}

Expand Down Expand Up @@ -120,7 +120,7 @@
* @throws "Not Found"
* @throws "Ensure this field has at least 1 hexadecimal chars (not counting 0x)."
*/
async decodeData(data: string): Promise<any> {

Check warning on line 123 in packages/api-kit/src/SafeApiKit.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 123 in packages/api-kit/src/SafeApiKit.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
if (data === '') {
throw new Error('Invalid data')
}
Expand Down Expand Up @@ -330,7 +330,7 @@
const { address: delegator } = this.#getEip3770Address(delegatorAddress)
const signature = await signDelegate(signer, delegate, this.#chainId)

const body: any = {

Check warning on line 333 in packages/api-kit/src/SafeApiKit.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 333 in packages/api-kit/src/SafeApiKit.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
safe: safeAddress ? this.#getEip3770Address(safeAddress).address : null,
delegate,
delegator,
Expand Down
33 changes: 19 additions & 14 deletions packages/api-kit/src/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
export const TRANSACTION_SERVICE_URLS: Record<string, string> = {
'1': 'https://safe-transaction-mainnet.safe.global',
'10': 'https://safe-transaction-optimism.safe.global',
'56': 'https://safe-transaction-bsc.safe.global',
'100': 'https://safe-transaction-gnosis-chain.safe.global',
'137': 'https://safe-transaction-polygon.safe.global',
'324': 'https://safe-transaction-zksync.safe.global',
'1101': 'https://safe-transaction-zkevm.safe.global',
'8453': 'https://safe-transaction-base.safe.global',
'42161': 'https://safe-transaction-arbitrum.safe.global',
'42220': 'https://safe-transaction-celo.safe.global',
'43114': 'https://safe-transaction-avalanche.safe.global',
'84532': 'https://safe-transaction-base-sepolia.safe.global',
'11155111': 'https://safe-transaction-sepolia.safe.global',
'1313161554': 'https://safe-transaction-aurora.safe.global'
'1': 'https://safe-transaction-mainnet.safe.global/api',
'10': 'https://safe-transaction-optimism.safe.global/api',
'56': 'https://safe-transaction-bsc.safe.global/api',
'100': 'https://safe-transaction-gnosis-chain.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',
'1101': 'https://safe-transaction-zkevm.safe.global/api',
'5000': 'https://safe-transaction-mantle.safe.global/api',
'8453': 'https://safe-transaction-base.safe.global/api',
'42161': 'https://safe-transaction-arbitrum.safe.global/api',
'42220': 'https://safe-transaction-celo.safe.global/api',
'43114': 'https://safe-transaction-avalanche.safe.global/api',
'59144': 'https://safe-transaction-linea.safe.global/api',
'81457': 'https://safe-transaction-blast.safe.global/api',
'84532': 'https://safe-transaction-base-sepolia.safe.global/api',
'534352': 'https://safe-transaction-scroll.safe.global/api',
'11155111': 'https://safe-transaction-sepolia.safe.global/api',
'1313161554': 'https://safe-transaction-aurora.safe.global/api'
}
4 changes: 2 additions & 2 deletions packages/protocol-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/protocol-kit",
"version": "5.0.0",
"version": "5.0.1",
"description": "SDK that facilitates the interaction with Safe Smart Accounts",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down Expand Up @@ -69,7 +69,7 @@
"dependencies": {
"@noble/hashes": "^1.3.3",
"@safe-global/safe-deployments": "^1.37.9",
"@safe-global/safe-modules-deployments": "^2.2.1",
"@safe-global/safe-modules-deployments": "^2.2.4",
"@safe-global/types-kit": "^1.0.0",
"abitype": "^1.0.2",
"semver": "^7.6.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/relay-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/relay-kit",
"version": "3.2.0",
"version": "3.2.1",
"description": "SDK for Safe Smart Accounts with support for ERC-4337 and Relay",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
Expand Down Expand Up @@ -39,8 +39,8 @@
},
"dependencies": {
"@gelatonetwork/relay-sdk": "^5.5.0",
"@safe-global/protocol-kit": "^5.0.0",
"@safe-global/safe-modules-deployments": "^2.2.1",
"@safe-global/protocol-kit": "^5.0.1",
"@safe-global/safe-modules-deployments": "^2.2.4",
"@safe-global/types-kit": "^1.0.0",
"viem": "^2.21.8"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-starter-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/sdk-starter-kit",
"version": "1.0.0",
"version": "1.0.1",
"description": "SDK that provides the basic tools to interact with the Safe Smart Account.",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
Expand Down Expand Up @@ -36,9 +36,9 @@
"access": "public"
},
"dependencies": {
"@safe-global/api-kit": "^2.5.0",
"@safe-global/protocol-kit": "^5.0.0",
"@safe-global/relay-kit": "^3.2.0",
"@safe-global/api-kit": "^2.5.1",
"@safe-global/protocol-kit": "^5.0.1",
"@safe-global/relay-kit": "^3.2.1",
"@safe-global/types-kit": "^1.0.0",
"viem": "^2.21.8"
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1742,10 +1742,10 @@
dependencies:
semver "^7.6.2"

"@safe-global/safe-modules-deployments@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@safe-global/safe-modules-deployments/-/safe-modules-deployments-2.2.1.tgz#a8b88f2afc6ec04fed09968fe1e4990ed975c86e"
integrity sha512-H0XpusyXVcsTuRsQSq0FoBKqRfhZH87/1DrFEmXXPXmI3fJkvxq3KpTaTTqzcqoIe/J+erwVZQUYNfL68EcvAQ==
"@safe-global/safe-modules-deployments@^2.2.4":
version "2.2.4"
resolved "https://registry.yarnpkg.com/@safe-global/safe-modules-deployments/-/safe-modules-deployments-2.2.4.tgz#6e3b22af3a4eeba8e0a8f0952e575d25c5be216e"
integrity sha512-m396ZrBPhZVYkapTTIuizyOOtoZsCKbicl0ztgDFfDbi7KbS6AtDP6cV89AYosQxUQS+v0q4ksQd30/j3L1BtQ==

"@safe-global/[email protected]":
version "0.2.0-alpha.1"
Expand Down
Loading