viem 0.0.0-main.20240115T201519 → 0.0.0-main.20240115T204848

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.
@@ -1,25 +1,24 @@
1
1
  import type { AbiParameter, AbiParametersToPrimitiveTypes } from 'abitype';
2
- import { type AbiDecodingDataSizeTooSmallErrorType, type AbiDecodingZeroDataErrorType, type InvalidAbiDecodingTypeErrorType } from '../../errors/abi.js';
3
- import type { Hex } from '../../types/misc.js';
2
+ import type { ByteArray, Hex } from '../../types/misc.js';
3
+ import { type InvalidAbiDecodingTypeErrorType } from '../../errors/abi.js';
4
+ import type { ErrorType } from '../../errors/utils.js';
4
5
  import { type ChecksumAddressErrorType } from '../address/getAddress.js';
5
6
  import { type SizeErrorType } from '../data/size.js';
6
- import { type SliceErrorType } from '../data/slice.js';
7
+ import { type SliceBytesErrorType } from '../data/slice.js';
7
8
  import { type TrimErrorType } from '../data/trim.js';
8
- import { type HexToBigIntErrorType, type HexToBoolErrorType, type HexToNumberErrorType, type HexToStringErrorType } from '../encoding/fromHex.js';
9
- import type { ErrorType } from '../../errors/utils.js';
10
- import { type GetArrayComponentsErrorType } from './encodeAbiParameters.js';
11
- export type DecodeAbiParametersReturnType<TParams extends readonly AbiParameter[] | readonly unknown[] = readonly AbiParameter[]> = AbiParametersToPrimitiveTypes<TParams extends readonly AbiParameter[] ? TParams : AbiParameter[]>;
12
- export type DecodeAbiParametersErrorType = AbiDecodingDataSizeTooSmallErrorType | AbiDecodingZeroDataErrorType | DecodeParamsErrorType | SizeErrorType | ErrorType;
13
- export declare function decodeAbiParameters<const TParams extends readonly AbiParameter[] | readonly unknown[]>(params: TParams, data: Hex): DecodeAbiParametersReturnType<TParams>;
14
- type DecodeParamsErrorType = DecodeParamErrorType | SizeErrorType | ErrorType;
15
- type DecodeParamErrorType = DecodeArrayErrorType | DecodeTupleErrorType | DecodeStringErrorType | DecodeBytesErrorType | DecodeNumberErrorType | DecodeAddressErrorType | DecodeBoolErrorType | InvalidAbiDecodingTypeErrorType | ErrorType;
16
- type DecodeAddressErrorType = ChecksumAddressErrorType | SliceErrorType | ErrorType;
17
- type DecodeArrayErrorType = HexToNumberErrorType | SliceErrorType | ErrorType;
18
- type DecodeBoolErrorType = HexToBoolErrorType | ErrorType;
19
- type DecodeBytesErrorType = HexToNumberErrorType | SliceErrorType | ErrorType;
20
- type DecodeNumberErrorType = HexToBigIntErrorType | HexToNumberErrorType | ErrorType;
21
- type DecodeStringErrorType = HexToNumberErrorType | HexToStringErrorType | SliceErrorType | TrimErrorType | ErrorType;
22
- type DecodeTupleErrorType = HasDynamicChildErrorType | HexToNumberErrorType | SliceErrorType | ErrorType;
23
- type HasDynamicChildErrorType = GetArrayComponentsErrorType | ErrorType;
9
+ import { type BytesToBigIntErrorType, type BytesToBoolErrorType, type BytesToNumberErrorType, type BytesToStringErrorType } from '../encoding/fromBytes.js';
10
+ import { type HexToBytesErrorType } from '../encoding/toBytes.js';
11
+ import { type BytesToHexErrorType } from '../encoding/toHex.js';
12
+ export type DecodeAbiParametersReturnType<TParams extends readonly AbiParameter[] = readonly AbiParameter[]> = AbiParametersToPrimitiveTypes<TParams extends readonly AbiParameter[] ? TParams : AbiParameter[]>;
13
+ export type DecodeAbiParametersErrorType = HexToBytesErrorType | BytesToHexErrorType | DecodeParameterErrorType | SizeErrorType | ErrorType;
14
+ export declare function decodeAbiParameters<const TParams extends readonly AbiParameter[]>(params: TParams, data: ByteArray | Hex): DecodeAbiParametersReturnType<TParams>;
15
+ type DecodeParameterErrorType = DecodeArrayErrorType | DecodeTupleErrorType | DecodeAddressErrorType | DecodeBoolErrorType | DecodeBytesErrorType | DecodeNumberErrorType | DecodeStringErrorType | InvalidAbiDecodingTypeErrorType;
16
+ type DecodeAddressErrorType = ChecksumAddressErrorType | BytesToHexErrorType | SliceBytesErrorType | ErrorType;
17
+ type DecodeArrayErrorType = BytesToNumberErrorType | ErrorType;
18
+ type DecodeBoolErrorType = BytesToBoolErrorType | ErrorType;
19
+ type DecodeBytesErrorType = BytesToNumberErrorType | BytesToHexErrorType | ErrorType;
20
+ type DecodeNumberErrorType = BytesToNumberErrorType | BytesToBigIntErrorType | ErrorType;
21
+ type DecodeTupleErrorType = BytesToNumberErrorType | ErrorType;
22
+ type DecodeStringErrorType = BytesToNumberErrorType | BytesToStringErrorType | TrimErrorType | ErrorType;
24
23
  export {};
