@gnolang/gnonative 3.0.5 → 4.1.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.
Files changed (59) hide show
  1. package/Makefile +20 -3
  2. package/android/libs/gnocore-sources.jar +0 -0
  3. package/android/libs/gnocore.aar +0 -0
  4. package/android/src/main/java/land/gno/gnonative/GnonativeModule.kt +0 -13
  5. package/build/GoBridge.d.ts +0 -1
  6. package/build/GoBridge.d.ts.map +1 -1
  7. package/build/GoBridge.js +0 -3
  8. package/build/GoBridge.js.map +1 -1
  9. package/build/api/GnoNativeApi.d.ts +5 -5
  10. package/build/api/GnoNativeApi.d.ts.map +1 -1
  11. package/build/api/GnoNativeApi.js +15 -10
  12. package/build/api/GnoNativeApi.js.map +1 -1
  13. package/build/api/types.d.ts +4 -4
  14. package/build/api/types.d.ts.map +1 -1
  15. package/build/api/types.js.map +1 -1
  16. package/build/api/vendor/gnonativetypes_pb.d.ts +1513 -0
  17. package/build/api/vendor/gnonativetypes_pb.d.ts.map +1 -0
  18. package/build/api/vendor/gnonativetypes_pb.js +2506 -0
  19. package/build/api/vendor/gnonativetypes_pb.js.map +1 -0
  20. package/build/api/vendor/rpc_connect.d.ts +461 -0
  21. package/build/api/vendor/rpc_connect.d.ts.map +1 -0
  22. package/build/api/vendor/rpc_connect.js +465 -0
  23. package/build/api/vendor/rpc_connect.js.map +1 -0
  24. package/build/api/vendor/rpc_pb.d.ts +221 -0
  25. package/build/api/vendor/rpc_pb.d.ts.map +1 -0
  26. package/build/api/vendor/rpc_pb.js +277 -0
  27. package/build/api/vendor/rpc_pb.js.map +1 -0
  28. package/build/grpc/client.d.ts +1 -1
  29. package/build/grpc/client.d.ts.map +1 -1
  30. package/build/grpc/client.js +1 -1
  31. package/build/grpc/client.js.map +1 -1
  32. package/build/grpc/error.d.ts +1 -1
  33. package/build/grpc/error.d.ts.map +1 -1
  34. package/build/grpc/error.js +1 -1
  35. package/build/grpc/error.js.map +1 -1
  36. package/build/index.d.ts +2 -2
  37. package/build/index.d.ts.map +1 -1
  38. package/build/index.js +2 -2
  39. package/build/index.js.map +1 -1
  40. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/GnoCore +0 -0
  41. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Headers/GnoGnonative.objc.h +0 -7
  42. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/A/GnoCore +0 -0
  43. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/A/Headers/GnoGnonative.objc.h +0 -7
  44. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/Current/GnoCore +0 -0
  45. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/Current/Headers/GnoGnonative.objc.h +0 -7
  46. package/ios/Frameworks/GnoCore.xcframework/ios-arm64_x86_64-simulator/GnoCore.framework/GnoCore +0 -0
  47. package/ios/Frameworks/GnoCore.xcframework/ios-arm64_x86_64-simulator/GnoCore.framework/Headers/GnoGnonative.objc.h +0 -7
  48. package/ios/GnonativeModule.swift +0 -12
  49. package/package.json +1 -3
  50. package/src/GoBridge.ts +0 -5
  51. package/src/api/GnoNativeApi.ts +33 -16
  52. package/src/api/types.ts +12 -5
  53. package/src/api/vendor/gnonativetypes_pb.ts +3074 -0
  54. package/src/api/vendor/rpc_connect.ts +467 -0
  55. package/src/api/vendor/rpc_pb.ts +321 -0
  56. package/src/grpc/client.ts +1 -1
  57. package/src/grpc/error.ts +2 -1
  58. package/src/index.ts +2 -2
  59. package/tsconfig.json +0 -1
