@firmachain/firma-js 0.2.30 → 0.2.33

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 (75) hide show
  1. package/dist/sdk/FirmaAuthzService.d.ts +41 -0
  2. package/dist/sdk/FirmaAuthzService.js +633 -0
  3. package/dist/sdk/FirmaBankService.d.ts +2 -1
  4. package/dist/sdk/FirmaBankService.js +4 -1
  5. package/dist/sdk/FirmaContractService.js +10 -12
  6. package/dist/sdk/FirmaCosmWasmService.d.ts +38 -0
  7. package/dist/sdk/FirmaCosmWasmService.js +667 -0
  8. package/dist/sdk/FirmaDistributionService.d.ts +2 -1
  9. package/dist/sdk/FirmaDistributionService.js +8 -5
  10. package/dist/sdk/FirmaFeeGrantService.js +3 -3
  11. package/dist/sdk/FirmaGovService.js +19 -19
  12. package/dist/sdk/FirmaIbcService.d.ts +15 -0
  13. package/dist/sdk/FirmaIbcService.js +144 -0
  14. package/dist/sdk/FirmaMobileSDK.d.ts +3 -1
  15. package/dist/sdk/FirmaMobileSDK.js +4 -1
  16. package/dist/sdk/FirmaNftService.js +6 -6
  17. package/dist/sdk/FirmaSDK.d.ts +7 -1
  18. package/dist/sdk/FirmaSDK.js +10 -1
  19. package/dist/sdk/FirmaStakingService.d.ts +18 -5
  20. package/dist/sdk/FirmaStakingService.js +20 -13
  21. package/dist/sdk/FirmaTokenService.js +12 -12
  22. package/dist/sdk/FirmaUtil.d.ts +18 -1
  23. package/dist/sdk/FirmaUtil.js +193 -0
  24. package/dist/sdk/FirmaWalletService.d.ts +3 -0
  25. package/dist/sdk/FirmaWalletService.js +18 -10
  26. package/dist/sdk/firmachain/amino/signer.d.ts +1 -2
  27. package/dist/sdk/firmachain/authz/AuthzQueryClient.d.ts +48 -0
  28. package/dist/sdk/firmachain/authz/AuthzQueryClient.js +142 -0
  29. package/dist/sdk/firmachain/authz/AuthzTxClient.d.ts +23 -0
  30. package/dist/sdk/firmachain/authz/AuthzTxClient.js +47 -0
  31. package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +147 -0
  32. package/dist/sdk/firmachain/authz/AuthzTxTypes.js +358 -0
  33. package/dist/sdk/firmachain/authz/index.d.ts +3 -0
  34. package/dist/sdk/firmachain/authz/index.js +15 -0
  35. package/dist/sdk/firmachain/bank/BankTxClient.d.ts +4 -3
  36. package/dist/sdk/firmachain/bank/BankTxClient.js +5 -2
  37. package/dist/sdk/firmachain/common/ITxClient.d.ts +4 -1
  38. package/dist/sdk/firmachain/common/ITxClient.js +15 -0
  39. package/dist/sdk/firmachain/common/signingaminostargateclient.d.ts +50 -0
  40. package/dist/sdk/firmachain/common/signingaminostargateclient.js +267 -0
  41. package/dist/sdk/firmachain/common/signingstargateclient.d.ts +15 -8
  42. package/dist/sdk/firmachain/common/signingstargateclient.js +68 -9
  43. package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +4 -3
  44. package/dist/sdk/firmachain/contract/ContractTxClient.js +5 -2
  45. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.d.ts +52 -0
  46. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +193 -0
  47. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.d.ts +38 -0
  48. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.js +59 -0
  49. package/dist/sdk/firmachain/cosmwasm/index.d.ts +3 -0
  50. package/dist/sdk/firmachain/cosmwasm/index.js +15 -0
  51. package/dist/sdk/firmachain/distribution/DistributionTxClient.d.ts +6 -5
  52. package/dist/sdk/firmachain/distribution/DistributionTxClient.js +7 -4
  53. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.d.ts +4 -3
  54. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.js +5 -2
  55. package/dist/sdk/firmachain/gov/GovTxClient.d.ts +5 -4
  56. package/dist/sdk/firmachain/gov/GovTxClient.js +6 -3
  57. package/dist/sdk/firmachain/ibc/IbcQueryClient.d.ts +34 -0
  58. package/dist/sdk/firmachain/ibc/IbcQueryClient.js +71 -0
  59. package/dist/sdk/firmachain/ibc/IbcTxClient.d.ts +13 -0
  60. package/dist/sdk/firmachain/ibc/IbcTxClient.js +39 -0
  61. package/dist/sdk/firmachain/ibc/index.d.ts +3 -0
  62. package/dist/sdk/firmachain/ibc/index.js +15 -0
  63. package/dist/sdk/firmachain/nft/NftTxClient.d.ts +5 -4
  64. package/dist/sdk/firmachain/nft/NftTxClient.js +6 -3
  65. package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +17 -4
  66. package/dist/sdk/firmachain/staking/StakingQueryClient.js +38 -18
  67. package/dist/sdk/firmachain/staking/StakingTxClient.d.ts +7 -6
  68. package/dist/sdk/firmachain/staking/StakingTxClient.js +8 -5
  69. package/dist/sdk/firmachain/token/TokenTxClient.d.ts +6 -5
  70. package/dist/sdk/firmachain/token/TokenTxClient.js +7 -4
  71. package/package.json +3 -1
  72. package/dist/sdk/firmachain/amino/secp256k1hdwallet.d.ts +0 -94
  73. package/dist/sdk/firmachain/amino/secp256k1hdwallet.js +0 -437
  74. package/dist/sdk/firmachain/amino/secp256k1wallet.d.ts +0 -23
  75. package/dist/sdk/firmachain/amino/secp256k1wallet.js +0 -141
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.AuthzQueryClient = void 0;
43
+ var axios_1 = __importDefault(require("axios"));
44
+ var AuthzTxTypes_1 = require("./AuthzTxTypes");
45
+ var AuthzQueryClient = /** @class */ (function () {
46
+ function AuthzQueryClient(baseUrl) {
47
+ this.axios = axios_1.default.create({
48
+ baseURL: baseUrl,
49
+ headers: {
50
+ Accept: "application/json",
51
+ },
52
+ timeout: 15000,
53
+ });
54
+ }
55
+ AuthzQueryClient.prototype.getSendGrantData = function (granterAddress, granteeAddress, paginationKey) {
56
+ if (paginationKey === void 0) { paginationKey = ""; }
57
+ return __awaiter(this, void 0, void 0, function () {
58
+ var msgType, path, result, convertPagination;
59
+ return __generator(this, function (_a) {
60
+ switch (_a.label) {
61
+ case 0:
62
+ msgType = "/cosmos.bank.v1beta1.MsgSend";
63
+ path = "/cosmos/authz/v1beta1/grants?granter=" + granterAddress + "&grantee=" + granteeAddress + "&msg_type_url=" + msgType;
64
+ return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey } })];
65
+ case 1:
66
+ result = _a.sent();
67
+ convertPagination = {
68
+ next_key: "",
69
+ total: result.data.grants.length
70
+ };
71
+ if (result.data.pagination != null) {
72
+ convertPagination.next_key = result.data.pagination.next_key;
73
+ convertPagination.total = Number.parseInt(result.data.pagination.total);
74
+ }
75
+ return [2 /*return*/, { dataList: result.data.grants, pagination: convertPagination }];
76
+ }
77
+ });
78
+ });
79
+ };
80
+ AuthzQueryClient.prototype.getGenericGrantData = function (granterAddress, granteeAddress, msgType, paginationKey) {
81
+ if (paginationKey === void 0) { paginationKey = ""; }
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var path, result, convertPagination;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ path = "/cosmos/authz/v1beta1/grants?granter=" + granterAddress + "&grantee=" + granteeAddress + "&msg_type_url=" + msgType;
88
+ return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey } })];
89
+ case 1:
90
+ result = _a.sent();
91
+ convertPagination = {
92
+ next_key: "",
93
+ total: result.data.grants.length
94
+ };
95
+ if (result.data.pagination != null) {
96
+ convertPagination.next_key = result.data.pagination.next_key;
97
+ convertPagination.total = Number.parseInt(result.data.pagination.total);
98
+ }
99
+ return [2 /*return*/, { dataList: result.data.grants, pagination: convertPagination }];
100
+ }
101
+ });
102
+ });
103
+ };
104
+ AuthzQueryClient.prototype.getStakingGrantData = function (granterAddress, granteeAddress, type, paginationKey) {
105
+ if (paginationKey === void 0) { paginationKey = ""; }
106
+ return __awaiter(this, void 0, void 0, function () {
107
+ var msgType, path, result, convertPagination;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ msgType = "none";
112
+ switch (type) {
113
+ case AuthzTxTypes_1.AuthorizationType.AUTHORIZATION_TYPE_DELEGATE:
114
+ msgType = "/cosmos.staking.v1beta1.MsgDelegate";
115
+ break;
116
+ case AuthzTxTypes_1.AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE:
117
+ msgType = "/cosmos.staking.v1beta1.MsgUndelegate";
118
+ break;
119
+ case AuthzTxTypes_1.AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE:
120
+ msgType = "/cosmos.staking.v1beta1.MsgBeginRedelegate";
121
+ break;
122
+ }
123
+ path = "/cosmos/authz/v1beta1/grants?granter=" + granterAddress + "&grantee=" + granteeAddress + "&msg_type_url=" + msgType;
124
+ return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey } })];
125
+ case 1:
126
+ result = _a.sent();
127
+ convertPagination = {
128
+ next_key: "",
129
+ total: result.data.grants.length
130
+ };
131
+ if (result.data.pagination != null) {
132
+ convertPagination.next_key = result.data.pagination.next_key;
133
+ convertPagination.total = Number.parseInt(result.data.pagination.total);
134
+ }
135
+ return [2 /*return*/, { dataList: result.data.grants, pagination: convertPagination }];
136
+ }
137
+ });
138
+ });
139
+ };
140
+ return AuthzQueryClient;
141
+ }());
142
+ exports.AuthzQueryClient = AuthzQueryClient;
@@ -0,0 +1,23 @@
1
+ import { Registry, EncodeObject } from "@cosmjs/proto-signing";
2
+ import { MsgExec, MsgGrant, MsgRevoke } from "./AuthzTxTypes";
3
+ import { ITxClient } from "../common/ITxClient";
4
+ import { FirmaWalletService } from "../../FirmaWalletService";
5
+ export interface MsgExecAllowanceEncodeObject extends EncodeObject {
6
+ readonly typeUrl: "/cosmos.authz.v1beta1.MsgExec";
7
+ readonly value: Partial<MsgExec>;
8
+ }
9
+ export interface MsgGrantAllowanceEncodeObject extends EncodeObject {
10
+ readonly typeUrl: "/cosmos.authz.v1beta1.MsgGrant";
11
+ readonly value: Partial<MsgGrant>;
12
+ }
13
+ export interface MsgRevokeAllowanceEncodeObject extends EncodeObject {
14
+ readonly typeUrl: "/cosmos.authz.v1beta1.MsgRevoke";
15
+ readonly value: Partial<MsgRevoke>;
16
+ }
17
+ export declare class AuthzTxClient extends ITxClient {
18
+ constructor(wallet: FirmaWalletService, serverUrl: string);
19
+ static getRegistry(): Registry;
20
+ static msgExecAllowance(data: MsgExec): MsgExecAllowanceEncodeObject;
21
+ static msgGrantAllowance(data: MsgGrant): MsgGrantAllowanceEncodeObject;
22
+ static msgRevokeAllowance(data: MsgRevoke): MsgRevokeAllowanceEncodeObject;
23
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.AuthzTxClient = void 0;
19
+ var proto_signing_1 = require("@cosmjs/proto-signing");
20
+ var AuthzTxTypes_1 = require("./AuthzTxTypes");
21
+ var ITxClient_1 = require("../common/ITxClient");
22
+ var types = [
23
+ ["/cosmos.authz.v1beta1.MsgExec", AuthzTxTypes_1.MsgExec],
24
+ ["/cosmos.authz.v1beta1.MsgGrant", AuthzTxTypes_1.MsgGrant],
25
+ ["/cosmos.authz.v1beta1.MsgRevoke", AuthzTxTypes_1.MsgRevoke],
26
+ ];
27
+ var registry = new proto_signing_1.Registry(types);
28
+ var AuthzTxClient = /** @class */ (function (_super) {
29
+ __extends(AuthzTxClient, _super);
30
+ function AuthzTxClient(wallet, serverUrl) {
31
+ return _super.call(this, wallet, serverUrl, registry) || this;
32
+ }
33
+ AuthzTxClient.getRegistry = function () {
34
+ return registry;
35
+ };
36
+ AuthzTxClient.msgExecAllowance = function (data) {
37
+ return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: data };
38
+ };
39
+ AuthzTxClient.msgGrantAllowance = function (data) {
40
+ return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: data };
41
+ };
42
+ AuthzTxClient.msgRevokeAllowance = function (data) {
43
+ return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: data };
44
+ };
45
+ return AuthzTxClient;
46
+ }(ITxClient_1.ITxClient));
47
+ exports.AuthzTxClient = AuthzTxClient;
@@ -0,0 +1,147 @@
1
+ /// <reference types="long" />
2
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { Writer } from "protobufjs/minimal";
5
+ import { Timestamp } from "../google/protobuf/timestamp";
6
+ import { Any } from "../google/protobuf/any";
7
+ export interface GenericAuthorization {
8
+ /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
9
+ msg: string;
10
+ }
11
+ export interface Grant {
12
+ authorization?: Any;
13
+ expiration?: Timestamp;
14
+ }
15
+ export interface MsgGrant {
16
+ granter: string;
17
+ grantee: string;
18
+ grant?: Grant;
19
+ }
20
+ /** MsgExecResponse defines the Msg/MsgExecResponse response type. */
21
+ export interface MsgExecResponse {
22
+ results: Uint8Array[];
23
+ }
24
+ /**
25
+ * MsgExec attempts to execute the provided messages using
26
+ * authorizations granted to the grantee. Each message should have only
27
+ * one signer corresponding to the granter of the authorization.
28
+ */
29
+ export interface MsgExec {
30
+ grantee: string;
31
+ /**
32
+ * Authorization Msg requests to execute. Each msg must implement Authorization interface
33
+ * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
34
+ * triple and validate it.
35
+ */
36
+ msgs: Any[];
37
+ }
38
+ /** MsgGrantResponse defines the Msg/MsgGrant response type. */
39
+ export interface MsgGrantResponse {
40
+ }
41
+ /**
42
+ * MsgRevoke revokes any authorization with the provided sdk.Msg type on the
43
+ * granter's account with that has been granted to the grantee.
44
+ */
45
+ export interface MsgRevoke {
46
+ granter: string;
47
+ grantee: string;
48
+ msgTypeUrl: string;
49
+ }
50
+ /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */
51
+ export interface MsgRevokeResponse {
52
+ }
53
+ export declare const MsgGrant: {
54
+ encode(message: MsgGrant, writer?: _m0.Writer): _m0.Writer;
55
+ fromPartial(object: DeepPartial<MsgGrant>): MsgGrant;
56
+ };
57
+ export declare const MsgExecResponse: {
58
+ encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer;
59
+ fromPartial(object: DeepPartial<MsgExecResponse>): MsgExecResponse;
60
+ };
61
+ export declare const MsgExec: {
62
+ encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer;
63
+ fromPartial(object: DeepPartial<MsgExec>): MsgExec;
64
+ };
65
+ export declare const MsgGrantResponse: {
66
+ encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer;
67
+ fromPartial(object: DeepPartial<MsgGrantResponse>): MsgGrantResponse;
68
+ };
69
+ export declare const MsgRevoke: {
70
+ encode(message: MsgRevoke, writer?: _m0.Writer): _m0.Writer;
71
+ fromPartial(object: DeepPartial<MsgRevoke>): MsgRevoke;
72
+ };
73
+ export declare const MsgRevokeResponse: {
74
+ encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer;
75
+ fromPartial(object: DeepPartial<MsgRevokeResponse>): MsgRevokeResponse;
76
+ };
77
+ export declare const Grant: {
78
+ encode(message: Grant, writer?: _m0.Writer): _m0.Writer;
79
+ fromPartial(object: DeepPartial<Grant>): Grant;
80
+ };
81
+ export declare const GenericAuthorization: {
82
+ encode(message: GenericAuthorization, writer?: _m0.Writer): _m0.Writer;
83
+ fromPartial(object: DeepPartial<GenericAuthorization>): GenericAuthorization;
84
+ };
85
+ /**
86
+ * AuthorizationType defines the type of staking module authorization type
87
+ *
88
+ * Since: cosmos-sdk 0.43
89
+ */
90
+ export declare enum AuthorizationType {
91
+ /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
92
+ AUTHORIZATION_TYPE_UNSPECIFIED = 0,
93
+ /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */
94
+ AUTHORIZATION_TYPE_DELEGATE = 1,
95
+ /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */
96
+ AUTHORIZATION_TYPE_UNDELEGATE = 2,
97
+ /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */
98
+ AUTHORIZATION_TYPE_REDELEGATE = 3,
99
+ UNRECOGNIZED = -1
100
+ }
101
+ export declare function authorizationTypeFromJSON(object: any): AuthorizationType;
102
+ export declare function authorizationTypeToJSON(object: AuthorizationType): string;
103
+ /**
104
+ * StakeAuthorization defines authorization for delegate/undelegate/redelegate.
105
+ *
106
+ * Since: cosmos-sdk 0.43
107
+ */
108
+ export interface StakeAuthorization {
109
+ /**
110
+ * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
111
+ * empty, there is no spend limit and any amount of coins can be delegated.
112
+ */
113
+ maxTokens?: Coin;
114
+ /**
115
+ * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
116
+ * account.
117
+ */
118
+ allowList?: StakeAuthorization_Validators | undefined;
119
+ /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */
120
+ denyList?: StakeAuthorization_Validators | undefined;
121
+ /** authorization_type defines one of AuthorizationType. */
122
+ authorizationType: AuthorizationType;
123
+ }
124
+ /** Validators defines list of validator addresses. */
125
+ export interface StakeAuthorization_Validators {
126
+ address: string[];
127
+ }
128
+ export declare const StakeAuthorization: {
129
+ encode(message: StakeAuthorization, writer?: _m0.Writer): _m0.Writer;
130
+ fromPartial(object: DeepPartial<StakeAuthorization>): StakeAuthorization;
131
+ };
132
+ export declare const StakeAuthorization_Validators: {
133
+ encode(message: StakeAuthorization_Validators, writer?: _m0.Writer): _m0.Writer;
134
+ fromPartial(object: DeepPartial<StakeAuthorization_Validators>): StakeAuthorization_Validators;
135
+ };
136
+ export interface SendAuthorization {
137
+ spendLimit: Coin[];
138
+ }
139
+ export declare const SendAuthorization: {
140
+ encode(message: SendAuthorization, writer?: _m0.Writer): _m0.Writer;
141
+ fromPartial(object: DeepPartial<SendAuthorization>): SendAuthorization;
142
+ };
143
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;
144
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
145
+ [K in keyof T]?: DeepPartial<T[K]>;
146
+ } : Partial<T>;
147
+ export {};