@xyo-network/xl1-protocol-sdk 1.15.26 → 1.15.28
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/dist/neutral/block/primitives/blockFromBlockNumber.d.ts +1 -1
- package/dist/neutral/block/primitives/blockFromBlockNumber.d.ts.map +1 -1
- package/dist/neutral/block/primitives/index.d.ts +1 -0
- package/dist/neutral/block/primitives/index.d.ts.map +1 -1
- package/dist/neutral/block/primitives/toStepIdentityString.d.ts +3 -0
- package/dist/neutral/block/primitives/toStepIdentityString.d.ts.map +1 -0
- package/dist/neutral/config/Config.d.ts +2 -2
- package/dist/neutral/config/Log.d.ts +1 -1
- package/dist/neutral/driver/cache/LruCacheMap.d.ts +13 -0
- package/dist/neutral/driver/cache/LruCacheMap.d.ts.map +1 -0
- package/dist/neutral/driver/cache/index.d.ts +2 -0
- package/dist/neutral/driver/cache/index.d.ts.map +1 -0
- package/dist/neutral/driver/index.d.ts +3 -0
- package/dist/neutral/driver/index.d.ts.map +1 -0
- package/dist/neutral/driver/memory/MemoryMap.d.ts +12 -0
- package/dist/neutral/driver/memory/MemoryMap.d.ts.map +1 -0
- package/dist/neutral/driver/memory/index.d.ts +2 -0
- package/dist/neutral/driver/memory/index.d.ts.map +1 -0
- package/dist/neutral/eip-712/Payloads/EIP712Data.d.ts +0 -16
- package/dist/neutral/eip-712/Payloads/EIP712Data.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +1 -2
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +193 -62
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/instances/index.d.ts +0 -2
- package/dist/neutral/instances/index.d.ts.map +1 -1
- package/dist/neutral/model/ChainContext/ChainContext.d.ts +14 -4
- package/dist/neutral/model/ChainContext/ChainContext.d.ts.map +1 -1
- package/dist/neutral/model/ChainContext/ChainStateContext.d.ts +1 -1
- package/dist/neutral/model/ChainContext/ChainStateContext.d.ts.map +1 -1
- package/dist/neutral/model/ChainStake/ChainStakeRead.d.ts +12 -12
- package/dist/neutral/model/ChainStake/ChainStakeRead.d.ts.map +1 -1
- package/dist/neutral/model/StakeEvents.d.ts +1 -0
- package/dist/neutral/model/StakeEvents.d.ts.map +1 -1
- package/dist/neutral/primitives/index.d.ts +1 -0
- package/dist/neutral/primitives/index.d.ts.map +1 -1
- package/dist/neutral/primitives/timeBudget.d.ts +3 -0
- package/dist/neutral/primitives/timeBudget.d.ts.map +1 -0
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts +2 -2
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts +2 -2
- package/dist/neutral/transaction/primitives/transactionElevatedPayloads.d.ts.map +1 -1
- package/package.json +28 -27
- package/src/block/primitives/blockFromBlockNumber.ts +30 -27
- package/src/block/primitives/index.ts +1 -0
- package/src/block/primitives/toStepIdentityString.ts +5 -0
- package/src/block/primitives/transfers/transfersStepSummaryFromRange.ts +2 -2
- package/src/block/primitives/transfers/transfersSummary.ts +2 -2
- package/src/driver/cache/LruCacheMap.ts +42 -0
- package/src/driver/cache/index.ts +1 -0
- package/src/driver/index.ts +2 -0
- package/src/driver/memory/MemoryMap.ts +42 -0
- package/src/driver/memory/index.ts +1 -0
- package/src/eip-712/Payloads/EIP712Data.ts +0 -19
- package/src/index.ts +1 -2
- package/src/instances/index.ts +0 -2
- package/src/model/ChainContext/ChainContext.ts +49 -4
- package/src/model/ChainContext/ChainStateContext.ts +1 -1
- package/src/model/ChainStake/ChainStakeRead.ts +12 -12
- package/src/model/StakeEvents.ts +1 -0
- package/src/primitives/index.ts +1 -0
- package/src/primitives/summary/balances/balancesStepSummaryFromRange.ts +2 -2
- package/src/primitives/summary/balances/balancesSummary.ts +3 -3
- package/src/primitives/summary/transfers/transfersStepSummaryFromRange.ts +2 -2
- package/src/primitives/summary/transfers/transfersSummary.ts +3 -3
- package/src/primitives/timeBudget.ts +11 -0
- package/src/transaction/buildUnsignedTransaction.ts +4 -8
- package/src/transaction/primitives/transactionElevatedPayloads.ts +2 -2
- package/src/transaction/script.ts +3 -3
- package/dist/neutral/ChainServiceCollection.d.ts +0 -61
- package/dist/neutral/ChainServiceCollection.d.ts.map +0 -1
- package/dist/neutral/instances/ShiftedBigIntConfig.d.ts +0 -9
- package/dist/neutral/instances/ShiftedBigIntConfig.d.ts.map +0 -1
- package/dist/neutral/instances/XL1Amount.d.ts +0 -15
- package/dist/neutral/instances/XL1Amount.d.ts.map +0 -1
- package/src/ChainServiceCollection.ts +0 -66
- package/src/instances/ShiftedBigIntConfig.ts +0 -8
- package/src/instances/XL1Amount.ts +0 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
2
2
|
import type { BlockBoundWitness, XL1BlockNumber } from '@xyo-network/xl1-protocol';
|
|
3
|
-
import type
|
|
3
|
+
import { type ChainContextRead } from '../../model/index.ts';
|
|
4
4
|
export declare function blockFromBlockNumber(context: ChainContextRead, blockNumber: XL1BlockNumber): Promise<WithStorageMeta<BlockBoundWitness>>;
|
|
5
5
|
//# sourceMappingURL=blockFromBlockNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockFromBlockNumber.d.ts","sourceRoot":"","sources":["../../../../src/block/primitives/blockFromBlockNumber.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAGlF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"blockFromBlockNumber.d.ts","sourceRoot":"","sources":["../../../../src/block/primitives/blockFromBlockNumber.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAGlF,OAAO,EAAE,KAAK,gBAAgB,EAA4B,MAAM,sBAAsB,CAAA;AAEtF,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAgC9I"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/block/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,YAAY,CAAA;AAC1B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/block/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,YAAY,CAAA;AAC1B,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toStepIdentityString.d.ts","sourceRoot":"","sources":["../../../../src/block/primitives/toStepIdentityString.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEjF,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,YAAY,GAAG,kBAAkB,CAEtF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
export declare const Xl1CommonConfigSchema: z.ZodObject<{
|
|
3
3
|
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
4
|
+
info: "info";
|
|
4
5
|
error: "error";
|
|
5
6
|
warn: "warn";
|
|
6
|
-
info: "info";
|
|
7
7
|
log: "log";
|
|
8
8
|
debug: "debug";
|
|
9
9
|
trace: "trace";
|
|
@@ -98,9 +98,9 @@ export declare const ConfigZod: z.ZodObject<{
|
|
|
98
98
|
}>, unknown>>>>>;
|
|
99
99
|
}, z.core.$strip>>;
|
|
100
100
|
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
101
|
+
info: "info";
|
|
101
102
|
error: "error";
|
|
102
103
|
warn: "warn";
|
|
103
|
-
info: "info";
|
|
104
104
|
log: "log";
|
|
105
105
|
debug: "debug";
|
|
106
106
|
trace: "trace";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LRUCache } from 'lru-cache';
|
|
2
|
+
import type { SynchronousMap } from '../../map/index.ts';
|
|
3
|
+
export declare class LruCacheMap<K extends {}, V extends {} | string | number | bigint, FC = () => void> implements SynchronousMap<K, V> {
|
|
4
|
+
private lruCache;
|
|
5
|
+
constructor(options?: LRUCache.Options<K, V, FC>);
|
|
6
|
+
clear(): void;
|
|
7
|
+
delete(id: K): boolean;
|
|
8
|
+
get(id: K): V | undefined;
|
|
9
|
+
getMany(id: K[]): V[];
|
|
10
|
+
has(id: K): boolean;
|
|
11
|
+
set(id: K, data: V): void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=LruCacheMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LruCacheMap.d.ts","sourceRoot":"","sources":["../../../../src/driver/cache/LruCacheMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,qBAAa,WAAW,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,IAAI,CAAE,YAAW,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9H,OAAO,CAAC,QAAQ,CAAoB;gBAExB,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IAIhD,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAItB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAIzB,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE;IAWrB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAInB,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;CAGnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/driver/cache/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/driver/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SynchronousMap } from '../../map/index.ts';
|
|
2
|
+
export declare class MemoryMap<K extends {}, V = {}> implements SynchronousMap<K, V> {
|
|
3
|
+
private map;
|
|
4
|
+
constructor();
|
|
5
|
+
clear(): void;
|
|
6
|
+
delete(id: K): boolean;
|
|
7
|
+
get(id: K): V | undefined;
|
|
8
|
+
getMany(ids: K[]): V[];
|
|
9
|
+
has(id: K): boolean;
|
|
10
|
+
set(id: K, data: V): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=MemoryMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryMap.d.ts","sourceRoot":"","sources":["../../../../src/driver/memory/MemoryMap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,qBAAa,SAAS,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,EAAE,CAAE,YAAW,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1E,OAAO,CAAC,GAAG,CAAW;;IAMtB,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAItB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAIzB,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE;IAWtB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAInB,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;CAGnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/driver/memory/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -15,25 +15,9 @@ export declare const EIP712DataPayloadFieldsZod: z.ZodObject<{
|
|
|
15
15
|
values: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
16
16
|
}, z.z.core.$strip>;
|
|
17
17
|
export type EIP712DataPayloadFields = z.infer<typeof EIP712DataPayloadFieldsZod>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use EIP712DataPayloadFields instead
|
|
20
|
-
*/
|
|
21
|
-
export type EIP712PayloadFields = EIP712DataPayloadFields;
|
|
22
18
|
export declare const EIP712DataPayloadSchema: "network.xyo.chains.ethereum.eip712.data";
|
|
23
19
|
export type EIP712DataPayloadSchema = typeof EIP712DataPayloadSchema;
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated Use EIP712DataPayloadSchema instead
|
|
26
|
-
*/
|
|
27
|
-
export declare const EIP712PayloadSchema: "network.xyo.chains.ethereum.eip712.data";
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use EIP712DataPayloadSchema instead
|
|
30
|
-
*/
|
|
31
|
-
export type EIP712PayloadSchema = typeof EIP712DataPayloadSchema;
|
|
32
20
|
export type EIP712DataPayload = Payload<EIP712DataPayloadFields, EIP712DataPayloadSchema>;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use EIP712DataPayload instead
|
|
35
|
-
*/
|
|
36
|
-
export type EIP712Payload = EIP712DataPayload;
|
|
37
21
|
export declare const isEIP712DataPayload: (x?: unknown | null) => x is EIP712DataPayload;
|
|
38
22
|
export declare const asEIP712DataPayload: import("@xylabs/object").AsTypeFunction<EIP712DataPayload>;
|
|
39
23
|
//# sourceMappingURL=EIP712Data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EIP712Data.d.ts","sourceRoot":"","sources":["../../../../src/eip-712/Payloads/EIP712Data.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,CAAC,MAAM,KAAK,CAAA;AAMnB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;mBAIrC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF
|
|
1
|
+
{"version":3,"file":"EIP712Data.d.ts","sourceRoot":"","sources":["../../../../src/eip-712/Payloads/EIP712Data.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,CAAC,MAAM,KAAK,CAAA;AAMnB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;mBAIrC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF,eAAO,MAAM,uBAAuB,EAAG,yCAAkD,CAAA;AACzF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF,eAAO,MAAM,mBAAmB,gDAG/B,CAAA;AAED,eAAO,MAAM,mBAAmB,4DAA8C,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './block/index.ts';
|
|
2
|
-
export * from './ChainServiceCollection.ts';
|
|
3
2
|
export * from './ChainServiceCollectionV2.ts';
|
|
4
3
|
export * from './config/index.ts';
|
|
5
4
|
export * from './constants.ts';
|
|
5
|
+
export * from './driver/index.ts';
|
|
6
6
|
export * from './eip-712/index.ts';
|
|
7
7
|
export * from './instances/index.ts';
|
|
8
8
|
export * from './map/index.ts';
|
|
@@ -10,7 +10,6 @@ export * from './model/index.ts';
|
|
|
10
10
|
export * from './multipliers.ts';
|
|
11
11
|
export * from './payloads/index.ts';
|
|
12
12
|
export * from './primitives/index.ts';
|
|
13
|
-
export * from './primitives/index.ts';
|
|
14
13
|
export * from './SignedBigInt.ts';
|
|
15
14
|
export * from './time/index.ts';
|
|
16
15
|
export * from './transaction/index.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -112,37 +112,153 @@ var tryHydrateBlock = /* @__PURE__ */ __name(async (archivist, hash, maxDepth =
|
|
|
112
112
|
import { asHash } from "@xylabs/hex";
|
|
113
113
|
import { toSafeJsonString } from "@xylabs/object";
|
|
114
114
|
import { asBlockBoundWitnessWithStorageMeta as asBlockBoundWitnessWithStorageMeta2, StepSizes } from "@xyo-network/xl1-protocol";
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
115
|
+
|
|
116
|
+
// src/model/ChainContext/ChainContext.ts
|
|
117
|
+
import { isDefined as isDefined2, isUndefined } from "@xylabs/typeof";
|
|
118
|
+
|
|
119
|
+
// src/driver/cache/LruCacheMap.ts
|
|
120
|
+
import { LRUCache } from "lru-cache";
|
|
121
|
+
var LruCacheMap = class {
|
|
122
|
+
static {
|
|
123
|
+
__name(this, "LruCacheMap");
|
|
124
|
+
}
|
|
125
|
+
lruCache;
|
|
126
|
+
constructor(options) {
|
|
127
|
+
this.lruCache = new LRUCache(options ?? {
|
|
128
|
+
max: 5e3
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
clear() {
|
|
132
|
+
this.lruCache.clear();
|
|
133
|
+
}
|
|
134
|
+
delete(id) {
|
|
135
|
+
return this.lruCache.delete(id);
|
|
136
|
+
}
|
|
137
|
+
get(id) {
|
|
138
|
+
return this.lruCache.get(id);
|
|
139
|
+
}
|
|
140
|
+
getMany(id) {
|
|
141
|
+
const results = [];
|
|
142
|
+
for (const key of id) {
|
|
143
|
+
const value = this.lruCache.get(key);
|
|
144
|
+
if (value !== void 0) {
|
|
145
|
+
results.push(value);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return results;
|
|
149
|
+
}
|
|
150
|
+
has(id) {
|
|
151
|
+
return this.lruCache.has(id);
|
|
152
|
+
}
|
|
153
|
+
set(id, data) {
|
|
154
|
+
this.lruCache.set(id, data);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// src/driver/memory/MemoryMap.ts
|
|
159
|
+
import { isDefined } from "@xylabs/typeof";
|
|
160
|
+
var MemoryMap = class {
|
|
161
|
+
static {
|
|
162
|
+
__name(this, "MemoryMap");
|
|
163
|
+
}
|
|
164
|
+
map;
|
|
165
|
+
constructor() {
|
|
166
|
+
this.map = /* @__PURE__ */ new Map();
|
|
167
|
+
}
|
|
168
|
+
clear() {
|
|
169
|
+
this.map.clear();
|
|
170
|
+
}
|
|
171
|
+
delete(id) {
|
|
172
|
+
return this.map.delete(id);
|
|
123
173
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
174
|
+
get(id) {
|
|
175
|
+
return this.map.get(id);
|
|
176
|
+
}
|
|
177
|
+
getMany(ids) {
|
|
178
|
+
const results = [];
|
|
179
|
+
for (const id of ids) {
|
|
180
|
+
const data = this.map.get(id);
|
|
181
|
+
if (isDefined(data)) {
|
|
182
|
+
results.push(data);
|
|
132
183
|
}
|
|
133
184
|
}
|
|
134
|
-
|
|
135
|
-
|
|
185
|
+
return results;
|
|
186
|
+
}
|
|
187
|
+
has(id) {
|
|
188
|
+
return this.map.has(id);
|
|
189
|
+
}
|
|
190
|
+
set(id, data) {
|
|
191
|
+
this.map.set(id, data);
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
// src/model/ChainContext/ChainContext.ts
|
|
196
|
+
function contextCache(context, name, create) {
|
|
197
|
+
if (!context.caches) {
|
|
198
|
+
context.caches = {};
|
|
199
|
+
}
|
|
200
|
+
if (isUndefined(context.caches[name])) {
|
|
201
|
+
context.caches[name] = create?.() ?? new MemoryMap();
|
|
202
|
+
}
|
|
203
|
+
return context.caches[name];
|
|
204
|
+
}
|
|
205
|
+
__name(contextCache, "contextCache");
|
|
206
|
+
async function withContextCacheResponse(context, name, key, func, options) {
|
|
207
|
+
const cache = contextCache(context, name, () => new LruCacheMap({
|
|
208
|
+
max: options?.max ?? 1e4
|
|
209
|
+
}));
|
|
210
|
+
const cacheResult = await cache.get(key);
|
|
211
|
+
if (isDefined2(cacheResult)) {
|
|
212
|
+
return cacheResult;
|
|
213
|
+
}
|
|
214
|
+
const result = await func();
|
|
215
|
+
await cache.set(key, result);
|
|
216
|
+
return result;
|
|
217
|
+
}
|
|
218
|
+
__name(withContextCacheResponse, "withContextCacheResponse");
|
|
219
|
+
|
|
220
|
+
// src/model/StakeEvents.ts
|
|
221
|
+
var StakeEventNames = [
|
|
222
|
+
"StakeAdded",
|
|
223
|
+
"StakeRemoved",
|
|
224
|
+
"StakeWithdrawn"
|
|
225
|
+
];
|
|
226
|
+
|
|
227
|
+
// src/block/primitives/blockFromBlockNumber.ts
|
|
228
|
+
async function blockFromBlockNumber(context, blockNumber) {
|
|
229
|
+
const cacheKey = `${blockNumber}`;
|
|
230
|
+
return await withContextCacheResponse(context, "blockFromBlockNumber", cacheKey, async () => {
|
|
231
|
+
const [headHash] = await context.head();
|
|
232
|
+
const result = await context.store.chainMap.get(headHash);
|
|
233
|
+
let currentBlock = asBlockBoundWitnessWithStorageMeta2(result, () => `Head block not found for hash: ${headHash}`, {
|
|
136
234
|
required: true
|
|
137
235
|
});
|
|
138
|
-
if (currentBlock.block === blockNumber) {
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
236
|
if (currentBlock.block < blockNumber) {
|
|
142
|
-
throw new Error(`Block number ${blockNumber} is
|
|
237
|
+
throw new Error(`Error: Block number ${blockNumber} is greater than head ${currentBlock.block}.`);
|
|
143
238
|
}
|
|
144
|
-
|
|
145
|
-
|
|
239
|
+
while (currentBlock.block > blockNumber) {
|
|
240
|
+
let jumpHash = currentBlock.previous;
|
|
241
|
+
let jumpBlockNumber = currentBlock.block - 1;
|
|
242
|
+
for (const [step, stepSize2] of StepSizes.entries()) {
|
|
243
|
+
const possibleJumpBlockNumber = currentBlock.block - currentBlock.block % stepSize2 - 1;
|
|
244
|
+
if (possibleJumpBlockNumber >= blockNumber && possibleJumpBlockNumber <= jumpBlockNumber) {
|
|
245
|
+
jumpBlockNumber = possibleJumpBlockNumber;
|
|
246
|
+
jumpHash = asHash(currentBlock.step_hashes.at(step), () => `Step hash not found for step ${step} in block ${currentBlock.block}`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
const newBlock = await context.store.chainMap.get(asHash(jumpHash, () => `Jump hash not found for block number [${blockNumber}]: ${jumpBlockNumber} ${toSafeJsonString(currentBlock, 10)}`));
|
|
250
|
+
currentBlock = asBlockBoundWitnessWithStorageMeta2(newBlock, () => `Block not found for hash: ${jumpHash}`, {
|
|
251
|
+
required: true
|
|
252
|
+
});
|
|
253
|
+
if (currentBlock.block === blockNumber) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
if (currentBlock.block < blockNumber) {
|
|
257
|
+
throw new Error(`Block number ${blockNumber} is not a valid step block number for block ${headHash}.`);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return currentBlock;
|
|
261
|
+
});
|
|
146
262
|
}
|
|
147
263
|
__name(blockFromBlockNumber, "blockFromBlockNumber");
|
|
148
264
|
|
|
@@ -228,6 +344,12 @@ function isReadWriteArchivist(value) {
|
|
|
228
344
|
}
|
|
229
345
|
__name(isReadWriteArchivist, "isReadWriteArchivist");
|
|
230
346
|
|
|
347
|
+
// src/block/primitives/toStepIdentityString.ts
|
|
348
|
+
function toStepIdentityString({ block, step }) {
|
|
349
|
+
return `${block}|${step}`;
|
|
350
|
+
}
|
|
351
|
+
__name(toStepIdentityString, "toStepIdentityString");
|
|
352
|
+
|
|
231
353
|
// src/block/primitives/transfers/transfersStepSummaryFromRange.ts
|
|
232
354
|
import { assertEx as assertEx4 } from "@xylabs/assert";
|
|
233
355
|
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
@@ -358,7 +480,7 @@ var toPositiveBigInt = /* @__PURE__ */ __name((value) => {
|
|
|
358
480
|
async function transfersStepSummaryFromRange(context, range) {
|
|
359
481
|
const frameHeadHash = await hashFromBlockNumber(context, range[1]);
|
|
360
482
|
const frameSize = range[1] - range[0] + 1;
|
|
361
|
-
const
|
|
483
|
+
const [headHash] = await context.head();
|
|
362
484
|
let result = void 0;
|
|
363
485
|
if (frameSize === 1) {
|
|
364
486
|
const hash = await hashFromBlockNumber(context, range[0]);
|
|
@@ -372,7 +494,7 @@ async function transfersStepSummaryFromRange(context, range) {
|
|
|
372
494
|
}
|
|
373
495
|
result = {
|
|
374
496
|
schema: TransfersStepSummarySchema,
|
|
375
|
-
hash:
|
|
497
|
+
hash: headHash,
|
|
376
498
|
stepSize: -1,
|
|
377
499
|
transfers
|
|
378
500
|
};
|
|
@@ -424,16 +546,16 @@ __name(transfersStepSummaryFromRange, "transfersStepSummaryFromRange");
|
|
|
424
546
|
// src/block/primitives/transfers/transfersSummary.ts
|
|
425
547
|
import { asAddress } from "@xylabs/hex";
|
|
426
548
|
import { spanRootAsync } from "@xylabs/telemetry";
|
|
427
|
-
import { isDefined } from "@xylabs/typeof";
|
|
549
|
+
import { isDefined as isDefined3 } from "@xylabs/typeof";
|
|
428
550
|
import { asBlockBoundWitnessWithStorageMeta as asBlockBoundWitnessWithStorageMeta3, asXL1BlockNumber as asXL1BlockNumber2 } from "@xyo-network/xl1-protocol";
|
|
429
551
|
async function transfersSummary(context) {
|
|
430
552
|
return await spanRootAsync("transferSummary", async () => {
|
|
431
|
-
const
|
|
432
|
-
const headResult = await context.store.chainMap.get(
|
|
553
|
+
const [headHash] = await context.head();
|
|
554
|
+
const headResult = await context.store.chainMap.get(headHash);
|
|
433
555
|
const headBoundWitness = asBlockBoundWitnessWithStorageMeta3(headResult, () => `Head block not found for hash: ${context.head}`, {
|
|
434
556
|
required: true
|
|
435
557
|
});
|
|
436
|
-
const rangeStart = asXL1BlockNumber2(
|
|
558
|
+
const rangeStart = asXL1BlockNumber2(isDefined3(context.windowSize) ? Math.max(headBoundWitness.block - context.windowSize + 1, 0) : 0);
|
|
437
559
|
const ranges = deepCalculateFramesFromRange([
|
|
438
560
|
rangeStart,
|
|
439
561
|
asXL1BlockNumber2(headBoundWitness.block)
|
|
@@ -703,12 +825,12 @@ var RewardRedemptionApiConfigZod = z9.object({
|
|
|
703
825
|
});
|
|
704
826
|
|
|
705
827
|
// src/config/storage/driver/Mongo.ts
|
|
706
|
-
import { isDefined as
|
|
828
|
+
import { isDefined as isDefined4, isUndefined as isUndefined2 } from "@xylabs/typeof";
|
|
707
829
|
import { globalRegistry as globalRegistry9 } from "zod";
|
|
708
830
|
import * as z10 from "zod";
|
|
709
831
|
var hasMongoConfig = /* @__PURE__ */ __name((config) => {
|
|
710
|
-
if (
|
|
711
|
-
return
|
|
832
|
+
if (isUndefined2(config)) return false;
|
|
833
|
+
return isDefined4(config.connectionString) && isDefined4(config.database) && isDefined4(config.domain) && isDefined4(config.password) && isDefined4(config.username);
|
|
712
834
|
}, "hasMongoConfig");
|
|
713
835
|
var MongoConfigZod = z10.object({
|
|
714
836
|
// TODO: Create from other arguments
|
|
@@ -889,7 +1011,6 @@ var EIP712DataPayloadFieldsZod = z17.object({
|
|
|
889
1011
|
values: TypedDataValueZod
|
|
890
1012
|
});
|
|
891
1013
|
var EIP712DataPayloadSchema = "network.xyo.chains.ethereum.eip712.data";
|
|
892
|
-
var EIP712PayloadSchema = EIP712DataPayloadSchema;
|
|
893
1014
|
var isEIP712DataPayload = isPayloadOfZodType(EIP712DataPayloadFieldsZod, EIP712DataPayloadSchema);
|
|
894
1015
|
var asEIP712DataPayload = AsObjectFactory4.create(isEIP712DataPayload);
|
|
895
1016
|
|
|
@@ -924,25 +1045,18 @@ var signEIP712Message = /* @__PURE__ */ __name(async (signer, data) => {
|
|
|
924
1045
|
|
|
925
1046
|
// src/eip-712/verify.ts
|
|
926
1047
|
import { asHash as asHash2 } from "@xylabs/hex";
|
|
927
|
-
import { isUndefined as
|
|
1048
|
+
import { isUndefined as isUndefined3 } from "@xylabs/typeof";
|
|
928
1049
|
import { PayloadBuilder as PayloadBuilder3 } from "@xyo-network/payload-builder";
|
|
929
1050
|
import { verifyTypedData } from "ethers/hash";
|
|
930
1051
|
var verifyEIP712Message = /* @__PURE__ */ __name(async (data, sig) => {
|
|
931
1052
|
const { address, signature, hash } = sig;
|
|
932
1053
|
const { schema, ...fields } = data;
|
|
933
1054
|
const signedHash = asHash2(hash);
|
|
934
|
-
if (
|
|
1055
|
+
if (isUndefined3(signedHash) || signedHash !== await PayloadBuilder3.hash(data)) return false;
|
|
935
1056
|
const recoveredAddress = verifyTypedData(fields.domain, fields.types, fields.values, signature);
|
|
936
1057
|
return recoveredAddress.toLowerCase() === address.toLowerCase();
|
|
937
1058
|
}, "verifyEIP712Message");
|
|
938
1059
|
|
|
939
|
-
// src/model/StakeEvents.ts
|
|
940
|
-
var StakeEventNames = [
|
|
941
|
-
"StakeAdded",
|
|
942
|
-
"StakeRemoved",
|
|
943
|
-
"StakeWithdrawn"
|
|
944
|
-
];
|
|
945
|
-
|
|
946
1060
|
// src/multipliers.ts
|
|
947
1061
|
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
948
1062
|
var XL1_NETWORK_STAKING_GENESIS_PERIOD_TOTAL_EARNED_REWARDS = asAttoXL1(1343884111859145740576652n);
|
|
@@ -956,7 +1070,7 @@ var RewardMultipliers = {
|
|
|
956
1070
|
};
|
|
957
1071
|
|
|
958
1072
|
// src/primitives/readPayloadMapFromStore.ts
|
|
959
|
-
import { isDefined as
|
|
1073
|
+
import { isDefined as isDefined5 } from "@xylabs/typeof";
|
|
960
1074
|
function readPayloadMapFromStore(store) {
|
|
961
1075
|
if (isReadArchivist(store)) {
|
|
962
1076
|
return {
|
|
@@ -969,7 +1083,7 @@ function readPayloadMapFromStore(store) {
|
|
|
969
1083
|
return await store.get(hashes);
|
|
970
1084
|
}, "getMany"),
|
|
971
1085
|
has: /* @__PURE__ */ __name(async (hash) => {
|
|
972
|
-
return
|
|
1086
|
+
return isDefined5((await store.get([
|
|
973
1087
|
hash
|
|
974
1088
|
]))[0]);
|
|
975
1089
|
}, "has")
|
|
@@ -994,10 +1108,10 @@ __name(completedStepRewardAddress, "completedStepRewardAddress");
|
|
|
994
1108
|
|
|
995
1109
|
// src/primitives/step/derivedReceiveAddress.ts
|
|
996
1110
|
import { toAddress as toAddress3 } from "@xylabs/hex";
|
|
997
|
-
import { isDefined as
|
|
1111
|
+
import { isDefined as isDefined6 } from "@xylabs/typeof";
|
|
998
1112
|
import { keccak256 as keccak2562 } from "ethers";
|
|
999
1113
|
function derivedReceiveAddress(address, scope) {
|
|
1000
|
-
const addressKey = new TextEncoder().encode(
|
|
1114
|
+
const addressKey = new TextEncoder().encode(isDefined6(scope) ? `${scope}|${address}` : address);
|
|
1001
1115
|
return toAddress3(keccak2562(addressKey).slice(-40), {
|
|
1002
1116
|
prefix: false
|
|
1003
1117
|
});
|
|
@@ -1047,7 +1161,7 @@ import { StepSizes as StepSizes7 } from "@xyo-network/xl1-protocol";
|
|
|
1047
1161
|
async function balancesStepSummaryFromRange(context, range) {
|
|
1048
1162
|
const frameHeadHash = await hashFromBlockNumber(context, range[1]);
|
|
1049
1163
|
const frameSize = range[1] - range[0] + 1;
|
|
1050
|
-
const
|
|
1164
|
+
const [headHash] = await context.head();
|
|
1051
1165
|
let result = void 0;
|
|
1052
1166
|
if (frameSize === 1) {
|
|
1053
1167
|
const hash = await hashFromBlockNumber(context, range[0]);
|
|
@@ -1058,7 +1172,7 @@ async function balancesStepSummaryFromRange(context, range) {
|
|
|
1058
1172
|
}
|
|
1059
1173
|
result = {
|
|
1060
1174
|
schema: BalancesStepSummarySchema,
|
|
1061
|
-
hash:
|
|
1175
|
+
hash: headHash,
|
|
1062
1176
|
stepSize: -1,
|
|
1063
1177
|
balances
|
|
1064
1178
|
};
|
|
@@ -1104,16 +1218,16 @@ __name(balancesStepSummaryFromRange, "balancesStepSummaryFromRange");
|
|
|
1104
1218
|
// src/primitives/summary/balances/balancesSummary.ts
|
|
1105
1219
|
import { asAddress as asAddress4 } from "@xylabs/hex";
|
|
1106
1220
|
import { spanRootAsync as spanRootAsync2 } from "@xylabs/telemetry";
|
|
1107
|
-
import { isDefined as
|
|
1221
|
+
import { isDefined as isDefined7 } from "@xylabs/typeof";
|
|
1108
1222
|
import { asBlockBoundWitnessWithStorageMeta as asBlockBoundWitnessWithStorageMeta4, asXL1BlockNumber as asXL1BlockNumber3 } from "@xyo-network/xl1-protocol";
|
|
1109
1223
|
async function balancesSummary(context) {
|
|
1110
1224
|
return await spanRootAsync2("balanceSummary", async () => {
|
|
1111
|
-
const
|
|
1112
|
-
const headResult = await context.store.chainMap.get(
|
|
1113
|
-
const headBoundWitness = asBlockBoundWitnessWithStorageMeta4(headResult, () => `Head block not found for hash: ${
|
|
1225
|
+
const [headHash] = await context.head();
|
|
1226
|
+
const headResult = await context.store.chainMap.get(headHash);
|
|
1227
|
+
const headBoundWitness = asBlockBoundWitnessWithStorageMeta4(headResult, () => `Head block not found for hash: ${headHash}`, {
|
|
1114
1228
|
required: true
|
|
1115
1229
|
});
|
|
1116
|
-
const rangeStart = asXL1BlockNumber3(
|
|
1230
|
+
const rangeStart = asXL1BlockNumber3(isDefined7(context.windowSize) ? Math.max(headBoundWitness.block - context.windowSize + 1, 0) : 0);
|
|
1117
1231
|
const ranges = deepCalculateFramesFromRange([
|
|
1118
1232
|
rangeStart,
|
|
1119
1233
|
asXL1BlockNumber3(headBoundWitness.block)
|
|
@@ -1131,6 +1245,18 @@ async function balancesSummary(context) {
|
|
|
1131
1245
|
}
|
|
1132
1246
|
__name(balancesSummary, "balancesSummary");
|
|
1133
1247
|
|
|
1248
|
+
// src/primitives/timeBudget.ts
|
|
1249
|
+
async function timeBudget(name, logger, func, budget) {
|
|
1250
|
+
const start = Date.now();
|
|
1251
|
+
const result = await func();
|
|
1252
|
+
const duration = Date.now() - start;
|
|
1253
|
+
if (duration > budget) {
|
|
1254
|
+
logger?.warn(`Function [${name}] execution exceeded budget: ${duration}ms > ${budget}ms`);
|
|
1255
|
+
}
|
|
1256
|
+
return result;
|
|
1257
|
+
}
|
|
1258
|
+
__name(timeBudget, "timeBudget");
|
|
1259
|
+
|
|
1134
1260
|
// src/primitives/transaction/elevatedPayloads.ts
|
|
1135
1261
|
import { isAllowedBlockPayload } from "@xyo-network/xl1-protocol";
|
|
1136
1262
|
var ELEVATE_OPCODE = "elevate";
|
|
@@ -1250,15 +1376,15 @@ async function buildUnsignedTransaction(chain, onChainPayloads, offChainPayloads
|
|
|
1250
1376
|
...offChainPayloads
|
|
1251
1377
|
]).build();
|
|
1252
1378
|
return [
|
|
1253
|
-
|
|
1254
|
-
|
|
1379
|
+
tx,
|
|
1380
|
+
txPayloads
|
|
1255
1381
|
];
|
|
1256
1382
|
}
|
|
1257
1383
|
__name(buildUnsignedTransaction, "buildUnsignedTransaction");
|
|
1258
1384
|
|
|
1259
1385
|
// src/transaction/confirmSubmittedTransaction.ts
|
|
1260
1386
|
import { delay } from "@xylabs/delay";
|
|
1261
|
-
import { isDefined as
|
|
1387
|
+
import { isDefined as isDefined8 } from "@xylabs/typeof";
|
|
1262
1388
|
import { PayloadBuilder as PayloadBuilder7 } from "@xyo-network/payload-builder";
|
|
1263
1389
|
var DEFAULT_CONFIRMATION_ATTEMPTS = 20;
|
|
1264
1390
|
var DEFAULT_DELAY_BETWEEN_ATTEMPTS = 1e3;
|
|
@@ -1269,7 +1395,7 @@ var confirmSubmittedTransaction = /* @__PURE__ */ __name(async (viewer, transact
|
|
|
1269
1395
|
let attempts = 0;
|
|
1270
1396
|
while (true) {
|
|
1271
1397
|
const tx = await viewer.transactionByHash(txBWHash) ?? void 0;
|
|
1272
|
-
if (
|
|
1398
|
+
if (isDefined8(tx)) {
|
|
1273
1399
|
options?.logger?.log("\u2705 Transaction confirmed:", txBWHash, "\n");
|
|
1274
1400
|
return tx;
|
|
1275
1401
|
} else {
|
|
@@ -1413,7 +1539,7 @@ __name(transactionRequiredGas, "transactionRequiredGas");
|
|
|
1413
1539
|
import { filterAs as filterAs2 } from "@xylabs/array";
|
|
1414
1540
|
import { assertEx as assertEx10 } from "@xylabs/assert";
|
|
1415
1541
|
import { asHash as asHash4 } from "@xylabs/hex";
|
|
1416
|
-
import {
|
|
1542
|
+
import { isAllowedBlockPayloadWithHashMeta } from "@xyo-network/xl1-protocol";
|
|
1417
1543
|
var tryExtractElevatedHashesFromScript = /* @__PURE__ */ __name((strings) => {
|
|
1418
1544
|
const hashes = strings.filter((str) => str.startsWith("elevate|")).map((str) => str.split("|")[1]);
|
|
1419
1545
|
return filterAs2(hashes, (h) => asHash4(h));
|
|
@@ -1428,13 +1554,13 @@ var tryExtractElevatedHashes = /* @__PURE__ */ __name((tx) => {
|
|
|
1428
1554
|
const [bw, payloads] = tx;
|
|
1429
1555
|
const { script } = bw;
|
|
1430
1556
|
const hashes = script ? tryExtractElevatedHashesFromScript(script) : [];
|
|
1431
|
-
return payloads.filter((p) => hashes.includes(p._hash)).filter(
|
|
1557
|
+
return payloads.filter((p) => hashes.includes(p._hash)).filter(isAllowedBlockPayloadWithHashMeta);
|
|
1432
1558
|
}, "tryExtractElevatedHashes");
|
|
1433
1559
|
var extractElevatedHashes = /* @__PURE__ */ __name((tx) => {
|
|
1434
1560
|
const [bw, payloads] = tx;
|
|
1435
1561
|
const { script } = bw;
|
|
1436
1562
|
const hashes = script ? tryExtractElevatedHashesFromScript(script) : [];
|
|
1437
|
-
const filtered = payloads.filter((p) => hashes.includes(p._hash)).filter(
|
|
1563
|
+
const filtered = payloads.filter((p) => hashes.includes(p._hash)).filter(isAllowedBlockPayloadWithHashMeta);
|
|
1438
1564
|
assertEx10(filtered.length === hashes.length, () => "Invalid elevated hashes");
|
|
1439
1565
|
return filtered;
|
|
1440
1566
|
}, "extractElevatedHashes");
|
|
@@ -1501,11 +1627,12 @@ export {
|
|
|
1501
1627
|
DEFAULT_WALLET_PATH,
|
|
1502
1628
|
EIP712DataPayloadFieldsZod,
|
|
1503
1629
|
EIP712DataPayloadSchema,
|
|
1504
|
-
EIP712PayloadSchema,
|
|
1505
1630
|
EIP712SignaturePayloadFieldsZod,
|
|
1506
1631
|
EIP712SignaturePayloadSchema,
|
|
1507
1632
|
GlobalMetaSchema,
|
|
1508
1633
|
JSONSchemaMetaSchema,
|
|
1634
|
+
LruCacheMap,
|
|
1635
|
+
MemoryMap,
|
|
1509
1636
|
MnemonicStringZod,
|
|
1510
1637
|
RewardMultipliers,
|
|
1511
1638
|
StakeEventNames,
|
|
@@ -1542,6 +1669,7 @@ export {
|
|
|
1542
1669
|
calculateFramesFromRange,
|
|
1543
1670
|
completedStepRewardAddress,
|
|
1544
1671
|
confirmSubmittedTransaction,
|
|
1672
|
+
contextCache,
|
|
1545
1673
|
crackOperation,
|
|
1546
1674
|
crackOperations,
|
|
1547
1675
|
deepCalculateFramesFromRange,
|
|
@@ -1583,8 +1711,10 @@ export {
|
|
|
1583
1711
|
signTransaction,
|
|
1584
1712
|
stepBlockRange,
|
|
1585
1713
|
stepTransferIndex,
|
|
1714
|
+
timeBudget,
|
|
1586
1715
|
toPositiveBigInt,
|
|
1587
1716
|
toSignedBigInt,
|
|
1717
|
+
toStepIdentityString,
|
|
1588
1718
|
transactionBlockByteCount,
|
|
1589
1719
|
transactionBytesRequiredGas,
|
|
1590
1720
|
transactionElevatedPayloadHashes,
|
|
@@ -1599,6 +1729,7 @@ export {
|
|
|
1599
1729
|
tryHydrateElevatedTransaction,
|
|
1600
1730
|
tryHydrateTransaction,
|
|
1601
1731
|
verifyEIP712Message,
|
|
1732
|
+
withContextCacheResponse,
|
|
1602
1733
|
xl1BlockNumberToEthBlockNumber
|
|
1603
1734
|
};
|
|
1604
1735
|
//# sourceMappingURL=index.mjs.map
|