@otim/sdk-core 0.0.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.
Files changed (75) hide show
  1. package/LICENSE +201 -0
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/abi-Bd3X6gV9.d.mts +154 -0
  4. package/dist/abi-Bd3X6gV9.d.mts.map +1 -0
  5. package/dist/abi-CQuxrNCU.d.cts +154 -0
  6. package/dist/abi-CQuxrNCU.d.cts.map +1 -0
  7. package/dist/account/index.cjs +7 -0
  8. package/dist/account/index.d.cts +3 -0
  9. package/dist/account/index.d.mts +3 -0
  10. package/dist/account/index.mjs +3 -0
  11. package/dist/account-Bwm5PTcc.cjs +56 -0
  12. package/dist/account-Bwm5PTcc.cjs.map +1 -0
  13. package/dist/account-p4sxzIt3.mjs +26 -0
  14. package/dist/account-p4sxzIt3.mjs.map +1 -0
  15. package/dist/clients/index.cjs +7 -0
  16. package/dist/clients/index.d.cts +3 -0
  17. package/dist/clients/index.d.mts +3 -0
  18. package/dist/clients/index.mjs +3 -0
  19. package/dist/clients-DBRhkU4y.cjs +297 -0
  20. package/dist/clients-DBRhkU4y.cjs.map +1 -0
  21. package/dist/clients-DMKeLhcJ.mjs +268 -0
  22. package/dist/clients-DMKeLhcJ.mjs.map +1 -0
  23. package/dist/config/index.cjs +10 -0
  24. package/dist/config/index.d.cts +3 -0
  25. package/dist/config/index.d.mts +3 -0
  26. package/dist/config/index.mjs +3 -0
  27. package/dist/config-C_nc1DXn.mjs +67 -0
  28. package/dist/config-C_nc1DXn.mjs.map +1 -0
  29. package/dist/config-CjGpscVk.cjs +114 -0
  30. package/dist/config-CjGpscVk.cjs.map +1 -0
  31. package/dist/context/index.cjs +5 -0
  32. package/dist/context/index.d.cts +2 -0
  33. package/dist/context/index.d.mts +2 -0
  34. package/dist/context/index.mjs +3 -0
  35. package/dist/context-B-Wcmhb3.cjs +38 -0
  36. package/dist/context-B-Wcmhb3.cjs.map +1 -0
  37. package/dist/context-uTye69B0.mjs +20 -0
  38. package/dist/context-uTye69B0.mjs.map +1 -0
  39. package/dist/index-B4fkcFy5.d.mts +54 -0
  40. package/dist/index-B4fkcFy5.d.mts.map +1 -0
  41. package/dist/index-BnP8vpJJ.d.cts +25 -0
  42. package/dist/index-BnP8vpJJ.d.cts.map +1 -0
  43. package/dist/index-C1HSAemv.d.cts +20 -0
  44. package/dist/index-C1HSAemv.d.cts.map +1 -0
  45. package/dist/index-C4N2Xixk.d.mts +27 -0
  46. package/dist/index-C4N2Xixk.d.mts.map +1 -0
  47. package/dist/index-CcCMIBgF.d.mts +20 -0
  48. package/dist/index-CcCMIBgF.d.mts.map +1 -0
  49. package/dist/index-DK-40z4V.d.cts +54 -0
  50. package/dist/index-DK-40z4V.d.cts.map +1 -0
  51. package/dist/index-DW_zBRKz.d.mts +25 -0
  52. package/dist/index-DW_zBRKz.d.mts.map +1 -0
  53. package/dist/index-De8OZ-Be.d.cts +96 -0
  54. package/dist/index-De8OZ-Be.d.cts.map +1 -0
  55. package/dist/index-UnaahQgb.d.cts +27 -0
  56. package/dist/index-UnaahQgb.d.cts.map +1 -0
  57. package/dist/index-e5BLgzcW.d.mts +96 -0
  58. package/dist/index-e5BLgzcW.d.mts.map +1 -0
  59. package/dist/index.cjs +31 -0
  60. package/dist/index.d.cts +8 -0
  61. package/dist/index.d.mts +8 -0
  62. package/dist/index.mjs +7 -0
  63. package/dist/misc-CX4pLJaA.d.mts +42 -0
  64. package/dist/misc-CX4pLJaA.d.mts.map +1 -0
  65. package/dist/misc-CpZxSPCP.d.cts +42 -0
  66. package/dist/misc-CpZxSPCP.d.cts.map +1 -0
  67. package/dist/utils/index.cjs +6 -0
  68. package/dist/utils/index.d.cts +4 -0
  69. package/dist/utils/index.d.mts +4 -0
  70. package/dist/utils/index.mjs +3 -0
  71. package/dist/utils-CVQFvsfl.cjs +104 -0
  72. package/dist/utils-CVQFvsfl.cjs.map +1 -0
  73. package/dist/utils-DziAHBiz.mjs +81 -0
  74. package/dist/utils-DziAHBiz.mjs.map +1 -0
  75. package/package.json +162 -0
