@gnolang/gnonative 4.0.0 → 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 (60) 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 +3 -3
  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 +2 -2
  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/Info.plist +5 -5
  41. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/GnoCore +0 -0
  42. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Headers/GnoGnonative.objc.h +0 -7
  43. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/A/GnoCore +0 -0
  44. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/A/Headers/GnoGnonative.objc.h +0 -7
  45. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/Current/GnoCore +0 -0
  46. package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/Current/Headers/GnoGnonative.objc.h +0 -7
  47. package/ios/Frameworks/GnoCore.xcframework/ios-arm64_x86_64-simulator/GnoCore.framework/GnoCore +0 -0
  48. package/ios/Frameworks/GnoCore.xcframework/ios-arm64_x86_64-simulator/GnoCore.framework/Headers/GnoGnonative.objc.h +0 -7
  49. package/ios/GnonativeModule.swift +0 -12
  50. package/package.json +1 -3
  51. package/src/GoBridge.ts +0 -5
  52. package/src/api/GnoNativeApi.ts +31 -14
  53. package/src/api/types.ts +10 -3
  54. package/src/api/vendor/gnonativetypes_pb.ts +3074 -0
  55. package/src/api/vendor/rpc_connect.ts +467 -0
  56. package/src/api/vendor/rpc_pb.ts +321 -0
  57. package/src/grpc/client.ts +1 -1
  58. package/src/grpc/error.ts +2 -1
  59. package/src/index.ts +2 -2
  60. package/tsconfig.json +0 -1