25
24
  //# sourceMappingURL=decodeAbiParameters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decodeAbiParameters.d.ts","sourceRoot":"","sources":["../../../utils/abi/decodeAbiParameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAEhB,OAAO,EAEL,KAAK,oCAAoC,EAGzC,KAAK,4BAA4B,EAEjC,KAAK,+BAA+B,EACrC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAK1B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,6BAA6B,CACvC,OAAO,SACH,SAAS,YAAY,EAAE,GACvB,SAAS,OAAO,EAAE,GAAG,SAAS,YAAY,EAAE,IAC9C,6BAA6B,CAC/B,O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ACtB,mBAAmB,GACnB,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,GACrB,+BAA+B,CAAA;AAiCnC,KAAK,sBAAsB,GACvB,wBAAwB,GACxB,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,CAAA;AAOb,KAAK,oBAAoB,GAAG,sBAAsB,GAAG,SAAS,CAAA;AAiF9D,KAAK,mBAAmB,GAAG,oBAAoB,GAAG,SAAS,CAAA;AAM3D,KAAK,oBAAoB,GACrB,sBAAsB,GACtB,mBAAmB,GACnB,SAAS,CAAA;AAmCb,KAAK,qBAAqB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,SAAS,CAAA;AAgBb,KAAK,oBAAoB,GAAG,sBAAsB,GAAG,SAAS,CAAA;AAwD9D,KAAK,qBAAqB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,aAAa,GACb,SAAS,CAAA"}
@@ -5,8 +5,13 @@ export type Cursor = {
5
5
  bytes: ByteArray;
6
6
  dataView: DataView;
7
7
  position: number;
8
+ positionReadCount: Map<number, number>;
9
+ recursiveReadCount: number;
10
+ recursiveReadLimit: number;
11
+ assertReadLimit(position?: number): void;
8
12
  assertPosition(position: number): void;
9
13
  decrementPosition(offset: number): void;
14
+ getReadCount(position?: number): number;
10
15
  incrementPosition(offset: number): void;
11
16
  inspectByte(position?: number): ByteArray[number];
12
17
  inspectBytes(length: number, position?: number): ByteArray;
@@ -21,17 +26,22 @@ export type Cursor = {
21
26
  pushUint24(value: number): void;
22
27
  pushUint32(value: number): void;
23
28
  readByte(): ByteArray[number];
24
- readBytes(length: number): ByteArray;
29
+ readBytes(length: number, size?: number): ByteArray;
25
30
  readUint8(): number;
26
31
  readUint16(): number;
27
32
  readUint24(): number;
28
33
  readUint32(): number;
29
- setPosition(position: number): void;
34
+ setPosition(position: number): () => void;
35
+ _touch(): void;
30
36
  };
31
37
  export type CreateCursorErrorType = ErrorType;
32
38
  export type CursorErrorType = CursorAssertPositionErrorType | CursorDecrementPositionErrorType | CursorIncrementPositionErrorType | ErrorType;
33
39
  export type CursorAssertPositionErrorType = PositionOutOfBoundsError | ErrorType;
34
40
  export type CursorDecrementPositionErrorType = NegativeOffsetError | ErrorType;
35
41
  export type CursorIncrementPositionErrorType = NegativeOffsetError | ErrorType;
36
- export declare function createCursor(bytes: ByteArray): Cursor;
42
+ type CursorConfig = {
43
+ recursiveReadLimit?: number;
44
+ };
45
+ export declare function createCursor(bytes: ByteArray, { recursiveReadLimit }?: CursorConfig): Cursor;
46
+ export {};
37
47
  //# sourceMappingURL=cursor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../utils/cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACtC,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACvC,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACvC,WAAW,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAA;IACjD,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1D,YAAY,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvC,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxC,aAAa,CAAC,QAAQ,CAAC,EAAE,M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K,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,QAAQ,IAAI,SAAS,CAAC,MAAM,CAAC,CAAA;IAC7B,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnD,SAAS,IAAI,MAAM,CAAA;IACnB,UAAU,IAAI,MAAM,CAAA;IACpB,UAAU,IAAI,MAAM,CAAA;IACpB,UAAU,IAAI,MAAM,CAAA;IACpB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,IAAI,CAAA;IACzC,MAAM,IAAI,IAAI,CAAA;CACf,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAA;AAE7C,MAAM,MAAM,eAAe,GACvB,6BAA6B,GAC7B,gCAAgC,GAChC,gCAAgC,GAChC,SAAS,CAAA;AAEb,MAAM,MAAM,6BAA6B,GAAG,wBAAwB,GAAG,SAAS,CAAA;AAEhF,MAAM,MAAM,gCAAgC,GAAG,mBAAmB,GAAG,SAAS,CAAA;AAE9E,MAAM,MAAM,gCAAgC,GAAG,mBAAmB,GAAG,SAAS,CAAA;AA6J9E,KAAK,YAAY,GAAG;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,EAChB,EAAE,kBAA0B,EAAE,GAAE,YAAiB,GAChD,MAAM,CAWR"}
package/errors/cursor.ts CHANGED
@@ -21,3 +21,16 @@ export class PositionOutOfBoundsError extends BaseError {
21
21
  )
22
22
  }
23
23
  }
24
+
25
+ export type RecursiveReadLimitExceededErrorType =
26
+ RecursiveReadLimitExceededError & {
27
+ name: 'RecursiveReadLimitExceededError'
28
+ }
29
+ export class RecursiveReadLimitExceededError extends BaseError {
30
+ override name = 'RecursiveReadLimitExceededError'
31
+ constructor({ count, limit }: { count: number; limit: number }) {
32
+ super(
33
+ `Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`,
34
+ )
35
+ }
36
+ }
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '0.0.0-main.20240115T201519'
1
+ export const version = '0.0.0-main.20240115T204848'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "0.0.0-main.20240115T201519",
4
+ "version": "0.0.0-main.20240115T204848",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",