@apibara/starknet 0.5.0 → 2.0.0-beta.0
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/CHANGELOG.md +53 -0
- package/README.md +2 -2
- package/buf.gen.yaml +15 -0
- package/build.config.ts +8 -0
- package/dist/index.d.mts +4829 -0
- package/dist/index.d.ts +4829 -4
- package/dist/index.mjs +5999 -0
- package/package.json +39 -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
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
|