You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update gas station SDK to reflect audited contract changes, including new contract addresses and EIP-712 field name adjustments. Modify related documentation and examples for consistency.
Copy file name to clipboardExpand all lines: .changeset/chubby-peas-sip.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,21 @@
2
2
"@turnkey/gas-station": major
3
3
---
4
4
5
-
Update gas station contract addresses and modify intent builder types for post-audit contract
5
+
Updated the `@turnkey/gas-station` SDK to align with the audited smart contract changes. The audit resulted in several interface updates:
6
+
7
+
**Contract Changes:**
8
+
-**New contract addresses**: Updated both delegate and execution contract addresses to the newly deployed versions
9
+
-**EIP-712 field name changes**: The canonical delegate contract interface uses simplified field names (`to`, `value`, `data`) instead of the previous descriptive names (`outputContract`, `ethAmount`, `arguments`)
10
+
11
+
**SDK Updates:**
12
+
- Updated `DEFAULT_EXECUTION_CONTRACT` address from `0x4ece92b06C7d2d99d87f052E0Fca47Fb180c3348` to `0x00000000008c57a1CE37836a5e9d36759D070d8c`
13
+
- Updated `DEFAULT_DELEGATE_CONTRACT` address from `0xC2a37Ee08cAc3778d9d05FF0a93FD5B553C77E3a` to `0x000066a00056CD44008768E2aF00696e19A30084`
14
+
- Updated EIP-712 Execution typehash field names to match the contract's canonical interface
15
+
- Updated EIP-712 ApproveThenExecute typehash field names to match the contract's canonical interface
16
+
- Updated Turnkey policy conditions in `buildIntentSigningPolicy` to reference the new field names (`to`, `value` instead of `outputContract`, `ethAmount`)
17
+
- Updated documentation and examples to reflect the new field names
// notes: "Restricts which transactions the paymaster can execute on the gas station"
421
421
// }
422
422
```
423
423
424
-
**Note:** The `ensureGasStationInterface()` function uploads the Gas Station ABI to Turnkey's Smart Contract Interface feature. This enables Turnkey's policy engine to parse the ABI-encoded transaction data and directly compare the `ethAmount` parameter as a uint256 value, rather than raw bytes. The function checks if the ABI already exists before uploading to avoid duplicates.
424
+
**Note:** The `ensureGasStationInterface()` function uploads the Gas Station ABI to Turnkey's Smart Contract Interface feature. This enables Turnkey's policy engine to parse the ABI-encoded transaction data and directly compare the `_ethAmount` parameter as a uint256 value, rather than raw bytes. The function checks if the ABI already exists before uploading to avoid duplicates.
425
425
426
426
#### Defense in Depth
427
427
@@ -437,8 +437,8 @@ import { parseGwei } from "viem";
0 commit comments