viem 1.18.8 → 1.19.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.
Files changed (153) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -1
  3. package/_cjs/actions/test/dumpState.js +10 -0
  4. package/_cjs/actions/test/dumpState.js.map +1 -0
  5. package/_cjs/actions/test/loadState.js +11 -0
  6. package/_cjs/actions/test/loadState.js.map +1 -0
  7. package/_cjs/chains/definitions/lukso.js +31 -0
  8. package/_cjs/chains/definitions/lukso.js.map +1 -0
  9. package/_cjs/chains/index.js +5 -3
  10. package/_cjs/chains/index.js.map +1 -1
  11. package/_cjs/clients/decorators/test.js +4 -0
  12. package/_cjs/clients/decorators/test.js.map +1 -1
  13. package/_cjs/constants/bytes.js +5 -0
  14. package/_cjs/constants/bytes.js.map +1 -0
  15. package/_cjs/constants/strings.js +5 -0
  16. package/_cjs/constants/strings.js.map +1 -0
  17. package/_cjs/errors/node.js +11 -11
  18. package/_cjs/errors/node.js.map +1 -1
  19. package/_cjs/errors/rpc.js +18 -18
  20. package/_cjs/errors/rpc.js.map +1 -1
  21. package/_cjs/index.js +10 -6
  22. package/_cjs/index.js.map +1 -1
  23. package/_cjs/utils/contract/extractFunctionParts.js.map +1 -1
  24. package/_cjs/utils/formatters/transaction.js +14 -0
  25. package/_cjs/utils/formatters/transaction.js.map +1 -1
  26. package/_cjs/utils/hash/getFunctionSignature.js +9 -9
  27. package/_cjs/utils/hash/getFunctionSignature.js.map +1 -1
  28. package/_cjs/utils/hash/normalizeSignature.js +48 -0
  29. package/_cjs/utils/hash/normalizeSignature.js.map +1 -0
  30. package/_cjs/utils/signature/hashMessage.js +2 -1
  31. package/_cjs/utils/signature/hashMessage.js.map +1 -1
  32. package/_cjs/utils/transaction/serializeTransaction.js +20 -4
  33. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  34. package/_esm/actions/test/dumpState.js +26 -0
  35. package/_esm/actions/test/dumpState.js.map +1 -0
  36. package/_esm/actions/test/loadState.js +27 -0
  37. package/_esm/actions/test/loadState.js.map +1 -0
  38. package/_esm/chains/definitions/lukso.js +28 -0
  39. package/_esm/chains/definitions/lukso.js.map +1 -0
  40. package/_esm/chains/index.js +1 -0
  41. package/_esm/chains/index.js.map +1 -1
  42. package/_esm/clients/decorators/test.js +4 -0
  43. package/_esm/clients/decorators/test.js.map +1 -1
  44. package/_esm/constants/bytes.js +2 -0
  45. package/_esm/constants/bytes.js.map +1 -0
  46. package/_esm/constants/strings.js +2 -0
  47. package/_esm/constants/strings.js.map +1 -0
  48. package/_esm/errors/node.js +22 -11
  49. package/_esm/errors/node.js.map +1 -1
  50. package/_esm/errors/rpc.js +36 -18
  51. package/_esm/errors/rpc.js.map +1 -1
  52. package/_esm/index.js +2 -0
  53. package/_esm/index.js.map +1 -1
  54. package/_esm/utils/contract/extractFunctionParts.js +4 -0
  55. package/_esm/utils/contract/extractFunctionParts.js.map +1 -1
  56. package/_esm/utils/formatters/transaction.js +16 -0
  57. package/_esm/utils/formatters/transaction.js.map +1 -1
  58. package/_esm/utils/hash/getFunctionSignature.js +9 -9
  59. package/_esm/utils/hash/getFunctionSignature.js.map +1 -1
  60. package/_esm/utils/hash/normalizeSignature.js +51 -0
  61. package/_esm/utils/hash/normalizeSignature.js.map +1 -0
  62. package/_esm/utils/signature/hashMessage.js +2 -1
  63. package/_esm/utils/signature/hashMessage.js.map +1 -1
  64. package/_esm/utils/transaction/serializeTransaction.js +20 -6
  65. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  66. package/_types/actions/test/dumpState.d.ts +31 -0
  67. package/_types/actions/test/dumpState.d.ts.map +1 -0
  68. package/_types/actions/test/loadState.d.ts +34 -0
  69. package/_types/actions/test/loadState.d.ts.map +1 -0
  70. package/_types/chains/celo/formatters.d.ts +24 -13
  71. package/_types/chains/celo/formatters.d.ts.map +1 -1
  72. package/_types/chains/definitions/base.d.ts +18 -10
  73. package/_types/chains/definitions/base.d.ts.map +1 -1
  74. package/_types/chains/definitions/baseGoerli.d.ts +18 -10
  75. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
  76. package/_types/chains/definitions/baseSepolia.d.ts +18 -10
  77. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
  78. package/_types/chains/definitions/celo.d.ts +24 -13
  79. package/_types/chains/definitions/celo.d.ts.map +1 -1
  80. package/_types/chains/definitions/celoAlfajores.d.ts +24 -13
  81. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  82. package/_types/chains/definitions/celoCannoli.d.ts +24 -13
  83. package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
  84. package/_types/chains/definitions/lukso.d.ts +27 -0
  85. package/_types/chains/definitions/lukso.d.ts.map +1 -0
  86. package/_types/chains/definitions/optimism.d.ts +18 -10
  87. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  88. package/_types/chains/definitions/optimismGoerli.d.ts +18 -10
  89. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
  90. package/_types/chains/definitions/optimismSepolia.d.ts +18 -10
  91. package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
  92. package/_types/chains/definitions/zkSync.d.ts +11 -0
  93. package/_types/chains/definitions/zkSync.d.ts.map +1 -1
  94. package/_types/chains/definitions/zkSyncTestnet.d.ts +11 -0
  95. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
  96. package/_types/chains/definitions/zora.d.ts +18 -10
  97. package/_types/chains/definitions/zora.d.ts.map +1 -1
  98. package/_types/chains/definitions/zoraSepolia.d.ts +18 -10
  99. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
  100. package/_types/chains/definitions/zoraTestnet.d.ts +18 -10
  101. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
  102. package/_types/chains/index.d.ts +1 -0
  103. package/_types/chains/index.d.ts.map +1 -1
  104. package/_types/chains/optimism/formatters.d.ts +18 -10
  105. package/_types/chains/optimism/formatters.d.ts.map +1 -1
  106. package/_types/chains/zksync/formatters.d.ts +11 -0
  107. package/_types/chains/zksync/formatters.d.ts.map +1 -1
  108. package/_types/clients/decorators/test.d.ts +41 -0
  109. package/_types/clients/decorators/test.d.ts.map +1 -1
  110. package/_types/constants/bytes.d.ts +2 -0
  111. package/_types/constants/bytes.d.ts.map +1 -0
  112. package/_types/constants/strings.d.ts +2 -0
  113. package/_types/constants/strings.d.ts.map +1 -0
  114. package/_types/index.d.ts +2 -0
  115. package/_types/index.d.ts.map +1 -1
  116. package/_types/types/eip1193.d.ts +16 -0
  117. package/_types/types/eip1193.d.ts.map +1 -1
  118. package/_types/types/rpc.d.ts +2 -2
  119. package/_types/types/rpc.d.ts.map +1 -1
  120. package/_types/types/transaction.d.ts +10 -1
  121. package/_types/types/transaction.d.ts.map +1 -1
  122. package/_types/types/utils.d.ts +8 -0
  123. package/_types/types/utils.d.ts.map +1 -1
  124. package/_types/utils/contract/extractFunctionParts.d.ts +4 -0
  125. package/_types/utils/contract/extractFunctionParts.d.ts.map +1 -1
  126. package/_types/utils/formatters/transaction.d.ts +1 -1
  127. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  128. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  129. package/_types/utils/hash/getFunctionSignature.d.ts +4 -5
  130. package/_types/utils/hash/getFunctionSignature.d.ts.map +1 -1
  131. package/_types/utils/hash/normalizeSignature.d.ts +6 -0
  132. package/_types/utils/hash/normalizeSignature.d.ts.map +1 -0
  133. package/_types/utils/signature/hashMessage.d.ts.map +1 -1
  134. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  135. package/actions/test/dumpState.ts +44 -0
  136. package/actions/test/loadState.ts +47 -0
  137. package/chains/definitions/lukso.ts +28 -0
  138. package/chains/index.ts +1 -0
  139. package/clients/decorators/test.ts +50 -0
  140. package/constants/bytes.ts +2 -0
  141. package/constants/strings.ts +1 -0
  142. package/index.ts +2 -0
  143. package/package.json +1 -1
  144. package/types/eip1193.ts +16 -0
  145. package/types/rpc.ts +15 -6
  146. package/types/transaction.ts +10 -1
  147. package/types/utils.ts +11 -0
  148. package/utils/contract/extractFunctionParts.ts +4 -0
  149. package/utils/formatters/transaction.ts +17 -2
  150. package/utils/hash/getFunctionSignature.ts +11 -21
  151. package/utils/hash/normalizeSignature.ts +64 -0
  152. package/utils/signature/hashMessage.ts +2 -1
  153. package/utils/transaction/serializeTransaction.ts +18 -12
