viem 1.18.9 → 1.19.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/CHANGELOG.md +22 -0
- package/README.md +1 -1
- package/_cjs/actions/test/dumpState.js +10 -0
- package/_cjs/actions/test/dumpState.js.map +1 -0
- package/_cjs/actions/test/loadState.js +11 -0
- package/_cjs/actions/test/loadState.js.map +1 -0
- package/_cjs/chains/definitions/chiliz.js +29 -0
- package/_cjs/chains/definitions/chiliz.js.map +1 -0
- package/_cjs/chains/definitions/lukso.js +31 -0
- package/_cjs/chains/definitions/lukso.js.map +1 -0
- package/_cjs/chains/definitions/spicy.js +44 -0
- package/_cjs/chains/definitions/spicy.js.map +1 -0
- package/_cjs/chains/index.js +10 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/decorators/test.js +4 -0
- package/_cjs/clients/decorators/test.js.map +1 -1
- package/_cjs/constants/bytes.js +5 -0
- package/_cjs/constants/bytes.js.map +1 -0
- package/_cjs/constants/strings.js +5 -0
- package/_cjs/constants/strings.js.map +1 -0
- package/_cjs/errors/node.js +11 -11
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/rpc.js +18 -18
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +10 -6
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/formatters/transaction.js +14 -0
- package/_cjs/utils/formatters/transaction.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js +2 -1
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js +20 -4
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/actions/test/dumpState.js +26 -0
- package/_esm/actions/test/dumpState.js.map +1 -0
- package/_esm/actions/test/loadState.js +27 -0
- package/_esm/actions/test/loadState.js.map +1 -0
- package/_esm/chains/definitions/chiliz.js +26 -0
- package/_esm/chains/definitions/chiliz.js.map +1 -0
- package/_esm/chains/definitions/lukso.js +28 -0
- package/_esm/chains/definitions/lukso.js.map +1 -0
- package/_esm/chains/definitions/spicy.js +41 -0
- package/_esm/chains/definitions/spicy.js.map +1 -0
- package/_esm/chains/index.js +3 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/decorators/test.js +4 -0
- package/_esm/clients/decorators/test.js.map +1 -1
- package/_esm/constants/bytes.js +2 -0
- package/_esm/constants/bytes.js.map +1 -0
- package/_esm/constants/strings.js +2 -0
- package/_esm/constants/strings.js.map +1 -0
- package/_esm/errors/node.js +22 -11
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/rpc.js +36 -18
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +2 -0
- package/_esm/index.js.map +1 -1
- package/_esm/utils/formatters/transaction.js +16 -0
- package/_esm/utils/formatters/transaction.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js +2 -1
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js +20 -6
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_types/actions/test/dumpState.d.ts +31 -0
- package/_types/actions/test/dumpState.d.ts.map +1 -0
- package/_types/actions/test/loadState.d.ts +34 -0
- package/_types/actions/test/loadState.d.ts.map +1 -0
- package/_types/chains/celo/formatters.d.ts +24 -13
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +18 -10
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/baseGoerli.d.ts +18 -10
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/baseSepolia.d.ts +18 -10
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +24 -13
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +24 -13
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +24 -13
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/chiliz.d.ts +25 -0
- package/_types/chains/definitions/chiliz.d.ts.map +1 -0
- package/_types/chains/definitions/lukso.d.ts +27 -0
- package/_types/chains/definitions/lukso.d.ts.map +1 -0
- package/_types/chains/definitions/optimism.d.ts +18 -10
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +18 -10
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/optimismSepolia.d.ts +18 -10
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/spicy.d.ts +28 -0
- package/_types/chains/definitions/spicy.d.ts.map +1 -0
- package/_types/chains/definitions/zkSync.d.ts +11 -0
- package/_types/chains/definitions/zkSync.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +11 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +18 -10
- package/_types/chains/definitions/zora.d.ts.map +1 -1
- package/_types/chains/definitions/zoraSepolia.d.ts +18 -10
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +18 -10
- package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
- package/_types/chains/index.d.ts +3 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/optimism/formatters.d.ts +18 -10
- package/_types/chains/optimism/formatters.d.ts.map +1 -1
- package/_types/chains/zksync/formatters.d.ts +11 -0
- package/_types/chains/zksync/formatters.d.ts.map +1 -1
- package/_types/clients/decorators/test.d.ts +41 -0
- package/_types/clients/decorators/test.d.ts.map +1 -1
- package/_types/constants/bytes.d.ts +2 -0
- package/_types/constants/bytes.d.ts.map +1 -0
- package/_types/constants/strings.d.ts +2 -0
- package/_types/constants/strings.d.ts.map +1 -0
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +2 -0
- package/_types/index.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +16 -0
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/rpc.d.ts +2 -2
- package/_types/types/rpc.d.ts.map +1 -1
- package/_types/types/transaction.d.ts +10 -1
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/types/utils.d.ts +8 -0
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
- package/actions/test/dumpState.ts +44 -0
- package/actions/test/loadState.ts +47 -0
- package/chains/definitions/chiliz.ts +26 -0
- package/chains/definitions/lukso.ts +28 -0
- package/chains/definitions/spicy.ts +41 -0
- package/chains/index.ts +3 -0
- package/clients/decorators/test.ts +50 -0
- package/constants/bytes.ts +2 -0
- package/constants/strings.ts +1 -0
- package/errors/version.ts +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types/eip1193.ts +16 -0
- package/types/rpc.ts +15 -6
- package/types/transaction.ts +10 -1
- package/types/utils.ts +11 -0
- package/utils/formatters/transaction.ts +17 -2
- package/utils/signature/hashMessage.ts +2 -1
- package/utils/transaction/serializeTransaction.ts +18 -12
@@ -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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AC5C,IAAI,WAAW,CAAC,OAAO;YAAE,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;QAE3D,iDAAiD;QACjD,IAAI,OAAO,YAAY,CAAC,CAAC,KAAK,QAAQ,EAAE;YACtC,IAAI,YAAY,CAAC,CAAC,KAAK,EAAE,IAAI,YAAY,CAAC,CAAC,KAAK,GAAG;gBAAE,OAAO,CAAC,CAAA;YAC7D,IAAI,YAAY,CAAC,CAAC,KAAK,EAAE,IAAI,YAAY,CAAC,CAAC,KAAK,GAAG;gBAAE,OAAO,CAAC,CAAA;YAC7D,IAAI,YAAY,CAAC,CAAC,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,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(
|
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":"
|
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
|
-
|
34
|
-
|
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
|
-
|
56
|
-
|
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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CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;QAC3B,IAAI,IAAI,IAAI;QACZ,oBAAoB;KACrB,CAAA;IAED,IAAI,SAAS;
|
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,EACP,GAAG,EACH,KAAK,EACL,EAAE,EACF,KAAK,EACL,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,IAAI,GACL,GAAG,WAAW,CAAA;IAEf,wBA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,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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../chains/definitions/base.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../chains/definitions/base.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8ChB,CAAA"}
|