accounts 0.6.6 → 0.6.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # accounts
2
2
 
3
+ ## 0.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 572cde0: Bumped trusted hosts
8
+
3
9
  ## 0.6.6
4
10
 
5
11
  ### Patch Changes
@@ -12,6 +12,7 @@
12
12
  "*.porto.workers.dev",
13
13
  "benedict.dev",
14
14
  "papercut.lol",
15
- "tempo-docs-git-jxom-accounts-sdk-docs-tempoxyz.vercel.app"
15
+ "tempo-docs-git-jxom-accounts-sdk-docs-tempoxyz.vercel.app",
16
+ "appkit-wagmi-tempo-wallet.vercel.app"
16
17
  ]
17
18
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "accounts",
3
3
  "description": "Tempo Accounts SDK",
4
4
  "type": "module",
5
- "version": "0.6.6",
5
+ "version": "0.6.7",
6
6
  "dependencies": {
7
7
  "hono": "^4.12.12",
8
8
  "idb-keyval": "^6.2.2",
@@ -1,7 +1,7 @@
1
1
  import type { RpcRequest } from 'ox'
2
2
  import { SignatureEnvelope, Transaction as core_Transaction, TxEnvelopeTempo } from 'ox/tempo'
3
3
  import { parseUnits } from 'viem'
4
- import { sendTransactionSync } from 'viem/actions'
4
+ import { sendTransaction, sendTransactionSync, waitForTransactionReceipt } from 'viem/actions'
5
5
  import { Actions, Transaction, withFeePayer } from 'viem/tempo'
6
6
  import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vp/test'
7
7
 
@@ -150,16 +150,17 @@ describe('POST /', () => {
150
150
  }),
151
151
  })
152
152
 
153
- const receipt = await sendTransactionSync(client, {
153
+ const hash = await sendTransaction(client, {
154
154
  feePayer: true,
155
- to: '0x0000000000000000000000000000000000000000',
155
+ to: '0x0000000000000000000000000000000000000001',
156
156
  })
157
+ const receipt = await waitForTransactionReceipt(getClient(), { hash })
157
158
 
158
159
  expect(receipt.feePayer).toBe(feePayerAccount.address.toLowerCase())
159
160
 
160
161
  expect(requests.map(({ method }) => method)).toMatchInlineSnapshot(`
161
162
  [
162
- "eth_sendRawTransactionSync",
163
+ "eth_sendRawTransaction",
163
164
  ]
164
165
  `)
165
166
  })
@@ -174,7 +175,7 @@ describe('POST /', () => {
174
175
 
175
176
  const receipt = await sendTransactionSync(client, {
176
177
  feePayer: true,
177
- to: '0x0000000000000000000000000000000000000000',
178
+ to: '0x0000000000000000000000000000000000000002',
178
179
  })
179
180
 
180
181
  expect(receipt.feePayer).toBe(feePayerAccount.address.toLowerCase())
@@ -12,6 +12,7 @@
12
12
  "*.porto.workers.dev",
13
13
  "benedict.dev",
14
14
  "papercut.lol",
15
- "tempo-docs-git-jxom-accounts-sdk-docs-tempoxyz.vercel.app"
15
+ "tempo-docs-git-jxom-accounts-sdk-docs-tempoxyz.vercel.app",
16
+ "appkit-wagmi-tempo-wallet.vercel.app"
16
17
  ]
17
18
  }