@@ -0,0 +1,221 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * The ErrCode enum defines errors for gRPC API functions. These are converted
5
+ * from the Go error types returned by gnoclient.
6
+ *
7
+ * ----------------
8
+ * Special errors
9
+ * ----------------
10
+ *
11
+ * @generated from enum land.gno.gnonative.v1.ErrCode
12
+ */
13
+ export declare enum ErrCode {
14
+ /**
15
+ * Undefined is the default value. It should never be set manually
16
+ *
17
+ * @generated from enum value: Undefined = 0;
18
+ */
19
+ Undefined = 0,
20
+ /**
21
+ * TODO indicates that you plan to create an error later
22
+ *
23
+ * @generated from enum value: TODO = 1;
24
+ */
25
+ TODO = 1,
26
+ /**
27
+ * ErrNotImplemented indicates that a method is not implemented yet
28
+ *
29
+ * @generated from enum value: ErrNotImplemented = 2;
30
+ */
31
+ ErrNotImplemented = 2,
32
+ /**
33
+ * ErrInternal indicates an unknown error (without Code), i.e. in gRPC
34
+ *
35
+ * @generated from enum value: ErrInternal = 3;
36
+ */
37
+ ErrInternal = 3,
38
+ /**
39
+ * @generated from enum value: ErrInvalidInput = 100;
40
+ */
41
+ ErrInvalidInput = 100,
42
+ /**
43
+ * @generated from enum value: ErrBridgeInterrupted = 101;
44
+ */
45
+ ErrBridgeInterrupted = 101,
46
+ /**
47
+ * @generated from enum value: ErrMissingInput = 102;
48
+ */
49
+ ErrMissingInput = 102,
50
+ /**
51
+ * @generated from enum value: ErrSerialization = 103;
52
+ */
53
+ ErrSerialization = 103,
54
+ /**
55
+ * @generated from enum value: ErrDeserialization = 104;
56
+ */
57
+ ErrDeserialization = 104,
58
+ /**
59
+ * @generated from enum value: ErrInitService = 105;
60
+ */
61
+ ErrInitService = 105,
62
+ /**
63
+ * @generated from enum value: ErrSetRemote = 106;
64
+ */
65
+ ErrSetRemote = 106,
66
+ /**
67
+ * @generated from enum value: ErrCryptoKeyTypeUnknown = 150;
68
+ */
69
+ ErrCryptoKeyTypeUnknown = 150,
70
+ /**
71
+ * ErrCryptoKeyNotFound indicates that the doesn't exist in the keybase
72
+ *
73
+ * @generated from enum value: ErrCryptoKeyNotFound = 151;
74
+ */
75
+ ErrCryptoKeyNotFound = 151,
76
+ /**
77
+ * ErrNoActiveAccount indicates that no account with the given address has been activated with ActivateAccount
78
+ *
79
+ * @generated from enum value: ErrNoActiveAccount = 152;
80
+ */
81
+ ErrNoActiveAccount = 152,
82
+ /**
83
+ * @generated from enum value: ErrRunGRPCServer = 153;
84
+ */
85
+ ErrRunGRPCServer = 153,
86
+ /**
87
+ * ErrDecryptionFailed indicates a decryption failure including a wrong password
88
+ *
89
+ * @generated from enum value: ErrDecryptionFailed = 154;
90
+ */
91
+ ErrDecryptionFailed = 154,
92
+ /**
93
+ * @generated from enum value: ErrTxDecode = 200;
94
+ */
95
+ ErrTxDecode = 200,
96
+ /**
97
+ * @generated from enum value: ErrInvalidSequence = 201;
98
+ */
99
+ ErrInvalidSequence = 201,
100
+ /**
101
+ * @generated from enum value: ErrUnauthorized = 202;
102
+ */
103
+ ErrUnauthorized = 202,
104
+ /**
105
+ * ErrInsufficientFunds indicates that there are insufficient funds to pay for fees
106
+ *
107
+ * @generated from enum value: ErrInsufficientFunds = 203;
108
+ */
109
+ ErrInsufficientFunds = 203,
110
+ /**
111
+ * ErrUnknownRequest indicates that the path of a realm function call is unrecognized
112
+ *
113
+ * @generated from enum value: ErrUnknownRequest = 204;
114
+ */
115
+ ErrUnknownRequest = 204,
116
+ /**
117
+ * ErrInvalidAddress indicates that an account address is blank or the bech32 can't be decoded
118
+ *
119
+ * @generated from enum value: ErrInvalidAddress = 205;
120
+ */
121
+ ErrInvalidAddress = 205,
122
+ /**
123
+ * ErrUnknownAddress indicates that the address is unknown on the blockchain
124
+ *
125
+ * @generated from enum value: ErrUnknownAddress = 206;
126
+ */
127
+ ErrUnknownAddress = 206,
128
+ /**
129
+ * ErrInvalidPubKey indicates that the public key was not found or has an invalid algorithm or format
130
+ *
131
+ * @generated from enum value: ErrInvalidPubKey = 207;
132
+ */
133
+ ErrInvalidPubKey = 207,
134
+ /**
135
+ * ErrInsufficientCoins indicates that the transaction has insufficient account funds to send
136
+ *
137
+ * @generated from enum value: ErrInsufficientCoins = 208;
138
+ */
139
+ ErrInsufficientCoins = 208,
140
+ /**
141
+ * ErrInvalidCoins indicates that the transaction Coins are not sorted, or don't have a
142
+ * positive amount, or the coin Denom contains upper case characters
143
+ *
144
+ * @generated from enum value: ErrInvalidCoins = 209;
145
+ */
146
+ ErrInvalidCoins = 209,
147
+ /**
148
+ * ErrInvalidGasWanted indicates that the transaction gas wanted is too large or otherwise invalid
149
+ *
150
+ * @generated from enum value: ErrInvalidGasWanted = 210;
151
+ */
152
+ ErrInvalidGasWanted = 210,
153
+ /**
154
+ * ErrOutOfGas indicates that the transaction doesn't have enough gas
155
+ *
156
+ * @generated from enum value: ErrOutOfGas = 211;
157
+ */
158
+ ErrOutOfGas = 211,
159
+ /**
160
+ * ErrMemoTooLarge indicates that the transaction memo is too large
161
+ *
162
+ * @generated from enum value: ErrMemoTooLarge = 212;
163
+ */
164
+ ErrMemoTooLarge = 212,
165
+ /**
166
+ * ErrInsufficientFee indicates that the gas fee is insufficient
167
+ *
168
+ * @generated from enum value: ErrInsufficientFee = 213;
169
+ */
170
+ ErrInsufficientFee = 213,
171
+ /**
172
+ * ErrTooManySignatures indicates that the transaction has too many signatures
173
+ *
174
+ * @generated from enum value: ErrTooManySignatures = 214;
175
+ */
176
+ ErrTooManySignatures = 214,
177
+ /**
178
+ * ErrNoSignatures indicates that the transaction has no signatures
179
+ *
180
+ * @generated from enum value: ErrNoSignatures = 215;
181
+ */
182
+ ErrNoSignatures = 215,
183
+ /**
184
+ * ErrGasOverflow indicates that an action results in a gas consumption unsigned integer overflow
185
+ *
186
+ * @generated from enum value: ErrGasOverflow = 216;
187
+ */
188
+ ErrGasOverflow = 216,
189
+ /**
190
+ * ErrInvalidPkgPath indicates that the package path is not recognized.
191
+ *
192
+ * @generated from enum value: ErrInvalidPkgPath = 217;
193
+ */
194
+ ErrInvalidPkgPath = 217,
195
+ /**
196
+ * @generated from enum value: ErrInvalidStmt = 218;
197
+ */
198
+ ErrInvalidStmt = 218,
199
+ /**
200
+ * @generated from enum value: ErrInvalidExpr = 219;
201
+ */
202
+ ErrInvalidExpr = 219
203
+ }
204
+ /**
205
+ * @generated from message land.gno.gnonative.v1.ErrDetails
206
+ */
207
+ export declare class ErrDetails extends Message<ErrDetails> {
208
+ /**
209
+ * @generated from field: repeated land.gno.gnonative.v1.ErrCode codes = 1;
210
+ */
211
+ codes: ErrCode[];
212
+ constructor(data?: PartialMessage<ErrDetails>);
213
+ static readonly runtime: typeof proto3;
214
+ static readonly typeName = "land.gno.gnonative.v1.ErrDetails";
215
+ static readonly fields: FieldList;
216
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ErrDetails;
217
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ErrDetails;
218
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ErrDetails;
219
+ static equals(a: ErrDetails | PlainMessage<ErrDetails> | undefined, b: ErrDetails | PlainMessage<ErrDetails> | undefined): boolean;
220
+ }
221
+ //# sourceMappingURL=rpc_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc_pb.d.ts","sourceRoot":"","sources":["../../../src/api/vendor/rpc_pb.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACjI,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;;;GASG;AACH,oBAAY,OAAO;IACjB;;;;OAIG;IACH,SAAS,IAAI;IAEb;;;;OAIG;IACH,IAAI,IAAI;IAER;;;;OAIG;IACH,iBAAiB,IAAI;IAErB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;OAEG;IACH,eAAe,MAAM;IAErB;;OAEG;IACH,oBAAoB,MAAM;IAE1B;;OAEG;IACH,eAAe,MAAM;IAErB;;OAEG;IACH,gBAAgB,MAAM;IAEtB;;OAEG;IACH,kBAAkB,MAAM;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EAAE,SAAS,CAE9B;IAEH,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,UAAU;IAItF,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;IAIrF,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;IAIzF,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,OAAO;CAGnI"}
@@ -0,0 +1,277 @@
1
+ // @generated by protoc-gen-es v1.7.2 with parameter "target=ts"
2
+ // @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * The ErrCode enum defines errors for gRPC API functions. These are converted
8
+ * from the Go error types returned by gnoclient.
9
+ *
10
+ * ----------------
11
+ * Special errors
12
+ * ----------------
13
+ *
14
+ * @generated from enum land.gno.gnonative.v1.ErrCode
15
+ */
16
+ export var ErrCode;
17
+ (function (ErrCode) {
18
+ /**
19
+ * Undefined is the default value. It should never be set manually
20
+ *
21
+ * @generated from enum value: Undefined = 0;
22
+ */
23
+ ErrCode[ErrCode["Undefined"] = 0] = "Undefined";
24
+ /**
25
+ * TODO indicates that you plan to create an error later
26
+ *
27
+ * @generated from enum value: TODO = 1;
28
+ */
29
+ ErrCode[ErrCode["TODO"] = 1] = "TODO";
30
+ /**
31
+ * ErrNotImplemented indicates that a method is not implemented yet
32
+ *
33
+ * @generated from enum value: ErrNotImplemented = 2;
34
+ */
35
+ ErrCode[ErrCode["ErrNotImplemented"] = 2] = "ErrNotImplemented";
36
+ /**
37
+ * ErrInternal indicates an unknown error (without Code), i.e. in gRPC
38
+ *
39
+ * @generated from enum value: ErrInternal = 3;
40
+ */
41
+ ErrCode[ErrCode["ErrInternal"] = 3] = "ErrInternal";
42
+ /**
43
+ * @generated from enum value: ErrInvalidInput = 100;
44
+ */
45
+ ErrCode[ErrCode["ErrInvalidInput"] = 100] = "ErrInvalidInput";
46
+ /**
47
+ * @generated from enum value: ErrBridgeInterrupted = 101;
48
+ */
49
+ ErrCode[ErrCode["ErrBridgeInterrupted"] = 101] = "ErrBridgeInterrupted";
50
+ /**
51
+ * @generated from enum value: ErrMissingInput = 102;
52
+ */
53
+ ErrCode[ErrCode["ErrMissingInput"] = 102] = "ErrMissingInput";
54
+ /**
55
+ * @generated from enum value: ErrSerialization = 103;
56
+ */
57
+ ErrCode[ErrCode["ErrSerialization"] = 103] = "ErrSerialization";
58
+ /**
59
+ * @generated from enum value: ErrDeserialization = 104;
60
+ */
61
+ ErrCode[ErrCode["ErrDeserialization"] = 104] = "ErrDeserialization";
62
+ /**
63
+ * @generated from enum value: ErrInitService = 105;
64
+ */
65
+ ErrCode[ErrCode["ErrInitService"] = 105] = "ErrInitService";
66
+ /**
67
+ * @generated from enum value: ErrSetRemote = 106;
68
+ */
69
+ ErrCode[ErrCode["ErrSetRemote"] = 106] = "ErrSetRemote";
70
+ /**
71
+ * @generated from enum value: ErrCryptoKeyTypeUnknown = 150;
72
+ */
73
+ ErrCode[ErrCode["ErrCryptoKeyTypeUnknown"] = 150] = "ErrCryptoKeyTypeUnknown";
74
+ /**
75
+ * ErrCryptoKeyNotFound indicates that the doesn't exist in the keybase
76
+ *
77
+ * @generated from enum value: ErrCryptoKeyNotFound = 151;
78
+ */
79
+ ErrCode[ErrCode["ErrCryptoKeyNotFound"] = 151] = "ErrCryptoKeyNotFound";
80
+ /**
81
+ * ErrNoActiveAccount indicates that no account with the given address has been activated with ActivateAccount
82
+ *
83
+ * @generated from enum value: ErrNoActiveAccount = 152;
84
+ */
85
+ ErrCode[ErrCode["ErrNoActiveAccount"] = 152] = "ErrNoActiveAccount";
86
+ /**
87
+ * @generated from enum value: ErrRunGRPCServer = 153;
88
+ */
89
+ ErrCode[ErrCode["ErrRunGRPCServer"] = 153] = "ErrRunGRPCServer";
90
+ /**
91
+ * ErrDecryptionFailed indicates a decryption failure including a wrong password
92
+ *
93
+ * @generated from enum value: ErrDecryptionFailed = 154;
94
+ */
95
+ ErrCode[ErrCode["ErrDecryptionFailed"] = 154] = "ErrDecryptionFailed";
96
+ /**
97
+ * @generated from enum value: ErrTxDecode = 200;
98
+ */
99
+ ErrCode[ErrCode["ErrTxDecode"] = 200] = "ErrTxDecode";
100
+ /**
101
+ * @generated from enum value: ErrInvalidSequence = 201;
102
+ */
103
+ ErrCode[ErrCode["ErrInvalidSequence"] = 201] = "ErrInvalidSequence";
104
+ /**
105
+ * @generated from enum value: ErrUnauthorized = 202;
106
+ */
107
+ ErrCode[ErrCode["ErrUnauthorized"] = 202] = "ErrUnauthorized";
108
+ /**
109
+ * ErrInsufficientFunds indicates that there are insufficient funds to pay for fees
110
+ *
111
+ * @generated from enum value: ErrInsufficientFunds = 203;
112
+ */
113
+ ErrCode[ErrCode["ErrInsufficientFunds"] = 203] = "ErrInsufficientFunds";
114
+ /**
115
+ * ErrUnknownRequest indicates that the path of a realm function call is unrecognized
116
+ *
117
+ * @generated from enum value: ErrUnknownRequest = 204;
118
+ */
119
+ ErrCode[ErrCode["ErrUnknownRequest"] = 204] = "ErrUnknownRequest";
120
+ /**
121
+ * ErrInvalidAddress indicates that an account address is blank or the bech32 can't be decoded
122
+ *
123
+ * @generated from enum value: ErrInvalidAddress = 205;
124
+ */
125
+ ErrCode[ErrCode["ErrInvalidAddress"] = 205] = "ErrInvalidAddress";
126
+ /**
127
+ * ErrUnknownAddress indicates that the address is unknown on the blockchain
128
+ *
129
+ * @generated from enum value: ErrUnknownAddress = 206;
130
+ */
131
+ ErrCode[ErrCode["ErrUnknownAddress"] = 206] = "ErrUnknownAddress";
132
+ /**
133
+ * ErrInvalidPubKey indicates that the public key was not found or has an invalid algorithm or format
134
+ *
135
+ * @generated from enum value: ErrInvalidPubKey = 207;
136
+ */
137
+ ErrCode[ErrCode["ErrInvalidPubKey"] = 207] = "ErrInvalidPubKey";
138
+ /**
139
+ * ErrInsufficientCoins indicates that the transaction has insufficient account funds to send
140
+ *
141
+ * @generated from enum value: ErrInsufficientCoins = 208;
142
+ */
143
+ ErrCode[ErrCode["ErrInsufficientCoins"] = 208] = "ErrInsufficientCoins";
144
+ /**
145
+ * ErrInvalidCoins indicates that the transaction Coins are not sorted, or don't have a
146
+ * positive amount, or the coin Denom contains upper case characters
147
+ *
148
+ * @generated from enum value: ErrInvalidCoins = 209;
149
+ */
150
+ ErrCode[ErrCode["ErrInvalidCoins"] = 209] = "ErrInvalidCoins";
151
+ /**
152
+ * ErrInvalidGasWanted indicates that the transaction gas wanted is too large or otherwise invalid
153
+ *
154
+ * @generated from enum value: ErrInvalidGasWanted = 210;
155
+ */
156
+ ErrCode[ErrCode["ErrInvalidGasWanted"] = 210] = "ErrInvalidGasWanted";
157
+ /**
158
+ * ErrOutOfGas indicates that the transaction doesn't have enough gas
159
+ *
160
+ * @generated from enum value: ErrOutOfGas = 211;
161
+ */
162
+ ErrCode[ErrCode["ErrOutOfGas"] = 211] = "ErrOutOfGas";
163
+ /**
164
+ * ErrMemoTooLarge indicates that the transaction memo is too large
165
+ *
166
+ * @generated from enum value: ErrMemoTooLarge = 212;
167
+ */
168
+ ErrCode[ErrCode["ErrMemoTooLarge"] = 212] = "ErrMemoTooLarge";
169
+ /**
170
+ * ErrInsufficientFee indicates that the gas fee is insufficient
171
+ *
172
+ * @generated from enum value: ErrInsufficientFee = 213;
173
+ */
174
+ ErrCode[ErrCode["ErrInsufficientFee"] = 213] = "ErrInsufficientFee";
175
+ /**
176
+ * ErrTooManySignatures indicates that the transaction has too many signatures
177
+ *
178
+ * @generated from enum value: ErrTooManySignatures = 214;
179
+ */
180
+ ErrCode[ErrCode["ErrTooManySignatures"] = 214] = "ErrTooManySignatures";
181
+ /**
182
+ * ErrNoSignatures indicates that the transaction has no signatures
183
+ *
184
+ * @generated from enum value: ErrNoSignatures = 215;
185
+ */
186
+ ErrCode[ErrCode["ErrNoSignatures"] = 215] = "ErrNoSignatures";
187
+ /**
188
+ * ErrGasOverflow indicates that an action results in a gas consumption unsigned integer overflow
189
+ *
190
+ * @generated from enum value: ErrGasOverflow = 216;
191
+ */
192
+ ErrCode[ErrCode["ErrGasOverflow"] = 216] = "ErrGasOverflow";
193
+ /**
194
+ * ErrInvalidPkgPath indicates that the package path is not recognized.
195
+ *
196
+ * @generated from enum value: ErrInvalidPkgPath = 217;
197
+ */
198
+ ErrCode[ErrCode["ErrInvalidPkgPath"] = 217] = "ErrInvalidPkgPath";
199
+ /**
200
+ * @generated from enum value: ErrInvalidStmt = 218;
201
+ */
202
+ ErrCode[ErrCode["ErrInvalidStmt"] = 218] = "ErrInvalidStmt";
203
+ /**
204
+ * @generated from enum value: ErrInvalidExpr = 219;
205
+ */
206
+ ErrCode[ErrCode["ErrInvalidExpr"] = 219] = "ErrInvalidExpr";
207
+ })(ErrCode || (ErrCode = {}));
208
+ // Retrieve enum metadata with: proto3.getEnumType(ErrCode)
209
+ proto3.util.setEnumType(ErrCode, "land.gno.gnonative.v1.ErrCode", [
210
+ { no: 0, name: "Undefined" },
211
+ { no: 1, name: "TODO" },
212
+ { no: 2, name: "ErrNotImplemented" },
213
+ { no: 3, name: "ErrInternal" },
214
+ { no: 100, name: "ErrInvalidInput" },
215
+ { no: 101, name: "ErrBridgeInterrupted" },
216
+ { no: 102, name: "ErrMissingInput" },
217
+ { no: 103, name: "ErrSerialization" },
218
+ { no: 104, name: "ErrDeserialization" },
219
+ { no: 105, name: "ErrInitService" },
220
+ { no: 106, name: "ErrSetRemote" },
221
+ { no: 150, name: "ErrCryptoKeyTypeUnknown" },
222
+ { no: 151, name: "ErrCryptoKeyNotFound" },
223
+ { no: 152, name: "ErrNoActiveAccount" },
224
+ { no: 153, name: "ErrRunGRPCServer" },
225
+ { no: 154, name: "ErrDecryptionFailed" },
226
+ { no: 200, name: "ErrTxDecode" },
227
+ { no: 201, name: "ErrInvalidSequence" },
228
+ { no: 202, name: "ErrUnauthorized" },
229
+ { no: 203, name: "ErrInsufficientFunds" },
230
+ { no: 204, name: "ErrUnknownRequest" },
231
+ { no: 205, name: "ErrInvalidAddress" },
232
+ { no: 206, name: "ErrUnknownAddress" },
233
+ { no: 207, name: "ErrInvalidPubKey" },
234
+ { no: 208, name: "ErrInsufficientCoins" },
235
+ { no: 209, name: "ErrInvalidCoins" },
236
+ { no: 210, name: "ErrInvalidGasWanted" },
237
+ { no: 211, name: "ErrOutOfGas" },
238
+ { no: 212, name: "ErrMemoTooLarge" },
239
+ { no: 213, name: "ErrInsufficientFee" },
240
+ { no: 214, name: "ErrTooManySignatures" },
241
+ { no: 215, name: "ErrNoSignatures" },
242
+ { no: 216, name: "ErrGasOverflow" },
243
+ { no: 217, name: "ErrInvalidPkgPath" },
244
+ { no: 218, name: "ErrInvalidStmt" },
245
+ { no: 219, name: "ErrInvalidExpr" },
246
+ ]);
247
+ /**
248
+ * @generated from message land.gno.gnonative.v1.ErrDetails
249
+ */
250
+ export class ErrDetails extends Message {
251
+ /**
252
+ * @generated from field: repeated land.gno.gnonative.v1.ErrCode codes = 1;
253
+ */
254
+ codes = [];
255
+ constructor(data) {
256
+ super();
257
+ proto3.util.initPartial(data, this);
258
+ }
259
+ static runtime = proto3;
260
+ static typeName = "land.gno.gnonative.v1.ErrDetails";
261
+ static fields = proto3.util.newFieldList(() => [
262
+ { no: 1, name: "codes", kind: "enum", T: proto3.getEnumType(ErrCode), repeated: true },
263
+ ]);
264
+ static fromBinary(bytes, options) {
265
+ return new ErrDetails().fromBinary(bytes, options);
266
+ }
267
+ static fromJson(jsonValue, options) {
268
+ return new ErrDetails().fromJson(jsonValue, options);
269
+ }
270
+ static fromJsonString(jsonString, options) {
271
+ return new ErrDetails().fromJsonString(jsonString, options);
272
+ }
273
+ static equals(a, b) {
274
+ return proto3.util.equals(ErrDetails, a, b);
275
+ }
276
+ }
277
+ //# sourceMappingURL=rpc_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc_pb.js","sourceRoot":"","sources":["../../../src/api/vendor/rpc_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,gFAAgF;AAChF,oBAAoB;AACpB,cAAc;AAGd,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,OAiOX;AAjOD,WAAY,OAAO;IACjB;;;;OAIG;IACH,+CAAa,CAAA;IAEb;;;;OAIG;IACH,qCAAQ,CAAA;IAER;;;;OAIG;IACH,+DAAqB,CAAA;IAErB;;;;OAIG;IACH,mDAAe,CAAA;IAEf;;OAEG;IACH,6DAAqB,CAAA;IAErB;;OAEG;IACH,uEAA0B,CAAA;IAE1B;;OAEG;IACH,6DAAqB,CAAA;IAErB;;OAEG;IACH,+DAAsB,CAAA;IAEtB;;OAEG;IACH,mEAAwB,CAAA;IAExB;;OAEG;IACH,2DAAoB,CAAA;IAEpB;;OAEG;IACH,uDAAkB,CAAA;IAElB;;OAEG;IACH,6EAA6B,CAAA;IAE7B;;;;OAIG;IACH,uEAA0B,CAAA;IAE1B;;;;OAIG;IACH,mEAAwB,CAAA;IAExB;;OAEG;IACH,+DAAsB,CAAA;IAEtB;;;;OAIG;IACH,qEAAyB,CAAA;IAEzB;;OAEG;IACH,qDAAiB,CAAA;IAEjB;;OAEG;IACH,mEAAwB,CAAA;IAExB;;OAEG;IACH,6DAAqB,CAAA;IAErB;;;;OAIG;IACH,uEAA0B,CAAA;IAE1B;;;;OAIG;IACH,iEAAuB,CAAA;IAEvB;;;;OAIG;IACH,iEAAuB,CAAA;IAEvB;;;;OAIG;IACH,iEAAuB,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CAAC;IACvD,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,UAAkB,EAAE,OAAkC;QAC1E,OAAO,IAAI,UAAU,EAAE,CAAC,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,CAAoD,EAAE,CAAoD;QACtH,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC","sourcesContent":["// @generated by protoc-gen-es v1.7.2 with parameter \"target=ts\"\n// @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from \"@bufbuild/protobuf\";\nimport { Message, proto3 } from \"@bufbuild/protobuf\";\n\n/**\n * The ErrCode enum defines errors for gRPC API functions. These are converted\n * from the Go error types returned by gnoclient.\n *\n * ----------------\n * Special errors\n * ----------------\n *\n * @generated from enum land.gno.gnonative.v1.ErrCode\n */\nexport enum ErrCode {\n /**\n * Undefined is the default value. It should never be set manually\n *\n * @generated from enum value: Undefined = 0;\n */\n Undefined = 0,\n\n /**\n * TODO indicates that you plan to create an error later\n *\n * @generated from enum value: TODO = 1;\n */\n TODO = 1,\n\n /**\n * ErrNotImplemented indicates that a method is not implemented yet\n *\n * @generated from enum value: ErrNotImplemented = 2;\n */\n ErrNotImplemented = 2,\n\n /**\n * ErrInternal indicates an unknown error (without Code), i.e. in gRPC\n *\n * @generated from enum value: ErrInternal = 3;\n */\n ErrInternal = 3,\n\n /**\n * @generated from enum value: ErrInvalidInput = 100;\n */\n ErrInvalidInput = 100,\n\n /**\n * @generated from enum value: ErrBridgeInterrupted = 101;\n */\n ErrBridgeInterrupted = 101,\n\n /**\n * @generated from enum value: ErrMissingInput = 102;\n */\n ErrMissingInput = 102,\n\n /**\n * @generated from enum value: ErrSerialization = 103;\n */\n ErrSerialization = 103,\n\n /**\n * @generated from enum value: ErrDeserialization = 104;\n */\n ErrDeserialization = 104,\n\n /**\n * @generated from enum value: ErrInitService = 105;\n */\n ErrInitService = 105,\n\n /**\n * @generated from enum value: ErrSetRemote = 106;\n */\n ErrSetRemote = 106,\n\n /**\n * @generated from enum value: ErrCryptoKeyTypeUnknown = 150;\n */\n ErrCryptoKeyTypeUnknown = 150,\n\n /**\n * ErrCryptoKeyNotFound indicates that the doesn't exist in the keybase\n *\n * @generated from enum value: ErrCryptoKeyNotFound = 151;\n */\n ErrCryptoKeyNotFound = 151,\n\n /**\n * ErrNoActiveAccount indicates that no account with the given address has been activated with ActivateAccount\n *\n * @generated from enum value: ErrNoActiveAccount = 152;\n */\n ErrNoActiveAccount = 152,\n\n /**\n * @generated from enum value: ErrRunGRPCServer = 153;\n */\n ErrRunGRPCServer = 153,\n\n /**\n * ErrDecryptionFailed indicates a decryption failure including a wrong password\n *\n * @generated from enum value: ErrDecryptionFailed = 154;\n */\n ErrDecryptionFailed = 154,\n\n /**\n * @generated from enum value: ErrTxDecode = 200;\n */\n ErrTxDecode = 200,\n\n /**\n * @generated from enum value: ErrInvalidSequence = 201;\n */\n ErrInvalidSequence = 201,\n\n /**\n * @generated from enum value: ErrUnauthorized = 202;\n */\n ErrUnauthorized = 202,\n\n /**\n * ErrInsufficientFunds indicates that there are insufficient funds to pay for fees\n *\n * @generated from enum value: ErrInsufficientFunds = 203;\n */\n ErrInsufficientFunds = 203,\n\n /**\n * ErrUnknownRequest indicates that the path of a realm function call is unrecognized\n *\n * @generated from enum value: ErrUnknownRequest = 204;\n */\n ErrUnknownRequest = 204,\n\n /**\n * ErrInvalidAddress indicates that an account address is blank or the bech32 can't be decoded\n *\n * @generated from enum value: ErrInvalidAddress = 205;\n */\n ErrInvalidAddress = 205,\n\n /**\n * ErrUnknownAddress indicates that the address is unknown on the blockchain\n *\n * @generated from enum value: ErrUnknownAddress = 206;\n */\n ErrUnknownAddress = 206,\n\n /**\n * ErrInvalidPubKey indicates that the public key was not found or has an invalid algorithm or format\n *\n * @generated from enum value: ErrInvalidPubKey = 207;\n */\n ErrInvalidPubKey = 207,\n\n /**\n * ErrInsufficientCoins indicates that the transaction has insufficient account funds to send\n *\n * @generated from enum value: ErrInsufficientCoins = 208;\n */\n ErrInsufficientCoins = 208,\n\n /**\n * ErrInvalidCoins indicates that the transaction Coins are not sorted, or don't have a\n * positive amount, or the coin Denom contains upper case characters\n *\n * @generated from enum value: ErrInvalidCoins = 209;\n */\n ErrInvalidCoins = 209,\n\n /**\n * ErrInvalidGasWanted indicates that the transaction gas wanted is too large or otherwise invalid\n *\n * @generated from enum value: ErrInvalidGasWanted = 210;\n */\n ErrInvalidGasWanted = 210,\n\n /**\n * ErrOutOfGas indicates that the transaction doesn't have enough gas\n *\n * @generated from enum value: ErrOutOfGas = 211;\n */\n ErrOutOfGas = 211,\n\n /**\n * ErrMemoTooLarge indicates that the transaction memo is too large\n *\n * @generated from enum value: ErrMemoTooLarge = 212;\n */\n ErrMemoTooLarge = 212,\n\n /**\n * ErrInsufficientFee indicates that the gas fee is insufficient\n *\n * @generated from enum value: ErrInsufficientFee = 213;\n */\n ErrInsufficientFee = 213,\n\n /**\n * ErrTooManySignatures indicates that the transaction has too many signatures\n *\n * @generated from enum value: ErrTooManySignatures = 214;\n */\n ErrTooManySignatures = 214,\n\n /**\n * ErrNoSignatures indicates that the transaction has no signatures\n *\n * @generated from enum value: ErrNoSignatures = 215;\n */\n ErrNoSignatures = 215,\n\n /**\n * ErrGasOverflow indicates that an action results in a gas consumption unsigned integer overflow\n *\n * @generated from enum value: ErrGasOverflow = 216;\n */\n ErrGasOverflow = 216,\n\n /**\n * ErrInvalidPkgPath indicates that the package path is not recognized.\n *\n * @generated from enum value: ErrInvalidPkgPath = 217;\n */\n ErrInvalidPkgPath = 217,\n\n /**\n * @generated from enum value: ErrInvalidStmt = 218;\n */\n ErrInvalidStmt = 218,\n\n /**\n * @generated from enum value: ErrInvalidExpr = 219;\n */\n ErrInvalidExpr = 219,\n}\n// Retrieve enum metadata with: proto3.getEnumType(ErrCode)\nproto3.util.setEnumType(ErrCode, \"land.gno.gnonative.v1.ErrCode\", [\n { no: 0, name: \"Undefined\" },\n { no: 1, name: \"TODO\" },\n { no: 2, name: \"ErrNotImplemented\" },\n { no: 3, name: \"ErrInternal\" },\n { no: 100, name: \"ErrInvalidInput\" },\n { no: 101, name: \"ErrBridgeInterrupted\" },\n { no: 102, name: \"ErrMissingInput\" },\n { no: 103, name: \"ErrSerialization\" },\n { no: 104, name: \"ErrDeserialization\" },\n { no: 105, name: \"ErrInitService\" },\n { no: 106, name: \"ErrSetRemote\" },\n { no: 150, name: \"ErrCryptoKeyTypeUnknown\" },\n { no: 151, name: \"ErrCryptoKeyNotFound\" },\n { no: 152, name: \"ErrNoActiveAccount\" },\n { no: 153, name: \"ErrRunGRPCServer\" },\n { no: 154, name: \"ErrDecryptionFailed\" },\n { no: 200, name: \"ErrTxDecode\" },\n { no: 201, name: \"ErrInvalidSequence\" },\n { no: 202, name: \"ErrUnauthorized\" },\n { no: 203, name: \"ErrInsufficientFunds\" },\n { no: 204, name: \"ErrUnknownRequest\" },\n { no: 205, name: \"ErrInvalidAddress\" },\n { no: 206, name: \"ErrUnknownAddress\" },\n { no: 207, name: \"ErrInvalidPubKey\" },\n { no: 208, name: \"ErrInsufficientCoins\" },\n { no: 209, name: \"ErrInvalidCoins\" },\n { no: 210, name: \"ErrInvalidGasWanted\" },\n { no: 211, name: \"ErrOutOfGas\" },\n { no: 212, name: \"ErrMemoTooLarge\" },\n { no: 213, name: \"ErrInsufficientFee\" },\n { no: 214, name: \"ErrTooManySignatures\" },\n { no: 215, name: \"ErrNoSignatures\" },\n { no: 216, name: \"ErrGasOverflow\" },\n { no: 217, name: \"ErrInvalidPkgPath\" },\n { no: 218, name: \"ErrInvalidStmt\" },\n { no: 219, name: \"ErrInvalidExpr\" },\n]);\n\n/**\n * @generated from message land.gno.gnonative.v1.ErrDetails\n */\nexport class ErrDetails extends Message<ErrDetails> {\n /**\n * @generated from field: repeated land.gno.gnonative.v1.ErrCode codes = 1;\n */\n codes: ErrCode[] = [];\n\n constructor(data?: PartialMessage<ErrDetails>) {\n super();\n proto3.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto3 = proto3;\n static readonly typeName = \"land.gno.gnonative.v1.ErrDetails\";\n static readonly fields: FieldList = proto3.util.newFieldList(() => [\n { no: 1, name: \"codes\", kind: \"enum\", T: proto3.getEnumType(ErrCode), repeated: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ErrDetails {\n return new ErrDetails().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ErrDetails {\n return new ErrDetails().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ErrDetails {\n return new ErrDetails().fromJsonString(jsonString, options);\n }\n\n static equals(a: ErrDetails | PlainMessage<ErrDetails> | undefined, b: ErrDetails | PlainMessage<ErrDetails> | undefined): boolean {\n return proto3.util.equals(ErrDetails, a, b);\n }\n}\n\n"]}
@@ -1,4 +1,4 @@
1
- import { GnoNativeService } from '@buf/gnolang_gnonative.connectrpc_es/rpc_connect';
2
1
  import { PromiseClient } from '@connectrpc/connect';
