@apibara/starknet 0.5.0 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +17 -0
- package/CHANGELOG.md +53 -0
- package/README.md +2 -2
- package/buf.gen.yaml +15 -0
- package/build.config.ts +11 -0
- package/dist/index.cjs +6106 -0
- package/dist/index.d.cts +4834 -0
- package/dist/index.d.mts +4834 -0
- package/dist/index.d.ts +4834 -4
- package/dist/index.mjs +6031 -0
- package/package.json +40 -25
- package/proto/common.proto +11 -0
- package/proto/data.proto +377 -0
- package/proto/filter.proto +126 -0
- package/src/access.ts +50 -0
- package/src/block.ts +492 -0
- package/src/common.test.ts +21 -0
- package/src/common.ts +38 -0
- package/src/filter.test.ts +552 -107
- package/src/filter.ts +221 -778
- package/src/helpers.ts +8 -0
- package/src/index.ts +16 -3
- package/src/proto/common.ts +158 -0
- package/src/proto/data.ts +5079 -0
- package/src/proto/filter.ts +1689 -0
- package/src/proto/google/protobuf/timestamp.ts +220 -0
- package/src/proto/index.ts +3 -2
- package/tsconfig.json +11 -0
- package/dist/cursor.d.ts +0 -19
- package/dist/cursor.js +0 -30
- package/dist/cursor.js.map +0 -1
- package/dist/felt.d.ts +0 -19
- package/dist/felt.js +0 -60
- package/dist/felt.js.map +0 -1
- package/dist/felt.test.d.ts +0 -1
- package/dist/felt.test.js +0 -22
- package/dist/felt.test.js.map +0 -1
- package/dist/filter.d.ts +0 -336
- package/dist/filter.js +0 -591
- package/dist/filter.js.map +0 -1
- package/dist/filter.test.d.ts +0 -1
- package/dist/filter.test.js +0 -108
- package/dist/filter.test.js.map +0 -1
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- package/dist/proto/filter.proto +0 -179
- package/dist/proto/generated.d.ts +0 -6339
- package/dist/proto/generated.js +0 -15980
- package/dist/proto/generated.js.map +0 -1
- package/dist/proto/index.d.ts +0 -2
- package/dist/proto/index.js +0 -6
- package/dist/proto/index.js.map +0 -1
- package/dist/proto/starknet.proto +0 -479
- package/dist/proto/types.proto +0 -13
- package/src/cursor.ts +0 -32
- package/src/felt.test.ts +0 -26
- package/src/felt.ts +0 -61
- package/src/proto/filter.proto +0 -179
- package/src/proto/generated.d.ts +0 -6339
- package/src/proto/generated.js +0 -16963
- package/src/proto/starknet.proto +0 -479
- package/src/proto/types.proto +0 -13
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
> @apibara/starknet@2.0.0-beta.0 build /home/fra/Hacks/apibara/typescript-sdk/packages/starknet
|
|
3
|
+
> pnpm build:proto && unbuild
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @apibara/starknet@2.0.0-beta.0 build:proto /home/fra/Hacks/apibara/typescript-sdk/packages/starknet
|
|
7
|
+
> buf generate proto
|
|
8
|
+
|
|
9
|
+
ℹ Building starknet 12:53:54 PM
|
|
10
|
+
ℹ Cleaning dist directory: ./dist 12:53:54 PM
|
|
11
|
+
✔ Build succeeded for starknet 12:53:57 PM
|
|
12
|
+
[12:53:57 PM] dist/index.cjs (total size: 228 kB, chunk size: 228 kB, exports: Block, BlockFromBytes, BlockHeader, ComputationResources, DataAvailabilityMode, DataAvailabilityResources, DeclareTransactionReceipt, DeclareTransactionV0, DeclareTransactionV1, DeclareTransactionV2, DeclareTransactionV3, DeclareV0TransactionFilter, DeclareV1TransactionFilter, DeclareV2TransactionFilter, DeclareV3TransactionFilter, DeployAccountTransactionReceipt, DeployAccountTransactionV1, DeployAccountTransactionV3, DeployAccountV1TransactionFilter, DeployAccountV3TransactionFilter, DeployTransaction, DeployTransactionFilter, DeployTransactionReceipt, Event, EventFilter, ExecutionResources, ExecutionReverted, ExecutionSucceeded, FeePayment, FieldElement, FieldElementProto, Filter, FilterFromBytes, HeaderFilter, InvokeTransactionReceipt, InvokeTransactionV0, InvokeTransactionV0Filter, InvokeTransactionV1, InvokeTransactionV1Filter, InvokeTransactionV3, InvokeTransactionV3Filter, Key, L1DataAvailabilityMode, L1HandlerTransaction, L1HandlerTransactionFilter, L1HandlerTransactionReceipt, MessageToL1, MessageToL1Filter, PriceUnit, ResourceBounds, ResourceBoundsMapping, ResourcePrice, StarknetStream, Transaction, TransactionFilter, TransactionMeta, TransactionReceipt, TransactionReceiptMeta, U128, feltFromProto, feltToProto, filterFromBytes, filterFromProto, filterToBytes, filterToProto, getReceipt, getTransaction, mergeFilter, proto)
|
|
13
|
+
|
|
14
|
+
[12:53:57 PM] dist/index.mjs (total size: 222 kB, chunk size: 222 kB, exports: Block, BlockFromBytes, BlockHeader, ComputationResources, DataAvailabilityMode, DataAvailabilityResources, DeclareTransactionReceipt, DeclareTransactionV0, DeclareTransactionV1, DeclareTransactionV2, DeclareTransactionV3, DeclareV0TransactionFilter, DeclareV1TransactionFilter, DeclareV2TransactionFilter, DeclareV3TransactionFilter, DeployAccountTransactionReceipt, DeployAccountTransactionV1, DeployAccountTransactionV3, DeployAccountV1TransactionFilter, DeployAccountV3TransactionFilter, DeployTransaction, DeployTransactionFilter, DeployTransactionReceipt, Event, EventFilter, ExecutionResources, ExecutionReverted, ExecutionSucceeded, FeePayment, FieldElement, FieldElementProto, Filter, FilterFromBytes, HeaderFilter, InvokeTransactionReceipt, InvokeTransactionV0, InvokeTransactionV0Filter, InvokeTransactionV1, InvokeTransactionV1Filter, InvokeTransactionV3, InvokeTransactionV3Filter, Key, L1DataAvailabilityMode, L1HandlerTransaction, L1HandlerTransactionFilter, L1HandlerTransactionReceipt, MessageToL1, MessageToL1Filter, PriceUnit, ResourceBounds, ResourceBoundsMapping, ResourcePrice, StarknetStream, Transaction, TransactionFilter, TransactionMeta, TransactionReceipt, TransactionReceiptMeta, U128, feltFromProto, feltToProto, filterFromBytes, filterFromProto, filterToBytes, filterToProto, getReceipt, getTransaction, mergeFilter, proto)
|
|
15
|
+
|
|
16
|
+
Σ Total dist size (byte size): 1.22 MB
|
|
17
|
+
12:53:57 PM
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# @apibara/starknet
|
|
2
|
+
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#71](https://github.com/apibara/typescript-sdk/pull/71) [`aecc9c8fc1eed7056fbb16103409ef4dbeb861fd`](https://github.com/apibara/typescript-sdk/commit/aecc9c8fc1eed7056fbb16103409ef4dbeb861fd) Thanks [@fracek](https://github.com/fracek)! - Update Starknet definitions
|
|
8
|
+
|
|
9
|
+
## 0.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#66](https://github.com/apibara/typescript-sdk/pull/66) [`28479332692e6d41a0533dc1ce2362be2a21301c`](https://github.com/apibara/typescript-sdk/commit/28479332692e6d41a0533dc1ce2362be2a21301c) Thanks [@fracek](https://github.com/fracek)! - Add V3 transactions
|
|
14
|
+
|
|
15
|
+
## 0.3.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#52](https://github.com/apibara/typescript-sdk/pull/52) [`bb12db3`](https://github.com/apibara/typescript-sdk/commit/bb12db32098d09e506eaaa12c2eb81f06b285c32) Thanks [@fracek](https://github.com/fracek)! - Add include reverted, transaction and receipt options
|
|
20
|
+
|
|
21
|
+
## 0.3.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- [#35](https://github.com/apibara/typescript-sdk/pull/35) [`502b3f5`](https://github.com/apibara/typescript-sdk/commit/502b3f582713c4f6d008aaaf9fef3f139ce32332) Thanks [@fracek](https://github.com/fracek)! - Add RPC v0.3 fields
|
|
26
|
+
|
|
27
|
+
## 0.2.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#20](https://github.com/apibara/typescript-sdk/pull/20) [`99d0d32`](https://github.com/apibara/typescript-sdk/commit/99d0d3234d1d7940967932a7dc838128ee9f024d) Thanks [@fracek](https://github.com/fracek)! - Include weak header flag
|
|
32
|
+
|
|
33
|
+
## 0.2.0
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- [#13](https://github.com/apibara/typescript-sdk/pull/13) [`0a1a959`](https://github.com/apibara/typescript-sdk/commit/0a1a9599a482520b426b0026d3a98f08cbdbb51f) Thanks [@fracek](https://github.com/fracek)! - Update types based on v1alpha2 protocol
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- [#17](https://github.com/apibara/typescript-sdk/pull/17) [`ec2dc90`](https://github.com/apibara/typescript-sdk/commit/ec2dc90a548e07bc6afd20662fec5109fdc80d65) Thanks [@fracek](https://github.com/fracek)! - Support protoclo v1alpha2
|
|
42
|
+
|
|
43
|
+
## 0.2.0-next.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- [`57f19af`](https://github.com/apibara/typescript-sdk/commit/57f19af61daae6594214e87ca3a7baae0d5ee86a) Thanks [@fracek](https://github.com/fracek)! - Update types based on v1alpha2 protocol
|
|
48
|
+
|
|
49
|
+
## 0.1.1
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- [`163a28b`](https://github.com/apibara/typescript-sdk/commit/163a28b808a8d15bd927f7feaf34546a681c346e) Thanks [@fracek](https://github.com/fracek)! - Initial release
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `@apibara/starknet`
|
|
2
2
|
|
|
3
|
-
This package provides types for the
|
|
3
|
+
This package provides types for the Starknet streams on Apibara.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ npm add @apibara/starknet
|
|
|
10
10
|
|
|
11
11
|
## License
|
|
12
12
|
|
|
13
|
-
Copyright
|
|
13
|
+
Copyright 2024 GNC Labs Limited
|
|
14
14
|
|
|
15
15
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
16
16
|
you may not use this file except in compliance with the License.
|
package/buf.gen.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
version: v2
|
|
2
|
+
plugins:
|
|
3
|
+
- remote: buf.build/community/stephenh-ts-proto:v1.176.0
|
|
4
|
+
out: src/proto/
|
|
5
|
+
opt:
|
|
6
|
+
- outputServices=nice-grpc
|
|
7
|
+
- outputServices=generic-definitions
|
|
8
|
+
- useExactTypes=false
|
|
9
|
+
- useOptionals=all
|
|
10
|
+
- useReadonlyTypes=true
|
|
11
|
+
- forceLong=bigint
|
|
12
|
+
- esModuleInterop=true
|
|
13
|
+
- removeEnumPrefix=true
|
|
14
|
+
- oneof=unions
|
|
15
|
+
- useDate=true
|