@verana-labs/verana-types 0.10.1-dev.5 → 0.10.1-dev.7
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/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/de/v1/genesis.d.ts +7 -0
- package/dist/codec/verana/de/v1/genesis.js +57 -2
- package/dist/codec/verana/de/v1/query.d.ts +39 -1
- package/dist/codec/verana/de/v1/query.js +145 -1
- 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/{dd → di}/v1/params.d.ts +5 -7
- 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 +116 -0
- package/dist/codec/verana/di/v1/tx.js +381 -0
- package/dist/codec/verana/td/v1/genesis.d.ts +2 -0
- package/dist/codec/verana/td/v1/genesis.js +16 -2
- package/dist/codec/verana/td/v1/tx.d.ts +17 -4
- package/dist/codec/verana/td/v1/tx.js +40 -24
- 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/{dd/v1/params.js → xr/v1/genesis.js} +46 -29
- package/dist/codec/verana/xr/v1/params.d.ts +24 -0
- package/dist/codec/verana/xr/v1/params.js +81 -0
- 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 +190 -0
- package/dist/codec/verana/xr/v1/tx.js +894 -0
- package/dist/helpers/aminoConverters.d.ts +2 -4
- package/dist/helpers/aminoConverters.js +51 -75
- package/package.json +1 -1
- 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
|
@@ -13,7 +13,7 @@ export interface Coin {
|
|
|
13
13
|
/**
|
|
14
14
|
* DecCoin defines a token with a denomination and a decimal amount.
|
|
15
15
|
*
|
|
16
|
-
* NOTE: The amount field is
|
|
16
|
+
* NOTE: The amount field is a Dec which implements the custom method
|
|
17
17
|
* signatures required by gogoproto.
|
|
18
18
|
*/
|
|
19
19
|
export interface DecCoin {
|
|
@@ -812,6 +812,11 @@ export interface FieldOptions_FeatureSupport {
|
|
|
812
812
|
* not be able to override it.
|
|
813
813
|
*/
|
|
814
814
|
editionRemoved?: Edition | undefined;
|
|
815
|
+
/**
|
|
816
|
+
* The removal error text if this feature is used after the edition it was
|
|
817
|
+
* removed in.
|
|
818
|
+
*/
|
|
819
|
+
removalError?: string | undefined;
|
|
815
820
|
}
|
|
816
821
|
export interface OneofOptions {
|
|
817
822
|
/**
|
|
@@ -3702,7 +3702,7 @@ exports.FieldOptions_EditionDefault = {
|
|
|
3702
3702
|
},
|
|
3703
3703
|
};
|
|
3704
3704
|
function createBaseFieldOptions_FeatureSupport() {
|
|
3705
|
-
return { editionIntroduced: 0, editionDeprecated: 0, deprecationWarning: "", editionRemoved: 0 };
|
|
3705
|
+
return { editionIntroduced: 0, editionDeprecated: 0, deprecationWarning: "", editionRemoved: 0, removalError: "" };
|
|
3706
3706
|
}
|
|
3707
3707
|
exports.FieldOptions_FeatureSupport = {
|
|
3708
3708
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -3718,6 +3718,9 @@ exports.FieldOptions_FeatureSupport = {
|
|
|
3718
3718
|
if (message.editionRemoved !== undefined && message.editionRemoved !== 0) {
|
|
3719
3719
|
writer.uint32(32).int32(message.editionRemoved);
|
|
3720
3720
|
}
|
|
3721
|
+
if (message.removalError !== undefined && message.removalError !== "") {
|
|
3722
|
+
writer.uint32(42).string(message.removalError);
|
|
3723
|
+
}
|
|
3721
3724
|
return writer;
|
|
3722
3725
|
},
|
|
3723
3726
|
decode(input, length) {
|
|
@@ -3751,6 +3754,12 @@ exports.FieldOptions_FeatureSupport = {
|
|
|
3751
3754
|
}
|
|
3752
3755
|
message.editionRemoved = reader.int32();
|
|
3753
3756
|
continue;
|
|
3757
|
+
case 5:
|
|
3758
|
+
if (tag !== 42) {
|
|
3759
|
+
break;
|
|
3760
|
+
}
|
|
3761
|
+
message.removalError = reader.string();
|
|
3762
|
+
continue;
|
|
3754
3763
|
}
|
|
3755
3764
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3756
3765
|
break;
|
|
@@ -3765,6 +3774,7 @@ exports.FieldOptions_FeatureSupport = {
|
|
|
3765
3774
|
editionDeprecated: isSet(object.editionDeprecated) ? editionFromJSON(object.editionDeprecated) : 0,
|
|
3766
3775
|
deprecationWarning: isSet(object.deprecationWarning) ? globalThis.String(object.deprecationWarning) : "",
|
|
3767
3776
|
editionRemoved: isSet(object.editionRemoved) ? editionFromJSON(object.editionRemoved) : 0,
|
|
3777
|
+
removalError: isSet(object.removalError) ? globalThis.String(object.removalError) : "",
|
|
3768
3778
|
};
|
|
3769
3779
|
},
|
|
3770
3780
|
toJSON(message) {
|
|
@@ -3781,18 +3791,22 @@ exports.FieldOptions_FeatureSupport = {
|
|
|
3781
3791
|
if (message.editionRemoved !== undefined && message.editionRemoved !== 0) {
|
|
3782
3792
|
obj.editionRemoved = editionToJSON(message.editionRemoved);
|
|
3783
3793
|
}
|
|
3794
|
+
if (message.removalError !== undefined && message.removalError !== "") {
|
|
3795
|
+
obj.removalError = message.removalError;
|
|
3796
|
+
}
|
|
3784
3797
|
return obj;
|
|
3785
3798
|
},
|
|
3786
3799
|
create(base) {
|
|
3787
3800
|
return exports.FieldOptions_FeatureSupport.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3788
3801
|
},
|
|
3789
3802
|
fromPartial(object) {
|
|
3790
|
-
var _a, _b, _c, _d;
|
|
3803
|
+
var _a, _b, _c, _d, _e;
|
|
3791
3804
|
const message = createBaseFieldOptions_FeatureSupport();
|
|
3792
3805
|
message.editionIntroduced = (_a = object.editionIntroduced) !== null && _a !== void 0 ? _a : 0;
|
|
3793
3806
|
message.editionDeprecated = (_b = object.editionDeprecated) !== null && _b !== void 0 ? _b : 0;
|
|
3794
3807
|
message.deprecationWarning = (_c = object.deprecationWarning) !== null && _c !== void 0 ? _c : "";
|
|
3795
3808
|
message.editionRemoved = (_d = object.editionRemoved) !== null && _d !== void 0 ? _d : 0;
|
|
3809
|
+
message.removalError = (_e = object.removalError) !== null && _e !== void 0 ? _e : "";
|
|
3796
3810
|
return message;
|
|
3797
3811
|
},
|
|
3798
3812
|
};
|
|
@@ -73,8 +73,8 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
73
73
|
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
74
74
|
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
75
75
|
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
76
|
-
* is required. A
|
|
77
|
-
* "Z") when printing the Timestamp type and a
|
|
76
|
+
* is required. A ProtoJSON serializer should always use UTC (as indicated by
|
|
77
|
+
* "Z") when printing the Timestamp type and a ProtoJSON parser should be
|
|
78
78
|
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
79
79
|
*
|
|
80
80
|
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
@@ -94,7 +94,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
94
94
|
export interface Timestamp {
|
|
95
95
|
/**
|
|
96
96
|
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
97
|
-
* be between -
|
|
97
|
+
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
|
98
98
|
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
99
99
|
*/
|
|
100
100
|
seconds: number;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
+
import { FeeGrant, OperatorAuthorization, VSOperatorAuthorization } from "./types";
|
|
3
4
|
export declare const protobufPackage = "verana.de.v1";
|
|
4
5
|
/** GenesisState defines the de module's genesis state. */
|
|
5
6
|
export interface GenesisState {
|
|
6
7
|
/** params defines all the parameters of the module. */
|
|
7
8
|
params: Params | undefined;
|
|
9
|
+
/** operator_authorizations is a list of all OperatorAuthorization objects */
|
|
10
|
+
operatorAuthorizations: OperatorAuthorization[];
|
|
11
|
+
/** fee_grants is a list of all FeeGrant objects */
|
|
12
|
+
feeGrants: FeeGrant[];
|
|
13
|
+
/** vs_operator_authorizations is a list of all VSOperatorAuthorization objects */
|
|
14
|
+
vsOperatorAuthorizations: VSOperatorAuthorization[];
|
|
8
15
|
}
|
|
9
16
|
export declare const GenesisState: {
|
|
10
17
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -42,15 +42,25 @@ 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 { params: undefined };
|
|
48
|
+
return { params: undefined, operatorAuthorizations: [], feeGrants: [], vsOperatorAuthorizations: [] };
|
|
48
49
|
}
|
|
49
50
|
exports.GenesisState = {
|
|
50
51
|
encode(message, writer = _m0.Writer.create()) {
|
|
51
52
|
if (message.params !== undefined) {
|
|
52
53
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
53
54
|
}
|
|
55
|
+
for (const v of message.operatorAuthorizations) {
|
|
56
|
+
types_1.OperatorAuthorization.encode(v, writer.uint32(18).fork()).ldelim();
|
|
57
|
+
}
|
|
58
|
+
for (const v of message.feeGrants) {
|
|
59
|
+
types_1.FeeGrant.encode(v, writer.uint32(26).fork()).ldelim();
|
|
60
|
+
}
|
|
61
|
+
for (const v of message.vsOperatorAuthorizations) {
|
|
62
|
+
types_1.VSOperatorAuthorization.encode(v, writer.uint32(34).fork()).ldelim();
|
|
63
|
+
}
|
|
54
64
|
return writer;
|
|
55
65
|
},
|
|
56
66
|
decode(input, length) {
|
|
@@ -66,6 +76,24 @@ exports.GenesisState = {
|
|
|
66
76
|
}
|
|
67
77
|
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
68
78
|
continue;
|
|
79
|
+
case 2:
|
|
80
|
+
if (tag !== 18) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
message.operatorAuthorizations.push(types_1.OperatorAuthorization.decode(reader, reader.uint32()));
|
|
84
|
+
continue;
|
|
85
|
+
case 3:
|
|
86
|
+
if (tag !== 26) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.feeGrants.push(types_1.FeeGrant.decode(reader, reader.uint32()));
|
|
90
|
+
continue;
|
|
91
|
+
case 4:
|
|
92
|
+
if (tag !== 34) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
message.vsOperatorAuthorizations.push(types_1.VSOperatorAuthorization.decode(reader, reader.uint32()));
|
|
96
|
+
continue;
|
|
69
97
|
}
|
|
70
98
|
if ((tag & 7) === 4 || tag === 0) {
|
|
71
99
|
break;
|
|
@@ -75,23 +103,50 @@ exports.GenesisState = {
|
|
|
75
103
|
return message;
|
|
76
104
|
},
|
|
77
105
|
fromJSON(object) {
|
|
78
|
-
return {
|
|
106
|
+
return {
|
|
107
|
+
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
108
|
+
operatorAuthorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.operatorAuthorizations)
|
|
109
|
+
? object.operatorAuthorizations.map((e) => types_1.OperatorAuthorization.fromJSON(e))
|
|
110
|
+
: [],
|
|
111
|
+
feeGrants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.feeGrants)
|
|
112
|
+
? object.feeGrants.map((e) => types_1.FeeGrant.fromJSON(e))
|
|
113
|
+
: [],
|
|
114
|
+
vsOperatorAuthorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthorizations)
|
|
115
|
+
? object.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.fromJSON(e))
|
|
116
|
+
: [],
|
|
117
|
+
};
|
|
79
118
|
},
|
|
80
119
|
toJSON(message) {
|
|
120
|
+
var _a, _b, _c;
|
|
81
121
|
const obj = {};
|
|
82
122
|
if (message.params !== undefined) {
|
|
83
123
|
obj.params = params_1.Params.toJSON(message.params);
|
|
84
124
|
}
|
|
125
|
+
if ((_a = message.operatorAuthorizations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
126
|
+
obj.operatorAuthorizations = message.operatorAuthorizations.map((e) => types_1.OperatorAuthorization.toJSON(e));
|
|
127
|
+
}
|
|
128
|
+
if ((_b = message.feeGrants) === null || _b === void 0 ? void 0 : _b.length) {
|
|
129
|
+
obj.feeGrants = message.feeGrants.map((e) => types_1.FeeGrant.toJSON(e));
|
|
130
|
+
}
|
|
131
|
+
if ((_c = message.vsOperatorAuthorizations) === null || _c === void 0 ? void 0 : _c.length) {
|
|
132
|
+
obj.vsOperatorAuthorizations = message.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.toJSON(e));
|
|
133
|
+
}
|
|
85
134
|
return obj;
|
|
86
135
|
},
|
|
87
136
|
create(base) {
|
|
88
137
|
return exports.GenesisState.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
89
138
|
},
|
|
90
139
|
fromPartial(object) {
|
|
140
|
+
var _a, _b, _c;
|
|
91
141
|
const message = createBaseGenesisState();
|
|
92
142
|
message.params = (object.params !== undefined && object.params !== null)
|
|
93
143
|
? params_1.Params.fromPartial(object.params)
|
|
94
144
|
: undefined;
|
|
145
|
+
message.operatorAuthorizations = ((_a = object.operatorAuthorizations) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.OperatorAuthorization.fromPartial(e))) ||
|
|
146
|
+
[];
|
|
147
|
+
message.feeGrants = ((_b = object.feeGrants) === null || _b === void 0 ? void 0 : _b.map((e) => types_1.FeeGrant.fromPartial(e))) || [];
|
|
148
|
+
message.vsOperatorAuthorizations =
|
|
149
|
+
((_c = object.vsOperatorAuthorizations) === null || _c === void 0 ? void 0 : _c.map((e) => types_1.VSOperatorAuthorization.fromPartial(e))) || [];
|
|
95
150
|
return message;
|
|
96
151
|
},
|
|
97
152
|
};
|
|
@@ -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 {
|
|
@@ -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
|
+
/** authority filters by the authority group that granted the authorization. */
|
|
38
|
+
authority: 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");
|
|
@@ -271,6 +271,144 @@ exports.QueryListOperatorAuthorizationsResponse = {
|
|
|
271
271
|
return message;
|
|
272
272
|
},
|
|
273
273
|
};
|
|
274
|
+
function createBaseQueryListVSOperatorAuthorizationsRequest() {
|
|
275
|
+
return { authority: "", vsOperator: "", responseMaxSize: 0 };
|
|
276
|
+
}
|
|
277
|
+
exports.QueryListVSOperatorAuthorizationsRequest = {
|
|
278
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
279
|
+
if (message.authority !== "") {
|
|
280
|
+
writer.uint32(10).string(message.authority);
|
|
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.authority = 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
|
+
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
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.authority !== "") {
|
|
333
|
+
obj.authority = message.authority;
|
|
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.authority = (_a = object.authority) !== 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) {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "verana.
|
|
2
|
+
export declare const protobufPackage = "verana.di.module.v1";
|
|
3
3
|
/** Module is the config object for the module. */
|
|
4
4
|
export interface Module {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* authority defines the custom module authority.
|
|
7
|
+
* If not set, defaults to the governance module.
|
|
8
|
+
*/
|
|
6
9
|
authority: string;
|
|
7
10
|
}
|
|
8
11
|
export declare const Module: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: verana/
|
|
6
|
+
// source: verana/di/module/v1/module.proto
|
|
7
7
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
8
|
if (k2 === undefined) k2 = k;
|
|
9
9
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -41,7 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Module = exports.protobufPackage = void 0;
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
|
-
exports.protobufPackage = "verana.
|
|
44
|
+
exports.protobufPackage = "verana.di.module.v1";
|
|
45
45
|
function createBaseModule() {
|
|
46
46
|
return { authority: "" };
|
|
47
47
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import {
|
|
4
|
-
export declare const protobufPackage = "verana.
|
|
5
|
-
/** GenesisState defines the
|
|
3
|
+
import { Digest } from "./tx";
|
|
4
|
+
export declare const protobufPackage = "verana.di.v1";
|
|
5
|
+
/** GenesisState defines the di module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
7
7
|
/** params defines all the parameters of the module. */
|
|
8
8
|
params: Params | undefined;
|
|
9
|
-
|
|
9
|
+
/** digests is the list of all stored digests. */
|
|
10
|
+
digests: Digest[];
|
|
10
11
|
}
|
|
11
12
|
export declare const GenesisState: {
|
|
12
13
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: verana/
|
|
6
|
+
// source: verana/di/v1/genesis.proto
|
|
7
7
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
8
|
if (k2 === undefined) k2 = k;
|
|
9
9
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -42,18 +42,18 @@ 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
|
|
46
|
-
exports.protobufPackage = "verana.
|
|
45
|
+
const tx_1 = require("./tx");
|
|
46
|
+
exports.protobufPackage = "verana.di.v1";
|
|
47
47
|
function createBaseGenesisState() {
|
|
48
|
-
return { params: undefined,
|
|
48
|
+
return { params: undefined, digests: [] };
|
|
49
49
|
}
|
|
50
50
|
exports.GenesisState = {
|
|
51
51
|
encode(message, writer = _m0.Writer.create()) {
|
|
52
52
|
if (message.params !== undefined) {
|
|
53
53
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
54
54
|
}
|
|
55
|
-
for (const v of message.
|
|
56
|
-
|
|
55
|
+
for (const v of message.digests) {
|
|
56
|
+
tx_1.Digest.encode(v, writer.uint32(18).fork()).ldelim();
|
|
57
57
|
}
|
|
58
58
|
return writer;
|
|
59
59
|
},
|
|
@@ -74,7 +74,7 @@ exports.GenesisState = {
|
|
|
74
74
|
if (tag !== 18) {
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
|
-
message.
|
|
77
|
+
message.digests.push(tx_1.Digest.decode(reader, reader.uint32()));
|
|
78
78
|
continue;
|
|
79
79
|
}
|
|
80
80
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -87,9 +87,7 @@ exports.GenesisState = {
|
|
|
87
87
|
fromJSON(object) {
|
|
88
88
|
return {
|
|
89
89
|
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
90
|
-
|
|
91
|
-
? object.didDirectories.map((e) => types_1.DIDDirectory.fromJSON(e))
|
|
92
|
-
: [],
|
|
90
|
+
digests: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.digests) ? object.digests.map((e) => tx_1.Digest.fromJSON(e)) : [],
|
|
93
91
|
};
|
|
94
92
|
},
|
|
95
93
|
toJSON(message) {
|
|
@@ -98,8 +96,8 @@ exports.GenesisState = {
|
|
|
98
96
|
if (message.params !== undefined) {
|
|
99
97
|
obj.params = params_1.Params.toJSON(message.params);
|
|
100
98
|
}
|
|
101
|
-
if ((_a = message.
|
|
102
|
-
obj.
|
|
99
|
+
if ((_a = message.digests) === null || _a === void 0 ? void 0 : _a.length) {
|
|
100
|
+
obj.digests = message.digests.map((e) => tx_1.Digest.toJSON(e));
|
|
103
101
|
}
|
|
104
102
|
return obj;
|
|
105
103
|
},
|
|
@@ -112,7 +110,7 @@ exports.GenesisState = {
|
|
|
112
110
|
message.params = (object.params !== undefined && object.params !== null)
|
|
113
111
|
? params_1.Params.fromPartial(object.params)
|
|
114
112
|
: undefined;
|
|
115
|
-
message.
|
|
113
|
+
message.digests = ((_a = object.digests) === null || _a === void 0 ? void 0 : _a.map((e) => tx_1.Digest.fromPartial(e))) || [];
|
|
116
114
|
return message;
|
|
117
115
|
},
|
|
118
116
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "verana.
|
|
2
|
+
export declare const protobufPackage = "verana.di.v1";
|
|
3
3
|
/** Params defines the parameters for the module. */
|
|
4
4
|
export interface Params {
|
|
5
|
-
didDirectoryTrustDeposit: number;
|
|
6
|
-
didDirectoryGracePeriod: number;
|
|
7
5
|
}
|
|
8
6
|
export declare const Params: {
|
|
9
|
-
encode(
|
|
7
|
+
encode(_: Params, writer?: _m0.Writer): _m0.Writer;
|
|
10
8
|
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
11
|
-
fromJSON(
|
|
12
|
-
toJSON(
|
|
9
|
+
fromJSON(_: any): Params;
|
|
10
|
+
toJSON(_: Params): unknown;
|
|
13
11
|
create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params;
|
|
14
|
-
fromPartial<I extends Exact<DeepPartial<Params>, I>>(
|
|
12
|
+
fromPartial<I extends Exact<DeepPartial<Params>, I>>(_: I): Params;
|
|
15
13
|
};
|
|
16
14
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
17
15
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|