@apibara/evm 2.1.0-beta.13 → 2.1.0-beta.15

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/index.d.cts CHANGED
@@ -539,6 +539,7 @@ declare const B256: Schema.transform<Schema.Struct<{
539
539
  x2: typeof Schema.BigIntFromSelf;
540
540
  x3: typeof Schema.BigIntFromSelf;
541
541
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
542
+ type B256 = typeof B256.Type;
542
543
  declare const b256ToProto: (a: `0x${string}`, overrideOptions?: _effect_schema_AST.ParseOptions) => {
543
544
  readonly x0: bigint;
544
545
  readonly x1: bigint;
@@ -558,6 +559,7 @@ declare const U256: Schema.transform<Schema.Struct<{
558
559
  x2: typeof Schema.BigIntFromSelf;
559
560
  x3: typeof Schema.BigIntFromSelf;
560
561
  }>, typeof Schema.BigIntFromSelf>;
562
+ type U256 = typeof U256.Type;
561
563
  declare const u256ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
562
564
  readonly x0: bigint;
563
565
  readonly x1: bigint;
@@ -575,6 +577,7 @@ declare const U128: Schema.transform<Schema.Struct<{
575
577
  x0: typeof Schema.BigIntFromSelf;
576
578
  x1: typeof Schema.BigIntFromSelf;
577
579
  }>, typeof Schema.BigIntFromSelf>;
580
+ type U128 = typeof U128.Type;
578
581
  declare const u128ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
579
582
  readonly x0: bigint;
580
583
  readonly x1: bigint;
@@ -617,6 +620,7 @@ declare const Topic: Schema.transform<Schema.Struct<{
617
620
  x2: typeof Schema.BigIntFromSelf;
618
621
  x3: typeof Schema.BigIntFromSelf;
619
622
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>>;
623
+ type Topic = typeof Topic.Type;
620
624
  declare const LogFilter: Schema.Struct<{
621
625
  id: Schema.optional<typeof Schema.Number>;
622
626
  address: Schema.optional<Schema.transform<Schema.Struct<{
@@ -975,6 +979,7 @@ declare function mergeFilter(a: Filter, b: Filter): Filter;
975
979
  declare const Bloom: Schema.transform<Schema.Struct<{
976
980
  value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
977
981
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
982
+ type Bloom = typeof Bloom.Type;
978
983
  declare const TransactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
979
984
  type TransactionStatus = typeof TransactionStatus.Type;
980
985
  declare const BlockHeader: Schema.Struct<{
@@ -1090,6 +1095,7 @@ declare const Withdrawal: Schema.Struct<{
1090
1095
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1091
1096
  amount: typeof Schema.BigIntFromSelf;
1092
1097
  }>;
1098
+ type Withdrawal = typeof Withdrawal.Type;
1093
1099
  declare const AccessListItem: Schema.Struct<{
1094
1100
  address: Schema.transform<Schema.Struct<{
1095
1101
  x0: typeof Schema.BigIntFromSelf;
@@ -1103,6 +1109,7 @@ declare const AccessListItem: Schema.Struct<{
1103
1109
  x3: typeof Schema.BigIntFromSelf;
1104
1110
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1105
1111
  }>;
1112
+ type AccessListItem = typeof AccessListItem.Type;
1106
1113
  declare const Signature: Schema.Struct<{
1107
1114
  r: Schema.transform<Schema.Struct<{
1108
1115
  x0: typeof Schema.BigIntFromSelf;
@@ -1124,6 +1131,7 @@ declare const Signature: Schema.Struct<{
1124
1131
  }>, typeof Schema.BigIntFromSelf>;
1125
1132
  YParity: Schema.optional<typeof Schema.Boolean>;
1126
1133
  }>;
1134
+ type Signature = typeof Signature.Type;
1127
1135
  declare const Transaction: Schema.Struct<{
1128
1136
  filterIds: Schema.Array$<typeof Schema.Number>;
1129
1137
  transactionIndex: typeof Schema.Number;
@@ -1215,6 +1223,7 @@ declare const Transaction: Schema.Struct<{
1215
1223
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1216
1224
  transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1217
1225
  }>;
1226
+ type Transaction = typeof Transaction.Type;
1218
1227
  declare const TransactionReceipt: Schema.Struct<{
1219
1228
  filterIds: Schema.Array$<typeof Schema.Number>;
1220
1229
  transactionIndex: typeof Schema.Number;
@@ -1265,6 +1274,7 @@ declare const TransactionReceipt: Schema.Struct<{
1265
1274
  }>, typeof Schema.BigIntFromSelf>>;
1266
1275
  transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1267
1276
  }>;
1277
+ type TransactionReceipt = typeof TransactionReceipt.Type;
1268
1278
  declare const Log: Schema.Struct<{
1269
1279
  filterIds: Schema.Array$<typeof Schema.Number>;
1270
1280
  address: Schema.transform<Schema.Struct<{
package/dist/index.d.mts CHANGED
@@ -539,6 +539,7 @@ declare const B256: Schema.transform<Schema.Struct<{
539
539
  x2: typeof Schema.BigIntFromSelf;
540
540
  x3: typeof Schema.BigIntFromSelf;
541
541
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
542
+ type B256 = typeof B256.Type;
542
543
  declare const b256ToProto: (a: `0x${string}`, overrideOptions?: _effect_schema_AST.ParseOptions) => {
543
544
  readonly x0: bigint;
544
545
  readonly x1: bigint;
@@ -558,6 +559,7 @@ declare const U256: Schema.transform<Schema.Struct<{
558
559
  x2: typeof Schema.BigIntFromSelf;
559
560
  x3: typeof Schema.BigIntFromSelf;
560
561
  }>, typeof Schema.BigIntFromSelf>;
562
+ type U256 = typeof U256.Type;
561
563
  declare const u256ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
562
564
  readonly x0: bigint;
563
565
  readonly x1: bigint;
@@ -575,6 +577,7 @@ declare const U128: Schema.transform<Schema.Struct<{
575
577
  x0: typeof Schema.BigIntFromSelf;
576
578
  x1: typeof Schema.BigIntFromSelf;
577
579
  }>, typeof Schema.BigIntFromSelf>;
580
+ type U128 = typeof U128.Type;
578
581
  declare const u128ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
579
582
  readonly x0: bigint;
580
583
  readonly x1: bigint;
@@ -617,6 +620,7 @@ declare const Topic: Schema.transform<Schema.Struct<{
617
620
  x2: typeof Schema.BigIntFromSelf;
618
621
  x3: typeof Schema.BigIntFromSelf;
619
622
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>>;
623
+ type Topic = typeof Topic.Type;
620
624
  declare const LogFilter: Schema.Struct<{
621
625
  id: Schema.optional<typeof Schema.Number>;
622
626
  address: Schema.optional<Schema.transform<Schema.Struct<{
@@ -975,6 +979,7 @@ declare function mergeFilter(a: Filter, b: Filter): Filter;
975
979
  declare const Bloom: Schema.transform<Schema.Struct<{
976
980
  value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
977
981
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
982
+ type Bloom = typeof Bloom.Type;
978
983
  declare const TransactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
979
984
  type TransactionStatus = typeof TransactionStatus.Type;
980
985
  declare const BlockHeader: Schema.Struct<{
@@ -1090,6 +1095,7 @@ declare const Withdrawal: Schema.Struct<{
1090
1095
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1091
1096
  amount: typeof Schema.BigIntFromSelf;
1092
1097
  }>;
1098
+ type Withdrawal = typeof Withdrawal.Type;
1093
1099
  declare const AccessListItem: Schema.Struct<{
1094
1100
  address: Schema.transform<Schema.Struct<{
1095
1101
  x0: typeof Schema.BigIntFromSelf;
@@ -1103,6 +1109,7 @@ declare const AccessListItem: Schema.Struct<{
1103
1109
  x3: typeof Schema.BigIntFromSelf;
1104
1110
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1105
1111
  }>;
1112
+ type AccessListItem = typeof AccessListItem.Type;
1106
1113
  declare const Signature: Schema.Struct<{
1107
1114
  r: Schema.transform<Schema.Struct<{
1108
1115
  x0: typeof Schema.BigIntFromSelf;
@@ -1124,6 +1131,7 @@ declare const Signature: Schema.Struct<{
1124
1131
  }>, typeof Schema.BigIntFromSelf>;
1125
1132
  YParity: Schema.optional<typeof Schema.Boolean>;
1126
1133
  }>;
1134
+ type Signature = typeof Signature.Type;
1127
1135
  declare const Transaction: Schema.Struct<{
1128
1136
  filterIds: Schema.Array$<typeof Schema.Number>;
1129
1137
  transactionIndex: typeof Schema.Number;
@@ -1215,6 +1223,7 @@ declare const Transaction: Schema.Struct<{
1215
1223
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1216
1224
  transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1217
1225
  }>;
1226
+ type Transaction = typeof Transaction.Type;
1218
1227
  declare const TransactionReceipt: Schema.Struct<{
1219
1228
  filterIds: Schema.Array$<typeof Schema.Number>;
1220
1229
  transactionIndex: typeof Schema.Number;
@@ -1265,6 +1274,7 @@ declare const TransactionReceipt: Schema.Struct<{
1265
1274
  }>, typeof Schema.BigIntFromSelf>>;
1266
1275
  transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1267
1276
  }>;
1277
+ type TransactionReceipt = typeof TransactionReceipt.Type;
1268
1278
  declare const Log: Schema.Struct<{
1269
1279
  filterIds: Schema.Array$<typeof Schema.Number>;
1270
1280
  address: Schema.transform<Schema.Struct<{
package/dist/index.d.ts CHANGED
@@ -539,6 +539,7 @@ declare const B256: Schema.transform<Schema.Struct<{
539
539
  x2: typeof Schema.BigIntFromSelf;
540
540
  x3: typeof Schema.BigIntFromSelf;
541
541
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
542
+ type B256 = typeof B256.Type;
542
543
  declare const b256ToProto: (a: `0x${string}`, overrideOptions?: _effect_schema_AST.ParseOptions) => {
543
544
  readonly x0: bigint;
544
545
  readonly x1: bigint;
@@ -558,6 +559,7 @@ declare const U256: Schema.transform<Schema.Struct<{
558
559
  x2: typeof Schema.BigIntFromSelf;
559
560
  x3: typeof Schema.BigIntFromSelf;
560
561
  }>, typeof Schema.BigIntFromSelf>;
562
+ type U256 = typeof U256.Type;
561
563
  declare const u256ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
562
564
  readonly x0: bigint;
563
565
  readonly x1: bigint;
@@ -575,6 +577,7 @@ declare const U128: Schema.transform<Schema.Struct<{
575
577
  x0: typeof Schema.BigIntFromSelf;
576
578
  x1: typeof Schema.BigIntFromSelf;
577
579
  }>, typeof Schema.BigIntFromSelf>;
580
+ type U128 = typeof U128.Type;
578
581
  declare const u128ToProto: (a: bigint, overrideOptions?: _effect_schema_AST.ParseOptions) => {
579
582
  readonly x0: bigint;
580
583
  readonly x1: bigint;
@@ -617,6 +620,7 @@ declare const Topic: Schema.transform<Schema.Struct<{
617
620
  x2: typeof Schema.BigIntFromSelf;
618
621
  x3: typeof Schema.BigIntFromSelf;
619
622
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>>;
623
+ type Topic = typeof Topic.Type;
620
624
  declare const LogFilter: Schema.Struct<{
621
625
  id: Schema.optional<typeof Schema.Number>;
622
626
  address: Schema.optional<Schema.transform<Schema.Struct<{
@@ -975,6 +979,7 @@ declare function mergeFilter(a: Filter, b: Filter): Filter;
975
979
  declare const Bloom: Schema.transform<Schema.Struct<{
976
980
  value: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
977
981
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
982
+ type Bloom = typeof Bloom.Type;
978
983
  declare const TransactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
979
984
  type TransactionStatus = typeof TransactionStatus.Type;
980
985
  declare const BlockHeader: Schema.Struct<{
@@ -1090,6 +1095,7 @@ declare const Withdrawal: Schema.Struct<{
1090
1095
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
1091
1096
  amount: typeof Schema.BigIntFromSelf;
1092
1097
  }>;
1098
+ type Withdrawal = typeof Withdrawal.Type;
1093
1099
  declare const AccessListItem: Schema.Struct<{
1094
1100
  address: Schema.transform<Schema.Struct<{
1095
1101
  x0: typeof Schema.BigIntFromSelf;
@@ -1103,6 +1109,7 @@ declare const AccessListItem: Schema.Struct<{
1103
1109
  x3: typeof Schema.BigIntFromSelf;
1104
1110
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1105
1111
  }>;
1112
+ type AccessListItem = typeof AccessListItem.Type;
1106
1113
  declare const Signature: Schema.Struct<{
1107
1114
  r: Schema.transform<Schema.Struct<{
1108
1115
  x0: typeof Schema.BigIntFromSelf;
@@ -1124,6 +1131,7 @@ declare const Signature: Schema.Struct<{
1124
1131
  }>, typeof Schema.BigIntFromSelf>;
1125
1132
  YParity: Schema.optional<typeof Schema.Boolean>;
1126
1133
  }>;
1134
+ type Signature = typeof Signature.Type;
1127
1135
  declare const Transaction: Schema.Struct<{
1128
1136
  filterIds: Schema.Array$<typeof Schema.Number>;
1129
1137
  transactionIndex: typeof Schema.Number;
@@ -1215,6 +1223,7 @@ declare const Transaction: Schema.Struct<{
1215
1223
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1216
1224
  transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1217
1225
  }>;
1226
+ type Transaction = typeof Transaction.Type;
1218
1227
  declare const TransactionReceipt: Schema.Struct<{
1219
1228
  filterIds: Schema.Array$<typeof Schema.Number>;
1220
1229
  transactionIndex: typeof Schema.Number;
@@ -1265,6 +1274,7 @@ declare const TransactionReceipt: Schema.Struct<{
1265
1274
  }>, typeof Schema.BigIntFromSelf>>;
1266
1275
  transactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
1267
1276
  }>;
1277
+ type TransactionReceipt = typeof TransactionReceipt.Type;
1268
1278
  declare const Log: Schema.Struct<{
1269
1279
  filterIds: Schema.Array$<typeof Schema.Number>;
1270
1280
  address: Schema.transform<Schema.Struct<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apibara/evm",
3
- "version": "2.1.0-beta.13",
3
+ "version": "2.1.0-beta.15",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -35,7 +35,7 @@
35
35
  "vitest": "^1.6.0"
36
36
  },
37
37
  "dependencies": {
38
- "@apibara/protocol": "2.1.0-beta.13",
38
+ "@apibara/protocol": "2.1.0-beta.15",
39
39
  "@effect/schema": "^0.67.15",
40
40
  "effect": "^3.2.6",
41
41
  "long": "^5.2.1",
package/src/block.ts CHANGED
@@ -20,6 +20,8 @@ export const Bloom = Schema.transform(
20
20
  },
21
21
  );
22
22
 
23
+ export type Bloom = typeof Bloom.Type;
24
+
23
25
  export const TransactionStatus = Schema.transform(
24
26
  Schema.Enums(proto.data.TransactionStatus),
25
27
  Schema.Literal("unknown", "succeeded", "reverted"),
@@ -78,11 +80,15 @@ export const Withdrawal = Schema.Struct({
78
80
  amount: Schema.BigIntFromSelf,
79
81
  });
80
82
 
83
+ export type Withdrawal = typeof Withdrawal.Type;
84
+
81
85
  export const AccessListItem = Schema.Struct({
82
86
  address: Address,
83
87
  storageKeys: Schema.Array(B256),
84
88
  });
85
89
 
90
+ export type AccessListItem = typeof AccessListItem.Type;
91
+
86
92
  export const Signature = Schema.Struct({
87
93
  r: U256,
88
94
  s: U256,
@@ -90,6 +96,8 @@ export const Signature = Schema.Struct({
90
96
  YParity: Schema.optional(Schema.Boolean),
91
97
  });
92
98
 
99
+ export type Signature = typeof Signature.Type;
100
+
93
101
  export const Transaction = Schema.Struct({
94
102
  filterIds: Schema.Array(Schema.Number),
95
103
  transactionIndex: Schema.Number,
@@ -112,6 +120,8 @@ export const Transaction = Schema.Struct({
112
120
  transactionStatus: TransactionStatus,
113
121
  });
114
122
 
123
+ export type Transaction = typeof Transaction.Type;
124
+
115
125
  export const TransactionReceipt = Schema.Struct({
116
126
  filterIds: Schema.Array(Schema.Number),
117
127
  transactionIndex: Schema.Number,
@@ -129,6 +139,8 @@ export const TransactionReceipt = Schema.Struct({
129
139
  transactionStatus: TransactionStatus,
130
140
  });
131
141
 
142
+ export type TransactionReceipt = typeof TransactionReceipt.Type;
143
+
132
144
  export const Log = Schema.Struct({
133
145
  filterIds: Schema.Array(Schema.Number),
134
146
  address: Address,
package/src/common.ts CHANGED
@@ -62,6 +62,8 @@ export const B256 = Schema.transform(B256Proto, _B256, {
62
62
  },
63
63
  });
64
64
 
65
+ export type B256 = typeof B256.Type;
66
+
65
67
  export const b256ToProto = Schema.encodeSync(B256);
66
68
  export const b256FromProto = Schema.decodeSync(B256);
67
69
 
@@ -92,6 +94,8 @@ export const U256 = Schema.transform(U256Proto, Schema.BigIntFromSelf, {
92
94
  },
93
95
  });
94
96
 
97
+ export type U256 = typeof U256.Type;
98
+
95
99
  export const u256ToProto = Schema.encodeSync(U256);
96
100
  export const u256FromProto = Schema.decodeSync(U256);
97
101
 
@@ -113,5 +117,7 @@ export const U128 = Schema.transform(U128Proto, Schema.BigIntFromSelf, {
113
117
  },
114
118
  });
115
119
 
120
+ export type U128 = typeof U128.Type;
121
+
116
122
  export const u128ToProto = Schema.encodeSync(U128);
117
123
  export const u128FromProto = Schema.decodeSync(U128);
package/src/filter.ts CHANGED
@@ -103,6 +103,8 @@ export const Topic = Schema.transform(
103
103
  },
104
104
  );
105
105
 
106
+ export type Topic = typeof Topic.Type;
107
+
106
108
  export const LogFilter = Schema.Struct({
107
109
  id: Schema.optional(Schema.Number),
108
110
  address: Schema.optional(Address),