@gnolang/gnonative 4.1.0 → 4.1.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/android/libs/gnocore.aar +0 -0
- package/build/api/GnoNativeApi.d.ts +4 -4
- package/build/api/GnoNativeApi.d.ts.map +1 -1
- package/build/api/GnoNativeApi.js +40 -56
- package/build/api/GnoNativeApi.js.map +1 -1
- package/build/api/vendor/gnonativetypes_pb.d.ts +564 -743
- package/build/api/vendor/gnonativetypes_pb.d.ts.map +1 -1
- package/build/api/vendor/gnonativetypes_pb.js +376 -2503
- package/build/api/vendor/gnonativetypes_pb.js.map +1 -1
- package/build/api/vendor/rpc_pb.d.ts +440 -15
- package/build/api/vendor/rpc_pb.d.ts.map +1 -1
- package/build/api/vendor/rpc_pb.js +20 -70
- package/build/api/vendor/rpc_pb.js.map +1 -1
- package/build/grpc/client.d.ts +3 -3
- package/build/grpc/client.d.ts.map +1 -1
- package/build/grpc/client.js +3 -3
- package/build/grpc/client.js.map +1 -1
- package/build/grpc/transport_native.d.ts.map +1 -1
- package/build/grpc/transport_native.js +20 -25
- package/build/grpc/transport_native.js.map +1 -1
- package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/GnoCore +0 -0
- package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/A/GnoCore +0 -0
- package/ios/Frameworks/GnoCore.xcframework/ios-arm64/GnoCore.framework/Versions/Current/GnoCore +0 -0
- package/ios/Frameworks/GnoCore.xcframework/ios-arm64_x86_64-simulator/GnoCore.framework/GnoCore +0 -0
- package/package.json +4 -4
- package/src/api/GnoNativeApi.ts +71 -143
- package/src/api/vendor/gnonativetypes_pb.ts +757 -2204
- package/src/api/vendor/rpc_pb.ts +451 -75
- package/src/grpc/client.ts +4 -4
- package/src/grpc/transport_native.ts +35 -36
- package/build/api/vendor/rpc_connect.d.ts +0 -461
- package/build/api/vendor/rpc_connect.d.ts.map +0 -1
- package/build/api/vendor/rpc_connect.js +0 -465
- package/build/api/vendor/rpc_connect.js.map +0 -1
- package/src/api/vendor/rpc_connect.ts +0 -467
package/src/api/vendor/rpc_pb.ts
CHANGED
|
@@ -1,10 +1,35 @@
|
|
|
1
|
-
// @generated by protoc-gen-es
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
|
|
2
2
|
// @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
4
|
|
|
6
|
-
import type {
|
|
7
|
-
import {
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import type { ActivateAccountRequestSchema, ActivateAccountResponseSchema, AddressFromBech32RequestSchema, AddressFromBech32ResponseSchema, AddressFromMnemonicRequestSchema, AddressFromMnemonicResponseSchema, AddressToBech32RequestSchema, AddressToBech32ResponseSchema, BroadcastTxCommitRequestSchema, BroadcastTxCommitResponseSchema, CallRequestSchema, CallResponseSchema, CreateAccountRequestSchema, CreateAccountResponseSchema, DeleteAccountRequestSchema, DeleteAccountResponseSchema, EstimateGasRequestSchema, EstimateGasResponseSchema, GenerateRecoveryPhraseRequestSchema, GenerateRecoveryPhraseResponseSchema, GetActivatedAccountRequestSchema, GetActivatedAccountResponseSchema, GetChainIDRequestSchema, GetChainIDResponseSchema, GetKeyInfoByAddressRequestSchema, GetKeyInfoByAddressResponseSchema, GetKeyInfoByNameOrAddressRequestSchema, GetKeyInfoByNameOrAddressResponseSchema, GetKeyInfoByNameRequestSchema, GetKeyInfoByNameResponseSchema, GetRemoteRequestSchema, GetRemoteResponseSchema, HasKeyByAddressRequestSchema, HasKeyByAddressResponseSchema, HasKeyByNameOrAddressRequestSchema, HasKeyByNameOrAddressResponseSchema, HasKeyByNameRequestSchema, HasKeyByNameResponseSchema, HelloRequestSchema, HelloResponseSchema, HelloStreamRequestSchema, HelloStreamResponseSchema, ListKeyInfoRequestSchema, ListKeyInfoResponseSchema, MakeTxResponseSchema, QEvalRequestSchema, QEvalResponseSchema, QueryAccountRequestSchema, QueryAccountResponseSchema, QueryRequestSchema, QueryResponseSchema, RenderRequestSchema, RenderResponseSchema, RotatePasswordRequestSchema, RotatePasswordResponseSchema, RunRequestSchema, RunResponseSchema, SendRequestSchema, SendResponseSchema, SetChainIDRequestSchema, SetChainIDResponseSchema, SetPasswordRequestSchema, SetPasswordResponseSchema, SetRemoteRequestSchema, SetRemoteResponseSchema, SignTxRequestSchema, SignTxResponseSchema } from "./gnonativetypes_pb";
|
|
8
|
+
import { file_gnonativetypes } from "./gnonativetypes_pb";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file rpc.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_rpc: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("CglycGMucHJvdG8SFWxhbmQuZ25vLmdub25hdGl2ZS52MSI7CgpFcnJEZXRhaWxzEi0KBWNvZGVzGAEgAygOMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkVyckNvZGUqtAYKB0VyckNvZGUSDQoJVW5kZWZpbmVkEAASCAoEVE9ETxABEhUKEUVyck5vdEltcGxlbWVudGVkEAISDwoLRXJySW50ZXJuYWwQAxITCg9FcnJJbnZhbGlkSW5wdXQQZBIYChRFcnJCcmlkZ2VJbnRlcnJ1cHRlZBBlEhMKD0Vyck1pc3NpbmdJbnB1dBBmEhQKEEVyclNlcmlhbGl6YXRpb24QZxIWChJFcnJEZXNlcmlhbGl6YXRpb24QaBISCg5FcnJJbml0U2VydmljZRBpEhAKDEVyclNldFJlbW90ZRBqEhwKF0VyckNyeXB0b0tleVR5cGVVbmtub3duEJYBEhkKFEVyckNyeXB0b0tleU5vdEZvdW5kEJcBEhcKE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mduby5nbm9uYXRpdmUudjEuQWRkcmVzc0Zyb21NbmVtb25pY1JlcXVlc3QaMi5sYW5kLmduby5nbm9uYXRpdmUudjEuQWRkcmVzc0Zyb21NbmVtb25pY1Jlc3BvbnNlElIKBUhlbGxvEiMubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkhlbGxvUmVxdWVzdBokLmxhbmQuZ25vLmdub25hdGl2ZS52MS5IZWxsb1Jlc3BvbnNlEmYKC0hlbGxvU3RyZWFtEikubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkhlbGxvU3RyZWFtUmVxdWVzdBoqLmxhbmQuZ25vLmdub25hdGl2ZS52MS5IZWxsb1N0cmVhbVJlc3BvbnNlMAFCL1onZ2l0aHViLmNvbS9nbm9sYW5nL2dub25hdGl2ZS9hcGkvZ2VuL2dvogIDUlRHYgZwcm90bzM", [file_gnonativetypes]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @generated from message land.gno.gnonative.v1.ErrDetails
|
|
19
|
+
*/
|
|
20
|
+
export type ErrDetails = Message<"land.gno.gnonative.v1.ErrDetails"> & {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: repeated land.gno.gnonative.v1.ErrCode codes = 1;
|
|
23
|
+
*/
|
|
24
|
+
codes: ErrCode[];
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message land.gno.gnonative.v1.ErrDetails.
|
|
29
|
+
* Use `create(ErrDetailsSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const ErrDetailsSchema: GenMessage<ErrDetails> = /*@__PURE__*/
|
|
32
|
+
messageDesc(file_rpc, 0);
|
|
8
33
|
|
|
9
34
|
/**
|
|
10
35
|
* The ErrCode enum defines errors for gRPC API functions. These are converted
|
|
@@ -242,80 +267,431 @@ export enum ErrCode {
|
|
|
242
267
|
*/
|
|
243
268
|
ErrInvalidExpr = 219,
|
|
244
269
|
}
|
|
245
|
-
// Retrieve enum metadata with: proto3.getEnumType(ErrCode)
|
|
246
|
-
proto3.util.setEnumType(ErrCode, "land.gno.gnonative.v1.ErrCode", [
|
|
247
|
-
{ no: 0, name: "Undefined" },
|
|
248
|
-
{ no: 1, name: "TODO" },
|
|
249
|
-
{ no: 2, name: "ErrNotImplemented" },
|
|
250
|
-
{ no: 3, name: "ErrInternal" },
|
|
251
|
-
{ no: 100, name: "ErrInvalidInput" },
|
|
252
|
-
{ no: 101, name: "ErrBridgeInterrupted" },
|
|
253
|
-
{ no: 102, name: "ErrMissingInput" },
|
|
254
|
-
{ no: 103, name: "ErrSerialization" },
|
|
255
|
-
{ no: 104, name: "ErrDeserialization" },
|
|
256
|
-
{ no: 105, name: "ErrInitService" },
|
|
257
|
-
{ no: 106, name: "ErrSetRemote" },
|
|
258
|
-
{ no: 150, name: "ErrCryptoKeyTypeUnknown" },
|
|
259
|
-
{ no: 151, name: "ErrCryptoKeyNotFound" },
|
|
260
|
-
{ no: 152, name: "ErrNoActiveAccount" },
|
|
261
|
-
{ no: 153, name: "ErrRunGRPCServer" },
|
|
262
|
-
{ no: 154, name: "ErrDecryptionFailed" },
|
|
263
|
-
{ no: 200, name: "ErrTxDecode" },
|
|
264
|
-
{ no: 201, name: "ErrInvalidSequence" },
|
|
265
|
-
{ no: 202, name: "ErrUnauthorized" },
|
|
266
|
-
{ no: 203, name: "ErrInsufficientFunds" },
|
|
267
|
-
{ no: 204, name: "ErrUnknownRequest" },
|
|
268
|
-
{ no: 205, name: "ErrInvalidAddress" },
|
|
269
|
-
{ no: 206, name: "ErrUnknownAddress" },
|
|
270
|
-
{ no: 207, name: "ErrInvalidPubKey" },
|
|
271
|
-
{ no: 208, name: "ErrInsufficientCoins" },
|
|
272
|
-
{ no: 209, name: "ErrInvalidCoins" },
|
|
273
|
-
{ no: 210, name: "ErrInvalidGasWanted" },
|
|
274
|
-
{ no: 211, name: "ErrOutOfGas" },
|
|
275
|
-
{ no: 212, name: "ErrMemoTooLarge" },
|
|
276
|
-
{ no: 213, name: "ErrInsufficientFee" },
|
|
277
|
-
{ no: 214, name: "ErrTooManySignatures" },
|
|
278
|
-
{ no: 215, name: "ErrNoSignatures" },
|
|
279
|
-
{ no: 216, name: "ErrGasOverflow" },
|
|
280
|
-
{ no: 217, name: "ErrInvalidPkgPath" },
|
|
281
|
-
{ no: 218, name: "ErrInvalidStmt" },
|
|
282
|
-
{ no: 219, name: "ErrInvalidExpr" },
|
|
283
|
-
]);
|
|
284
270
|
|
|
285
271
|
/**
|
|
286
|
-
*
|
|
272
|
+
* Describes the enum land.gno.gnonative.v1.ErrCode.
|
|
287
273
|
*/
|
|
288
|
-
export
|
|
274
|
+
export const ErrCodeSchema: GenEnum<ErrCode> = /*@__PURE__*/
|
|
275
|
+
enumDesc(file_rpc, 0);
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* GnoNativeService is the service to interact with the Gno blockchain
|
|
279
|
+
*
|
|
280
|
+
* @generated from service land.gno.gnonative.v1.GnoNativeService
|
|
281
|
+
*/
|
|
282
|
+
export const GnoNativeService: GenService<{
|
|
289
283
|
/**
|
|
290
|
-
*
|
|
284
|
+
* Set the connection address for the remote node. If you don't call this,
|
|
285
|
+
* the default is "127.0.0.1:26657"
|
|
286
|
+
*
|
|
287
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetRemote
|
|
291
288
|
*/
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
289
|
+
setRemote: {
|
|
290
|
+
methodKind: "unary";
|
|
291
|
+
input: typeof SetRemoteRequestSchema;
|
|
292
|
+
output: typeof SetRemoteResponseSchema;
|
|
293
|
+
},
|
|
294
|
+
/**
|
|
295
|
+
* Get the connection address for the remote node. The response is either
|
|
296
|
+
* the initial default, or the value which was set with SetRemote
|
|
297
|
+
*
|
|
298
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetRemote
|
|
299
|
+
*/
|
|
300
|
+
getRemote: {
|
|
301
|
+
methodKind: "unary";
|
|
302
|
+
input: typeof GetRemoteRequestSchema;
|
|
303
|
+
output: typeof GetRemoteResponseSchema;
|
|
304
|
+
},
|
|
305
|
+
/**
|
|
306
|
+
* Set the chain ID for the remote node. If you don't call this, the default
|
|
307
|
+
* is "dev"
|
|
308
|
+
*
|
|
309
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetChainID
|
|
310
|
+
*/
|
|
311
|
+
setChainID: {
|
|
312
|
+
methodKind: "unary";
|
|
313
|
+
input: typeof SetChainIDRequestSchema;
|
|
314
|
+
output: typeof SetChainIDResponseSchema;
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* Get the chain ID for the remote node. The response is either
|
|
318
|
+
* the initial default, or the value which was set with SetChainID
|
|
319
|
+
*
|
|
320
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetChainID
|
|
321
|
+
*/
|
|
322
|
+
getChainID: {
|
|
323
|
+
methodKind: "unary";
|
|
324
|
+
input: typeof GetChainIDRequestSchema;
|
|
325
|
+
output: typeof GetChainIDResponseSchema;
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* Generate a recovery phrase of BIP39 mnemonic words using entropy from the
|
|
329
|
+
* crypto library random number generator. This can be used as the mnemonic in
|
|
330
|
+
* CreateAccount.
|
|
331
|
+
*
|
|
332
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase
|
|
333
|
+
*/
|
|
334
|
+
generateRecoveryPhrase: {
|
|
335
|
+
methodKind: "unary";
|
|
336
|
+
input: typeof GenerateRecoveryPhraseRequestSchema;
|
|
337
|
+
output: typeof GenerateRecoveryPhraseResponseSchema;
|
|
338
|
+
},
|
|
339
|
+
/**
|
|
340
|
+
* Get the information for all keys in the keybase
|
|
341
|
+
*
|
|
342
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.ListKeyInfo
|
|
343
|
+
*/
|
|
344
|
+
listKeyInfo: {
|
|
345
|
+
methodKind: "unary";
|
|
346
|
+
input: typeof ListKeyInfoRequestSchema;
|
|
347
|
+
output: typeof ListKeyInfoResponseSchema;
|
|
348
|
+
},
|
|
349
|
+
/**
|
|
350
|
+
* Check for the key in the keybase with the given name.
|
|
351
|
+
* In the response, set has true if the keybase has the key.
|
|
352
|
+
*
|
|
353
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByName
|
|
354
|
+
*/
|
|
355
|
+
hasKeyByName: {
|
|
356
|
+
methodKind: "unary";
|
|
357
|
+
input: typeof HasKeyByNameRequestSchema;
|
|
358
|
+
output: typeof HasKeyByNameResponseSchema;
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* Check for the key in the keybase with the given address.
|
|
362
|
+
* In the response, set has true if the keybase has the key.
|
|
363
|
+
*
|
|
364
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress
|
|
365
|
+
*/
|
|
366
|
+
hasKeyByAddress: {
|
|
367
|
+
methodKind: "unary";
|
|
368
|
+
input: typeof HasKeyByAddressRequestSchema;
|
|
369
|
+
output: typeof HasKeyByAddressResponseSchema;
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
* Check for the key in the keybase with the given name or bech32 string address.
|
|
373
|
+
* In the response, set has true if the keybase has the key.
|
|
374
|
+
*
|
|
375
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress
|
|
376
|
+
*/
|
|
377
|
+
hasKeyByNameOrAddress: {
|
|
378
|
+
methodKind: "unary";
|
|
379
|
+
input: typeof HasKeyByNameOrAddressRequestSchema;
|
|
380
|
+
output: typeof HasKeyByNameOrAddressResponseSchema;
|
|
381
|
+
},
|
|
382
|
+
/**
|
|
383
|
+
* Get the information for the key in the keybase with the given name.
|
|
384
|
+
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
|
|
385
|
+
*
|
|
386
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName
|
|
387
|
+
*/
|
|
388
|
+
getKeyInfoByName: {
|
|
389
|
+
methodKind: "unary";
|
|
390
|
+
input: typeof GetKeyInfoByNameRequestSchema;
|
|
391
|
+
output: typeof GetKeyInfoByNameResponseSchema;
|
|
392
|
+
},
|
|
393
|
+
/**
|
|
394
|
+
* Get the information for the key in the keybase with the given address.
|
|
395
|
+
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
|
|
396
|
+
*
|
|
397
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress
|
|
398
|
+
*/
|
|
399
|
+
getKeyInfoByAddress: {
|
|
400
|
+
methodKind: "unary";
|
|
401
|
+
input: typeof GetKeyInfoByAddressRequestSchema;
|
|
402
|
+
output: typeof GetKeyInfoByAddressResponseSchema;
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
* Get the information for the key in the keybase with the given name or bech32 string address.
|
|
406
|
+
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
|
|
407
|
+
*
|
|
408
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress
|
|
409
|
+
*/
|
|
410
|
+
getKeyInfoByNameOrAddress: {
|
|
411
|
+
methodKind: "unary";
|
|
412
|
+
input: typeof GetKeyInfoByNameOrAddressRequestSchema;
|
|
413
|
+
output: typeof GetKeyInfoByNameOrAddressResponseSchema;
|
|
414
|
+
},
|
|
415
|
+
/**
|
|
416
|
+
* Create a new account in the keybase using the name and password specified by SetAccount.
|
|
417
|
+
* If an account with the same name already exists in the keybase,
|
|
418
|
+
* this replaces it. (If you don't want to replace it, then it's your responsibility
|
|
419
|
+
* to use GetKeyInfoByName to check if it exists before calling this.)
|
|
420
|
+
*
|
|
421
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.CreateAccount
|
|
422
|
+
*/
|
|
423
|
+
createAccount: {
|
|
424
|
+
methodKind: "unary";
|
|
425
|
+
input: typeof CreateAccountRequestSchema;
|
|
426
|
+
output: typeof CreateAccountResponseSchema;
|
|
427
|
+
},
|
|
428
|
+
/**
|
|
429
|
+
* Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is
|
|
430
|
+
* false, then you should call SetPassword before using a method which needs it.
|
|
431
|
+
* If the account is already activated, return its info.
|
|
432
|
+
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
|
|
433
|
+
*
|
|
434
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.ActivateAccount
|
|
435
|
+
*/
|
|
436
|
+
activateAccount: {
|
|
437
|
+
methodKind: "unary";
|
|
438
|
+
input: typeof ActivateAccountRequestSchema;
|
|
439
|
+
output: typeof ActivateAccountResponseSchema;
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
* Set the password for the account in the keybase with the given address.
|
|
443
|
+
* If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
|
|
444
|
+
* If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
|
|
445
|
+
*
|
|
446
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetPassword
|
|
447
|
+
*/
|
|
448
|
+
setPassword: {
|
|
449
|
+
methodKind: "unary";
|
|
450
|
+
input: typeof SetPasswordRequestSchema;
|
|
451
|
+
output: typeof SetPasswordResponseSchema;
|
|
452
|
+
},
|
|
453
|
+
/**
|
|
454
|
+
* Rotate the password of a key to a new password for the accounts in the keybase with the given addresses.
|
|
455
|
+
* Before calling this, you must call SetPassword with the current password for each account.
|
|
456
|
+
* If there is an error, then roll back all accounts to the current password.
|
|
457
|
+
* If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
|
|
458
|
+
*
|
|
459
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.RotatePassword
|
|
460
|
+
*/
|
|
461
|
+
rotatePassword: {
|
|
462
|
+
methodKind: "unary";
|
|
463
|
+
input: typeof RotatePasswordRequestSchema;
|
|
464
|
+
output: typeof RotatePasswordResponseSchema;
|
|
465
|
+
},
|
|
466
|
+
/**
|
|
467
|
+
* GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount.
|
|
468
|
+
* If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress.
|
|
469
|
+
* If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
|
|
470
|
+
*
|
|
471
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount
|
|
472
|
+
*/
|
|
473
|
+
getActivatedAccount: {
|
|
474
|
+
methodKind: "unary";
|
|
475
|
+
input: typeof GetActivatedAccountRequestSchema;
|
|
476
|
+
output: typeof GetActivatedAccountResponseSchema;
|
|
477
|
+
},
|
|
478
|
+
/**
|
|
479
|
+
* QueryAccount retrieves account information from the blockchain for a given
|
|
480
|
+
* address.
|
|
481
|
+
*
|
|
482
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.QueryAccount
|
|
483
|
+
*/
|
|
484
|
+
queryAccount: {
|
|
485
|
+
methodKind: "unary";
|
|
486
|
+
input: typeof QueryAccountRequestSchema;
|
|
487
|
+
output: typeof QueryAccountResponseSchema;
|
|
488
|
+
},
|
|
489
|
+
/**
|
|
490
|
+
* DeleteAccount deletes the account with the given name, using the password
|
|
491
|
+
* to ensure access. However, if skip_password is true, then ignore the
|
|
492
|
+
* password.
|
|
493
|
+
* If the account doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
|
|
494
|
+
* If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
|
|
495
|
+
*
|
|
496
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.DeleteAccount
|
|
497
|
+
*/
|
|
498
|
+
deleteAccount: {
|
|
499
|
+
methodKind: "unary";
|
|
500
|
+
input: typeof DeleteAccountRequestSchema;
|
|
501
|
+
output: typeof DeleteAccountResponseSchema;
|
|
502
|
+
},
|
|
503
|
+
/**
|
|
504
|
+
* Make an ABCI query to the remote node.
|
|
505
|
+
* If the request path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest.
|
|
506
|
+
* If the request data has a package path that is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath.
|
|
507
|
+
*
|
|
508
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.Query
|
|
509
|
+
*/
|
|
510
|
+
query: {
|
|
511
|
+
methodKind: "unary";
|
|
512
|
+
input: typeof QueryRequestSchema;
|
|
513
|
+
output: typeof QueryResponseSchema;
|
|
514
|
+
},
|
|
515
|
+
/**
|
|
516
|
+
* Render calls the Render function for package_path with optional args. The
|
|
517
|
+
* package path should include the prefix like "gno.land/". This is similar to
|
|
518
|
+
* using a browser URL <nodeURL>/<pkgPath>:<args> where <pkgPath> doesn't have
|
|
519
|
+
* the prefix like "gno.land/".
|
|
520
|
+
* If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath.
|
|
521
|
+
*
|
|
522
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.Render
|
|
523
|
+
*/
|
|
524
|
+
render: {
|
|
525
|
+
methodKind: "unary";
|
|
526
|
+
input: typeof RenderRequestSchema;
|
|
527
|
+
output: typeof RenderResponseSchema;
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
* QEval evaluates the given expression with the realm code at package_path.
|
|
531
|
+
* The package path should include the prefix like "gno.land/". The expression
|
|
532
|
+
* is usually a function call like "GetBoardIDFromName(\"testboard\")". The
|
|
533
|
+
* return value is a typed expression like
|
|
534
|
+
* "(1 gno.land/r/demo/boards.BoardID)\n(true bool)".
|
|
535
|
+
* If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath.
|
|
536
|
+
*
|
|
537
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.QEval
|
|
538
|
+
*/
|
|
539
|
+
qEval: {
|
|
540
|
+
methodKind: "unary";
|
|
541
|
+
input: typeof QEvalRequestSchema;
|
|
542
|
+
output: typeof QEvalResponseSchema;
|
|
543
|
+
},
|
|
544
|
+
/**
|
|
545
|
+
* Call a specific realm function. Sign the transaction with the given caller_address.
|
|
546
|
+
* If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
|
|
547
|
+
* If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
|
|
548
|
+
* If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest.
|
|
549
|
+
*
|
|
550
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.Call
|
|
551
|
+
*/
|
|
552
|
+
call: {
|
|
553
|
+
methodKind: "server_streaming";
|
|
554
|
+
input: typeof CallRequestSchema;
|
|
555
|
+
output: typeof CallResponseSchema;
|
|
556
|
+
},
|
|
557
|
+
/**
|
|
558
|
+
* Send currency from the account with the given caller_address to an account on the blockchain.
|
|
559
|
+
* If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
|
|
560
|
+
* If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
|
|
561
|
+
*
|
|
562
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.Send
|
|
563
|
+
*/
|
|
564
|
+
send: {
|
|
565
|
+
methodKind: "server_streaming";
|
|
566
|
+
input: typeof SendRequestSchema;
|
|
567
|
+
output: typeof SendResponseSchema;
|
|
568
|
+
},
|
|
569
|
+
/**
|
|
570
|
+
* Temporarily load the code in package on the blockchain and run main() which can
|
|
571
|
+
* call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address.
|
|
572
|
+
* This returns the "console" output.
|
|
573
|
+
* If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
|
|
574
|
+
*
|
|
575
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.Run
|
|
576
|
+
*/
|
|
577
|
+
run: {
|
|
578
|
+
methodKind: "server_streaming";
|
|
579
|
+
input: typeof RunRequestSchema;
|
|
580
|
+
output: typeof RunResponseSchema;
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
* Make an unsigned transaction to call a specific realm function.
|
|
584
|
+
*
|
|
585
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeCallTx
|
|
586
|
+
*/
|
|
587
|
+
makeCallTx: {
|
|
588
|
+
methodKind: "unary";
|
|
589
|
+
input: typeof CallRequestSchema;
|
|
590
|
+
output: typeof MakeTxResponseSchema;
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
* Make an unsigned transaction to send currency to an account on the blockchain.
|
|
594
|
+
*
|
|
595
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeSendTx
|
|
596
|
+
*/
|
|
597
|
+
makeSendTx: {
|
|
598
|
+
methodKind: "unary";
|
|
599
|
+
input: typeof SendRequestSchema;
|
|
600
|
+
output: typeof MakeTxResponseSchema;
|
|
601
|
+
},
|
|
602
|
+
/**
|
|
603
|
+
* Make an unsigned transaction to temporarily load the code in package on the blockchain and run main().
|
|
604
|
+
*
|
|
605
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeRunTx
|
|
606
|
+
*/
|
|
607
|
+
makeRunTx: {
|
|
608
|
+
methodKind: "unary";
|
|
609
|
+
input: typeof RunRequestSchema;
|
|
610
|
+
output: typeof MakeTxResponseSchema;
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* EstimateGas estimates the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin.
|
|
614
|
+
* If UpdateTx is true, then update the transaction with the gasWanted amount.
|
|
615
|
+
*
|
|
616
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.EstimateGas
|
|
617
|
+
*/
|
|
618
|
+
estimateGas: {
|
|
619
|
+
methodKind: "unary";
|
|
620
|
+
input: typeof EstimateGasRequestSchema;
|
|
621
|
+
output: typeof EstimateGasResponseSchema;
|
|
622
|
+
},
|
|
623
|
+
/**
|
|
624
|
+
* Sign the transaction using the account with the given address.
|
|
625
|
+
* If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
|
|
626
|
+
* If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
|
|
627
|
+
*
|
|
628
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx
|
|
629
|
+
*/
|
|
630
|
+
signTx: {
|
|
631
|
+
methodKind: "unary";
|
|
632
|
+
input: typeof SignTxRequestSchema;
|
|
633
|
+
output: typeof SignTxResponseSchema;
|
|
634
|
+
},
|
|
635
|
+
/**
|
|
636
|
+
* Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result.
|
|
637
|
+
*
|
|
638
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit
|
|
639
|
+
*/
|
|
640
|
+
broadcastTxCommit: {
|
|
641
|
+
methodKind: "server_streaming";
|
|
642
|
+
input: typeof BroadcastTxCommitRequestSchema;
|
|
643
|
+
output: typeof BroadcastTxCommitResponseSchema;
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
* Convert a byte array address to a bech32 string address.
|
|
647
|
+
*
|
|
648
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressToBech32
|
|
649
|
+
*/
|
|
650
|
+
addressToBech32: {
|
|
651
|
+
methodKind: "unary";
|
|
652
|
+
input: typeof AddressToBech32RequestSchema;
|
|
653
|
+
output: typeof AddressToBech32ResponseSchema;
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
* Convert a bech32 string address to a byte array address.
|
|
657
|
+
*
|
|
658
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromBech32
|
|
659
|
+
*/
|
|
660
|
+
addressFromBech32: {
|
|
661
|
+
methodKind: "unary";
|
|
662
|
+
input: typeof AddressFromBech32RequestSchema;
|
|
663
|
+
output: typeof AddressFromBech32ResponseSchema;
|
|
664
|
+
},
|
|
665
|
+
/**
|
|
666
|
+
* Convert a mnemonic (as in CreateAccount) to a byte array address.
|
|
667
|
+
*
|
|
668
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic
|
|
669
|
+
*/
|
|
670
|
+
addressFromMnemonic: {
|
|
671
|
+
methodKind: "unary";
|
|
672
|
+
input: typeof AddressFromMnemonicRequestSchema;
|
|
673
|
+
output: typeof AddressFromMnemonicResponseSchema;
|
|
674
|
+
},
|
|
675
|
+
/**
|
|
676
|
+
* Hello is for debug purposes
|
|
677
|
+
*
|
|
678
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.Hello
|
|
679
|
+
*/
|
|
680
|
+
hello: {
|
|
681
|
+
methodKind: "unary";
|
|
682
|
+
input: typeof HelloRequestSchema;
|
|
683
|
+
output: typeof HelloResponseSchema;
|
|
684
|
+
},
|
|
685
|
+
/**
|
|
686
|
+
* HelloStream is for debug purposes
|
|
687
|
+
*
|
|
688
|
+
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.HelloStream
|
|
689
|
+
*/
|
|
690
|
+
helloStream: {
|
|
691
|
+
methodKind: "server_streaming";
|
|
692
|
+
input: typeof HelloStreamRequestSchema;
|
|
693
|
+
output: typeof HelloStreamResponseSchema;
|
|
694
|
+
},
|
|
695
|
+
}> = /*@__PURE__*/
|
|
696
|
+
serviceDesc(file_rpc, 0);
|
|
321
697
|
|
package/src/grpc/client.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createClient as cc, Client } from '@connectrpc/connect';
|
|
2
2
|
|
|
3
3
|
import { createNativeGrpcTransport } from './transport_native';
|
|
4
|
-
import { GnoNativeService } from '../api/vendor/
|
|
4
|
+
import { GnoNativeService } from '../api/vendor/rpc_pb';
|
|
5
5
|
|
|
6
6
|
// Create a GnoNativeService client
|
|
7
|
-
export function createClient(_port: number):
|
|
7
|
+
export function createClient(_port: number): Client<typeof GnoNativeService> {
|
|
8
8
|
const transport = createNativeGrpcTransport({
|
|
9
9
|
baseUrl: '',
|
|
10
10
|
useBinaryFormat: false,
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
return
|
|
13
|
+
return cc(GnoNativeService, transport);
|
|
14
14
|
}
|