tempo.ts 0.4.4 → 0.5.1
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/README.md +2 -3
- package/dist/chains.d.ts +15 -1
- package/dist/chains.d.ts.map +1 -1
- package/dist/chains.js +2 -1
- package/dist/chains.js.map +1 -1
- package/dist/prool/Instance.d.ts +12 -4
- package/dist/prool/Instance.d.ts.map +1 -1
- package/dist/prool/Instance.js +34 -18
- package/dist/prool/Instance.js.map +1 -1
- package/dist/viem/Actions/faucet.d.ts +34 -1
- package/dist/viem/Actions/faucet.d.ts.map +1 -1
- package/dist/viem/Actions/faucet.js +35 -0
- package/dist/viem/Actions/faucet.js.map +1 -1
- package/dist/viem/Chain.d.ts +6 -0
- package/dist/viem/Chain.d.ts.map +1 -1
- package/dist/viem/Chain.js +3 -1
- package/dist/viem/Chain.js.map +1 -1
- package/dist/viem/Formatters.js +1 -1
- package/dist/viem/Formatters.js.map +1 -1
- package/dist/viem/Transaction.d.ts +4 -1
- package/dist/viem/Transaction.d.ts.map +1 -1
- package/dist/viem/Transaction.js.map +1 -1
- package/package.json +1 -1
- package/src/chains.ts +2 -1
- package/src/ox/TransactionEnvelopeAA.test.ts +2 -663
- package/src/ox/e2e.test.ts +659 -0
- package/src/prool/Instance.ts +51 -23
- package/src/tsconfig.json +2 -2
- package/src/viem/Actions/amm.test.ts +68 -58
- package/src/viem/Actions/dex.test.ts +339 -283
- package/src/viem/Actions/faucet.ts +63 -1
- package/src/viem/Actions/fee.test.ts +34 -43
- package/src/viem/Actions/policy.test.ts +115 -81
- package/src/viem/Actions/reward.test.ts +92 -74
- package/src/viem/Actions/token.test.ts +691 -529
- package/src/viem/Chain.ts +3 -1
- package/src/viem/Formatters.ts +1 -1
- package/src/viem/Transaction.ts +4 -1
- package/src/viem/e2e.test.ts +451 -472
- package/src/wagmi/Actions/amm.test.ts +2 -5
- package/src/wagmi/Actions/dex.test.ts +2 -1
- package/src/wagmi/Actions/token.test.ts +2 -1
- package/src/wagmi/Hooks/amm.test.ts +2 -5
- package/src/wagmi/Hooks/dex.test.ts +2 -1
- package/src/wagmi/Hooks/token.test.ts +2 -1
package/src/viem/Chain.ts
CHANGED
|
@@ -46,7 +46,9 @@ function config<const chain extends Chain>(chain: chain) {
|
|
|
46
46
|
{
|
|
47
47
|
...request,
|
|
48
48
|
...(!request.feePayer &&
|
|
49
|
-
(action === 'estimateGas' ||
|
|
49
|
+
(action === 'estimateGas' ||
|
|
50
|
+
action === 'fillTransaction' ||
|
|
51
|
+
action === 'sendTransaction')
|
|
50
52
|
? {
|
|
51
53
|
feeToken: request.feeToken ?? chain.feeToken,
|
|
52
54
|
}
|
package/src/viem/Formatters.ts
CHANGED
|
@@ -101,7 +101,7 @@ export const formatTransactionRequest = <chain extends Chain | undefined>(
|
|
|
101
101
|
type: 'aa',
|
|
102
102
|
} as never)
|
|
103
103
|
|
|
104
|
-
if (action === 'estimateGas') {
|
|
104
|
+
if (action === 'estimateGas' || action === 'fillTransaction') {
|
|
105
105
|
rpc.maxFeePerGas = undefined
|
|
106
106
|
rpc.maxPriorityFeePerGas = undefined
|
|
107
107
|
}
|
package/src/viem/Transaction.ts
CHANGED
|
@@ -41,7 +41,9 @@ export type Transaction<
|
|
|
41
41
|
>
|
|
42
42
|
export type TransactionRpc<pending extends boolean = false> = OneOf<
|
|
43
43
|
| viem_RpcTransaction<pending>
|
|
44
|
-
| TransactionAA<Hex.Hex, Hex.Hex, pending, '0x76'>
|
|
44
|
+
| (Omit<TransactionAA<Hex.Hex, Hex.Hex, pending, '0x76'>, 'signature'> & {
|
|
45
|
+
signature: SignatureEnvelope.SignatureEnvelopeRpc
|
|
46
|
+
})
|
|
45
47
|
>
|
|
46
48
|
|
|
47
49
|
export type TransactionAA<
|
|
@@ -64,6 +66,7 @@ export type TransactionAA<
|
|
|
64
66
|
feePayer?: Address | undefined
|
|
65
67
|
feePayerSignature?: viem_Signature | undefined
|
|
66
68
|
nonceKey?: quantity | undefined
|
|
69
|
+
signature: SignatureEnvelope.SignatureEnvelope
|
|
67
70
|
type: type
|
|
68
71
|
validBefore?: index | undefined
|
|
69
72
|
validAfter?: index | undefined
|