2
+ import { GnoNativeService } from '../api/vendor/rpc_connect';
3
3
  export declare function createClient(_port: number): PromiseClient<typeof GnoNativeService>;
4
4
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/grpc/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAuB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKzE,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAOlF"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/grpc/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAOlF"}
@@ -1,6 +1,6 @@
1
- import { GnoNativeService } from '@buf/gnolang_gnonative.connectrpc_es/rpc_connect';
2
1
  import { createPromiseClient } from '@connectrpc/connect';
3
2
  import { createNativeGrpcTransport } from './transport_native';
3
+ import { GnoNativeService } from '../api/vendor/rpc_connect';
4
4
  // Create a GnoNativeService client
5
5
  export function createClient(_port) {
6
6
  const transport = createNativeGrpcTransport({
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/grpc/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAiB,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,mCAAmC;AACnC,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,MAAM,SAAS,GAAG,yBAAyB,CAAC;QAC1C,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,KAAK;KACvB,CAAC,CAAC;IAEH,OAAO,mBAAmB,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;AAC1D,CAAC","sourcesContent":["import { GnoNativeService } from '@buf/gnolang_gnonative.connectrpc_es/rpc_connect';\nimport { createPromiseClient, PromiseClient } from '@connectrpc/connect';\n\nimport { createNativeGrpcTransport } from './transport_native';\n\n// Create a GnoNativeService client\nexport function createClient(_port: number): PromiseClient<typeof GnoNativeService> {\n const transport = createNativeGrpcTransport({\n baseUrl: '',\n useBinaryFormat: false,\n });\n\n return createPromiseClient(GnoNativeService, transport);\n}\n"]}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/grpc/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAiB,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,mCAAmC;AACnC,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,MAAM,SAAS,GAAG,yBAAyB,CAAC;QAC1C,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,KAAK;KACvB,CAAC,CAAC;IAEH,OAAO,mBAAmB,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;AAC1D,CAAC","sourcesContent":["import { createPromiseClient, PromiseClient } from '@connectrpc/connect';\n\nimport { createNativeGrpcTransport } from './transport_native';\nimport { GnoNativeService } from '../api/vendor/rpc_connect';\n\n// Create a GnoNativeService client\nexport function createClient(_port: number): PromiseClient<typeof GnoNativeService> {\n const transport = createNativeGrpcTransport({\n baseUrl: '',\n useBinaryFormat: false,\n });\n\n return createPromiseClient(GnoNativeService, transport);\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { ErrCode } from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb';
2
1
  import { Code, ConnectError } from '@connectrpc/connect';
2
+ import { ErrCode } from '../api/vendor/rpc_pb';
3
3
  declare class GRPCError extends Error {
4
4
  GrpcCode: Code;
5
5
  error: ConnectError;
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/grpc/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEzD,cAAM,SAAU,SAAQ,KAAK;IACpB,QAAQ,EAAE,IAAI,CAAC;IAEf,KAAK,EAAE,YAAY,CAAC;gBAEf,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS;IAc9C,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,QAAQ;IAmBT,OAAO,IAAI,OAAO;IAUlB,aAAa,IAAI,IAAI;IAIrB,MAAM,IAAI,GAAG;IAQb,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAQ3C;AAED,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/grpc/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,cAAM,SAAU,SAAQ,KAAK;IACpB,QAAQ,EAAE,IAAI,CAAC;IAEf,KAAK,EAAE,YAAY,CAAC;gBAEf,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS;IAc9C,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,QAAQ;IAmBT,OAAO,IAAI,OAAO;IAUlB,aAAa,IAAI,IAAI;IAIrB,MAAM,IAAI,GAAG;IAQb,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAQ3C;AAED,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ErrCode } from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb';
2
1
  import { Code, ConnectError } from '@connectrpc/connect';
2
+ import { ErrCode } from '../api/vendor/rpc_pb';
3
3
  class GRPCError extends Error {
4
4
  GrpcCode;
5
5
  error;
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/grpc/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM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;QACtB,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,2GAA2G;IAC3G,0FAA0F;IACnF,OAAO;QACZ,IAAI,IAAI,CAAC,OAAO,KAAK,EAAE,EAAE,CAAC;YACxB,OAAO,OAAO,CAAC,SAAS,CAAC;QAC3B,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAElD,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAEM,aAAa;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEM,MAAM;QACX,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;YAClC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;SACnC,CAAC;IACJ,CAAC;IAEM,UAAU,CAAC,KAAc;QAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;YAClC,IAAI,GAAG,KAAK,KAAK,EAAE,CAAC;gBAClB,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import { ErrCode } from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb';\nimport { Code, ConnectError } from '@connectrpc/connect';\n\nclass GRPCError extends Error {\n public GrpcCode: Code;\n\n public error: ConnectError;\n\n constructor(e: ConnectError | null | undefined) {\n if (!e) {\n // this should not happen, but should not break the app either.\n // instead simply create a empty error and warn about this\n console.warn(`GRPCError: (${e}) grpc error provided, empty error returned`);\n e = new ConnectError('');\n }\n\n super(e.rawMessage);\n\n this.error = e;\n this.GrpcCode = e.code;\n }\n\n private extractErrCode(match: RegExpMatchArray | null) {\n if (match === null || match.length < 2) {\n return ErrCode.Undefined;\n }\n\n const code = parseInt(match[1]);\n if (typeof code !== 'number') {\n return ErrCode.Undefined;\n }\n\n return code;\n }\n\n // errCodes parses the error message formatted like `ErrType(#ErrNumber): WrappedErrType(#WrappedErrNumber)`\n // and returns the corresponding ErrCodes or [ErrCode.Undefined] if some errors occur.\n private errCodes(): ErrCode[] {\n const errCodes: ErrCode[] = [];\n\n if (this.message === '') {\n return [ErrCode.Undefined];\n }\n\n const matches = this.message.matchAll(/\\w+\\(#(\\d+)\\)/g);\n\n for (const match of matches) {\n const code = this.extractErrCode(match);\n errCodes.push(code);\n }\n\n return errCodes;\n }\n\n // errCode parses the error message formatted like `ErrType(#ErrNumber): WrappedErrType(#WrappedErrNumber)`\n // and returns the corresponding parent ErrCode or ErrCode.Undefined if some errors occur.\n public errCode(): ErrCode {\n if (this.message === '') {\n return ErrCode.Undefined;\n }\n\n const match = this.message.match(/\\w+\\(#(\\d+)\\)/);\n\n return this.extractErrCode(match);\n }\n\n public grpcErrorCode(): Code {\n return this.GrpcCode;\n }\n\n public toJSON(): any {\n return {\n message: this.message,\n grpcErrorCode: Code[this.GrpcCode],\n errorCode: ErrCode[this.errCode()],\n };\n }\n\n public hasErrCode(error: ErrCode): boolean {\n for (const err of this.errCodes()) {\n if (err === error) {\n return true;\n }\n }\n return false;\n }\n}\n\nexport { GRPCError, ErrCode };\n"]}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/grpc/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,SAAU,SAAQ,KAAK;IACpB,QAAQ,CAAO;IAEf,KAAK,CAAe;IAE3B,YAAY,CAAkC;QAC5C,IAAI,CAAC,CAAC,EAAE,CAAC;YACP,+DAA+D;YAC/D,0DAA0D;YAC1D,OAAO,CAAC,IAAI,CAAC,eA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C;QAC3B,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAElD,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAEM,aAAa;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEM,MAAM;QACX,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;YAClC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;SACnC,CAAC;IACJ,CAAC;IAEM,UAAU,CAAC,KAAc;QAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;YAClC,IAAI,GAAG,KAAK,KAAK,EAAE,CAAC;gBAClB,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import { Code, ConnectError } from '@connectrpc/connect';\n\nimport { ErrCode } from '../api/vendor/rpc_pb';\n\nclass GRPCError extends Error {\n public GrpcCode: Code;\n\n public error: ConnectError;\n\n constructor(e: ConnectError | null | undefined) {\n if (!e) {\n // this should not happen, but should not break the app either.\n // instead simply create a empty error and warn about this\n console.warn(`GRPCError: (${e}) grpc error provided, empty error returned`);\n e = new ConnectError('');\n }\n\n super(e.rawMessage);\n\n this.error = e;\n this.GrpcCode = e.code;\n }\n\n private extractErrCode(match: RegExpMatchArray | null) {\n if (match === null || match.length < 2) {\n return ErrCode.Undefined;\n }\n\n const code = parseInt(match[1]);\n if (typeof code !== 'number') {\n return ErrCode.Undefined;\n }\n\n return code;\n }\n\n // errCodes parses the error message formatted like `ErrType(#ErrNumber): WrappedErrType(#WrappedErrNumber)`\n // and returns the corresponding ErrCodes or [ErrCode.Undefined] if some errors occur.\n private errCodes(): ErrCode[] {\n const errCodes: ErrCode[] = [];\n\n if (this.message === '') {\n return [ErrCode.Undefined];\n }\n\n const matches = this.message.matchAll(/\\w+\\(#(\\d+)\\)/g);\n\n for (const match of matches) {\n const code = this.extractErrCode(match);\n errCodes.push(code);\n }\n\n return errCodes;\n }\n\n // errCode parses the error message formatted like `ErrType(#ErrNumber): WrappedErrType(#WrappedErrNumber)`\n // and returns the corresponding parent ErrCode or ErrCode.Undefined if some errors occur.\n public errCode(): ErrCode {\n if (this.message === '') {\n return ErrCode.Undefined;\n }\n\n const match = this.message.match(/\\w+\\(#(\\d+)\\)/);\n\n return this.extractErrCode(match);\n }\n\n public grpcErrorCode(): Code {\n return this.GrpcCode;\n }\n\n public toJSON(): any {\n return {\n message: this.message,\n grpcErrorCode: Code[this.GrpcCode],\n errorCode: ErrCode[this.errCode()],\n };\n }\n\n public hasErrCode(error: ErrCode): boolean {\n for (const err of this.errCodes()) {\n if (err === error) {\n return true;\n }\n }\n return false;\n }\n}\n\nexport { GRPCError, ErrCode };\n"]}
package/build/index.d.ts CHANGED
@@ -5,8 +5,8 @@ import 'fast-text-encoding';
5
5
  export declare function addChangeListener(listener: (event: ChangeEventPayload) => void): Subscription;
6
6
  export { ChangeEventPayload, GnonativeView, GnonativeViewProps };
7
7
  export * from './provider/gnonative-provider';
8
- export * from '@buf/gnolang_gnonative.bufbuild_es/gnonativetypes_pb';
9
- export * from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb';
8
+ export * from './api/vendor/gnonativetypes_pb';
9
+ export * from './api/vendor/rpc_pb';
10
10
  export { GRPCError } from './grpc/error';
11
11
  export * from './api/GnoNativeApi';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE3E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,oBAAoB,CAAC;AAM5B,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,GAAG,YAAY,CAE7F;AAED,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC;AACjE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sDAAsD,CAAC;AACrE,cAAc,2CAA2C,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE3E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,oBAAoB,CAAC;AAM5B,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,GAAG,YAAY,CAE7F;AAED,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC;AACjE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,cAAc,oBAAoB,CAAC"}
package/build/index.js CHANGED
@@ -9,8 +9,8 @@ export function addChangeListener(listener) {
9
9
  }
10
10
  export { GnonativeView };
11
11
  export * from './provider/gnonative-provider';
12
- export * from '@buf/gnolang_gnonative.bufbuild_es/gnonativetypes_pb';
13
- export * from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb';
12
+ export * from './api/vendor/gnonativetypes_pb';
13
+ export * from './api/vendor/rpc_pb';
14
14
  export { GRPCError } from './grpc/error';
15
15
  export * from './api/GnoNativeApi';
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAgB,MAAM,mBAAmB,CAAC;AAKnF,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,oBAAoB,CAAC;AAE3B,MAAc,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;AAE3F,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,eAAe,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAElF,MAAM,UAAU,iBAAiB,CAAC,QAA6C;IAC7E,OAAO,OAAO,CAAC,WAAW,CAAqB,UAAU,EAAE,QAAQ,CAAC,CAAC;AACvE,CAAC;AAED,OAAO,EAAsB,aAAa,EAAsB,CAAC;AACjE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sDAAsD,CAAC;AACrE,cAAc,2CAA2C,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,cAAc,oBAAoB,CAAC","sourcesContent":["import { EventEmitter, NativeModulesProxy, Subscription } from 'expo-modules-core';\n\n// Import the native module. On web, it will be resolved to Gnonative.web.ts\n// and on native platforms to Gnonative.ts\nimport { ChangeEventPayload, GnonativeViewProps } from './Gnonative.types';\nimport GnonativeModule from './GnonativeModule';\nimport GnonativeView from './GnonativeView';\nimport 'fast-text-encoding';\n\n(Symbol as any).asyncIterator = Symbol.asyncIterator || Symbol.for('Symbol.asyncIterator');\n\nconst emitter = new EventEmitter(GnonativeModule ?? NativeModulesProxy.Gnonative);\n\nexport function addChangeListener(listener: (event: ChangeEventPayload) => void): Subscription {\n return emitter.addListener<ChangeEventPayload>('onChange', listener);\n}\n\nexport { ChangeEventPayload, GnonativeView, GnonativeViewProps };\nexport * from './provider/gnonative-provider';\nexport * from '@buf/gnolang_gnonative.bufbuild_es/gnonativetypes_pb';\nexport * from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb';\nexport { GRPCError } from './grpc/error';\n\nexport * from './api/GnoNativeApi';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAgB,MAAM,mBAAmB,CAAC;AAKnF,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,oBAAoB,CAAC;AAE3B,MAAc,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;AAE3F,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,eAAe,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAElF,MAAM,UAAU,iBAAiB,CAAC,QAA6C;IAC7E,OAAO,OAAO,CAAC,WAAW,CAAqB,UAAU,EAAE,QAAQ,CAAC,CAAC;AACvE,CAAC;AAED,OAAO,EAAsB,aAAa,EAAsB,CAAC;AACjE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,cAAc,oBAAoB,CAAC","sourcesContent":["import { EventEmitter, NativeModulesProxy, Subscription } from 'expo-modules-core';\n\n// Import the native module. On web, it will be resolved to Gnonative.web.ts\n// and on native platforms to Gnonative.ts\nimport { ChangeEventPayload, GnonativeViewProps } from './Gnonative.types';\nimport GnonativeModule from './GnonativeModule';\nimport GnonativeView from './GnonativeView';\nimport 'fast-text-encoding';\n\n(Symbol as any).asyncIterator = Symbol.asyncIterator || Symbol.for('Symbol.asyncIterator');\n\nconst emitter = new EventEmitter(GnonativeModule ?? NativeModulesProxy.Gnonative);\n\nexport function addChangeListener(listener: (event: ChangeEventPayload) => void): Subscription {\n return emitter.addListener<ChangeEventPayload>('onChange', listener);\n}\n\nexport { ChangeEventPayload, GnonativeView, GnonativeViewProps };\nexport * from './provider/gnonative-provider';\nexport * from './api/vendor/gnonativetypes_pb';\nexport * from './api/vendor/rpc_pb';\nexport { GRPCError } from './grpc/error';\n\nexport * from './api/GnoNativeApi';\n"]}