Skip to content

Commit c17b66c

Browse files
authored
feat: upstream viem (#129)
1 parent 59c90aa commit c17b66c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1133
-28792
lines changed

.changeset/mighty-games-brake.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
"tempo.ts": minor
3+
---
4+
5+
**Breaking:** As of `[email protected]`, `tempo.ts/chains` and `tempo.ts/viem` have been upstreamed into Viem, and are no longer maintained in this repository.
6+
7+
```bash
8+
9+
```
10+
11+
### Modify `chain` configuration
12+
13+
The `tempo` chain has been renamed to `tempoTestnet`, and now becomes a standard chain object that can be `.extend`ed with a fee token, instead of a function.
14+
15+
```diff
16+
const client = createClient({
17+
- chain: tempo({
18+
- feeToken: '0x20c0000000000000000000000000000000000001'
19+
- }),
20+
+ chain: tempoTestnet.extend({
21+
+ feeToken: '0x20c0000000000000000000000000000000000001'
22+
+ }),
23+
transport: http(),
24+
})
25+
```
26+
27+
### `Account#assignKeyAuthorization` has been removed
28+
29+
The `Account#assignKeyAuthorization` function has been removed. Instead, you will need to assign the key authorization on a transaction manually on the next transaction.
30+
31+
```diff
32+
const accessKey = Account.fromP256(generatePrivateKey(), {
33+
access: account,
34+
})
35+
36+
const keyAuthorization = await account.signKeyAuthorization(accessKey)
37+
- await account.assignKeyAuthorization(keyAuthorization)
38+
39+
const receipt = await client.sendTransactionSync({
40+
account: accessKey,
41+
+ keyAuthorization,
42+
})
43+
```

.github/workflows/verify.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -67,32 +67,3 @@ jobs:
6767
CI: true
6868
VITE_NODE_TAG: ${{ matrix.tag }}
6969
VITE_RPC_CREDENTIALS: ${{ secrets.VITE_RPC_CREDENTIALS }}
70-
71-
test-deployed:
72-
name: 'Test Runtime (env: ${{ matrix.node-env }}, e2e)'
73-
runs-on: ubuntu-latest
74-
timeout-minutes: 30
75-
strategy:
76-
matrix:
77-
node-env:
78-
- testnet
79-
steps:
80-
- name: Clone repository
81-
uses: actions/checkout@v4
82-
with:
83-
submodules: 'recursive'
84-
token: ${{ secrets.GH_PAT }}
85-
86-
- name: Install dependencies
87-
uses: ./.github/actions/install-dependencies
88-
89-
- name: Run tests
90-
uses: nick-fields/retry@v3
91-
with:
92-
timeout_minutes: 10
93-
max_attempts: 3
94-
command: pnpm test e2e --bail=1
95-
env:
96-
CI: true
97-
VITE_NODE_ENV: ${{ matrix.node-env }}
98-
VITE_RPC_CREDENTIALS: ${{ secrets.VITE_RPC_CREDENTIALS }}

0 commit comments

Comments
 (0)