@verana-labs/verana-types 0.10.0 → 0.10.1-dev.10
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/README.md +1 -1
- package/dist/amino-converter/cs.d.ts +7 -0
- package/dist/amino-converter/cs.js +169 -0
- package/dist/amino-converter/de.d.ts +3 -0
- package/dist/amino-converter/de.js +53 -0
- package/dist/amino-converter/di.d.ts +2 -0
- package/dist/amino-converter/di.js +23 -0
- package/dist/amino-converter/perm.d.ts +12 -0
- package/dist/amino-converter/perm.js +318 -0
- package/dist/amino-converter/td.d.ts +4 -0
- package/dist/amino-converter/td.js +45 -0
- package/dist/amino-converter/tr.d.ts +6 -0
- package/dist/amino-converter/tr.js +107 -0
- package/dist/amino-converter/util/helpers.d.ts +30 -0
- package/dist/amino-converter/util/helpers.js +88 -0
- package/dist/amino-converter/xr.d.ts +4 -0
- package/dist/amino-converter/xr.js +74 -0
- package/dist/codec/cosmos/base/v1beta1/coin.d.ts +1 -1
- package/dist/codec/google/protobuf/descriptor.d.ts +5 -0
- package/dist/codec/google/protobuf/descriptor.js +16 -2
- package/dist/codec/google/protobuf/timestamp.d.ts +3 -3
- package/dist/codec/verana/cs/v1/query.d.ts +4 -3
- package/dist/codec/verana/cs/v1/query.js +36 -19
- package/dist/codec/verana/cs/v1/tx.d.ts +106 -11
- package/dist/codec/verana/cs/v1/tx.js +529 -45
- package/dist/codec/verana/cs/v1/types.d.ts +69 -14
- package/dist/codec/verana/cs/v1/types.js +392 -55
- package/dist/codec/verana/de/v1/genesis.d.ts +9 -0
- package/dist/codec/verana/de/v1/genesis.js +80 -2
- package/dist/codec/verana/de/v1/query.d.ts +41 -3
- package/dist/codec/verana/de/v1/query.js +153 -9
- package/dist/codec/verana/de/v1/tx.d.ts +27 -10
- package/dist/codec/verana/de/v1/tx.js +35 -18
- package/dist/codec/verana/de/v1/types.d.ts +42 -4
- package/dist/codec/verana/de/v1/types.js +113 -17
- package/dist/codec/verana/{dd/module → di/module/v1}/module.d.ts +5 -2
- package/dist/codec/verana/{dd/module → di/module/v1}/module.js +2 -2
- package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +5 -4
- package/dist/codec/verana/{dd → di}/v1/genesis.js +11 -13
- package/dist/codec/verana/di/v1/params.d.ts +24 -0
- package/dist/codec/verana/di/v1/params.js +81 -0
- package/dist/codec/verana/di/v1/query.d.ts +99 -0
- package/dist/codec/verana/{dd → di}/v1/query.js +65 -166
- package/dist/codec/verana/di/v1/tx.d.ts +120 -0
- package/dist/codec/verana/di/v1/tx.js +409 -0
- package/dist/codec/verana/perm/v1/query.d.ts +0 -1
- package/dist/codec/verana/perm/v1/query.js +3 -17
- package/dist/codec/verana/perm/v1/tx.d.ts +111 -59
- package/dist/codec/verana/perm/v1/tx.js +676 -273
- package/dist/codec/verana/perm/v1/types.d.ts +30 -30
- package/dist/codec/verana/perm/v1/types.js +241 -208
- package/dist/codec/verana/td/v1/genesis.d.ts +4 -2
- package/dist/codec/verana/td/v1/genesis.js +31 -17
- package/dist/codec/verana/td/v1/params.d.ts +2 -0
- package/dist/codec/verana/td/v1/params.js +18 -1
- package/dist/codec/verana/td/v1/query.d.ts +1 -1
- package/dist/codec/verana/td/v1/query.js +8 -8
- package/dist/codec/verana/td/v1/tx.d.ts +26 -40
- package/dist/codec/verana/td/v1/tx.js +78 -188
- package/dist/codec/verana/td/v1/types.d.ts +5 -7
- package/dist/codec/verana/td/v1/types.js +32 -47
- package/dist/codec/verana/tr/v1/query.d.ts +1 -2
- package/dist/codec/verana/tr/v1/query.js +8 -8
- package/dist/codec/verana/tr/v1/tx.d.ts +32 -32
- package/dist/codec/verana/tr/v1/tx.js +89 -89
- package/dist/codec/verana/tr/v1/types.d.ts +2 -5
- package/dist/codec/verana/tr/v1/types.js +25 -55
- package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/xr/module/v1/module.js +98 -0
- package/dist/codec/verana/xr/v1/genesis.d.ts +32 -0
- package/dist/codec/verana/xr/v1/genesis.js +149 -0
- package/dist/codec/verana/{dd → xr}/v1/params.d.ts +4 -3
- package/dist/codec/verana/{dd → xr}/v1/params.js +16 -44
- package/dist/codec/verana/xr/v1/query.d.ts +162 -0
- package/dist/codec/verana/xr/v1/query.js +775 -0
- package/dist/codec/verana/xr/v1/tx.d.ts +195 -0
- package/dist/codec/verana/xr/v1/tx.js +939 -0
- package/dist/helpers/aminoConverters.d.ts +8 -32
- package/dist/helpers/aminoConverters.js +21 -589
- package/dist/index.d.ts +9 -1
- package/dist/index.js +9 -1
- package/dist/signing.d.ts +65 -0
- package/dist/signing.js +121 -0
- package/package.json +31 -5
- package/dist/codec/verana/dd/v1/query.d.ts +0 -108
- package/dist/codec/verana/dd/v1/tx.d.ts +0 -173
- package/dist/codec/verana/dd/v1/tx.js +0 -636
- package/dist/codec/verana/dd/v1/types.d.ts +0 -30
- package/dist/codec/verana/dd/v1/types.js +0 -206
|
@@ -42,15 +42,34 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
44
|
const params_1 = require("./params");
|
|
45
|
+
const types_1 = require("./types");
|
|
45
46
|
exports.protobufPackage = "verana.de.v1";
|
|
46
47
|
function createBaseGenesisState() {
|
|
47
|
-
return {
|
|
48
|
+
return {
|
|
49
|
+
params: undefined,
|
|
50
|
+
operatorAuthorizations: [],
|
|
51
|
+
feeGrants: [],
|
|
52
|
+
vsOperatorAuthorizations: [],
|
|
53
|
+
operatorAuthorizationUsages: [],
|
|
54
|
+
};
|
|
48
55
|
}
|
|
49
56
|
exports.GenesisState = {
|
|
50
57
|
encode(message, writer = _m0.Writer.create()) {
|
|
51
58
|
if (message.params !== undefined) {
|
|
52
59
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
53
60
|
}
|
|
61
|
+
for (const v of message.operatorAuthorizations) {
|
|
62
|
+
types_1.OperatorAuthorization.encode(v, writer.uint32(18).fork()).ldelim();
|
|
63
|
+
}
|
|
64
|
+
for (const v of message.feeGrants) {
|
|
65
|
+
types_1.FeeGrant.encode(v, writer.uint32(26).fork()).ldelim();
|
|
66
|
+
}
|
|
67
|
+
for (const v of message.vsOperatorAuthorizations) {
|
|
68
|
+
types_1.VSOperatorAuthorization.encode(v, writer.uint32(34).fork()).ldelim();
|
|
69
|
+
}
|
|
70
|
+
for (const v of message.operatorAuthorizationUsages) {
|
|
71
|
+
types_1.OperatorAuthorizationUsage.encode(v, writer.uint32(42).fork()).ldelim();
|
|
72
|
+
}
|
|
54
73
|
return writer;
|
|
55
74
|
},
|
|
56
75
|
decode(input, length) {
|
|
@@ -66,6 +85,30 @@ exports.GenesisState = {
|
|
|
66
85
|
}
|
|
67
86
|
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
68
87
|
continue;
|
|
88
|
+
case 2:
|
|
89
|
+
if (tag !== 18) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.operatorAuthorizations.push(types_1.OperatorAuthorization.decode(reader, reader.uint32()));
|
|
93
|
+
continue;
|
|
94
|
+
case 3:
|
|
95
|
+
if (tag !== 26) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.feeGrants.push(types_1.FeeGrant.decode(reader, reader.uint32()));
|
|
99
|
+
continue;
|
|
100
|
+
case 4:
|
|
101
|
+
if (tag !== 34) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.vsOperatorAuthorizations.push(types_1.VSOperatorAuthorization.decode(reader, reader.uint32()));
|
|
105
|
+
continue;
|
|
106
|
+
case 5:
|
|
107
|
+
if (tag !== 42) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
message.operatorAuthorizationUsages.push(types_1.OperatorAuthorizationUsage.decode(reader, reader.uint32()));
|
|
111
|
+
continue;
|
|
69
112
|
}
|
|
70
113
|
if ((tag & 7) === 4 || tag === 0) {
|
|
71
114
|
break;
|
|
@@ -75,23 +118,58 @@ exports.GenesisState = {
|
|
|
75
118
|
return message;
|
|
76
119
|
},
|
|
77
120
|
fromJSON(object) {
|
|
78
|
-
return {
|
|
121
|
+
return {
|
|
122
|
+
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
123
|
+
operatorAuthorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.operatorAuthorizations)
|
|
124
|
+
? object.operatorAuthorizations.map((e) => types_1.OperatorAuthorization.fromJSON(e))
|
|
125
|
+
: [],
|
|
126
|
+
feeGrants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.feeGrants)
|
|
127
|
+
? object.feeGrants.map((e) => types_1.FeeGrant.fromJSON(e))
|
|
128
|
+
: [],
|
|
129
|
+
vsOperatorAuthorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthorizations)
|
|
130
|
+
? object.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.fromJSON(e))
|
|
131
|
+
: [],
|
|
132
|
+
operatorAuthorizationUsages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.operatorAuthorizationUsages)
|
|
133
|
+
? object.operatorAuthorizationUsages.map((e) => types_1.OperatorAuthorizationUsage.fromJSON(e))
|
|
134
|
+
: [],
|
|
135
|
+
};
|
|
79
136
|
},
|
|
80
137
|
toJSON(message) {
|
|
138
|
+
var _a, _b, _c, _d;
|
|
81
139
|
const obj = {};
|
|
82
140
|
if (message.params !== undefined) {
|
|
83
141
|
obj.params = params_1.Params.toJSON(message.params);
|
|
84
142
|
}
|
|
143
|
+
if ((_a = message.operatorAuthorizations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
144
|
+
obj.operatorAuthorizations = message.operatorAuthorizations.map((e) => types_1.OperatorAuthorization.toJSON(e));
|
|
145
|
+
}
|
|
146
|
+
if ((_b = message.feeGrants) === null || _b === void 0 ? void 0 : _b.length) {
|
|
147
|
+
obj.feeGrants = message.feeGrants.map((e) => types_1.FeeGrant.toJSON(e));
|
|
148
|
+
}
|
|
149
|
+
if ((_c = message.vsOperatorAuthorizations) === null || _c === void 0 ? void 0 : _c.length) {
|
|
150
|
+
obj.vsOperatorAuthorizations = message.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.toJSON(e));
|
|
151
|
+
}
|
|
152
|
+
if ((_d = message.operatorAuthorizationUsages) === null || _d === void 0 ? void 0 : _d.length) {
|
|
153
|
+
obj.operatorAuthorizationUsages = message.operatorAuthorizationUsages.map((e) => types_1.OperatorAuthorizationUsage.toJSON(e));
|
|
154
|
+
}
|
|
85
155
|
return obj;
|
|
86
156
|
},
|
|
87
157
|
create(base) {
|
|
88
158
|
return exports.GenesisState.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
89
159
|
},
|
|
90
160
|
fromPartial(object) {
|
|
161
|
+
var _a, _b, _c, _d;
|
|
91
162
|
const message = createBaseGenesisState();
|
|
92
163
|
message.params = (object.params !== undefined && object.params !== null)
|
|
93
164
|
? params_1.Params.fromPartial(object.params)
|
|
94
165
|
: undefined;
|
|
166
|
+
message.operatorAuthorizations = ((_a = object.operatorAuthorizations) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.OperatorAuthorization.fromPartial(e))) ||
|
|
167
|
+
[];
|
|
168
|
+
message.feeGrants = ((_b = object.feeGrants) === null || _b === void 0 ? void 0 : _b.map((e) => types_1.FeeGrant.fromPartial(e))) || [];
|
|
169
|
+
message.vsOperatorAuthorizations =
|
|
170
|
+
((_c = object.vsOperatorAuthorizations) === null || _c === void 0 ? void 0 : _c.map((e) => types_1.VSOperatorAuthorization.fromPartial(e))) || [];
|
|
171
|
+
message.operatorAuthorizationUsages =
|
|
172
|
+
((_d = object.operatorAuthorizationUsages) === null || _d === void 0 ? void 0 : _d.map((e) => types_1.OperatorAuthorizationUsage.fromPartial(e))) || [];
|
|
95
173
|
return message;
|
|
96
174
|
},
|
|
97
175
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { OperatorAuthorization } from "./types";
|
|
3
|
+
import { OperatorAuthorization, VSOperatorAuthorization } from "./types";
|
|
4
4
|
export declare const protobufPackage = "verana.de.v1";
|
|
5
5
|
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
6
6
|
export interface QueryParamsRequest {
|
|
@@ -15,8 +15,8 @@ export interface QueryParamsResponse {
|
|
|
15
15
|
* Query/ListOperatorAuthorizations RPC method.
|
|
16
16
|
*/
|
|
17
17
|
export interface QueryListOperatorAuthorizationsRequest {
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/** corporation filters by the corporation group that granted the authorization. */
|
|
19
|
+
corporation: string;
|
|
20
20
|
/** operator filters by the operator account that received the authorization. */
|
|
21
21
|
operator: string;
|
|
22
22
|
/** response_max_size limits the number of results. Must be 1-1024, defaults to 64. */
|
|
@@ -29,6 +29,25 @@ export interface QueryListOperatorAuthorizationsRequest {
|
|
|
29
29
|
export interface QueryListOperatorAuthorizationsResponse {
|
|
30
30
|
operatorAuthorizations: OperatorAuthorization[];
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* QueryListVSOperatorAuthorizationsRequest is the request type for the
|
|
34
|
+
* Query/ListVSOperatorAuthorizations RPC method.
|
|
35
|
+
*/
|
|
36
|
+
export interface QueryListVSOperatorAuthorizationsRequest {
|
|
37
|
+
/** corporation filters by the corporation group that granted the authorization. */
|
|
38
|
+
corporation: string;
|
|
39
|
+
/** vs_operator filters by the VS operator account. */
|
|
40
|
+
vsOperator: string;
|
|
41
|
+
/** response_max_size limits the number of results. Must be 1-1024, defaults to 64. */
|
|
42
|
+
responseMaxSize: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* QueryListVSOperatorAuthorizationsResponse is the response type for the
|
|
46
|
+
* Query/ListVSOperatorAuthorizations RPC method.
|
|
47
|
+
*/
|
|
48
|
+
export interface QueryListVSOperatorAuthorizationsResponse {
|
|
49
|
+
vsOperatorAuthorizations: VSOperatorAuthorization[];
|
|
50
|
+
}
|
|
32
51
|
export declare const QueryParamsRequest: {
|
|
33
52
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
34
53
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
@@ -61,12 +80,30 @@ export declare const QueryListOperatorAuthorizationsResponse: {
|
|
|
61
80
|
create<I extends Exact<DeepPartial<QueryListOperatorAuthorizationsResponse>, I>>(base?: I): QueryListOperatorAuthorizationsResponse;
|
|
62
81
|
fromPartial<I extends Exact<DeepPartial<QueryListOperatorAuthorizationsResponse>, I>>(object: I): QueryListOperatorAuthorizationsResponse;
|
|
63
82
|
};
|
|
83
|
+
export declare const QueryListVSOperatorAuthorizationsRequest: {
|
|
84
|
+
encode(message: QueryListVSOperatorAuthorizationsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
85
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryListVSOperatorAuthorizationsRequest;
|
|
86
|
+
fromJSON(object: any): QueryListVSOperatorAuthorizationsRequest;
|
|
87
|
+
toJSON(message: QueryListVSOperatorAuthorizationsRequest): unknown;
|
|
88
|
+
create<I extends Exact<DeepPartial<QueryListVSOperatorAuthorizationsRequest>, I>>(base?: I): QueryListVSOperatorAuthorizationsRequest;
|
|
89
|
+
fromPartial<I extends Exact<DeepPartial<QueryListVSOperatorAuthorizationsRequest>, I>>(object: I): QueryListVSOperatorAuthorizationsRequest;
|
|
90
|
+
};
|
|
91
|
+
export declare const QueryListVSOperatorAuthorizationsResponse: {
|
|
92
|
+
encode(message: QueryListVSOperatorAuthorizationsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
93
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryListVSOperatorAuthorizationsResponse;
|
|
94
|
+
fromJSON(object: any): QueryListVSOperatorAuthorizationsResponse;
|
|
95
|
+
toJSON(message: QueryListVSOperatorAuthorizationsResponse): unknown;
|
|
96
|
+
create<I extends Exact<DeepPartial<QueryListVSOperatorAuthorizationsResponse>, I>>(base?: I): QueryListVSOperatorAuthorizationsResponse;
|
|
97
|
+
fromPartial<I extends Exact<DeepPartial<QueryListVSOperatorAuthorizationsResponse>, I>>(object: I): QueryListVSOperatorAuthorizationsResponse;
|
|
98
|
+
};
|
|
64
99
|
/** Query defines the gRPC querier service. */
|
|
65
100
|
export interface Query {
|
|
66
101
|
/** Parameters queries the parameters of the module. */
|
|
67
102
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
68
103
|
/** ListOperatorAuthorizations returns operator authorizations matching optional filters. */
|
|
69
104
|
ListOperatorAuthorizations(request: QueryListOperatorAuthorizationsRequest): Promise<QueryListOperatorAuthorizationsResponse>;
|
|
105
|
+
/** ListVSOperatorAuthorizations returns VS operator authorizations matching optional filters. */
|
|
106
|
+
ListVSOperatorAuthorizations(request: QueryListVSOperatorAuthorizationsRequest): Promise<QueryListVSOperatorAuthorizationsResponse>;
|
|
70
107
|
}
|
|
71
108
|
export declare const QueryServiceName = "verana.de.v1.Query";
|
|
72
109
|
export declare class QueryClientImpl implements Query {
|
|
@@ -77,6 +114,7 @@ export declare class QueryClientImpl implements Query {
|
|
|
77
114
|
});
|
|
78
115
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
79
116
|
ListOperatorAuthorizations(request: QueryListOperatorAuthorizationsRequest): Promise<QueryListOperatorAuthorizationsResponse>;
|
|
117
|
+
ListVSOperatorAuthorizations(request: QueryListVSOperatorAuthorizationsRequest): Promise<QueryListVSOperatorAuthorizationsResponse>;
|
|
80
118
|
}
|
|
81
119
|
interface Rpc {
|
|
82
120
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -38,7 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
};
|
|
39
39
|
})();
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryListOperatorAuthorizationsResponse = exports.QueryListOperatorAuthorizationsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
41
|
+
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryListVSOperatorAuthorizationsResponse = exports.QueryListVSOperatorAuthorizationsRequest = exports.QueryListOperatorAuthorizationsResponse = exports.QueryListOperatorAuthorizationsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
44
|
const params_1 = require("./params");
|
|
@@ -134,12 +134,12 @@ exports.QueryParamsResponse = {
|
|
|
134
134
|
},
|
|
135
135
|
};
|
|
136
136
|
function createBaseQueryListOperatorAuthorizationsRequest() {
|
|
137
|
-
return {
|
|
137
|
+
return { corporation: "", operator: "", responseMaxSize: 0 };
|
|
138
138
|
}
|
|
139
139
|
exports.QueryListOperatorAuthorizationsRequest = {
|
|
140
140
|
encode(message, writer = _m0.Writer.create()) {
|
|
141
|
-
if (message.
|
|
142
|
-
writer.uint32(10).string(message.
|
|
141
|
+
if (message.corporation !== "") {
|
|
142
|
+
writer.uint32(10).string(message.corporation);
|
|
143
143
|
}
|
|
144
144
|
if (message.operator !== "") {
|
|
145
145
|
writer.uint32(18).string(message.operator);
|
|
@@ -160,7 +160,7 @@ exports.QueryListOperatorAuthorizationsRequest = {
|
|
|
160
160
|
if (tag !== 10) {
|
|
161
161
|
break;
|
|
162
162
|
}
|
|
163
|
-
message.
|
|
163
|
+
message.corporation = reader.string();
|
|
164
164
|
continue;
|
|
165
165
|
case 2:
|
|
166
166
|
if (tag !== 18) {
|
|
@@ -184,15 +184,15 @@ exports.QueryListOperatorAuthorizationsRequest = {
|
|
|
184
184
|
},
|
|
185
185
|
fromJSON(object) {
|
|
186
186
|
return {
|
|
187
|
-
|
|
187
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
188
188
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
189
189
|
responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
|
|
190
190
|
};
|
|
191
191
|
},
|
|
192
192
|
toJSON(message) {
|
|
193
193
|
const obj = {};
|
|
194
|
-
if (message.
|
|
195
|
-
obj.
|
|
194
|
+
if (message.corporation !== "") {
|
|
195
|
+
obj.corporation = message.corporation;
|
|
196
196
|
}
|
|
197
197
|
if (message.operator !== "") {
|
|
198
198
|
obj.operator = message.operator;
|
|
@@ -208,7 +208,7 @@ exports.QueryListOperatorAuthorizationsRequest = {
|
|
|
208
208
|
fromPartial(object) {
|
|
209
209
|
var _a, _b, _c;
|
|
210
210
|
const message = createBaseQueryListOperatorAuthorizationsRequest();
|
|
211
|
-
message.
|
|
211
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
212
212
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
213
213
|
message.responseMaxSize = (_c = object.responseMaxSize) !== null && _c !== void 0 ? _c : 0;
|
|
214
214
|
return message;
|
|
@@ -271,6 +271,144 @@ exports.QueryListOperatorAuthorizationsResponse = {
|
|
|
271
271
|
return message;
|
|
272
272
|
},
|
|
273
273
|
};
|
|
274
|
+
function createBaseQueryListVSOperatorAuthorizationsRequest() {
|
|
275
|
+
return { corporation: "", vsOperator: "", responseMaxSize: 0 };
|
|
276
|
+
}
|
|
277
|
+
exports.QueryListVSOperatorAuthorizationsRequest = {
|
|
278
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
279
|
+
if (message.corporation !== "") {
|
|
280
|
+
writer.uint32(10).string(message.corporation);
|
|
281
|
+
}
|
|
282
|
+
if (message.vsOperator !== "") {
|
|
283
|
+
writer.uint32(18).string(message.vsOperator);
|
|
284
|
+
}
|
|
285
|
+
if (message.responseMaxSize !== 0) {
|
|
286
|
+
writer.uint32(24).uint32(message.responseMaxSize);
|
|
287
|
+
}
|
|
288
|
+
return writer;
|
|
289
|
+
},
|
|
290
|
+
decode(input, length) {
|
|
291
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
292
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
+
const message = createBaseQueryListVSOperatorAuthorizationsRequest();
|
|
294
|
+
while (reader.pos < end) {
|
|
295
|
+
const tag = reader.uint32();
|
|
296
|
+
switch (tag >>> 3) {
|
|
297
|
+
case 1:
|
|
298
|
+
if (tag !== 10) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.corporation = reader.string();
|
|
302
|
+
continue;
|
|
303
|
+
case 2:
|
|
304
|
+
if (tag !== 18) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
message.vsOperator = reader.string();
|
|
308
|
+
continue;
|
|
309
|
+
case 3:
|
|
310
|
+
if (tag !== 24) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
message.responseMaxSize = reader.uint32();
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
reader.skipType(tag & 7);
|
|
320
|
+
}
|
|
321
|
+
return message;
|
|
322
|
+
},
|
|
323
|
+
fromJSON(object) {
|
|
324
|
+
return {
|
|
325
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
326
|
+
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
327
|
+
responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
|
|
328
|
+
};
|
|
329
|
+
},
|
|
330
|
+
toJSON(message) {
|
|
331
|
+
const obj = {};
|
|
332
|
+
if (message.corporation !== "") {
|
|
333
|
+
obj.corporation = message.corporation;
|
|
334
|
+
}
|
|
335
|
+
if (message.vsOperator !== "") {
|
|
336
|
+
obj.vsOperator = message.vsOperator;
|
|
337
|
+
}
|
|
338
|
+
if (message.responseMaxSize !== 0) {
|
|
339
|
+
obj.responseMaxSize = Math.round(message.responseMaxSize);
|
|
340
|
+
}
|
|
341
|
+
return obj;
|
|
342
|
+
},
|
|
343
|
+
create(base) {
|
|
344
|
+
return exports.QueryListVSOperatorAuthorizationsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
345
|
+
},
|
|
346
|
+
fromPartial(object) {
|
|
347
|
+
var _a, _b, _c;
|
|
348
|
+
const message = createBaseQueryListVSOperatorAuthorizationsRequest();
|
|
349
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
350
|
+
message.vsOperator = (_b = object.vsOperator) !== null && _b !== void 0 ? _b : "";
|
|
351
|
+
message.responseMaxSize = (_c = object.responseMaxSize) !== null && _c !== void 0 ? _c : 0;
|
|
352
|
+
return message;
|
|
353
|
+
},
|
|
354
|
+
};
|
|
355
|
+
function createBaseQueryListVSOperatorAuthorizationsResponse() {
|
|
356
|
+
return { vsOperatorAuthorizations: [] };
|
|
357
|
+
}
|
|
358
|
+
exports.QueryListVSOperatorAuthorizationsResponse = {
|
|
359
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
360
|
+
for (const v of message.vsOperatorAuthorizations) {
|
|
361
|
+
types_1.VSOperatorAuthorization.encode(v, writer.uint32(10).fork()).ldelim();
|
|
362
|
+
}
|
|
363
|
+
return writer;
|
|
364
|
+
},
|
|
365
|
+
decode(input, length) {
|
|
366
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
367
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
368
|
+
const message = createBaseQueryListVSOperatorAuthorizationsResponse();
|
|
369
|
+
while (reader.pos < end) {
|
|
370
|
+
const tag = reader.uint32();
|
|
371
|
+
switch (tag >>> 3) {
|
|
372
|
+
case 1:
|
|
373
|
+
if (tag !== 10) {
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
message.vsOperatorAuthorizations.push(types_1.VSOperatorAuthorization.decode(reader, reader.uint32()));
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
reader.skipType(tag & 7);
|
|
383
|
+
}
|
|
384
|
+
return message;
|
|
385
|
+
},
|
|
386
|
+
fromJSON(object) {
|
|
387
|
+
return {
|
|
388
|
+
vsOperatorAuthorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthorizations)
|
|
389
|
+
? object.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.fromJSON(e))
|
|
390
|
+
: [],
|
|
391
|
+
};
|
|
392
|
+
},
|
|
393
|
+
toJSON(message) {
|
|
394
|
+
var _a;
|
|
395
|
+
const obj = {};
|
|
396
|
+
if ((_a = message.vsOperatorAuthorizations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
397
|
+
obj.vsOperatorAuthorizations = message.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.toJSON(e));
|
|
398
|
+
}
|
|
399
|
+
return obj;
|
|
400
|
+
},
|
|
401
|
+
create(base) {
|
|
402
|
+
return exports.QueryListVSOperatorAuthorizationsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
403
|
+
},
|
|
404
|
+
fromPartial(object) {
|
|
405
|
+
var _a;
|
|
406
|
+
const message = createBaseQueryListVSOperatorAuthorizationsResponse();
|
|
407
|
+
message.vsOperatorAuthorizations =
|
|
408
|
+
((_a = object.vsOperatorAuthorizations) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.VSOperatorAuthorization.fromPartial(e))) || [];
|
|
409
|
+
return message;
|
|
410
|
+
},
|
|
411
|
+
};
|
|
274
412
|
exports.QueryServiceName = "verana.de.v1.Query";
|
|
275
413
|
class QueryClientImpl {
|
|
276
414
|
constructor(rpc, opts) {
|
|
@@ -278,6 +416,7 @@ class QueryClientImpl {
|
|
|
278
416
|
this.rpc = rpc;
|
|
279
417
|
this.Params = this.Params.bind(this);
|
|
280
418
|
this.ListOperatorAuthorizations = this.ListOperatorAuthorizations.bind(this);
|
|
419
|
+
this.ListVSOperatorAuthorizations = this.ListVSOperatorAuthorizations.bind(this);
|
|
281
420
|
}
|
|
282
421
|
Params(request) {
|
|
283
422
|
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
@@ -289,6 +428,11 @@ class QueryClientImpl {
|
|
|
289
428
|
const promise = this.rpc.request(this.service, "ListOperatorAuthorizations", data);
|
|
290
429
|
return promise.then((data) => exports.QueryListOperatorAuthorizationsResponse.decode(_m0.Reader.create(data)));
|
|
291
430
|
}
|
|
431
|
+
ListVSOperatorAuthorizations(request) {
|
|
432
|
+
const data = exports.QueryListVSOperatorAuthorizationsRequest.encode(request).finish();
|
|
433
|
+
const promise = this.rpc.request(this.service, "ListVSOperatorAuthorizations", data);
|
|
434
|
+
return promise.then((data) => exports.QueryListVSOperatorAuthorizationsResponse.decode(_m0.Reader.create(data)));
|
|
435
|
+
}
|
|
292
436
|
}
|
|
293
437
|
exports.QueryClientImpl = QueryClientImpl;
|
|
294
438
|
function isSet(value) {
|
|
@@ -22,14 +22,25 @@ export interface MsgUpdateParamsResponse {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* [MOD-DE-MSG-3] MsgGrantOperatorAuthorization grants an operator authorization
|
|
25
|
-
* to a grantee on behalf of
|
|
25
|
+
* to a grantee on behalf of a corporation.
|
|
26
|
+
*
|
|
27
|
+
* Signer semantics (spec draft 13 "corporation + operator OR group proposal"):
|
|
28
|
+
* - Primary signer is `corporation` — either a group policy address (group
|
|
29
|
+
* proposal path) or a plain account that delegates to the corporation.
|
|
30
|
+
* - When `operator` is non-empty, the AUTHZ-CHECK in the handler verifies
|
|
31
|
+
* the operator's delegation from the corporation covers this message type.
|
|
32
|
+
* - When `operator` is empty, the corporation is acting alone (group proposal
|
|
33
|
+
* path) and AUTHZ-CHECK is skipped.
|
|
34
|
+
* Cosmos SDK requires a single `cosmos.msg.v1.signer` field so the dual-signer
|
|
35
|
+
* semantics from the spec are enforced at the handler level, not at ante.
|
|
26
36
|
*/
|
|
27
37
|
export interface MsgGrantOperatorAuthorization {
|
|
28
|
-
/**
|
|
29
|
-
|
|
38
|
+
/** corporation is the group account granting the authorization. */
|
|
39
|
+
corporation: string;
|
|
30
40
|
/**
|
|
31
|
-
* operator is the optional account authorized by the
|
|
32
|
-
* Msg.
|
|
41
|
+
* operator is the optional account authorized by the corporation to run this
|
|
42
|
+
* Msg on its behalf. Empty when the message is signed directly by the
|
|
43
|
+
* corporation via a group proposal.
|
|
33
44
|
*/
|
|
34
45
|
operator: string;
|
|
35
46
|
/** grantee is the account that receives the authorization from authority. */
|
|
@@ -60,6 +71,11 @@ export interface MsgGrantOperatorAuthorization {
|
|
|
60
71
|
* feegrant_spend_limit. Ignored if with_feegrant is false.
|
|
61
72
|
*/
|
|
62
73
|
feegrantSpendLimitPeriod: Duration | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* fee_spend_limit is the maximum total amount of fees this authorization
|
|
76
|
+
* allows the grantee to spend (stored on the OperatorAuthorization record).
|
|
77
|
+
*/
|
|
78
|
+
feeSpendLimit: Coin[];
|
|
63
79
|
}
|
|
64
80
|
/**
|
|
65
81
|
* MsgGrantOperatorAuthorizationResponse defines the response for
|
|
@@ -69,14 +85,15 @@ export interface MsgGrantOperatorAuthorizationResponse {
|
|
|
69
85
|
}
|
|
70
86
|
/**
|
|
71
87
|
* [MOD-DE-MSG-4] MsgRevokeOperatorAuthorization revokes an operator
|
|
72
|
-
* authorization for a grantee on behalf of
|
|
88
|
+
* authorization for a grantee on behalf of a corporation. Same signer
|
|
89
|
+
* semantics as MsgGrantOperatorAuthorization (see above).
|
|
73
90
|
*/
|
|
74
91
|
export interface MsgRevokeOperatorAuthorization {
|
|
75
|
-
/**
|
|
76
|
-
|
|
92
|
+
/** corporation is the group account revoking the authorization. */
|
|
93
|
+
corporation: string;
|
|
77
94
|
/**
|
|
78
|
-
* operator is the optional account authorized by the
|
|
79
|
-
* Msg.
|
|
95
|
+
* operator is the optional account authorized by the corporation to run this
|
|
96
|
+
* Msg on its behalf.
|
|
80
97
|
*/
|
|
81
98
|
operator: string;
|
|
82
99
|
/** grantee is the account whose authorization is being revoked. */
|
|
@@ -154,7 +154,7 @@ exports.MsgUpdateParamsResponse = {
|
|
|
154
154
|
};
|
|
155
155
|
function createBaseMsgGrantOperatorAuthorization() {
|
|
156
156
|
return {
|
|
157
|
-
|
|
157
|
+
corporation: "",
|
|
158
158
|
operator: "",
|
|
159
159
|
grantee: "",
|
|
160
160
|
msgTypes: [],
|
|
@@ -164,12 +164,13 @@ function createBaseMsgGrantOperatorAuthorization() {
|
|
|
164
164
|
withFeegrant: false,
|
|
165
165
|
feegrantSpendLimit: [],
|
|
166
166
|
feegrantSpendLimitPeriod: undefined,
|
|
167
|
+
feeSpendLimit: [],
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
170
|
exports.MsgGrantOperatorAuthorization = {
|
|
170
171
|
encode(message, writer = _m0.Writer.create()) {
|
|
171
|
-
if (message.
|
|
172
|
-
writer.uint32(10).string(message.
|
|
172
|
+
if (message.corporation !== "") {
|
|
173
|
+
writer.uint32(10).string(message.corporation);
|
|
173
174
|
}
|
|
174
175
|
if (message.operator !== "") {
|
|
175
176
|
writer.uint32(18).string(message.operator);
|
|
@@ -198,6 +199,9 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
198
199
|
if (message.feegrantSpendLimitPeriod !== undefined) {
|
|
199
200
|
duration_1.Duration.encode(message.feegrantSpendLimitPeriod, writer.uint32(82).fork()).ldelim();
|
|
200
201
|
}
|
|
202
|
+
for (const v of message.feeSpendLimit) {
|
|
203
|
+
coin_1.Coin.encode(v, writer.uint32(90).fork()).ldelim();
|
|
204
|
+
}
|
|
201
205
|
return writer;
|
|
202
206
|
},
|
|
203
207
|
decode(input, length) {
|
|
@@ -211,7 +215,7 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
211
215
|
if (tag !== 10) {
|
|
212
216
|
break;
|
|
213
217
|
}
|
|
214
|
-
message.
|
|
218
|
+
message.corporation = reader.string();
|
|
215
219
|
continue;
|
|
216
220
|
case 2:
|
|
217
221
|
if (tag !== 18) {
|
|
@@ -267,6 +271,12 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
267
271
|
}
|
|
268
272
|
message.feegrantSpendLimitPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
269
273
|
continue;
|
|
274
|
+
case 11:
|
|
275
|
+
if (tag !== 90) {
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
message.feeSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
279
|
+
continue;
|
|
270
280
|
}
|
|
271
281
|
if ((tag & 7) === 4 || tag === 0) {
|
|
272
282
|
break;
|
|
@@ -277,7 +287,7 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
277
287
|
},
|
|
278
288
|
fromJSON(object) {
|
|
279
289
|
return {
|
|
280
|
-
|
|
290
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
281
291
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
282
292
|
grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
|
|
283
293
|
msgTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.msgTypes) ? object.msgTypes.map((e) => globalThis.String(e)) : [],
|
|
@@ -295,13 +305,16 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
295
305
|
feegrantSpendLimitPeriod: isSet(object.feegrantSpendLimitPeriod)
|
|
296
306
|
? duration_1.Duration.fromJSON(object.feegrantSpendLimitPeriod)
|
|
297
307
|
: undefined,
|
|
308
|
+
feeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.feeSpendLimit)
|
|
309
|
+
? object.feeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
310
|
+
: [],
|
|
298
311
|
};
|
|
299
312
|
},
|
|
300
313
|
toJSON(message) {
|
|
301
|
-
var _a, _b, _c;
|
|
314
|
+
var _a, _b, _c, _d;
|
|
302
315
|
const obj = {};
|
|
303
|
-
if (message.
|
|
304
|
-
obj.
|
|
316
|
+
if (message.corporation !== "") {
|
|
317
|
+
obj.corporation = message.corporation;
|
|
305
318
|
}
|
|
306
319
|
if (message.operator !== "") {
|
|
307
320
|
obj.operator = message.operator;
|
|
@@ -330,15 +343,18 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
330
343
|
if (message.feegrantSpendLimitPeriod !== undefined) {
|
|
331
344
|
obj.feegrantSpendLimitPeriod = duration_1.Duration.toJSON(message.feegrantSpendLimitPeriod);
|
|
332
345
|
}
|
|
346
|
+
if ((_d = message.feeSpendLimit) === null || _d === void 0 ? void 0 : _d.length) {
|
|
347
|
+
obj.feeSpendLimit = message.feeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
348
|
+
}
|
|
333
349
|
return obj;
|
|
334
350
|
},
|
|
335
351
|
create(base) {
|
|
336
352
|
return exports.MsgGrantOperatorAuthorization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
337
353
|
},
|
|
338
354
|
fromPartial(object) {
|
|
339
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
355
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
340
356
|
const message = createBaseMsgGrantOperatorAuthorization();
|
|
341
|
-
message.
|
|
357
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
342
358
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
343
359
|
message.grantee = (_c = object.grantee) !== null && _c !== void 0 ? _c : "";
|
|
344
360
|
message.msgTypes = ((_d = object.msgTypes) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
@@ -354,6 +370,7 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
354
370
|
(object.feegrantSpendLimitPeriod !== undefined && object.feegrantSpendLimitPeriod !== null)
|
|
355
371
|
? duration_1.Duration.fromPartial(object.feegrantSpendLimitPeriod)
|
|
356
372
|
: undefined;
|
|
373
|
+
message.feeSpendLimit = ((_j = object.feeSpendLimit) === null || _j === void 0 ? void 0 : _j.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
357
374
|
return message;
|
|
358
375
|
},
|
|
359
376
|
};
|
|
@@ -395,12 +412,12 @@ exports.MsgGrantOperatorAuthorizationResponse = {
|
|
|
395
412
|
},
|
|
396
413
|
};
|
|
397
414
|
function createBaseMsgRevokeOperatorAuthorization() {
|
|
398
|
-
return {
|
|
415
|
+
return { corporation: "", operator: "", grantee: "" };
|
|
399
416
|
}
|
|
400
417
|
exports.MsgRevokeOperatorAuthorization = {
|
|
401
418
|
encode(message, writer = _m0.Writer.create()) {
|
|
402
|
-
if (message.
|
|
403
|
-
writer.uint32(10).string(message.
|
|
419
|
+
if (message.corporation !== "") {
|
|
420
|
+
writer.uint32(10).string(message.corporation);
|
|
404
421
|
}
|
|
405
422
|
if (message.operator !== "") {
|
|
406
423
|
writer.uint32(18).string(message.operator);
|
|
@@ -421,7 +438,7 @@ exports.MsgRevokeOperatorAuthorization = {
|
|
|
421
438
|
if (tag !== 10) {
|
|
422
439
|
break;
|
|
423
440
|
}
|
|
424
|
-
message.
|
|
441
|
+
message.corporation = reader.string();
|
|
425
442
|
continue;
|
|
426
443
|
case 2:
|
|
427
444
|
if (tag !== 18) {
|
|
@@ -445,15 +462,15 @@ exports.MsgRevokeOperatorAuthorization = {
|
|
|
445
462
|
},
|
|
446
463
|
fromJSON(object) {
|
|
447
464
|
return {
|
|
448
|
-
|
|
465
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
449
466
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
450
467
|
grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
|
|
451
468
|
};
|
|
452
469
|
},
|
|
453
470
|
toJSON(message) {
|
|
454
471
|
const obj = {};
|
|
455
|
-
if (message.
|
|
456
|
-
obj.
|
|
472
|
+
if (message.corporation !== "") {
|
|
473
|
+
obj.corporation = message.corporation;
|
|
457
474
|
}
|
|
458
475
|
if (message.operator !== "") {
|
|
459
476
|
obj.operator = message.operator;
|
|
@@ -469,7 +486,7 @@ exports.MsgRevokeOperatorAuthorization = {
|
|
|
469
486
|
fromPartial(object) {
|
|
470
487
|
var _a, _b, _c;
|
|
471
488
|
const message = createBaseMsgRevokeOperatorAuthorization();
|
|
472
|
-
message.
|
|
489
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
473
490
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
474
491
|
message.grantee = (_c = object.grantee) !== null && _c !== void 0 ? _c : "";
|
|
475
492
|
return message;
|