@turnkey/gas-station 9.0.1 → 11.0.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/config.js CHANGED
@@ -3,8 +3,8 @@
3
3
  var chains = require('viem/chains');
4
4
 
5
5
  // Default contract addresses (deterministically deployed across all chains)
6
- const DEFAULT_DELEGATE_CONTRACT = "0x000066a00056CD44008768E2aF00696e19A30084";
7
- const DEFAULT_EXECUTION_CONTRACT = "0x00000000008c57a1CE37836a5e9d36759D070d8c";
6
+ const DEFAULT_DELEGATE_CONTRACT = "0x955D84139e7621bc571b117D8EB5D28A4A222C6f";
7
+ const DEFAULT_EXECUTION_CONTRACT = "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D";
8
8
  const DEFAULT_REIMBURSABLE_USDC_CONTRACT = "0x4c0a2998B4Dc7BAF418109b80E5dde7395703dcb";
9
9
  // Chain preset configurations
10
10
  const CHAIN_PRESETS = {
package/dist/config.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { sepolia, mainnet, base } from 'viem/chains';
2
2
 
3
3
  // Default contract addresses (deterministically deployed across all chains)
4
- const DEFAULT_DELEGATE_CONTRACT = "0x000066a00056CD44008768E2aF00696e19A30084";
5
- const DEFAULT_EXECUTION_CONTRACT = "0x00000000008c57a1CE37836a5e9d36759D070d8c";
4
+ const DEFAULT_DELEGATE_CONTRACT = "0x955D84139e7621bc571b117D8EB5D28A4A222C6f";
5
+ const DEFAULT_EXECUTION_CONTRACT = "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D";
6
6
  const DEFAULT_REIMBURSABLE_USDC_CONTRACT = "0x4c0a2998B4Dc7BAF418109b80E5dde7395703dcb";
7
7
  // Chain preset configurations
8
8
  const CHAIN_PRESETS = {
@@ -127,7 +127,7 @@ export declare function buildIntentSigningPolicy(config: {
127
127
  * const policy = buildPaymasterExecutionPolicy({
128
128
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
129
129
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
130
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
130
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
131
131
  * restrictions: {
132
132
  * allowedEOAs: ["0xAli...ce", "0xBob...by"],
133
133
  * allowedContracts: ["0x833...USDC", "0x6B1...DAI"],
@@ -145,7 +145,7 @@ export declare function buildIntentSigningPolicy(config: {
145
145
  * effect: "EFFECT_ALLOW",
146
146
  * consensus: "approvers.any(user, user.id == '8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c')",
147
147
  * condition: "activity.resource == 'PRIVATE_KEY' && activity.action == 'SIGN' && " +
148
- * "eth.tx.to == '0x00000000008c57a1ce37836a5e9d36759d070d8c' && " +
148
+ * "eth.tx.to == '0x5af5194b4b0909eb978e3cf1e25333852277f07d' && " +
149
149
  * "(eth.tx.contract_call_args['_to'] == '0x833...usdc' || " +
150
150
  * "eth.tx.contract_call_args['_to'] == '0x6b1...dai') && " +
151
151
  * "(eth.tx.contract_call_args['_target'] == '0xali...ce' || " +
@@ -161,7 +161,7 @@ export declare function buildIntentSigningPolicy(config: {
161
161
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
162
162
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
163
163
  * additionalApprovers: ["2e4f6a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b"],
164
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
164
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
165
165
  * restrictions: {
166
166
  * allowedEOAs: ["0xAli...ce"],
167
167
  * maxEthAmount: parseEther("1"), // Max 1 ETH
@@ -177,7 +177,7 @@ export declare function buildIntentSigningPolicy(config: {
177
177
  * consensus: "approvers.any(user, user.id == '8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c' || " +
178
178
  * "user.id == '2e4f6a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b')",
179
179
  * condition: "activity.resource == 'PRIVATE_KEY' && activity.action == 'SIGN' && " +
180
- * "eth.tx.to == '0x00000000008c57a1ce37836a5e9d36759d070d8c' && " +
180
+ * "eth.tx.to == '0x5af5194b4b0909eb978e3cf1e25333852277f07d' && " +
181
181
  * "(eth.tx.contract_call_args['_target'] == '0xali...ce') && " +
182
182
  * "eth.tx.contract_call_args['_ethAmount'] <= 1000000000000000000 && " +
183
183
  * "eth.tx.gasPrice <= 100000000000",
@@ -190,7 +190,7 @@ export declare function buildIntentSigningPolicy(config: {
190
190
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
191
191
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
192
192
  * customConsensus: "approvers.count() >= 2",
193
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
193
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
194
194
  * restrictions: { ... },
195
195
  * });
196
196
  *
@@ -257,7 +257,7 @@ export declare function uploadGasStationInterface({ client, organizationId, cont
257
257
  * const interfaceId = await ensureGasStationInterface({
258
258
  * client: turnkeyClient.apiClient(),
259
259
  * organizationId: "a5b89e4f-1234-5678-9abc-def012345678",
260
- * contractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
260
+ * contractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
261
261
  * chainName: "Base Sepolia"
262
262
  * });
263
263
  */
@@ -158,7 +158,7 @@ function buildIntentSigningPolicy(config) {
158
158
  * const policy = buildPaymasterExecutionPolicy({
159
159
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
160
160
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
161
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
161
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
162
162
  * restrictions: {
163
163
  * allowedEOAs: ["0xAli...ce", "0xBob...by"],
164
164
  * allowedContracts: ["0x833...USDC", "0x6B1...DAI"],
@@ -176,7 +176,7 @@ function buildIntentSigningPolicy(config) {
176
176
  * effect: "EFFECT_ALLOW",
177
177
  * consensus: "approvers.any(user, user.id == '8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c')",
178
178
  * condition: "activity.resource == 'PRIVATE_KEY' && activity.action == 'SIGN' && " +
179
- * "eth.tx.to == '0x00000000008c57a1ce37836a5e9d36759d070d8c' && " +
179
+ * "eth.tx.to == '0x5af5194b4b0909eb978e3cf1e25333852277f07d' && " +
180
180
  * "(eth.tx.contract_call_args['_to'] == '0x833...usdc' || " +
181
181
  * "eth.tx.contract_call_args['_to'] == '0x6b1...dai') && " +
182
182
  * "(eth.tx.contract_call_args['_target'] == '0xali...ce' || " +
@@ -192,7 +192,7 @@ function buildIntentSigningPolicy(config) {
192
192
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
193
193
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
194
194
  * additionalApprovers: ["2e4f6a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b"],
195
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
195
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
196
196
  * restrictions: {
197
197
  * allowedEOAs: ["0xAli...ce"],
198
198
  * maxEthAmount: parseEther("1"), // Max 1 ETH
@@ -208,7 +208,7 @@ function buildIntentSigningPolicy(config) {
208
208
  * consensus: "approvers.any(user, user.id == '8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c' || " +
209
209
  * "user.id == '2e4f6a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b')",
210
210
  * condition: "activity.resource == 'PRIVATE_KEY' && activity.action == 'SIGN' && " +
211
- * "eth.tx.to == '0x00000000008c57a1ce37836a5e9d36759d070d8c' && " +
211
+ * "eth.tx.to == '0x5af5194b4b0909eb978e3cf1e25333852277f07d' && " +
212
212
  * "(eth.tx.contract_call_args['_target'] == '0xali...ce') && " +
213
213
  * "eth.tx.contract_call_args['_ethAmount'] <= 1000000000000000000 && " +
214
214
  * "eth.tx.gasPrice <= 100000000000",
@@ -221,7 +221,7 @@ function buildIntentSigningPolicy(config) {
221
221
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
222
222
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
223
223
  * customConsensus: "approvers.count() >= 2",
224
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
224
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
225
225
  * restrictions: { ... },
226
226
  * });
227
227
  *
@@ -354,7 +354,7 @@ async function uploadGasStationInterface({ client, organizationId, contractAddre
354
354
  * const interfaceId = await ensureGasStationInterface({
355
355
  * client: turnkeyClient.apiClient(),
356
356
  * organizationId: "a5b89e4f-1234-5678-9abc-def012345678",
357
- * contractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
357
+ * contractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
358
358
  * chainName: "Base Sepolia"
359
359
  * });
360
360
  */
@@ -156,7 +156,7 @@ function buildIntentSigningPolicy(config) {
156
156
  * const policy = buildPaymasterExecutionPolicy({
157
157
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
158
158
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
159
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
159
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
160
160
  * restrictions: {
161
161
  * allowedEOAs: ["0xAli...ce", "0xBob...by"],
162
162
  * allowedContracts: ["0x833...USDC", "0x6B1...DAI"],
@@ -174,7 +174,7 @@ function buildIntentSigningPolicy(config) {
174
174
  * effect: "EFFECT_ALLOW",
175
175
  * consensus: "approvers.any(user, user.id == '8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c')",
176
176
  * condition: "activity.resource == 'PRIVATE_KEY' && activity.action == 'SIGN' && " +
177
- * "eth.tx.to == '0x00000000008c57a1ce37836a5e9d36759d070d8c' && " +
177
+ * "eth.tx.to == '0x5af5194b4b0909eb978e3cf1e25333852277f07d' && " +
178
178
  * "(eth.tx.contract_call_args['_to'] == '0x833...usdc' || " +
179
179
  * "eth.tx.contract_call_args['_to'] == '0x6b1...dai') && " +
180
180
  * "(eth.tx.contract_call_args['_target'] == '0xali...ce' || " +
@@ -190,7 +190,7 @@ function buildIntentSigningPolicy(config) {
190
190
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
191
191
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
192
192
  * additionalApprovers: ["2e4f6a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b"],
193
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
193
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
194
194
  * restrictions: {
195
195
  * allowedEOAs: ["0xAli...ce"],
196
196
  * maxEthAmount: parseEther("1"), // Max 1 ETH
@@ -206,7 +206,7 @@ function buildIntentSigningPolicy(config) {
206
206
  * consensus: "approvers.any(user, user.id == '8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c' || " +
207
207
  * "user.id == '2e4f6a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b')",
208
208
  * condition: "activity.resource == 'PRIVATE_KEY' && activity.action == 'SIGN' && " +
209
- * "eth.tx.to == '0x00000000008c57a1ce37836a5e9d36759d070d8c' && " +
209
+ * "eth.tx.to == '0x5af5194b4b0909eb978e3cf1e25333852277f07d' && " +
210
210
  * "(eth.tx.contract_call_args['_target'] == '0xali...ce') && " +
211
211
  * "eth.tx.contract_call_args['_ethAmount'] <= 1000000000000000000 && " +
212
212
  * "eth.tx.gasPrice <= 100000000000",
@@ -219,7 +219,7 @@ function buildIntentSigningPolicy(config) {
219
219
  * organizationId: "f8c3a5e7-9876-5432-1abc-def098765432",
220
220
  * paymasterUserId: "8f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
221
221
  * customConsensus: "approvers.count() >= 2",
222
- * executionContractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
222
+ * executionContractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
223
223
  * restrictions: { ... },
224
224
  * });
225
225
  *
@@ -352,7 +352,7 @@ async function uploadGasStationInterface({ client, organizationId, contractAddre
352
352
  * const interfaceId = await ensureGasStationInterface({
353
353
  * client: turnkeyClient.apiClient(),
354
354
  * organizationId: "a5b89e4f-1234-5678-9abc-def012345678",
355
- * contractAddress: "0x00000000008c57a1CE37836a5e9d36759D070d8c",
355
+ * contractAddress: "0x5aF5194B4b0909eB978e3Cf1e25333852277f07D",
356
356
  * chainName: "Base Sepolia"
357
357
  * });
358
358
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turnkey/gas-station",
3
- "version": "9.0.1",
3
+ "version": "11.0.0",
4
4
  "description": "Turnkey Gas Station SDK for EIP-7702 delegated execution",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -43,11 +43,11 @@
43
43
  "devDependencies": {
44
44
  "@types/node": "^24.6.2",
45
45
  "typescript": "5.4.3",
46
- "@turnkey/sdk-server": "6.1.1"
46
+ "@turnkey/sdk-server": "8.0.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "viem": "^2.24.0",
50
- "@turnkey/sdk-server": "6.1.1"
50
+ "@turnkey/sdk-server": "8.0.0"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"