@@ -1 +1 @@
1
- {"version":3,"file":"extractFunctionParts.js","sourceRoot":"","sources":["../../../utils/contract/extractFunctionParts.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,qCAAqC,CAAA;AAIzD,MAAM,UAAU,oBAAoB,CAAC,GAAW;IAC9C,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;IACpC,MAAM,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,SAAS,CAAA;IACpC,MAAM,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAA;IACvB,MAAM,MAAM,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,SAAS,CAAA;IACtC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;AAC/B,CAAC;AAID,MAAM,UAAU,mBAAmB,CAAC,GAAW;IAC7C,OAAO,oBAAoB,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACvC,CAAC;AAID,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,MAAM,MAAM,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAA;IAC/C,MAAM,WAAW,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACtE,OAAO,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAA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AC/C,MAAM,WAAW,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACtE,OAAO,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAClC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;QACd,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACrD,CAAC,CAAC,CAAA;AACL,CAAC;AAID,uDAAuD;AACvD,MAAM,UAAU,mBAAmB,CAAC,GAAW;IAC7C,OAAO,oBAAoB,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACvC,CAAC"}
@@ -31,10 +31,26 @@ export function formatTransaction(transaction) {
31
31
  value: transaction.value ? BigInt(transaction.value) : undefined,
32
32
  v: transaction.v ? BigInt(transaction.v) : undefined,
33
33
  };
34
+ transaction_.yParity = (() => {
35
+ // If `yParity` is provided, we will use it.
36
+ if (transaction.yParity)
37
+ return Number(transaction.yParity);
38
+ // If no `yParity` provided, try derive from `v`.
39
+ if (typeof transaction_.v === 'bigint') {
40
+ if (transaction_.v === 0n || transaction_.v === 27n)
41
+ return 0;
42
+ if (transaction_.v === 1n || transaction_.v === 28n)
43
+ return 1;
44
+ if (transaction_.v >= 35n)
45
+ return transaction_.v % 2n === 0n ? 1 : 0;
46
+ }
47
+ return undefined;
48
+ })();
34
49
  if (transaction_.type === 'legacy') {
35
50
  delete transaction_.accessList;
36
51
  delete transaction_.maxFeePerGas;
37
52
  delete transaction_.maxPriorityFeePerGas;
53
+ delete transaction_.yParity;
38
54
  }
39
55
  if (transaction_.type === 'eip2930') {
40
56
  delete transaction_.maxFeePerGas;
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../utils/formatters/transaction.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAiC,eAAe,EAAE,MAAM,gBAAgB,CAAA;AA0B/E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACR,CAAA;AAIV,MAAM,UAAU,iBAAiB,CAAC,WAAoC;IACpE,MAAM,YAAY,GAAG;QACnB,GAAG,WAAW;QACd,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI;QAC/D,WAAW,EAAE,WAAW,CAAC,WAAW;YAClC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC;YACjC,CAAC,CAAC,IAAI;QACR,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;QAC3E,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;QAC1D,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;QACzE,YAAY,EAAE,WAAW,CAAC,YAAY;YACpC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;YAClC,CAAC,CAAC,SAAS;QACb,oBAAoB,EAAE,WAAW,CAAC,oBAAoB;YACpD,CAAC,C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,IAAI,GAAG;gBAAE,OAAO,YAAY,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;SACrE;QAED,OAAO,SAAS,CAAA;IAClB,CAAC,CAAC,EAAE,CAAA;IAEJ,IAAI,YAAY,CAAC,IAAI,KAAK,QAAQ,EAAE;QAClC,OAAO,YAAY,CAAC,UAAU,CAAA;QAC9B,OAAO,YAAY,CAAC,YAAY,CAAA;QAChC,OAAO,YAAY,CAAC,oBAAoB,CAAA;QACxC,OAAO,YAAY,CAAC,OAAO,CAAA;KAC5B;IACD,IAAI,YAAY,CAAC,IAAI,KAAK,SAAS,EAAE;QACnC,OAAO,YAAY,CAAC,YAAY,CAAA;QAChC,OAAO,YAAY,CAAC,oBAAoB,CAAA;KACzC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC;AAID,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,eAAe,CAC5D,aAAa,EACb,iBAAiB,CAClB,CAAA"}
@@ -1,11 +1,11 @@
1
- import { formatAbiItem, } from '../abi/formatAbiItem.js';
2
- import { extractFunctionName, extractFunctionParams, } from '../contract/extractFunctionParts.js';
3
- export const getFunctionSignature = (fn) => {
4
- if (typeof fn === 'string') {
5
- const name = extractFunctionName(fn);
6
- const params = extractFunctionParams(fn) || [];
7
- return `${name}(${params.map(({ type }) => type).join(',')})`;
8
- }
9
- return formatAbiItem(fn);
1
+ import { formatAbiItem } from 'abitype';
2
+ import { normalizeSignature, } from './normalizeSignature.js';
3
+ export const getFunctionSignature = (fn_) => {
4
+ const fn = (() => {
5
+ if (typeof fn_ === 'string')
6
+ return fn_;
7
+ return formatAbiItem(fn_);
8
+ })();
9
+ return normalizeSignature(fn);
10
10
  };
11
11
  //# sourceMappingURL=getFunctionSignature.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFunctionSignature.js","sourceRoot":"","sources":["../../../utils/hash/getFunctionSignature.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,aAAa,GACd,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAGL,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,qCAAqC,CAAA;AAQ5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAwB,EAAE,EAAE;IAC/D,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;QAC1B,MAAM,IAAI,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAA;QACpC,MAAM,MAAM,GAAG,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAA;QAC9C,OAAO,GAAG,IAAI,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAA;KAC9D;IAED,OAAO,aAAa,CAAC,EAAE,CAAC,CAAA;AAC1B,CAAC,CAAA"}
1
+ {"version":3,"file":"getFunctionSignature.js","sourceRoot":"","sources":["../../../utils/hash/getFunctionSignature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,aAAa,EAAE,MAAM,SAAS,CAAA;AAGzD,OAAO,EAEL,kBAAkB,GACnB,MAAM,yBAAyB,CAAA;AAMhC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAyB,EAAE,EAAE;IAChE,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE;QACf,IAAI,OAAO,GAAG,KAAK,QAAQ;YAAE,OAAO,GAAG,CAAA;QACvC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC,CAAC,EAAE,CAAA;IACJ,OAAO,kBAAkB,CAAC,EAAE,CAAC,CAAA;AAC/B,CAAC,CAAA"}
@@ -0,0 +1,51 @@
1
+ import { BaseError } from '../../errors/base.js';
2
+ export function normalizeSignature(signature) {
3
+ let active = true;
4
+ let current = '';
5
+ let level = 0;
6
+ let result = '';
7
+ let valid = false;
8
+ for (let i = 0; i < signature.length; i++) {
9
+ const char = signature[i];
10
+ // If the character is a separator, we want to reactivate.
11
+ if (['(', ')', ','].includes(char))
12
+ active = true;
13
+ // If the character is a "level" token, we want to increment/decrement.
14
+ if (char === '(')
15
+ level++;
16
+ if (char === ')')
17
+ level--;
18
+ // If we aren't active, we don't want to mutate the result.
19
+ if (!active)
20
+ continue;
21
+ // If level === 0, we are at the definition level.
22
+ if (level === 0) {
23
+ if (char === ' ' && ['event', 'function', ''].includes(result))
24
+ result = '';
25
+ else {
26
+ result += char;
27
+ // If we are at the end of the definition, we must be finished.
28
+ if (char === ')') {
29
+ valid = true;
30
+ break;
31
+ }
32
+ }
33
+ continue;
34
+ }
35
+ // Ignore spaces
36
+ if (char === ' ') {
37
+ // If the previous character is a separator, and the current section isn't empty, we want to deactivate.
38
+ if (signature[i - 1] !== ',' && current !== ',' && current !== ',(') {
39
+ current = '';
40
+ active = false;
41
+ }
42
+ continue;
43
+ }
44
+ result += char;
45
+ current += char;
46
+ }
47
+ if (!valid)
48
+ throw new BaseError('Unable to normalize signature.');
49
+ return result;
50
+ }
51
+ //# sourceMappingURL=normalizeSignature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeSignature.js","sourceRoot":"","sources":["../../../utils/hash/normalizeSignature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAOhD,MAAM,UAAU,kBAAkB,CAChC,SAAuC;IAEvC,IAAI,MAAM,GAAG,IAAI,CAAA;IACjB,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,IAAI,KAAK,GAAG,CAAC,CAAA;IACb,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,KAAK,GAAG,KAAK,CAAA;IAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;QAEzB,0DAA0D;QAC1D,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,MAAM,GAAG,IAAI,CAAA;QAEjD,uEAAuE;QACvE,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QACzB,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QAEzB,2DAA2D;QAC3D,IAAI,CAAC,MAAM;YAAE,SAAQ;QAErB,kDAAkD;QAClD,IAAI,KAAK,KAAK,CAAC,EAAE;YACf,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAC5D,MAAM,GAAG,EAAE,CAAA;iBACR;gBACH,MAAM,IAAI,IAAI,CAAA;gBAEd,+DAA+D;gBAC/D,IAAI,IAAI,KAAK,GAAG,EAAE;oBAChB,KAAK,GAAG,IAAI,CAAA;oBACZ,MAAK;iBACN;aACF;YAED,SAAQ;SACT;QAED,gBAAgB;QAChB,IAAI,IAAI,KAAK,GAAG,EAAE;YAChB,wGAAwG;YACxG,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,OAAO,KAAK,GAAG,IAAI,OAAO,KAAK,IAAI,EAAE;gBACnE,OAAO,GAAG,EAAE,CAAA;gBACZ,MAAM,GAAG,KAAK,CAAA;aACf;YACD,SAAQ;SACT;QAED,MAAM,IAAI,IAAI,CAAA;QACd,OAAO,IAAI,IAAI,CAAA;KAChB;IAED,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,SAAS,CAAC,gCAAgC,CAAC,CAAA;IAEjE,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { presignMessagePrefix } from '../../constants/strings.js';
1
2
  import { concat } from '../data/concat.js';
2
3
  import { stringToBytes, toBytes, } from '../encoding/toBytes.js';
3
4
  import { keccak256 } from '../hash/keccak256.js';
@@ -9,7 +10,7 @@ export function hashMessage(message, to_) {
9
10
  return message.raw;
10
11
  return toBytes(message.raw);
11
12
  })();
12
- const prefixBytes = stringToBytes(`\x19Ethereum Signed Message:\n${messageBytes.length}`);
13
+ const prefixBytes = stringToBytes(`${presignMessagePrefix}${messageBytes.length}`);
13
14
  return keccak256(concat([prefixBytes, messageBytes]), to_);
14
15
  }
15
16
  //# sourceMappingURL=hashMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hashMessage.js","sourceRoot":"","sources":["../../../utils/signature/hashMessage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAGL,aAAa,EACb,OAAO,GACR,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAA2B,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAezE,MAAM,UAAU,WAAW,CACzB,OAAwB,EACxB,GAAS;IAET,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;QACzB,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;QAC9D,IAAI,OAAO,CAAC,GAAG,YAAY,UAAU;YAAE,OAAO,OAAO,CAAC,GAAG,CAAA;QACzD,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAC7B,CAAC,CAAC,EAAE,CAAA;IACJ,MAAM,WAAW,GAAG,aAAa,CAC/B,iCAAiC,YAAY,CAAC,MAAM,EAAE,CACvD,CAAA;IACD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;AAC5D,CAAC"}
1
+ {"version":3,"file":"hashMessage.js","sourceRoot":"","sources":["../../../utils/signature/hashMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAGjE,OAAO,EAAwB,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAGL,aAAa,EACb,OAAO,GACR,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAA2B,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAezE,MAAM,UAAU,WAAW,CACzB,OAAwB,EACxB,GAAS;IAET,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;QACzB,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;QAC9D,IAAI,OAAO,CAAC,GAAG,YAAY,UAAU;YAAE,OAAO,OAAO,CAAC,GAAG,CAAA;QACzD,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAC7B,CAAC,CAAC,EAAE,CAAA;IACJ,MAAM,WAAW,GAAG,aAAa,CAC/B,GAAG,oBAAoB,GAAG,YAAY,CAAC,MAAM,EAAE,CAChD,CAAA;IACD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;AAC5D,CAAC"}
@@ -29,9 +29,16 @@ function serializeTransactionEIP1559(transaction, signature) {
29
29
  data ?? '0x',
30
30
  serializedAccessList,
31
31
  ];
32
- if (signature)
33
- serializedTransaction.push(signature.v === 27n ? '0x' : toHex(1), // yParity
34
- trim(signature.r), trim(signature.s));
32
+ if (signature) {
33
+ const yParity = (() => {
34
+ if (signature.v === 0n)
35
+ return '0x';
36
+ if (signature.v === 1n)
37
+ return toHex(1);
38
+ return signature.v === 27n ? '0x' : toHex(1);
39
+ })();
40
+ serializedTransaction.push(yParity, trim(signature.r), trim(signature.s));
41
+ }
35
42
  return concatHex([
36
43
  '0x02',
37
44
  toRlp(serializedTransaction),
@@ -51,9 +58,16 @@ function serializeTransactionEIP2930(transaction, signature) {
51
58
  data ?? '0x',
52
59
  serializedAccessList,
53
60
  ];
54
- if (signature)
55
- serializedTransaction.push(signature.v === 27n ? '0x' : toHex(1), // yParity
56
- signature.r, signature.s);
61
+ if (signature) {
62
+ const yParity = (() => {
63
+ if (signature.v === 0n)
64
+ return '0x';
65
+ if (signature.v === 1n)
66
+ return toHex(1);
67
+ return signature.v === 27n ? '0x' : toHex(1);
68
+ })();
69
+ serializedTransaction.push(yParity, trim(signature.r), trim(signature.s));
70
+ }
57
71
  return concatHex([
58
72
  '0x01',
59
73
  toRlp(serializedTransaction),
@@ -1 +1 @@
1
- {"version":3,"file":"serializeTransaction.js","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,6BAA6B,CAAA;AAcpC,OAAO,EAA2B,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAuB,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAuB,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAIL,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAGL,kBAAkB,GACnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,mBAAmB,GACpB,MAAM,0BAA0B,CAAA;AAkBjC,MAAM,UAAU,oBAAoB,CAGlC,WAAqC,EACrC,SAAqB;IAErB,MAAM,IAAI,GAAG,kBAAkB,CAAC,WAAW,CAAuB,CAAA;IAElE,IAAI,IAAI,KAAK,SAAS;QACpB,OAAO,2BAA2B,CAChC,WAA6C,EAC7C,SAAS,CACmD,CAAA;IAEhE,IAAI,IAAI,KAAK,SAAS;QACpB,OAAO,2BAA2B,CAChC,WAA6C,EAC7C,SAAS,CACmD,CAAA;IAEhE,OAAO,0BAA0B,CAC/B,WAA4C,EAC5C,SAAS,CACmD,CAAA;AAChE,CAAC;AAWD,SAAS,2BAA2B,CAClC,WAA2C,EAC3C,SAAqB;IAErB,MAAM,EACJ,OAAO,E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AG,qBAAqB;YACxB,KAAK,CAAC,CAAC,CAAC;YACR,SAAS,CAAC,CAAC;YACX,SAAS,CAAC,CAAC;SACZ,CAAA;KACF;SAAM,IAAI,OAAO,GAAG,CAAC,EAAE;QACtB,qBAAqB,GAAG;YACtB,GAAG,qBAAqB;YACxB,KAAK,CAAC,OAAO,CAAC;YACd,IAAI;YACJ,IAAI;SACL,CAAA;KACF;IAED,OAAO,KAAK,CAAC,qBAAqB,CAAC,CAAA;AACrC,CAAC"}
1
+ {"version":3,"file":"serializeTransaction.js","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,6BAA6B,CAAA;AAcpC,OAAO,EAA2B,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAuB,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAuB,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAIL,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAGL,kBAAkB,GACnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,mBAAmB,GACpB,MAAM,0BAA0B,CAAA;AAkBjC,MAAM,UAAU,oBAAoB,CAGlC,WAAqC,EACrC,SAAqB;IAErB,MAAM,IAAI,GAAG,kBAAkB,CAAC,WAAW,CAAuB,CAAA;IAElE,IAAI,IAAI,KAAK,SAAS;QACpB,OAAO,2BAA2B,CAChC,WAA6C,EAC7C,SAAS,CACmD,CAAA;IAEhE,IAAI,IAAI,KAAK,SAAS;QACpB,OAAO,2BAA2B,CAChC,WAA6C,EAC7C,SAAS,CACmD,CAAA;IAEhE,OAAO,0BAA0B,CAC/B,WAA4C,EAC5C,SAAS,CACmD,CAAA;AAChE,CAAC;AAWD,SAAS,2BAA2B,CA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,GAAG,CAAC,GAAG,EAAE,CAAA;gBAChD,IAAI,eAAe,GAAG,CAAC;oBAAE,OAAO,SAAS,CAAC,CAAC,CAAA;gBAC3C,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;aAC7C;YAED,2BAA2B;YAC3B,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;YAC/C,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC;gBAAE,MAAM,IAAI,mBAAmB,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAA;YACxE,OAAO,CAAC,CAAA;QACV,CAAC,CAAC,EAAE,CAAA;QAEJ,qBAAqB,GAAG;YACtB,GAAG,qBAAqB;YACxB,KAAK,CAAC,CAAC,CAAC;YACR,SAAS,CAAC,CAAC;YACX,SAAS,CAAC,CAAC;SACZ,CAAA;KACF;SAAM,IAAI,OAAO,GAAG,CAAC,EAAE;QACtB,qBAAqB,GAAG;YACtB,GAAG,qBAAqB;YACxB,KAAK,CAAC,OAAO,CAAC;YACd,IAAI;YACJ,IAAI;SACL,CAAA;KACF;IAED,OAAO,KAAK,CAAC,qBAAqB,CAAC,CAAA;AACrC,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
2
+ import type { Transport } from '../../clients/transports/createTransport.js';
3
+ import type { ErrorType } from '../../errors/utils.js';
4
+ import type { Account } from '../../types/account.js';
5
+ import type { Chain } from '../../types/chain.js';
6
+ import type { Hex } from '../../types/misc.js';
7
+ import type { RequestErrorType } from '../../utils/buildRequest.js';
8
+ export type DumpStateReturnType = Hex;
9
+ export type DumpStateErrorType = RequestErrorType | ErrorType;
10
+ /**
11
+ * Serializes the current state (including contracts code, contract's storage,
12
+ * accounts properties, etc.) into a savable data blob.
13
+ *
14
+ * - Docs: https://viem.sh/docs/actions/test/dumpState.html
15
+ *
16
+ * @param client - Client to use
17
+ *
18
+ * @example
19
+ * import { createTestClient, http } from 'viem'
20
+ * import { foundry } from 'viem/chains'
21
+ * import { dumpState } from 'viem/test'
22
+ *
23
+ * const client = createTestClient({
24
+ * mode: 'anvil',
25
+ * chain: 'foundry',
26
+ * transport: http(),
27
+ * })
28
+ * await dumpState(client)
29
+ */
30
+ export declare function dumpState<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>): Promise<DumpStateReturnType>;
31
+ //# sourceMappingURL=dumpState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dumpState.d.ts","sourceRoot":"","sources":["../../../actions/test/dumpState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAA;AACrC,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,SAAS,CAC7B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,GACrE,OAAO,CAAC,mBAAmB,CAAC,CAI9B"}
@@ -0,0 +1,34 @@
1
+ import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
2
+ import type { Transport } from '../../clients/transports/createTransport.js';
3
+ import type { ErrorType } from '../../errors/utils.js';
4
+ import type { Account } from '../../types/account.js';
5
+ import type { Chain } from '../../types/chain.js';
6
+ import type { Hex } from '../../types/misc.js';
7
+ import type { RequestErrorType } from '../../utils/buildRequest.js';
8
+ export type LoadStateParameters = {
9
+ state: Hex;
10
+ };
11
+ export type LoadStateReturnType = void;
12
+ export type LoadStateErrorType = RequestErrorType | ErrorType;
13
+ /**
14
+ * Adds state previously dumped with `dumpState` to the current chain.
15
+ *
16
+ * - Docs: https://viem.sh/docs/actions/test/loadState.html
17
+ *
18
+ * @param client - Client to use
19
+ * @param parameters - {@link LoadStateParameters}
20
+ *
21
+ * @example
22
+ * import { createTestClient, http } from 'viem'
23
+ * import { foundry } from 'viem/chains'
24
+ * import { loadState } from 'viem/test'
25
+ *
26
+ * const client = createTestClient({
27
+ * mode: 'anvil',
28
+ * chain: 'foundry',
29
+ * transport: http(),
30
+ * })
31
+ * await loadState(client, { state: '0x...' })
32
+ */
33
+ export declare function loadState<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { state }: LoadStateParameters): Promise<LoadStateReturnType>;
34
+ //# sourceMappingURL=loadState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadState.d.ts","sourceRoot":"","sources":["../../../actions/test/loadState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,EAAE,GAAG,CAAA;CAAE,CAAA;AAChD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAA;AACtC,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,SAAS,CAC7B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,KAAK,EAAE,EAAE,mBAAmB,GAC7B,OAAO,CAAC,mBAAmB,CAAC,CAK9B"}
@@ -45,56 +45,56 @@ export declare const formattersCelo: {
45
45
  };
46
46
  readonly transaction: {
47
47
  exclude: [] | undefined;
48
- format: (args: (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
48
+ format: (args: (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
49
49
  feeCurrency: `0x${string}` | null;
50
50
  gatewayFee: `0x${string}` | null;
51
51
  gatewayFeeRecipient: `0x${string}` | null;
52
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
52
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
53
53
  feeCurrency: `0x${string}` | null;
54
54
  gatewayFee: `0x${string}` | null;
55
55
  gatewayFeeRecipient: `0x${string}` | null;
56
56
  type: "0x7c";
57
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
57
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
58
58
  feeCurrency: `0x${string}` | null;
59
59
  type: "0x7b";
60
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
60
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
61
61
  feeCurrency: `0x${string}` | null;
62
62
  gatewayFee: `0x${string}` | null;
63
63
  gatewayFeeRecipient: `0x${string}` | null;
64
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
64
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
65
65
  feeCurrency: `0x${string}` | null;
66
66
  gatewayFee: `0x${string}` | null;
67
67
  gatewayFeeRecipient: `0x${string}` | null;
68
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
68
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
69
69
  feeCurrency: `0x${string}` | null;
70
70
  gatewayFee: `0x${string}` | null;
71
71
  gatewayFeeRecipient: `0x${string}` | null;
72
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
72
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
73
73
  feeCurrency: `0x${string}` | null;
74
74
  gatewayFee: `0x${string}` | null;
75
75
  gatewayFeeRecipient: `0x${string}` | null;
76
76
  type: "0x7c";
77
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
77
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
78
78
  feeCurrency: `0x${string}` | null;
79
79
  type: "0x7b";
80
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
80
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
81
81
  feeCurrency: `0x${string}` | null;
82
82
  gatewayFee: `0x${string}` | null;
83
83
  gatewayFeeRecipient: `0x${string}` | null;
84
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
84
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
85
85
  feeCurrency: `0x${string}` | null;
86
86
  gatewayFee: `0x${string}` | null;
87
87
  gatewayFeeRecipient: `0x${string}` | null;
88
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
88
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
89
89
  feeCurrency: `0x${string}` | null;
90
90
  gatewayFee: `0x${string}` | null;
91
91
  gatewayFeeRecipient: `0x${string}` | null;
92
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
92
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
93
93
  feeCurrency: `0x${string}` | null;
94
94
  gatewayFee: `0x${string}` | null;
95
95
  gatewayFeeRecipient: `0x${string}` | null;
96
96
  type: "0x7c";
97
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
97
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
98
98
  feeCurrency: `0x${string}` | null;
99
99
  type: "0x7b";
100
100
  })) => ({
@@ -117,6 +117,7 @@ export declare const formattersCelo: {
117
117
  maxPriorityFeePerGas?: undefined;
118
118
  accessList?: undefined;
119
119
  chainId?: number | undefined;
120
+ yParity?: undefined;
120
121
  type: "legacy";
121
122
  feeCurrency: `0x${string}` | null;
122
123
  gatewayFee: bigint | null;
@@ -141,6 +142,7 @@ export declare const formattersCelo: {
141
142
  maxPriorityFeePerGas: bigint;
142
143
  accessList?: undefined;
143
144
  chainId?: number | undefined;
145
+ yParity: number;
144
146
  type: "cip42";
145
147
  feeCurrency: `0x${string}` | null;
146
148
  gatewayFee: bigint | null;
@@ -165,6 +167,7 @@ export declare const formattersCelo: {
165
167
  maxPriorityFeePerGas: bigint;
166
168
  accessList?: undefined;
167
169
  chainId?: number | undefined;
170
+ yParity: number;
168
171
  type: "cip64";
169
172
  feeCurrency: `0x${string}` | null;
170
173
  gatewayFee?: undefined;
@@ -184,6 +187,7 @@ export declare const formattersCelo: {
184
187
  typeHex: `0x${string}` | null;
185
188
  v: bigint;
186
189
  value: bigint;
190
+ yParity: number;
187
191
  gasPrice: bigint;
188
192
  maxFeePerGas?: undefined;
189
193
  maxPriorityFeePerGas?: undefined;
@@ -208,6 +212,7 @@ export declare const formattersCelo: {
208
212
  typeHex: `0x${string}` | null;
209
213
  v: bigint;
210
214
  value: bigint;
215
+ yParity: number;
211
216
  gasPrice: undefined;
212
217
  maxFeePerGas: bigint;
213
218
  maxPriorityFeePerGas: bigint;
@@ -232,6 +237,7 @@ export declare const formattersCelo: {
232
237
  typeHex: `0x${string}` | null;
233
238
  v: bigint;
234
239
  value: bigint;
240
+ yParity: number;
235
241
  gasPrice: undefined;
236
242
  maxFeePerGas: bigint;
237
243
  maxPriorityFeePerGas: bigint;
@@ -256,6 +262,7 @@ export declare const formattersCelo: {
256
262
  typeHex: `0x${string}` | null;
257
263
  v: bigint;
258
264
  value: bigint;
265
+ yParity: number;
259
266
  gasPrice: undefined;
260
267
  maxFeePerGas: bigint;
261
268
  maxPriorityFeePerGas: bigint;
@@ -280,6 +287,7 @@ export declare const formattersCelo: {
280
287
  typeHex: `0x${string}` | null;
281
288
  v: bigint;
282
289
  value: bigint;
290
+ yParity: number;
283
291
  gasPrice: bigint;
284
292
  maxFeePerGas: undefined;
285
293
  maxPriorityFeePerGas: undefined;
@@ -304,6 +312,7 @@ export declare const formattersCelo: {
304
312
  typeHex: `0x${string}` | null;
305
313
  v: bigint;
306
314
  value: bigint;
315
+ yParity: number;
307
316
  gasPrice?: undefined;
308
317
  maxFeePerGas: bigint;
309
318
  maxPriorityFeePerGas: bigint;
@@ -328,6 +337,7 @@ export declare const formattersCelo: {
328
337
  typeHex: `0x${string}` | null;
329
338
  v: bigint;
330
339
  value: bigint;
340
+ yParity: number;
331
341
  gasPrice?: undefined;
332
342
  maxFeePerGas: bigint;
333
343
  maxPriorityFeePerGas: bigint;
@@ -352,6 +362,7 @@ export declare const formattersCelo: {
352
362
  typeHex: `0x${string}` | null;
353
363
  v: bigint;
354
364
  value: bigint;
365
+ yParity: number;
355
366
  gasPrice?: undefined;
356
367
  maxFeePerGas: bigint;
357
368
  maxPriorityFeePerGas: bigint;
@@ -1 +1 @@
1
- {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../chains/celo/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAW/C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAElC,eAAe,EAEf,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAGnB,eAAO,MAAM,cAAc;;;;0BAKL,IAAI,EAAE,GAAG,kBAAkB,EAAE;;;;;;;;;;;;;;;;;;;;;0BAG/B,IAAI,EAAE,GAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEV,CAAA"}
@@ -78,45 +78,45 @@ export declare const base: import("../../types/utils.js").Assign<{
78
78
  };
79
79
  readonly transaction: {
80
80
  exclude: [] | undefined;
81
- format: (args: (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
81
+ format: (args: (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
82
82
  isSystemTx?: undefined;
83
83
  mint?: undefined;
84
84
  sourceHash?: undefined;
85
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
85
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
86
86
  isSystemTx?: boolean | undefined;
87
87
  mint?: `0x${string}` | undefined;
88
88
  sourceHash: `0x${string}`;
89
89
  type: "0x7e";
90
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
90
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
91
91
  isSystemTx?: undefined;
92
92
  mint?: undefined;
93
93
  sourceHash?: undefined;
94
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
94
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
95
95
  isSystemTx?: undefined;
96
96
  mint?: undefined;
97
97
  sourceHash?: undefined;
98
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
98
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
99
99
  isSystemTx?: undefined;
100
100
  mint?: undefined;
101
101
  sourceHash?: undefined;
102
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
102
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
103
103
  isSystemTx?: boolean | undefined;
104
104
  mint?: `0x${string}` | undefined;
105
105
  sourceHash: `0x${string}`;
106
106
  type: "0x7e";
107
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
107
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
108
108
  isSystemTx?: undefined;
109
109
  mint?: undefined;
110
110
  sourceHash?: undefined;
111
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
111
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
112
112
  isSystemTx?: undefined;
113
113
  mint?: undefined;
114
114
  sourceHash?: undefined;
115
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
115
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
116
116
  isSystemTx?: undefined;
117
117
  mint?: undefined;
118
118
  sourceHash?: undefined;
119
- }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
119
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
120
120
  isSystemTx?: boolean | undefined;
121
121
  mint?: `0x${string}` | undefined;
122
122
  sourceHash: `0x${string}`;
@@ -141,6 +141,7 @@ export declare const base: import("../../types/utils.js").Assign<{
141
141
  maxPriorityFeePerGas?: undefined;
142
142
  accessList?: undefined;
143
143
  chainId?: number | undefined;
144
+ yParity?: undefined;
144
145
  type: "legacy";
145
146
  isSystemTx?: undefined;
146
147
  mint?: undefined;
@@ -165,6 +166,7 @@ export declare const base: import("../../types/utils.js").Assign<{
165
166
  maxPriorityFeePerGas: bigint;
166
167
  accessList?: undefined;
167
168
  chainId?: number | undefined;
169
+ yParity: number;
168
170
  type: "deposit";
169
171
  isSystemTx?: boolean | undefined;
170
172
  mint?: bigint | undefined;
@@ -184,6 +186,7 @@ export declare const base: import("../../types/utils.js").Assign<{
184
186
  typeHex: `0x${string}` | null;
185
187
  v: bigint;
186
188
  value: bigint;
189
+ yParity: number;
187
190
  gasPrice: bigint;
188
191
  maxFeePerGas?: undefined;
189
192
  maxPriorityFeePerGas?: undefined;
@@ -208,6 +211,7 @@ export declare const base: import("../../types/utils.js").Assign<{
208
211
  typeHex: `0x${string}` | null;
209
212
  v: bigint;
210
213
  value: bigint;
214
+ yParity: number;
211
215
  gasPrice: undefined;
212
216
  maxFeePerGas: bigint;
213
217
  maxPriorityFeePerGas: bigint;
@@ -232,6 +236,7 @@ export declare const base: import("../../types/utils.js").Assign<{
232
236
  typeHex: `0x${string}` | null;
233
237
  v: bigint;
234
238
  value: bigint;
239
+ yParity: number;
235
240
  gasPrice: undefined;
236
241
  maxFeePerGas: bigint;
237
242
  maxPriorityFeePerGas: bigint;
@@ -256,6 +261,7 @@ export declare const base: import("../../types/utils.js").Assign<{
256
261
  typeHex: `0x${string}` | null;
257
262
  v: bigint;
258
263
  value: bigint;
264
+ yParity: number;
259
265
  gasPrice: bigint;
260
266
  maxFeePerGas: undefined;
261
267
  maxPriorityFeePerGas: undefined;
@@ -280,6 +286,7 @@ export declare const base: import("../../types/utils.js").Assign<{
280
286
  typeHex: `0x${string}` | null;
281
287
  v: bigint;
282
288
  value: bigint;
289
+ yParity: number;
283
290
  gasPrice?: undefined;
284
291
  maxFeePerGas: bigint;
285
292
  maxPriorityFeePerGas: bigint;
@@ -304,6 +311,7 @@ export declare const base: import("../../types/utils.js").Assign<{
304
311
  typeHex: `0x${string}` | null;
305
312
  v: bigint;
306
313
  value: bigint;
314
+ yParity: number;
307
315
  gasPrice?: undefined;
308
316
  maxFeePerGas: bigint;
309
317
  maxPriorityFeePerGas: bigint;