@@ -0,0 +1,461 @@
1
+ import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, EstimateGasRequest, EstimateGasResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RotatePasswordRequest, RotatePasswordResponse, RunRequest, RunResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse } from "./gnonativetypes_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * GnoNativeService is the service to interact with the Gno blockchain
5
+ *
6
+ * @generated from service land.gno.gnonative.v1.GnoNativeService
7
+ */
8
+ export declare const GnoNativeService: {
9
+ readonly typeName: "land.gno.gnonative.v1.GnoNativeService";
10
+ readonly methods: {
11
+ /**
12
+ * Set the connection address for the remote node. If you don't call this,
13
+ * the default is "127.0.0.1:26657"
14
+ *
15
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetRemote
16
+ */
17
+ readonly setRemote: {
18
+ readonly name: "SetRemote";
19
+ readonly I: typeof SetRemoteRequest;
20
+ readonly O: typeof SetRemoteResponse;
21
+ readonly kind: MethodKind.Unary;
22
+ };
23
+ /**
24
+ * Get the connection address for the remote node. The response is either
25
+ * the initial default, or the value which was set with SetRemote
26
+ *
27
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetRemote
28
+ */
29
+ readonly getRemote: {
30
+ readonly name: "GetRemote";
31
+ readonly I: typeof GetRemoteRequest;
32
+ readonly O: typeof GetRemoteResponse;
33
+ readonly kind: MethodKind.Unary;
34
+ };
35
+ /**
36
+ * Set the chain ID for the remote node. If you don't call this, the default
37
+ * is "dev"
38
+ *
39
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetChainID
40
+ */
41
+ readonly setChainID: {
42
+ readonly name: "SetChainID";
43
+ readonly I: typeof SetChainIDRequest;
44
+ readonly O: typeof SetChainIDResponse;
45
+ readonly kind: MethodKind.Unary;
46
+ };
47
+ /**
48
+ * Get the chain ID for the remote node. The response is either
49
+ * the initial default, or the value which was set with SetChainID
50
+ *
51
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetChainID
52
+ */
53
+ readonly getChainID: {
54
+ readonly name: "GetChainID";
55
+ readonly I: typeof GetChainIDRequest;
56
+ readonly O: typeof GetChainIDResponse;
57
+ readonly kind: MethodKind.Unary;
58
+ };
59
+ /**
60
+ * Generate a recovery phrase of BIP39 mnemonic words using entropy from the
61
+ * crypto library random number generator. This can be used as the mnemonic in
62
+ * CreateAccount.
63
+ *
64
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase
65
+ */
66
+ readonly generateRecoveryPhrase: {
67
+ readonly name: "GenerateRecoveryPhrase";
68
+ readonly I: typeof GenerateRecoveryPhraseRequest;
69
+ readonly O: typeof GenerateRecoveryPhraseResponse;
70
+ readonly kind: MethodKind.Unary;
71
+ };
72
+ /**
73
+ * Get the information for all keys in the keybase
74
+ *
75
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ListKeyInfo
76
+ */
77
+ readonly listKeyInfo: {
78
+ readonly name: "ListKeyInfo";
79
+ readonly I: typeof ListKeyInfoRequest;
80
+ readonly O: typeof ListKeyInfoResponse;
81
+ readonly kind: MethodKind.Unary;
82
+ };
83
+ /**
84
+ * Check for the key in the keybase with the given name.
85
+ * In the response, set has true if the keybase has the key.
86
+ *
87
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByName
88
+ */
89
+ readonly hasKeyByName: {
90
+ readonly name: "HasKeyByName";
91
+ readonly I: typeof HasKeyByNameRequest;
92
+ readonly O: typeof HasKeyByNameResponse;
93
+ readonly kind: MethodKind.Unary;
94
+ };
95
+ /**
96
+ * Check for the key in the keybase with the given address.
97
+ * In the response, set has true if the keybase has the key.
98
+ *
99
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress
100
+ */
101
+ readonly hasKeyByAddress: {
102
+ readonly name: "HasKeyByAddress";
103
+ readonly I: typeof HasKeyByAddressRequest;
104
+ readonly O: typeof HasKeyByAddressResponse;
105
+ readonly kind: MethodKind.Unary;
106
+ };
107
+ /**
108
+ * Check for the key in the keybase with the given name or bech32 string address.
109
+ * In the response, set has true if the keybase has the key.
110
+ *
111
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress
112
+ */
113
+ readonly hasKeyByNameOrAddress: {
114
+ readonly name: "HasKeyByNameOrAddress";
115
+ readonly I: typeof HasKeyByNameOrAddressRequest;
116
+ readonly O: typeof HasKeyByNameOrAddressResponse;
117
+ readonly kind: MethodKind.Unary;
118
+ };
119
+ /**
120
+ * Get the information for the key in the keybase with the given name.
121
+ * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
122
+ *
123
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName
124
+ */
125
+ readonly getKeyInfoByName: {
126
+ readonly name: "GetKeyInfoByName";
127
+ readonly I: typeof GetKeyInfoByNameRequest;
128
+ readonly O: typeof GetKeyInfoByNameResponse;
129
+ readonly kind: MethodKind.Unary;
130
+ };
131
+ /**
132
+ * Get the information for the key in the keybase with the given address.
133
+ * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
134
+ *
135
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress
136
+ */
137
+ readonly getKeyInfoByAddress: {
138
+ readonly name: "GetKeyInfoByAddress";
139
+ readonly I: typeof GetKeyInfoByAddressRequest;
140
+ readonly O: typeof GetKeyInfoByAddressResponse;
141
+ readonly kind: MethodKind.Unary;
142
+ };
143
+ /**
144
+ * Get the information for the key in the keybase with the given name or bech32 string address.
145
+ * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
146
+ *
147
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress
148
+ */
149
+ readonly getKeyInfoByNameOrAddress: {
150
+ readonly name: "GetKeyInfoByNameOrAddress";
151
+ readonly I: typeof GetKeyInfoByNameOrAddressRequest;
152
+ readonly O: typeof GetKeyInfoByNameOrAddressResponse;
153
+ readonly kind: MethodKind.Unary;
154
+ };
155
+ /**
156
+ * Create a new account in the keybase using the name and password specified by SetAccount.
157
+ * If an account with the same name already exists in the keybase,
158
+ * this replaces it. (If you don't want to replace it, then it's your responsibility
159
+ * to use GetKeyInfoByName to check if it exists before calling this.)
160
+ *
161
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.CreateAccount
162
+ */
163
+ readonly createAccount: {
164
+ readonly name: "CreateAccount";
165
+ readonly I: typeof CreateAccountRequest;
166
+ readonly O: typeof CreateAccountResponse;
167
+ readonly kind: MethodKind.Unary;
168
+ };
169
+ /**
170
+ * Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is
171
+ * false, then you should call SetPassword before using a method which needs it.
172
+ * If the account is already activated, return its info.
173
+ * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
174
+ *
175
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ActivateAccount
176
+ */
177
+ readonly activateAccount: {
178
+ readonly name: "ActivateAccount";
179
+ readonly I: typeof ActivateAccountRequest;
180
+ readonly O: typeof ActivateAccountResponse;
181
+ readonly kind: MethodKind.Unary;
182
+ };
183
+ /**
184
+ * Set the password for the account in the keybase with the given address.
185
+ * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
186
+ * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
187
+ *
188
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetPassword
189
+ */
190
+ readonly setPassword: {
191
+ readonly name: "SetPassword";
192
+ readonly I: typeof SetPasswordRequest;
193
+ readonly O: typeof SetPasswordResponse;
194
+ readonly kind: MethodKind.Unary;
195
+ };
196
+ /**
197
+ * Rotate the password of a key to a new password for the accounts in the keybase with the given addresses.
198
+ * Before calling this, you must call SetPassword with the current password for each account.
199
+ * If there is an error, then roll back all accounts to the current password.
200
+ * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
201
+ *
202
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.RotatePassword
203
+ */
204
+ readonly rotatePassword: {
205
+ readonly name: "RotatePassword";
206
+ readonly I: typeof RotatePasswordRequest;
207
+ readonly O: typeof RotatePasswordResponse;
208
+ readonly kind: MethodKind.Unary;
209
+ };
210
+ /**
211
+ * GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount.
212
+ * If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress.
213
+ * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
214
+ *
215
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount
216
+ */
217
+ readonly getActivatedAccount: {
218
+ readonly name: "GetActivatedAccount";
219
+ readonly I: typeof GetActivatedAccountRequest;
220
+ readonly O: typeof GetActivatedAccountResponse;
221
+ readonly kind: MethodKind.Unary;
222
+ };
223
+ /**
224
+ * QueryAccount retrieves account information from the blockchain for a given
225
+ * address.
226
+ *
227
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.QueryAccount
228
+ */
229
+ readonly queryAccount: {
230
+ readonly name: "QueryAccount";
231
+ readonly I: typeof QueryAccountRequest;
232
+ readonly O: typeof QueryAccountResponse;
233
+ readonly kind: MethodKind.Unary;
234
+ };
235
+ /**
236
+ * DeleteAccount deletes the account with the given name, using the password
237
+ * to ensure access. However, if skip_password is true, then ignore the
238
+ * password.
239
+ * If the account doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
240
+ * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
241
+ *
242
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.DeleteAccount
243
+ */
244
+ readonly deleteAccount: {
245
+ readonly name: "DeleteAccount";
246
+ readonly I: typeof DeleteAccountRequest;
247
+ readonly O: typeof DeleteAccountResponse;
248
+ readonly kind: MethodKind.Unary;
249
+ };
250
+ /**
251
+ * Make an ABCI query to the remote node.
252
+ * If the request path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest.
253
+ * If the request data has a package path that is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath.
254
+ *
255
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Query
256
+ */
257
+ readonly query: {
258
+ readonly name: "Query";
259
+ readonly I: typeof QueryRequest;
260
+ readonly O: typeof QueryResponse;
261
+ readonly kind: MethodKind.Unary;
262
+ };
263
+ /**
264
+ * Render calls the Render function for package_path with optional args. The
265
+ * package path should include the prefix like "gno.land/". This is similar to
266
+ * using a browser URL <nodeURL>/<pkgPath>:<args> where <pkgPath> doesn't have
267
+ * the prefix like "gno.land/".
268
+ * If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath.
269
+ *
270
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Render
271
+ */
272
+ readonly render: {
273
+ readonly name: "Render";
274
+ readonly I: typeof RenderRequest;
275
+ readonly O: typeof RenderResponse;
276
+ readonly kind: MethodKind.Unary;
277
+ };
278
+ /**
279
+ * QEval evaluates the given expression with the realm code at package_path.
280
+ * The package path should include the prefix like "gno.land/". The expression
281
+ * is usually a function call like "GetBoardIDFromName(\"testboard\")". The
282
+ * return value is a typed expression like
283
+ * "(1 gno.land/r/demo/boards.BoardID)\n(true bool)".
284
+ * If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath.
285
+ *
286
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.QEval
287
+ */
288
+ readonly qEval: {
289
+ readonly name: "QEval";
290
+ readonly I: typeof QEvalRequest;
291
+ readonly O: typeof QEvalResponse;
292
+ readonly kind: MethodKind.Unary;
293
+ };
294
+ /**
295
+ * Call a specific realm function. Sign the transaction with the given caller_address.
296
+ * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
297
+ * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
298
+ * If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest.
299
+ *
300
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Call
301
+ */
302
+ readonly call: {
303
+ readonly name: "Call";
304
+ readonly I: typeof CallRequest;
305
+ readonly O: typeof CallResponse;
306
+ readonly kind: MethodKind.ServerStreaming;
307
+ };
308
+ /**
309
+ * Send currency from the account with the given caller_address to an account on the blockchain.
310
+ * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
311
+ * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
312
+ *
313
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Send
314
+ */
315
+ readonly send: {
316
+ readonly name: "Send";
317
+ readonly I: typeof SendRequest;
318
+ readonly O: typeof SendResponse;
319
+ readonly kind: MethodKind.ServerStreaming;
320
+ };
321
+ /**
322
+ * Temporarily load the code in package on the blockchain and run main() which can
323
+ * call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address.
324
+ * This returns the "console" output.
325
+ * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
326
+ *
327
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Run
328
+ */
329
+ readonly run: {
330
+ readonly name: "Run";
331
+ readonly I: typeof RunRequest;
332
+ readonly O: typeof RunResponse;
333
+ readonly kind: MethodKind.ServerStreaming;
334
+ };
335
+ /**
336
+ * Make an unsigned transaction to call a specific realm function.
337
+ *
338
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeCallTx
339
+ */
340
+ readonly makeCallTx: {
341
+ readonly name: "MakeCallTx";
342
+ readonly I: typeof CallRequest;
343
+ readonly O: typeof MakeTxResponse;
344
+ readonly kind: MethodKind.Unary;
345
+ };
346
+ /**
347
+ * Make an unsigned transaction to send currency to an account on the blockchain.
348
+ *
349
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeSendTx
350
+ */
351
+ readonly makeSendTx: {
352
+ readonly name: "MakeSendTx";
353
+ readonly I: typeof SendRequest;
354
+ readonly O: typeof MakeTxResponse;
355
+ readonly kind: MethodKind.Unary;
356
+ };
357
+ /**
358
+ * Make an unsigned transaction to temporarily load the code in package on the blockchain and run main().
359
+ *
360
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeRunTx
361
+ */
362
+ readonly makeRunTx: {
363
+ readonly name: "MakeRunTx";
364
+ readonly I: typeof RunRequest;
365
+ readonly O: typeof MakeTxResponse;
366
+ readonly kind: MethodKind.Unary;
367
+ };
368
+ /**
369
+ * EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin.
370
+ * If UpdateTx is true, then update the transaction with the gasWanted amount.
371
+ *
372
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.EstimateGas
373
+ */
374
+ readonly estimateGas: {
375
+ readonly name: "EstimateGas";
376
+ readonly I: typeof EstimateGasRequest;
377
+ readonly O: typeof EstimateGasResponse;
378
+ readonly kind: MethodKind.Unary;
379
+ };
380
+ /**
381
+ * Sign the transaction using the account with the given address.
382
+ * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
383
+ * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
384
+ *
385
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx
386
+ */
387
+ readonly signTx: {
388
+ readonly name: "SignTx";
389
+ readonly I: typeof SignTxRequest;
390
+ readonly O: typeof SignTxResponse;
391
+ readonly kind: MethodKind.Unary;
392
+ };
393
+ /**
394
+ * Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result.
395
+ *
396
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit
397
+ */
398
+ readonly broadcastTxCommit: {
399
+ readonly name: "BroadcastTxCommit";
400
+ readonly I: typeof BroadcastTxCommitRequest;
401
+ readonly O: typeof BroadcastTxCommitResponse;
402
+ readonly kind: MethodKind.ServerStreaming;
403
+ };
404
+ /**
405
+ * Convert a byte array address to a bech32 string address.
406
+ *
407
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressToBech32
408
+ */
409
+ readonly addressToBech32: {
410
+ readonly name: "AddressToBech32";
411
+ readonly I: typeof AddressToBech32Request;
412
+ readonly O: typeof AddressToBech32Response;
413
+ readonly kind: MethodKind.Unary;
414
+ };
415
+ /**
416
+ * Convert a bech32 string address to a byte array address.
417
+ *
418
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromBech32
419
+ */
420
+ readonly addressFromBech32: {
421
+ readonly name: "AddressFromBech32";
422
+ readonly I: typeof AddressFromBech32Request;
423
+ readonly O: typeof AddressFromBech32Response;
424
+ readonly kind: MethodKind.Unary;
425
+ };
426
+ /**
427
+ * Convert a mnemonic (as in CreateAccount) to a byte array address.
428
+ *
429
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic
430
+ */
431
+ readonly addressFromMnemonic: {
432
+ readonly name: "AddressFromMnemonic";
433
+ readonly I: typeof AddressFromMnemonicRequest;
434
+ readonly O: typeof AddressFromMnemonicResponse;
435
+ readonly kind: MethodKind.Unary;
436
+ };
437
+ /**
438
+ * Hello is for debug purposes
439
+ *
440
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Hello
441
+ */
442
+ readonly hello: {
443
+ readonly name: "Hello";
444
+ readonly I: typeof HelloRequest;
445
+ readonly O: typeof HelloResponse;
446
+ readonly kind: MethodKind.Unary;
447
+ };
448
+ /**
449
+ * HelloStream is for debug purposes
450
+ *
451
+ * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HelloStream
452
+ */
453
+ readonly helloStream: {
454
+ readonly name: "HelloStream";
455
+ readonly I: typeof HelloStreamRequest;
456
+ readonly O: typeof HelloStreamResponse;
457
+ readonly kind: MethodKind.ServerStreaming;
458
+ };
459
+ };
460
+ };
461
+ //# sourceMappingURL=rpc_connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc_connect.d.ts","sourceRoot":"","sources":["../../../src/api/vendor/rpc_connect.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,WAAW,EAAE,YAAY,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,EAA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