@@ -0,0 +1,154 @@
1
+ //#region ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/register.d.ts
2
+ interface Register {}
3
+ type ResolvedRegister = {
4
+ /**
5
+ * TypeScript type to use for `address` values
6
+ * @default `0x${string}`
7
+ */
8
+ addressType: Register extends {
9
+ addressType: infer type;
10
+ } ? type : Register extends {
11
+ AddressType: infer type;
12
+ } ? type : DefaultRegister['addressType'];
13
+ /**
14
+ * TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48`
15
+ * @default bigint
16
+ */
17
+ bigIntType: Register extends {
18
+ bigIntType: infer type;
19
+ } ? type : Register extends {
20
+ BigIntType: infer type;
21
+ } ? type : DefaultRegister['bigIntType'];
22
+ /**
23
+ * TypeScript type to use for `bytes` values
24
+ * @default { inputs: `0x${string}`; outputs: `0x${string}`; }
25
+ */
26
+ bytesType: Register extends {
27
+ bytesType: infer type extends {
28
+ inputs: unknown;
29
+ outputs: unknown;
30
+ };
31
+ } ? type : Register extends {
32
+ BytesType: infer type extends {
33
+ inputs: unknown;
34
+ outputs: unknown;
35
+ };
36
+ } ? type : DefaultRegister['bytesType'];
37
+ /**
38
+ * TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48`
39
+ * @default number
40
+ */
41
+ intType: Register extends {
42
+ intType: infer type;
43
+ } ? type : Register extends {
44
+ IntType: infer type;
45
+ } ? type : DefaultRegister['intType'];
46
+ /**
47
+ * Maximum depth for nested array types (e.g. string[][])
48
+ *
49
+ * Note: You probably only want to set this to a specific number if parsed types are returning as `unknown`
50
+ * and you want to figure out why. If you set this, you should probably also reduce `FixedArrayMaxLength`.
51
+ *
52
+ * @default false
53
+ */
54
+ arrayMaxDepth: Register extends {
55
+ arrayMaxDepth: infer type extends number | false;
56
+ } ? type : Register extends {
57
+ ArrayMaxDepth: infer type extends number | false;
58
+ } ? type : DefaultRegister['arrayMaxDepth'];
59
+ /**
60
+ * Lower bound for fixed array length
61
+ * @default 1
62
+ */
63
+ fixedArrayMinLength: Register extends {
64
+ fixedArrayMinLength: infer type extends number;
65
+ } ? type : Register extends {
66
+ FixedArrayMinLength: infer type extends number;
67
+ } ? type : DefaultRegister['fixedArrayMinLength'];
68
+ /**
69
+ * Upper bound for fixed array length
70
+ * @default 99
71
+ */
72
+ fixedArrayMaxLength: Register extends {
73
+ fixedArrayMaxLength: infer type extends number;
74
+ } ? type : Register extends {
75
+ FixedArrayMaxLength: infer type extends number;
76
+ } ? type : DefaultRegister['fixedArrayMaxLength'];
77
+ /**
78
+ * When set, validates {@link AbiParameter}'s `type` against {@link AbiType}
79
+ *
80
+ * Note: You probably only want to set this to `true` if parsed types are returning as `unknown`
81
+ * and you want to figure out why.
82
+ *
83
+ * @default false
84
+ */
85
+ strictAbiType: Register extends {
86
+ strictAbiType: infer type extends boolean;
87
+ } ? type : Register extends {
88
+ StrictAbiType: infer type extends boolean;
89
+ } ? type : DefaultRegister['strictAbiType'];
90
+ /** @deprecated Use `addressType` instead */
91
+ AddressType: ResolvedRegister['addressType'];
92
+ /** @deprecated Use `addressType` instead */
93
+ BigIntType: ResolvedRegister['bigIntType'];
94
+ /** @deprecated Use `bytesType` instead */
95
+ BytesType: ResolvedRegister['bytesType'];
96
+ /** @deprecated Use `intType` instead */
97
+ IntType: ResolvedRegister['intType'];
98
+ /** @deprecated Use `arrayMaxDepth` instead */
99
+ ArrayMaxDepth: ResolvedRegister['arrayMaxDepth'];
100
+ /** @deprecated Use `fixedArrayMinLength` instead */
101
+ FixedArrayMinLength: ResolvedRegister['fixedArrayMinLength'];
102
+ /** @deprecated Use `fixedArrayMaxLength` instead */
103
+ FixedArrayMaxLength: ResolvedRegister['fixedArrayMaxLength'];
104
+ /** @deprecated Use `strictAbiType` instead */
105
+ StrictAbiType: ResolvedRegister['strictAbiType'];
106
+ };
107
+ type DefaultRegister = {
108
+ /** Maximum depth for nested array types (e.g. string[][]) */
109
+ arrayMaxDepth: false;
110
+ /** Lower bound for fixed array length */
111
+ fixedArrayMinLength: 1;
112
+ /** Upper bound for fixed array length */
113
+ fixedArrayMaxLength: 99;
114
+ /** TypeScript type to use for `address` values */
115
+ addressType: `0x${string}`;
116
+ /** TypeScript type to use for `bytes` values */
117
+ bytesType: {
118
+ /** TypeScript type to use for `bytes` input values */
119
+ inputs: `0x${string}`;
120
+ /** TypeScript type to use for `bytes` output values */
121
+ outputs: `0x${string}`;
122
+ };
123
+ /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48` */
124
+ bigIntType: bigint;
125
+ /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48` */
126
+ intType: number;
127
+ /** When set, validates {@link AbiParameter}'s `type` against {@link AbiType} */
128
+ strictAbiType: false;
129
+ /** @deprecated Use `arrayMaxDepth` instead */
130
+ ArrayMaxDepth: DefaultRegister['arrayMaxDepth'];
131
+ /** @deprecated Use `fixedArrayMinLength` instead */
132
+ FixedArrayMinLength: DefaultRegister['fixedArrayMinLength'];
133
+ /** @deprecated Use `fixedArrayMaxLength` instead */
134
+ FixedArrayMaxLength: DefaultRegister['fixedArrayMaxLength'];
135
+ /** @deprecated Use `addressType` instead */
136
+ AddressType: DefaultRegister['addressType'];
137
+ /** @deprecated Use `bytesType` instead */
138
+ BytesType: {
139
+ inputs: DefaultRegister['bytesType']['inputs'];
140
+ outputs: DefaultRegister['bytesType']['outputs'];
141
+ };
142
+ /** @deprecated Use `bigIntType` instead */
143
+ BigIntType: DefaultRegister['bigIntType'];
144
+ /** @deprecated Use `intType` instead */
145
+ IntType: DefaultRegister['intType'];
146
+ /** @deprecated Use `strictAbiType` instead */
147
+ StrictAbiType: DefaultRegister['strictAbiType'];
148
+ };
149
+ //#endregion
150
+ //#region ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/abi.d.ts
151
+ type Address = ResolvedRegister['addressType'];
152
+ //#endregion
153
+ export { Address as t };
154
+ //# sourceMappingURL=abi-Bd3X6gV9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abi-Bd3X6gV9.d.mts","names":["Register","ResolvedRegister","type","DefaultRegister","ResolvedRegister","Pretty","Range","Address","MBytes","MBits","SolidityAddress","SolidityBool","SolidityBytes","SolidityFunction","SolidityString","SolidityTuple","SolidityInt","SolidityFixedArrayRange","SolidityFixedArraySizeLookup","Prop","_BuildArrayTypes","T","Depth","SolidityArrayWithoutTuple","SolidityArrayWithTuple","SolidityArray","AbiType","ResolvedAbiType","AbiInternalType","AbiParameter","Exclude","AbiEventParameter","AbiStateMutability","AbiParameterKind","AbiFunction","AbiConstructor","Extract","AbiFallback","AbiReceive","AbiEvent","AbiError","AbiItemType","Abi","TypedDataDomain","TypedDataType","TypedDataParameter","TypedData","Record"],"sources":["../../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/register.d.ts","../../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/abi.d.ts"],"sourcesContent":["export interface Register {\n}\nexport type ResolvedRegister = {\n /**\n * TypeScript type to use for `address` values\n * @default `0x${string}`\n */\n addressType: Register extends {\n addressType: infer type;\n } ? type : Register extends {\n AddressType: infer type;\n } ? type : DefaultRegister['addressType'];\n /**\n * TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48`\n * @default bigint\n */\n bigIntType: Register extends {\n bigIntType: infer type;\n } ? type : Register extends {\n BigIntType: infer type;\n } ? type : DefaultRegister['bigIntType'];\n /**\n * TypeScript type to use for `bytes` values\n * @default { inputs: `0x${string}`; outputs: `0x${string}`; }\n */\n bytesType: Register extends {\n bytesType: infer type extends {\n inputs: unknown;\n outputs: unknown;\n };\n } ? type : Register extends {\n BytesType: infer type extends {\n inputs: unknown;\n outputs: unknown;\n };\n } ? type : DefaultRegister['bytesType'];\n /**\n * TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48`\n * @default number\n */\n intType: Register extends {\n intType: infer type;\n } ? type : Register extends {\n IntType: infer type;\n } ? type : DefaultRegister['intType'];\n /**\n * Maximum depth for nested array types (e.g. string[][])\n *\n * Note: You probably only want to set this to a specific number if parsed types are returning as `unknown`\n * and you want to figure out why. If you set this, you should probably also reduce `FixedArrayMaxLength`.\n *\n * @default false\n */\n arrayMaxDepth: Register extends {\n arrayMaxDepth: infer type extends number | false;\n } ? type : Register extends {\n ArrayMaxDepth: infer type extends number | false;\n } ? type : DefaultRegister['arrayMaxDepth'];\n /**\n * Lower bound for fixed array length\n * @default 1\n */\n fixedArrayMinLength: Register extends {\n fixedArrayMinLength: infer type extends number;\n } ? type : Register extends {\n FixedArrayMinLength: infer type extends number;\n } ? type : DefaultRegister['fixedArrayMinLength'];\n /**\n * Upper bound for fixed array length\n * @default 99\n */\n fixedArrayMaxLength: Register extends {\n fixedArrayMaxLength: infer type extends number;\n } ? type : Register extends {\n FixedArrayMaxLength: infer type extends number;\n } ? type : DefaultRegister['fixedArrayMaxLength'];\n /**\n * When set, validates {@link AbiParameter}'s `type` against {@link AbiType}\n *\n * Note: You probably only want to set this to `true` if parsed types are returning as `unknown`\n * and you want to figure out why.\n *\n * @default false\n */\n strictAbiType: Register extends {\n strictAbiType: infer type extends boolean;\n } ? type : Register extends {\n StrictAbiType: infer type extends boolean;\n } ? type : DefaultRegister['strictAbiType'];\n /** @deprecated Use `addressType` instead */\n AddressType: ResolvedRegister['addressType'];\n /** @deprecated Use `addressType` instead */\n BigIntType: ResolvedRegister['bigIntType'];\n /** @deprecated Use `bytesType` instead */\n BytesType: ResolvedRegister['bytesType'];\n /** @deprecated Use `intType` instead */\n IntType: ResolvedRegister['intType'];\n /** @deprecated Use `arrayMaxDepth` instead */\n ArrayMaxDepth: ResolvedRegister['arrayMaxDepth'];\n /** @deprecated Use `fixedArrayMinLength` instead */\n FixedArrayMinLength: ResolvedRegister['fixedArrayMinLength'];\n /** @deprecated Use `fixedArrayMaxLength` instead */\n FixedArrayMaxLength: ResolvedRegister['fixedArrayMaxLength'];\n /** @deprecated Use `strictAbiType` instead */\n StrictAbiType: ResolvedRegister['strictAbiType'];\n};\nexport type DefaultRegister = {\n /** Maximum depth for nested array types (e.g. string[][]) */\n arrayMaxDepth: false;\n /** Lower bound for fixed array length */\n fixedArrayMinLength: 1;\n /** Upper bound for fixed array length */\n fixedArrayMaxLength: 99;\n /** TypeScript type to use for `address` values */\n addressType: `0x${string}`;\n /** TypeScript type to use for `bytes` values */\n bytesType: {\n /** TypeScript type to use for `bytes` input values */\n inputs: `0x${string}`;\n /** TypeScript type to use for `bytes` output values */\n outputs: `0x${string}`;\n };\n /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48` */\n bigIntType: bigint;\n /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48` */\n intType: number;\n /** When set, validates {@link AbiParameter}'s `type` against {@link AbiType} */\n strictAbiType: false;\n /** @deprecated Use `arrayMaxDepth` instead */\n ArrayMaxDepth: DefaultRegister['arrayMaxDepth'];\n /** @deprecated Use `fixedArrayMinLength` instead */\n FixedArrayMinLength: DefaultRegister['fixedArrayMinLength'];\n /** @deprecated Use `fixedArrayMaxLength` instead */\n FixedArrayMaxLength: DefaultRegister['fixedArrayMaxLength'];\n /** @deprecated Use `addressType` instead */\n AddressType: DefaultRegister['addressType'];\n /** @deprecated Use `bytesType` instead */\n BytesType: {\n inputs: DefaultRegister['bytesType']['inputs'];\n outputs: DefaultRegister['bytesType']['outputs'];\n };\n /** @deprecated Use `bigIntType` instead */\n BigIntType: DefaultRegister['bigIntType'];\n /** @deprecated Use `intType` instead */\n IntType: DefaultRegister['intType'];\n /** @deprecated Use `strictAbiType` instead */\n StrictAbiType: DefaultRegister['strictAbiType'];\n};\n//# sourceMappingURL=register.d.ts.map","import type { ResolvedRegister } from './register.js';\nimport type { Pretty, Range } from './types.js';\nexport type Address = ResolvedRegister['addressType'];\ntype MBytes = '' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32;\nexport type MBits = '' | 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96 | 104 | 112 | 120 | 128 | 136 | 144 | 152 | 160 | 168 | 176 | 184 | 192 | 200 | 208 | 216 | 224 | 232 | 240 | 248 | 256;\nexport type SolidityAddress = 'address';\nexport type SolidityBool = 'bool';\nexport type SolidityBytes = `bytes${MBytes}`;\nexport type SolidityFunction = 'function';\nexport type SolidityString = 'string';\nexport type SolidityTuple = 'tuple';\nexport type SolidityInt = `${'u' | ''}int${MBits}`;\nexport type SolidityFixedArrayRange = Range<ResolvedRegister['fixedArrayMinLength'], ResolvedRegister['fixedArrayMaxLength']>[number];\nexport type SolidityFixedArraySizeLookup = {\n [Prop in SolidityFixedArrayRange as `${Prop}`]: Prop;\n};\n/**\n * Recursively build arrays up to maximum depth\n * or use a more broad type when maximum depth is switched \"off\"\n */\ntype _BuildArrayTypes<T extends string, Depth extends readonly number[] = []> = ResolvedRegister['arrayMaxDepth'] extends false ? `${T}[${string}]` : Depth['length'] extends ResolvedRegister['arrayMaxDepth'] ? T : T extends `${any}[${SolidityFixedArrayRange | ''}]` ? _BuildArrayTypes<T | `${T}[${SolidityFixedArrayRange | ''}]`, [\n ...Depth,\n 1\n]> : _BuildArrayTypes<`${T}[${SolidityFixedArrayRange | ''}]`, [...Depth, 1]>;\nexport type SolidityArrayWithoutTuple = _BuildArrayTypes<SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString>;\nexport type SolidityArrayWithTuple = _BuildArrayTypes<SolidityTuple>;\nexport type SolidityArray = SolidityArrayWithoutTuple | SolidityArrayWithTuple;\nexport type AbiType = SolidityArray | SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString | SolidityTuple;\ntype ResolvedAbiType = ResolvedRegister['strictAbiType'] extends true ? AbiType : string;\nexport type AbiInternalType = ResolvedAbiType | `address ${string}` | `contract ${string}` | `enum ${string}` | `struct ${string}`;\nexport type AbiParameter = Pretty<{\n type: ResolvedAbiType;\n name?: string | undefined;\n /** Representation used by Solidity compiler */\n internalType?: AbiInternalType | undefined;\n} & ({\n type: Exclude<ResolvedAbiType, SolidityTuple | SolidityArrayWithTuple>;\n} | {\n type: SolidityTuple | SolidityArrayWithTuple;\n components: readonly AbiParameter[];\n})>;\nexport type AbiEventParameter = AbiParameter & {\n indexed?: boolean | undefined;\n};\n/**\n * State mutability for {@link AbiFunction}\n *\n * @see https://docs.soliditylang.org/en/latest/contracts.html#state-mutability\n */\nexport type AbiStateMutability = 'pure' | 'view' | 'nonpayable' | 'payable';\n/** Kind of {@link AbiParameter} */\nexport type AbiParameterKind = 'inputs' | 'outputs';\n/** ABI [\"function\"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */\nexport type AbiFunction = {\n type: 'function';\n /**\n * @deprecated use `pure` or `view` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n constant?: boolean | undefined;\n /**\n * @deprecated Vyper used to provide gas estimates\n * @see https://github.com/vyperlang/vyper/issues/2151\n */\n gas?: number | undefined;\n inputs: readonly AbiParameter[];\n name: string;\n outputs: readonly AbiParameter[];\n /**\n * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n payable?: boolean | undefined;\n stateMutability: AbiStateMutability;\n};\n/** ABI [\"constructor\"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */\nexport type AbiConstructor = {\n type: 'constructor';\n inputs: readonly AbiParameter[];\n /**\n * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n payable?: boolean | undefined;\n stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;\n};\n/** ABI [\"fallback\"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */\nexport type AbiFallback = {\n type: 'fallback';\n /**\n * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n payable?: boolean | undefined;\n stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;\n};\n/** ABI [\"receive\"](https://docs.soliditylang.org/en/latest/contracts.html#receive-ether-function) type */\nexport type AbiReceive = {\n type: 'receive';\n stateMutability: Extract<AbiStateMutability, 'payable'>;\n};\n/** ABI [\"event\"](https://docs.soliditylang.org/en/latest/abi-spec.html#events) type */\nexport type AbiEvent = {\n type: 'event';\n anonymous?: boolean | undefined;\n inputs: readonly AbiEventParameter[];\n name: string;\n};\n/** ABI [\"error\"](https://docs.soliditylang.org/en/latest/abi-spec.html#errors) type */\nexport type AbiError = {\n type: 'error';\n inputs: readonly AbiParameter[];\n name: string;\n};\n/** `\"type\"` name for {@link Abi} items. */\nexport type AbiItemType = 'constructor' | 'error' | 'event' | 'fallback' | 'function' | 'receive';\n/**\n * Contract [ABI Specification](https://docs.soliditylang.org/en/latest/abi-spec.html#json)\n */\nexport type Abi = readonly (AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive)[];\nexport type TypedDataDomain = {\n chainId?: number | bigint | undefined;\n name?: string | undefined;\n salt?: ResolvedRegister['bytesType']['outputs'] | undefined;\n verifyingContract?: Address | undefined;\n version?: string | undefined;\n};\nexport type TypedDataType = Exclude<AbiType, SolidityFunction | SolidityTuple | SolidityArrayWithTuple | 'int' | 'uint'>;\nexport type TypedDataParameter = {\n name: string;\n type: TypedDataType | keyof TypedData | `${keyof TypedData}[${string | ''}]`;\n};\n/**\n * [EIP-712](https://eips.ethereum.org/EIPS/eip-712#definition-of-typed-structured-data-%F0%9D%95%8A) Typed Data Specification\n */\nexport type TypedData = Pretty<Record<string, readonly TypedDataParameter[]> & {\n [_ in TypedDataType]?: never;\n}>;\nexport {};\n//# sourceMappingURL=abi.d.ts.map"],"x_google_ignoreList":[0,1],"mappings":";UAAiBA,QAAAA,EAAjB;AAEYC,KAAAA,gBAAAA,GAAgB;EAKXD;;;;EAIFG,WAAAA,EAJEH,QAIFG,SAAAA;IAKCH,WAAAA,EAAAA,KAAAA,KAAAA;EAERE,CAAAA,GATAA,IASAA,GATOF,QASPE,SAAAA;IAAOF,WAAAA,EAAAA,KAAAA,KAAAA;EAEPE,CAAAA,GATAA,IASAA,GATOC,eASPD,CAAAA,aAAAA,CAAAA;EAAOC;;;;EAePD,UAAAA,EAnBQF,QAmBRE,SAAAA;IAAOC,UAAAA,EAAAA,KAAAA,KAAAA;EAKFH,CAAAA,GAtBLE,IAsBKF,GAtBEA,QAsBFA,SAAAA;IAELE,UAAAA,EAAAA,KAAAA,KAAAA;EAAOF,CAAAA,GAtBPE,IAsBOF,GAtBAG,eAsBAH,CAAAA,YAAAA,CAAAA;EAEPE;;;;EAWOF,SAAAA,EA9BAA,QA8BAA,SAAAA;IAEPE,SAAAA,EAAAA,KAAAA,cAAAA;MAAOC,MAAAA,EAAAA,OAAAA;MAKUH,OAAAA,EAAAA,OAAAA;IAEjBE,CAAAA;EAAOF,CAAAA,GAlCPE,IAkCOF,GAlCAA,QAkCAA,SAAAA;IAEPE,SAAAA,EAAAA,KAAAA,cAAAA;MAAOC,MAAAA,EAAAA,OAAAA;MAKUH,OAAAA,EAAAA,OAAAA;IAEjBE,CAAAA;EAAOF,CAAAA,GAtCPE,IAsCOF,GAtCAG,eAsCAH,CAAAA,WAAAA,CAAAA;EAEPE;;;;EAWOF,OAAAA,EA9CFA,QA8CEA,SAAAA;IAEPE,OAAAA,EAAAA,KAAAA,KAAAA;EAAOC,CAAAA,GA9CPD,IA8COC,GA9CAH,QA8CAG,SAAAA;IAEEF,OAAAA,EAAAA,KAAAA,KAAAA;EAEDA,CAAAA,GAhDRC,IAgDQD,GAhDDE,eAgDCF,CAAAA,SAAAA,CAAAA;EAEDA;;;;;;;AAYf;EAuBmBE,aAAAA,EA5EAH,QA4EAG,SAAAA;IAEMA,aAAAA,EAAAA,KAAAA,cAAAA,MAAAA,GAAAA,KAAAA;EAEAA,CAAAA,GA9EjBD,IA8EiBC,GA9EVH,QA8EUG,SAAAA;IAERA,aAAAA,EAAAA,KAAAA,cAAAA,MAAAA,GAAAA,KAAAA;EAGDA,CAAAA,GAjFRD,IAiFQC,GAjFDA,eAiFCA,CAAAA,eAAAA,CAAAA;EACCA;;;;EAOiB,mBAAA,EApFTH,QAoFS,SAAA;;MAlF1BE,OAAOF;;EC9DHO,CAAAA,GDgEJL,IChEIK,GDgEGJ,eChEOC,CAAAA,qBAAgB,CAAA;;;;;uBDqEbJ;;MAEjBE,OAAOF;;MAEPE,OAAOC;;;;;;;;;iBASIH;;MAEXE,OAAOF;;MAEPE,OAAOC;;eAEEF;;cAEDA;;aAEDA;;WAEFA;;iBAEMA;;uBAEMA;;uBAEAA;;iBAENA;;KAEPE,eAAAA;;;;;;;;;;;;;;;;;;;;;;;iBAuBOA;;uBAEMA;;uBAEAA;;eAERA;;;YAGDA;aACCA;;;cAGDA;;WAEHA;;iBAEMA;;;;AAhJPF,KCAAM,OAAAA,GAAUH,gBDAM,CAAA,aAAA,CAAA"}
@@ -0,0 +1,154 @@
1
+ //#region ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/register.d.ts
2
+ interface Register {}
3
+ type ResolvedRegister = {
4
+ /**
5
+ * TypeScript type to use for `address` values
6
+ * @default `0x${string}`
7
+ */
8
+ addressType: Register extends {
9
+ addressType: infer type;
10
+ } ? type : Register extends {
11
+ AddressType: infer type;
12
+ } ? type : DefaultRegister['addressType'];
13
+ /**
14
+ * TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48`
15
+ * @default bigint
16
+ */
17
+ bigIntType: Register extends {
18
+ bigIntType: infer type;
19
+ } ? type : Register extends {
20
+ BigIntType: infer type;
21
+ } ? type : DefaultRegister['bigIntType'];
22
+ /**
23
+ * TypeScript type to use for `bytes` values
24
+ * @default { inputs: `0x${string}`; outputs: `0x${string}`; }
25
+ */
26
+ bytesType: Register extends {
27
+ bytesType: infer type extends {
28
+ inputs: unknown;
29
+ outputs: unknown;
30
+ };
31
+ } ? type : Register extends {
32
+ BytesType: infer type extends {
33
+ inputs: unknown;
34
+ outputs: unknown;
35
+ };
36
+ } ? type : DefaultRegister['bytesType'];
37
+ /**
38
+ * TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48`
39
+ * @default number
40
+ */
41
+ intType: Register extends {
42
+ intType: infer type;
43
+ } ? type : Register extends {
44
+ IntType: infer type;
45
+ } ? type : DefaultRegister['intType'];
46
+ /**
47
+ * Maximum depth for nested array types (e.g. string[][])
48
+ *
49
+ * Note: You probably only want to set this to a specific number if parsed types are returning as `unknown`
50
+ * and you want to figure out why. If you set this, you should probably also reduce `FixedArrayMaxLength`.
51
+ *
52
+ * @default false
53
+ */
54
+ arrayMaxDepth: Register extends {
55
+ arrayMaxDepth: infer type extends number | false;
56
+ } ? type : Register extends {
57
+ ArrayMaxDepth: infer type extends number | false;
58
+ } ? type : DefaultRegister['arrayMaxDepth'];
59
+ /**
60
+ * Lower bound for fixed array length
61
+ * @default 1
62
+ */
63
+ fixedArrayMinLength: Register extends {
64
+ fixedArrayMinLength: infer type extends number;
65
+ } ? type : Register extends {
66
+ FixedArrayMinLength: infer type extends number;
67
+ } ? type : DefaultRegister['fixedArrayMinLength'];
68
+ /**
69
+ * Upper bound for fixed array length
70
+ * @default 99
71
+ */
72
+ fixedArrayMaxLength: Register extends {
73
+ fixedArrayMaxLength: infer type extends number;
74
+ } ? type : Register extends {
75
+ FixedArrayMaxLength: infer type extends number;
76
+ } ? type : DefaultRegister['fixedArrayMaxLength'];
77
+ /**
78
+ * When set, validates {@link AbiParameter}'s `type` against {@link AbiType}
79
+ *
80
+ * Note: You probably only want to set this to `true` if parsed types are returning as `unknown`
81
+ * and you want to figure out why.
82
+ *
83
+ * @default false
84
+ */
85
+ strictAbiType: Register extends {
86
+ strictAbiType: infer type extends boolean;
87
+ } ? type : Register extends {
88
+ StrictAbiType: infer type extends boolean;
89
+ } ? type : DefaultRegister['strictAbiType'];
90
+ /** @deprecated Use `addressType` instead */
91
+ AddressType: ResolvedRegister['addressType'];
92
+ /** @deprecated Use `addressType` instead */
93
+ BigIntType: ResolvedRegister['bigIntType'];
94
+ /** @deprecated Use `bytesType` instead */
95
+ BytesType: ResolvedRegister['bytesType'];
96
+ /** @deprecated Use `intType` instead */
97
+ IntType: ResolvedRegister['intType'];
98
+ /** @deprecated Use `arrayMaxDepth` instead */
99
+ ArrayMaxDepth: ResolvedRegister['arrayMaxDepth'];
100
+ /** @deprecated Use `fixedArrayMinLength` instead */
101
+ FixedArrayMinLength: ResolvedRegister['fixedArrayMinLength'];
102
+ /** @deprecated Use `fixedArrayMaxLength` instead */
103
+ FixedArrayMaxLength: ResolvedRegister['fixedArrayMaxLength'];
104
+ /** @deprecated Use `strictAbiType` instead */
105
+ StrictAbiType: ResolvedRegister['strictAbiType'];
106
+ };
107
+ type DefaultRegister = {
108
+ /** Maximum depth for nested array types (e.g. string[][]) */
109
+ arrayMaxDepth: false;
110
+ /** Lower bound for fixed array length */
111
+ fixedArrayMinLength: 1;
112
+ /** Upper bound for fixed array length */
113
+ fixedArrayMaxLength: 99;
114
+ /** TypeScript type to use for `address` values */
115
+ addressType: `0x${string}`;
116
+ /** TypeScript type to use for `bytes` values */
117
+ bytesType: {
118
+ /** TypeScript type to use for `bytes` input values */
119
+ inputs: `0x${string}`;
120
+ /** TypeScript type to use for `bytes` output values */
121
+ outputs: `0x${string}`;
122
+ };
123
+ /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48` */
124
+ bigIntType: bigint;
125
+ /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48` */
126
+ intType: number;
127
+ /** When set, validates {@link AbiParameter}'s `type` against {@link AbiType} */
128
+ strictAbiType: false;
129
+ /** @deprecated Use `arrayMaxDepth` instead */
130
+ ArrayMaxDepth: DefaultRegister['arrayMaxDepth'];
131
+ /** @deprecated Use `fixedArrayMinLength` instead */
132
+ FixedArrayMinLength: DefaultRegister['fixedArrayMinLength'];
133
+ /** @deprecated Use `fixedArrayMaxLength` instead */
134
+ FixedArrayMaxLength: DefaultRegister['fixedArrayMaxLength'];
135
+ /** @deprecated Use `addressType` instead */
136
+ AddressType: DefaultRegister['addressType'];
137
+ /** @deprecated Use `bytesType` instead */
138
+ BytesType: {
139
+ inputs: DefaultRegister['bytesType']['inputs'];
140
+ outputs: DefaultRegister['bytesType']['outputs'];
141
+ };
142
+ /** @deprecated Use `bigIntType` instead */
143
+ BigIntType: DefaultRegister['bigIntType'];
144
+ /** @deprecated Use `intType` instead */
145
+ IntType: DefaultRegister['intType'];
146
+ /** @deprecated Use `strictAbiType` instead */
147
+ StrictAbiType: DefaultRegister['strictAbiType'];
148
+ };
149
+ //#endregion
150
+ //#region ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/abi.d.ts
151
+ type Address = ResolvedRegister['addressType'];
152
+ //#endregion
153
+ export { Address as t };
154
+ //# sourceMappingURL=abi-CQuxrNCU.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abi-CQuxrNCU.d.cts","names":["Register","ResolvedRegister","type","DefaultRegister","ResolvedRegister","Pretty","Range","Address","MBytes","MBits","SolidityAddress","SolidityBool","SolidityBytes","SolidityFunction","SolidityString","SolidityTuple","SolidityInt","SolidityFixedArrayRange","SolidityFixedArraySizeLookup","Prop","_BuildArrayTypes","T","Depth","SolidityArrayWithoutTuple","SolidityArrayWithTuple","SolidityArray","AbiType","ResolvedAbiType","AbiInternalType","AbiParameter","Exclude","AbiEventParameter","AbiStateMutability","AbiParameterKind","AbiFunction","AbiConstructor","Extract","AbiFallback","AbiReceive","AbiEvent","AbiError","AbiItemType","Abi","TypedDataDomain","TypedDataType","TypedDataParameter","TypedData","Record"],"sources":["../../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/register.d.ts","../../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.12/node_modules/abitype/dist/types/abi.d.ts"],"sourcesContent":["export interface Register {\n}\nexport type ResolvedRegister = {\n /**\n * TypeScript type to use for `address` values\n * @default `0x${string}`\n */\n addressType: Register extends {\n addressType: infer type;\n } ? type : Register extends {\n AddressType: infer type;\n } ? type : DefaultRegister['addressType'];\n /**\n * TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48`\n * @default bigint\n */\n bigIntType: Register extends {\n bigIntType: infer type;\n } ? type : Register extends {\n BigIntType: infer type;\n } ? type : DefaultRegister['bigIntType'];\n /**\n * TypeScript type to use for `bytes` values\n * @default { inputs: `0x${string}`; outputs: `0x${string}`; }\n */\n bytesType: Register extends {\n bytesType: infer type extends {\n inputs: unknown;\n outputs: unknown;\n };\n } ? type : Register extends {\n BytesType: infer type extends {\n inputs: unknown;\n outputs: unknown;\n };\n } ? type : DefaultRegister['bytesType'];\n /**\n * TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48`\n * @default number\n */\n intType: Register extends {\n intType: infer type;\n } ? type : Register extends {\n IntType: infer type;\n } ? type : DefaultRegister['intType'];\n /**\n * Maximum depth for nested array types (e.g. string[][])\n *\n * Note: You probably only want to set this to a specific number if parsed types are returning as `unknown`\n * and you want to figure out why. If you set this, you should probably also reduce `FixedArrayMaxLength`.\n *\n * @default false\n */\n arrayMaxDepth: Register extends {\n arrayMaxDepth: infer type extends number | false;\n } ? type : Register extends {\n ArrayMaxDepth: infer type extends number | false;\n } ? type : DefaultRegister['arrayMaxDepth'];\n /**\n * Lower bound for fixed array length\n * @default 1\n */\n fixedArrayMinLength: Register extends {\n fixedArrayMinLength: infer type extends number;\n } ? type : Register extends {\n FixedArrayMinLength: infer type extends number;\n } ? type : DefaultRegister['fixedArrayMinLength'];\n /**\n * Upper bound for fixed array length\n * @default 99\n */\n fixedArrayMaxLength: Register extends {\n fixedArrayMaxLength: infer type extends number;\n } ? type : Register extends {\n FixedArrayMaxLength: infer type extends number;\n } ? type : DefaultRegister['fixedArrayMaxLength'];\n /**\n * When set, validates {@link AbiParameter}'s `type` against {@link AbiType}\n *\n * Note: You probably only want to set this to `true` if parsed types are returning as `unknown`\n * and you want to figure out why.\n *\n * @default false\n */\n strictAbiType: Register extends {\n strictAbiType: infer type extends boolean;\n } ? type : Register extends {\n StrictAbiType: infer type extends boolean;\n } ? type : DefaultRegister['strictAbiType'];\n /** @deprecated Use `addressType` instead */\n AddressType: ResolvedRegister['addressType'];\n /** @deprecated Use `addressType` instead */\n BigIntType: ResolvedRegister['bigIntType'];\n /** @deprecated Use `bytesType` instead */\n BytesType: ResolvedRegister['bytesType'];\n /** @deprecated Use `intType` instead */\n IntType: ResolvedRegister['intType'];\n /** @deprecated Use `arrayMaxDepth` instead */\n ArrayMaxDepth: ResolvedRegister['arrayMaxDepth'];\n /** @deprecated Use `fixedArrayMinLength` instead */\n FixedArrayMinLength: ResolvedRegister['fixedArrayMinLength'];\n /** @deprecated Use `fixedArrayMaxLength` instead */\n FixedArrayMaxLength: ResolvedRegister['fixedArrayMaxLength'];\n /** @deprecated Use `strictAbiType` instead */\n StrictAbiType: ResolvedRegister['strictAbiType'];\n};\nexport type DefaultRegister = {\n /** Maximum depth for nested array types (e.g. string[][]) */\n arrayMaxDepth: false;\n /** Lower bound for fixed array length */\n fixedArrayMinLength: 1;\n /** Upper bound for fixed array length */\n fixedArrayMaxLength: 99;\n /** TypeScript type to use for `address` values */\n addressType: `0x${string}`;\n /** TypeScript type to use for `bytes` values */\n bytesType: {\n /** TypeScript type to use for `bytes` input values */\n inputs: `0x${string}`;\n /** TypeScript type to use for `bytes` output values */\n outputs: `0x${string}`;\n };\n /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48` */\n bigIntType: bigint;\n /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48` */\n intType: number;\n /** When set, validates {@link AbiParameter}'s `type` against {@link AbiType} */\n strictAbiType: false;\n /** @deprecated Use `arrayMaxDepth` instead */\n ArrayMaxDepth: DefaultRegister['arrayMaxDepth'];\n /** @deprecated Use `fixedArrayMinLength` instead */\n FixedArrayMinLength: DefaultRegister['fixedArrayMinLength'];\n /** @deprecated Use `fixedArrayMaxLength` instead */\n FixedArrayMaxLength: DefaultRegister['fixedArrayMaxLength'];\n /** @deprecated Use `addressType` instead */\n AddressType: DefaultRegister['addressType'];\n /** @deprecated Use `bytesType` instead */\n BytesType: {\n inputs: DefaultRegister['bytesType']['inputs'];\n outputs: DefaultRegister['bytesType']['outputs'];\n };\n /** @deprecated Use `bigIntType` instead */\n BigIntType: DefaultRegister['bigIntType'];\n /** @deprecated Use `intType` instead */\n IntType: DefaultRegister['intType'];\n /** @deprecated Use `strictAbiType` instead */\n StrictAbiType: DefaultRegister['strictAbiType'];\n};\n//# sourceMappingURL=register.d.ts.map","import type { ResolvedRegister } from './register.js';\nimport type { Pretty, Range } from './types.js';\nexport type Address = ResolvedRegister['addressType'];\ntype MBytes = '' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32;\nexport type MBits = '' | 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96 | 104 | 112 | 120 | 128 | 136 | 144 | 152 | 160 | 168 | 176 | 184 | 192 | 200 | 208 | 216 | 224 | 232 | 240 | 248 | 256;\nexport type SolidityAddress = 'address';\nexport type SolidityBool = 'bool';\nexport type SolidityBytes = `bytes${MBytes}`;\nexport type SolidityFunction = 'function';\nexport type SolidityString = 'string';\nexport type SolidityTuple = 'tuple';\nexport type SolidityInt = `${'u' | ''}int${MBits}`;\nexport type SolidityFixedArrayRange = Range<ResolvedRegister['fixedArrayMinLength'], ResolvedRegister['fixedArrayMaxLength']>[number];\nexport type SolidityFixedArraySizeLookup = {\n [Prop in SolidityFixedArrayRange as `${Prop}`]: Prop;\n};\n/**\n * Recursively build arrays up to maximum depth\n * or use a more broad type when maximum depth is switched \"off\"\n */\ntype _BuildArrayTypes<T extends string, Depth extends readonly number[] = []> = ResolvedRegister['arrayMaxDepth'] extends false ? `${T}[${string}]` : Depth['length'] extends ResolvedRegister['arrayMaxDepth'] ? T : T extends `${any}[${SolidityFixedArrayRange | ''}]` ? _BuildArrayTypes<T | `${T}[${SolidityFixedArrayRange | ''}]`, [\n ...Depth,\n 1\n]> : _BuildArrayTypes<`${T}[${SolidityFixedArrayRange | ''}]`, [...Depth, 1]>;\nexport type SolidityArrayWithoutTuple = _BuildArrayTypes<SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString>;\nexport type SolidityArrayWithTuple = _BuildArrayTypes<SolidityTuple>;\nexport type SolidityArray = SolidityArrayWithoutTuple | SolidityArrayWithTuple;\nexport type AbiType = SolidityArray | SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString | SolidityTuple;\ntype ResolvedAbiType = ResolvedRegister['strictAbiType'] extends true ? AbiType : string;\nexport type AbiInternalType = ResolvedAbiType | `address ${string}` | `contract ${string}` | `enum ${string}` | `struct ${string}`;\nexport type AbiParameter = Pretty<{\n type: ResolvedAbiType;\n name?: string | undefined;\n /** Representation used by Solidity compiler */\n internalType?: AbiInternalType | undefined;\n} & ({\n type: Exclude<ResolvedAbiType, SolidityTuple | SolidityArrayWithTuple>;\n} | {\n type: SolidityTuple | SolidityArrayWithTuple;\n components: readonly AbiParameter[];\n})>;\nexport type AbiEventParameter = AbiParameter & {\n indexed?: boolean | undefined;\n};\n/**\n * State mutability for {@link AbiFunction}\n *\n * @see https://docs.soliditylang.org/en/latest/contracts.html#state-mutability\n */\nexport type AbiStateMutability = 'pure' | 'view' | 'nonpayable' | 'payable';\n/** Kind of {@link AbiParameter} */\nexport type AbiParameterKind = 'inputs' | 'outputs';\n/** ABI [\"function\"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */\nexport type AbiFunction = {\n type: 'function';\n /**\n * @deprecated use `pure` or `view` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n constant?: boolean | undefined;\n /**\n * @deprecated Vyper used to provide gas estimates\n * @see https://github.com/vyperlang/vyper/issues/2151\n */\n gas?: number | undefined;\n inputs: readonly AbiParameter[];\n name: string;\n outputs: readonly AbiParameter[];\n /**\n * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n payable?: boolean | undefined;\n stateMutability: AbiStateMutability;\n};\n/** ABI [\"constructor\"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */\nexport type AbiConstructor = {\n type: 'constructor';\n inputs: readonly AbiParameter[];\n /**\n * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n payable?: boolean | undefined;\n stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;\n};\n/** ABI [\"fallback\"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */\nexport type AbiFallback = {\n type: 'fallback';\n /**\n * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead\n * @see https://github.com/ethereum/solidity/issues/992\n */\n payable?: boolean | undefined;\n stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;\n};\n/** ABI [\"receive\"](https://docs.soliditylang.org/en/latest/contracts.html#receive-ether-function) type */\nexport type AbiReceive = {\n type: 'receive';\n stateMutability: Extract<AbiStateMutability, 'payable'>;\n};\n/** ABI [\"event\"](https://docs.soliditylang.org/en/latest/abi-spec.html#events) type */\nexport type AbiEvent = {\n type: 'event';\n anonymous?: boolean | undefined;\n inputs: readonly AbiEventParameter[];\n name: string;\n};\n/** ABI [\"error\"](https://docs.soliditylang.org/en/latest/abi-spec.html#errors) type */\nexport type AbiError = {\n type: 'error';\n inputs: readonly AbiParameter[];\n name: string;\n};\n/** `\"type\"` name for {@link Abi} items. */\nexport type AbiItemType = 'constructor' | 'error' | 'event' | 'fallback' | 'function' | 'receive';\n/**\n * Contract [ABI Specification](https://docs.soliditylang.org/en/latest/abi-spec.html#json)\n */\nexport type Abi = readonly (AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive)[];\nexport type TypedDataDomain = {\n chainId?: number | bigint | undefined;\n name?: string | undefined;\n salt?: ResolvedRegister['bytesType']['outputs'] | undefined;\n verifyingContract?: Address | undefined;\n version?: string | undefined;\n};\nexport type TypedDataType = Exclude<AbiType, SolidityFunction | SolidityTuple | SolidityArrayWithTuple | 'int' | 'uint'>;\nexport type TypedDataParameter = {\n name: string;\n type: TypedDataType | keyof TypedData | `${keyof TypedData}[${string | ''}]`;\n};\n/**\n * [EIP-712](https://eips.ethereum.org/EIPS/eip-712#definition-of-typed-structured-data-%F0%9D%95%8A) Typed Data Specification\n */\nexport type TypedData = Pretty<Record<string, readonly TypedDataParameter[]> & {\n [_ in TypedDataType]?: never;\n}>;\nexport {};\n//# sourceMappingURL=abi.d.ts.map"],"x_google_ignoreList":[0,1],"mappings":";UAAiBA,QAAAA,EAAjB;AAEYC,KAAAA,gBAAAA,GAAgB;EAKXD;;;;EAIFG,WAAAA,EAJEH,QAIFG,SAAAA;IAKCH,WAAAA,EAAAA,KAAAA,KAAAA;EAERE,CAAAA,GATAA,IASAA,GATOF,QASPE,SAAAA;IAAOF,WAAAA,EAAAA,KAAAA,KAAAA;EAEPE,CAAAA,GATAA,IASAA,GATOC,eASPD,CAAAA,aAAAA,CAAAA;EAAOC;;;;EAePD,UAAAA,EAnBQF,QAmBRE,SAAAA;IAAOC,UAAAA,EAAAA,KAAAA,KAAAA;EAKFH,CAAAA,GAtBLE,IAsBKF,GAtBEA,QAsBFA,SAAAA;IAELE,UAAAA,EAAAA,KAAAA,KAAAA;EAAOF,CAAAA,GAtBPE,IAsBOF,GAtBAG,eAsBAH,CAAAA,YAAAA,CAAAA;EAEPE;;;;EAWOF,SAAAA,EA9BAA,QA8BAA,SAAAA;IAEPE,SAAAA,EAAAA,KAAAA,cAAAA;MAAOC,MAAAA,EAAAA,OAAAA;MAKUH,OAAAA,EAAAA,OAAAA;IAEjBE,CAAAA;EAAOF,CAAAA,GAlCPE,IAkCOF,GAlCAA,QAkCAA,SAAAA;IAEPE,SAAAA,EAAAA,KAAAA,cAAAA;MAAOC,MAAAA,EAAAA,OAAAA;MAKUH,OAAAA,EAAAA,OAAAA;IAEjBE,CAAAA;EAAOF,CAAAA,GAtCPE,IAsCOF,GAtCAG,eAsCAH,CAAAA,WAAAA,CAAAA;EAEPE;;;;EAWOF,OAAAA,EA9CFA,QA8CEA,SAAAA;IAEPE,OAAAA,EAAAA,KAAAA,KAAAA;EAAOC,CAAAA,GA9CPD,IA8COC,GA9CAH,QA8CAG,SAAAA;IAEEF,OAAAA,EAAAA,KAAAA,KAAAA;EAEDA,CAAAA,GAhDRC,IAgDQD,GAhDDE,eAgDCF,CAAAA,SAAAA,CAAAA;EAEDA;;;;;;;AAYf;EAuBmBE,aAAAA,EA5EAH,QA4EAG,SAAAA;IAEMA,aAAAA,EAAAA,KAAAA,cAAAA,MAAAA,GAAAA,KAAAA;EAEAA,CAAAA,GA9EjBD,IA8EiBC,GA9EVH,QA8EUG,SAAAA;IAERA,aAAAA,EAAAA,KAAAA,cAAAA,MAAAA,GAAAA,KAAAA;EAGDA,CAAAA,GAjFRD,IAiFQC,GAjFDA,eAiFCA,CAAAA,eAAAA,CAAAA;EACCA;;;;EAOiB,mBAAA,EApFTH,QAoFS,SAAA;;MAlF1BE,OAAOF;;EC9DHO,CAAAA,GDgEJL,IChEIK,GDgEGJ,eChEOC,CAAAA,qBAAgB,CAAA;;;;;uBDqEbJ;;MAEjBE,OAAOF;;MAEPE,OAAOC;;;;;;;;;iBASIH;;MAEXE,OAAOF;;MAEPE,OAAOC;;eAEEF;;cAEDA;;aAEDA;;WAEFA;;iBAEMA;;uBAEMA;;uBAEAA;;iBAENA;;KAEPE,eAAAA;;;;;;;;;;;;;;;;;;;;;;;iBAuBOA;;uBAEMA;;uBAEAA;;eAERA;;;YAGDA;aACCA;;;cAGDA;;WAEHA;;iBAEMA;;;;AAhJPF,KCAAM,OAAAA,GAAUH,gBDAM,CAAA,aAAA,CAAA"}
@@ -0,0 +1,7 @@
1
+ const require_account = require('../account-Bwm5PTcc.cjs');
2
+
3
+ exports.AccountType = require_account.AccountType;
4
+ exports.ServerAccountType = require_account.ServerAccountType;
5
+ exports.createClientContext = require_account.createClientContext;
6
+ exports.isApiAccountConfig = require_account.isApiAccountConfig;
7
+ exports.isPrivateKeyAccountConfig = require_account.isPrivateKeyAccountConfig;
@@ -0,0 +1,3 @@
1
+ import "../misc-CpZxSPCP.cjs";
2
+ import { a as AccountType, c as OtimAccountSignMessageArgs, d as ServerAccountType, i as AccountConfig, l as PrivateKeyAccountConfig, n as isApiAccountConfig, o as ApiAccountConfig, r as isPrivateKeyAccountConfig, s as OtimAccount, t as createClientContext, u as ServerAccountConfig } from "../index-DK-40z4V.cjs";
3
+ export { AccountConfig, AccountType, ApiAccountConfig, OtimAccount, OtimAccountSignMessageArgs, PrivateKeyAccountConfig, ServerAccountConfig, ServerAccountType, createClientContext, isApiAccountConfig, isPrivateKeyAccountConfig };
@@ -0,0 +1,3 @@
1
+ import "../misc-CX4pLJaA.mjs";
2
+ import { a as AccountType, c as OtimAccountSignMessageArgs, d as ServerAccountType, i as AccountConfig, l as PrivateKeyAccountConfig, n as isApiAccountConfig, o as ApiAccountConfig, r as isPrivateKeyAccountConfig, s as OtimAccount, t as createClientContext, u as ServerAccountConfig } from "../index-B4fkcFy5.mjs";
3
+ export { AccountConfig, AccountType, ApiAccountConfig, OtimAccount, OtimAccountSignMessageArgs, PrivateKeyAccountConfig, ServerAccountConfig, ServerAccountType, createClientContext, isApiAccountConfig, isPrivateKeyAccountConfig };
@@ -0,0 +1,3 @@
1
+ import { a as ServerAccountType, i as AccountType, n as isApiAccountConfig, r as isPrivateKeyAccountConfig, t as createClientContext } from "../account-p4sxzIt3.mjs";
2
+
3
+ export { AccountType, ServerAccountType, createClientContext, isApiAccountConfig, isPrivateKeyAccountConfig };
@@ -0,0 +1,56 @@
1
+
2
+ //#region src/account/types.ts
3
+ const ServerAccountType = {
4
+ PrivateKey: "privateKey",
5
+ Api: "api"
6
+ };
7
+ const AccountType = { ...ServerAccountType };
8
+
9
+ //#endregion
10
+ //#region src/account/helpers.ts
11
+ function isApiAccountConfig(config) {
12
+ return config.type === ServerAccountType.Api;
13
+ }
14
+ function isPrivateKeyAccountConfig(config) {
15
+ return config.type === ServerAccountType.PrivateKey;
16
+ }
17
+ function createClientContext(config) {
18
+ return {
19
+ usesApiKeyAuth: isApiAccountConfig(config) && config.apiKey !== void 0,
20
+ config,
21
+ accountType: config.type
22
+ };
23
+ }
24
+
25
+ //#endregion
26
+ Object.defineProperty(exports, 'AccountType', {
27
+ enumerable: true,
28
+ get: function () {
29
+ return AccountType;
30
+ }
31
+ });
32
+ Object.defineProperty(exports, 'ServerAccountType', {
33
+ enumerable: true,
34
+ get: function () {
35
+ return ServerAccountType;
36
+ }
37
+ });
38
+ Object.defineProperty(exports, 'createClientContext', {
39
+ enumerable: true,
40
+ get: function () {
41
+ return createClientContext;
42
+ }
43
+ });
44
+ Object.defineProperty(exports, 'isApiAccountConfig', {
45
+ enumerable: true,
46
+ get: function () {
47
+ return isApiAccountConfig;
48
+ }
49
+ });
50
+ Object.defineProperty(exports, 'isPrivateKeyAccountConfig', {
51
+ enumerable: true,
52
+ get: function () {
53
+ return isPrivateKeyAccountConfig;
54
+ }
55
+ });
56
+ //# sourceMappingURL=account-Bwm5PTcc.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-Bwm5PTcc.cjs","names":[],"sources":["../src/account/types.ts","../src/account/helpers.ts"],"sourcesContent":["import type { Environment } from \"@otim/sdk-core/config\";\nimport type { Hex } from \"viem\";\n\nexport const ServerAccountType = {\n PrivateKey: \"privateKey\",\n Api: \"api\",\n} as const;\nexport type ServerAccountType =\n (typeof ServerAccountType)[keyof typeof ServerAccountType];\n\nexport const AccountType = {\n ...ServerAccountType,\n} as const;\nexport type AccountType = (typeof AccountType)[keyof typeof AccountType];\n\n/**\n * Otim Account\n */\n\nexport type OtimAccountSignMessageArgs = {\n message: string | { raw: Hex | Uint8Array };\n};\n\nexport interface OtimAccount {\n initialize(): Promise<void>;\n signMessage(args: OtimAccountSignMessageArgs): Promise<Hex>;\n}\n\n/**\n * Account Config\n */\n\ninterface BaseAccountConfig {\n environment?: Environment;\n}\n\nexport interface ApiAccountConfig extends BaseAccountConfig {\n type: typeof ServerAccountType.Api;\n appId: string;\n privateKey: string;\n publicKey: string;\n apiKey?: string;\n}\n\nexport interface PrivateKeyAccountConfig extends BaseAccountConfig {\n type: typeof ServerAccountType.PrivateKey;\n privateKey: `0x${string}`;\n}\n\nexport type ServerAccountConfig = ApiAccountConfig | PrivateKeyAccountConfig;\n\nexport type AccountConfig = ServerAccountConfig;\n","import type {\n ApiAccountConfig,\n PrivateKeyAccountConfig,\n ServerAccountConfig,\n} from \"./types\";\nimport type { OtimServerClientContext } from \"@otim/sdk-core/context\";\n\nimport { ServerAccountType } from \"./types\";\n\nexport function isApiAccountConfig(\n config: ServerAccountConfig,\n): config is ApiAccountConfig {\n return config.type === ServerAccountType.Api;\n}\n\nexport function isPrivateKeyAccountConfig(\n config: ServerAccountConfig,\n): config is PrivateKeyAccountConfig {\n return config.type === ServerAccountType.PrivateKey;\n}\n\nexport function createClientContext(\n config: ServerAccountConfig,\n): OtimServerClientContext {\n const usesApiKeyAuth =\n isApiAccountConfig(config) && config.apiKey !== undefined;\n\n return { usesApiKeyAuth, config, accountType: config.type };\n}\n"],"mappings":";;AAGA,MAAa,oBAAoB;CAC/B,YAAY;CACZ,KAAK;CACN;AAID,MAAa,cAAc,EACzB,GAAG,mBACJ;;;;ACHD,SAAgB,mBACd,QAC4B;AAC5B,QAAO,OAAO,SAAS,kBAAkB;;AAG3C,SAAgB,0BACd,QACmC;AACnC,QAAO,OAAO,SAAS,kBAAkB;;AAG3C,SAAgB,oBACd,QACyB;AAIzB,QAAO;EAAE,gBAFP,mBAAmB,OAAO,IAAI,OAAO,WAAW;EAEzB;EAAQ,aAAa,OAAO;EAAM"}
@@ -0,0 +1,26 @@
1
+ //#region src/account/types.ts
2
+ const ServerAccountType = {
3
+ PrivateKey: "privateKey",
4
+ Api: "api"
5
+ };
6
+ const AccountType = { ...ServerAccountType };
7
+
8
+ //#endregion
9
+ //#region src/account/helpers.ts
10
+ function isApiAccountConfig(config) {
11
+ return config.type === ServerAccountType.Api;
12
+ }
13
+ function isPrivateKeyAccountConfig(config) {
14
+ return config.type === ServerAccountType.PrivateKey;
15
+ }
16
+ function createClientContext(config) {
17
+ return {
18
+ usesApiKeyAuth: isApiAccountConfig(config) && config.apiKey !== void 0,
19
+ config,
20
+ accountType: config.type
21
+ };
22
+ }
23
+
24
+ //#endregion
25
+ export { ServerAccountType as a, AccountType as i, isApiAccountConfig as n, isPrivateKeyAccountConfig as r, createClientContext as t };
26
+ //# sourceMappingURL=account-p4sxzIt3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-p4sxzIt3.mjs","names":[],"sources":["../src/account/types.ts","../src/account/helpers.ts"],"sourcesContent":["import type { Environment } from \"@otim/sdk-core/config\";\nimport type { Hex } from \"viem\";\n\nexport const ServerAccountType = {\n PrivateKey: \"privateKey\",\n Api: \"api\",\n} as const;\nexport type ServerAccountType =\n (typeof ServerAccountType)[keyof typeof ServerAccountType];\n\nexport const AccountType = {\n ...ServerAccountType,\n} as const;\nexport type AccountType = (typeof AccountType)[keyof typeof AccountType];\n\n/**\n * Otim Account\n */\n\nexport type OtimAccountSignMessageArgs = {\n message: string | { raw: Hex | Uint8Array };\n};\n\nexport interface OtimAccount {\n initialize(): Promise<void>;\n signMessage(args: OtimAccountSignMessageArgs): Promise<Hex>;\n}\n\n/**\n * Account Config\n */\n\ninterface BaseAccountConfig {\n environment?: Environment;\n}\n\nexport interface ApiAccountConfig extends BaseAccountConfig {\n type: typeof ServerAccountType.Api;\n appId: string;\n privateKey: string;\n publicKey: string;\n apiKey?: string;\n}\n\nexport interface PrivateKeyAccountConfig extends BaseAccountConfig {\n type: typeof ServerAccountType.PrivateKey;\n privateKey: `0x${string}`;\n}\n\nexport type ServerAccountConfig = ApiAccountConfig | PrivateKeyAccountConfig;\n\nexport type AccountConfig = ServerAccountConfig;\n","import type {\n ApiAccountConfig,\n PrivateKeyAccountConfig,\n ServerAccountConfig,\n} from \"./types\";\nimport type { OtimServerClientContext } from \"@otim/sdk-core/context\";\n\nimport { ServerAccountType } from \"./types\";\n\nexport function isApiAccountConfig(\n config: ServerAccountConfig,\n): config is ApiAccountConfig {\n return config.type === ServerAccountType.Api;\n}\n\nexport function isPrivateKeyAccountConfig(\n config: ServerAccountConfig,\n): config is PrivateKeyAccountConfig {\n return config.type === ServerAccountType.PrivateKey;\n}\n\nexport function createClientContext(\n config: ServerAccountConfig,\n): OtimServerClientContext {\n const usesApiKeyAuth =\n isApiAccountConfig(config) && config.apiKey !== undefined;\n\n return { usesApiKeyAuth, config, accountType: config.type };\n}\n"],"mappings":";AAGA,MAAa,oBAAoB;CAC/B,YAAY;CACZ,KAAK;CACN;AAID,MAAa,cAAc,EACzB,GAAG,mBACJ;;;;ACHD,SAAgB,mBACd,QAC4B;AAC5B,QAAO,OAAO,SAAS,kBAAkB;;AAG3C,SAAgB,0BACd,QACmC;AACnC,QAAO,OAAO,SAAS,kBAAkB;;AAG3C,SAAgB,oBACd,QACyB;AAIzB,QAAO;EAAE,gBAFP,mBAAmB,OAAO,IAAI,OAAO,WAAW;EAEzB;EAAQ,aAAa,OAAO;EAAM"}
@@ -0,0 +1,7 @@
1
+ const require_clients = require('../clients-DBRhkU4y.cjs');
2
+
3
+ exports.AuthClient = require_clients.AuthClient;
4
+ exports.ConfigClient = require_clients.ConfigClient;
5
+ exports.DelegationClient = require_clients.DelegationClient;
6
+ exports.OrchestrationClient = require_clients.OrchestrationClient;
7
+ exports.PaymentRequestsClient = require_clients.PaymentRequestsClient;
@@ -0,0 +1,3 @@
1
+ import "../abi-CQuxrNCU.cjs";
2
+ import { a as PaymentRequestsClient, c as AuthClient, i as CreatePaymentRequestResponse, l as LoginOptions, n as ActivatePaymentRequestParams, o as DelegationClient, r as CreatePaymentRequestParameters, s as ConfigClient, t as OrchestrationClient } from "../index-De8OZ-Be.cjs";
3
+ export { ActivatePaymentRequestParams, AuthClient, ConfigClient, CreatePaymentRequestParameters, CreatePaymentRequestResponse, DelegationClient, LoginOptions, OrchestrationClient, PaymentRequestsClient };
@@ -0,0 +1,3 @@
1
+ import "../abi-Bd3X6gV9.mjs";
2
+ import { a as PaymentRequestsClient, c as AuthClient, i as CreatePaymentRequestResponse, l as LoginOptions, n as ActivatePaymentRequestParams, o as DelegationClient, r as CreatePaymentRequestParameters, s as ConfigClient, t as OrchestrationClient } from "../index-e5BLgzcW.mjs";
3
+ export { ActivatePaymentRequestParams, AuthClient, ConfigClient, CreatePaymentRequestParameters, CreatePaymentRequestResponse, DelegationClient, LoginOptions, OrchestrationClient, PaymentRequestsClient };
@@ -0,0 +1,3 @@
1
+ import { a as AuthClient, i as ConfigClient, n as PaymentRequestsClient, r as DelegationClient, t as OrchestrationClient } from "../clients-DMKeLhcJ.mjs";
2
+
3
+ export { AuthClient, ConfigClient, DelegationClient, OrchestrationClient, PaymentRequestsClient };