@verana-labs/verana-types 0.10.1-dev.12 → 0.10.1-dev.14
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/amino-converter/co.d.ts +3 -0
- package/dist/amino-converter/co.js +164 -0
- package/dist/amino-converter/cs.js +2 -2
- package/dist/amino-converter/ec.d.ts +4 -0
- package/dist/amino-converter/ec.js +63 -0
- package/dist/amino-converter/{tr.d.ts → gf.d.ts} +0 -3
- package/dist/amino-converter/gf.js +48 -0
- package/dist/amino-converter/group.d.ts +3 -0
- package/dist/amino-converter/group.js +91 -0
- package/dist/amino-converter/pp.d.ts +12 -0
- package/dist/amino-converter/{perm.js → pp.js} +95 -79
- package/dist/codec/verana/cs/v1/query.d.ts +2 -2
- package/dist/codec/verana/cs/v1/query.js +21 -21
- package/dist/codec/verana/cs/v1/tx.d.ts +1 -1
- package/dist/codec/verana/cs/v1/tx.js +22 -22
- package/dist/codec/verana/cs/v1/types.d.ts +6 -2
- package/dist/codec/verana/cs/v1/types.js +30 -30
- package/dist/codec/verana/de/v1/query.d.ts +72 -4
- package/dist/codec/verana/de/v1/query.js +261 -19
- package/dist/codec/verana/de/v1/types.d.ts +124 -34
- package/dist/codec/verana/de/v1/types.js +361 -109
- package/dist/codec/verana/{tr → ec}/module/module.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/module/module.js +2 -2
- package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
- package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
- package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
- package/dist/codec/verana/ec/v1/query.d.ts +109 -0
- package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
- package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
- package/dist/codec/verana/{tr → ec}/v1/tx.js +85 -403
- package/dist/codec/verana/ec/v1/types.d.ts +67 -0
- package/dist/codec/verana/ec/v1/types.js +422 -0
- package/dist/codec/verana/{perm → pp}/module/module.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/module/module.js +2 -2
- package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
- package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
- package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
- package/dist/codec/verana/pp/v1/query.d.ts +208 -0
- package/dist/codec/verana/{perm → pp}/v1/query.js +148 -148
- package/dist/codec/verana/pp/v1/tx.d.ts +447 -0
- package/dist/codec/verana/{perm → pp}/v1/tx.js +412 -302
- package/dist/codec/verana/pp/v1/types.d.ts +137 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +270 -345
- package/dist/helpers/aminoConverters.d.ts +6 -4
- package/dist/helpers/aminoConverters.js +6 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/signing.d.ts +36 -32
- package/dist/signing.js +85 -68
- package/package.json +1 -1
- package/dist/amino-converter/perm.d.ts +0 -12
- package/dist/amino-converter/tr.js +0 -107
- package/dist/codec/verana/perm/v1/query.d.ts +0 -208
- package/dist/codec/verana/perm/v1/tx.d.ts +0 -441
- package/dist/codec/verana/perm/v1/types.d.ts +0 -134
- package/dist/codec/verana/tr/v1/query.d.ts +0 -117
- package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
- package/dist/codec/verana/tr/v1/types.d.ts +0 -105
- package/dist/codec/verana/tr/v1/types.js +0 -809
|
@@ -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/pp/v1/types.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);
|
|
@@ -38,132 +38,128 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
};
|
|
39
39
|
})();
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.OptionalUInt64 = exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
41
|
+
exports.OptionalUInt64 = exports.ParticipantSessionRecord = exports.ParticipantSession = exports.Participant = exports.OnboardingState = exports.ParticipantRole = exports.protobufPackage = void 0;
|
|
42
|
+
exports.participantRoleFromJSON = participantRoleFromJSON;
|
|
43
|
+
exports.participantRoleToJSON = participantRoleToJSON;
|
|
44
|
+
exports.onboardingStateFromJSON = onboardingStateFromJSON;
|
|
45
|
+
exports.onboardingStateToJSON = onboardingStateToJSON;
|
|
46
46
|
/* eslint-disable */
|
|
47
47
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
48
|
-
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
49
|
-
const duration_1 = require("../../../google/protobuf/duration");
|
|
50
48
|
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
51
49
|
const Long = require("long");
|
|
52
|
-
exports.protobufPackage = "verana.
|
|
53
|
-
/**
|
|
54
|
-
var
|
|
55
|
-
(function (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
function permissionTypeFromJSON(object) {
|
|
50
|
+
exports.protobufPackage = "verana.pp.v1";
|
|
51
|
+
/** Participant roles */
|
|
52
|
+
var ParticipantRole;
|
|
53
|
+
(function (ParticipantRole) {
|
|
54
|
+
ParticipantRole[ParticipantRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
55
|
+
ParticipantRole[ParticipantRole["ISSUER"] = 1] = "ISSUER";
|
|
56
|
+
ParticipantRole[ParticipantRole["VERIFIER"] = 2] = "VERIFIER";
|
|
57
|
+
ParticipantRole[ParticipantRole["ISSUER_GRANTOR"] = 3] = "ISSUER_GRANTOR";
|
|
58
|
+
ParticipantRole[ParticipantRole["VERIFIER_GRANTOR"] = 4] = "VERIFIER_GRANTOR";
|
|
59
|
+
ParticipantRole[ParticipantRole["ECOSYSTEM"] = 5] = "ECOSYSTEM";
|
|
60
|
+
ParticipantRole[ParticipantRole["HOLDER"] = 6] = "HOLDER";
|
|
61
|
+
ParticipantRole[ParticipantRole["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
62
|
+
})(ParticipantRole || (exports.ParticipantRole = ParticipantRole = {}));
|
|
63
|
+
function participantRoleFromJSON(object) {
|
|
67
64
|
switch (object) {
|
|
68
65
|
case 0:
|
|
69
66
|
case "UNSPECIFIED":
|
|
70
|
-
return
|
|
67
|
+
return ParticipantRole.UNSPECIFIED;
|
|
71
68
|
case 1:
|
|
72
69
|
case "ISSUER":
|
|
73
|
-
return
|
|
70
|
+
return ParticipantRole.ISSUER;
|
|
74
71
|
case 2:
|
|
75
72
|
case "VERIFIER":
|
|
76
|
-
return
|
|
73
|
+
return ParticipantRole.VERIFIER;
|
|
77
74
|
case 3:
|
|
78
75
|
case "ISSUER_GRANTOR":
|
|
79
|
-
return
|
|
76
|
+
return ParticipantRole.ISSUER_GRANTOR;
|
|
80
77
|
case 4:
|
|
81
78
|
case "VERIFIER_GRANTOR":
|
|
82
|
-
return
|
|
79
|
+
return ParticipantRole.VERIFIER_GRANTOR;
|
|
83
80
|
case 5:
|
|
84
81
|
case "ECOSYSTEM":
|
|
85
|
-
return
|
|
82
|
+
return ParticipantRole.ECOSYSTEM;
|
|
86
83
|
case 6:
|
|
87
84
|
case "HOLDER":
|
|
88
|
-
return
|
|
85
|
+
return ParticipantRole.HOLDER;
|
|
89
86
|
case -1:
|
|
90
87
|
case "UNRECOGNIZED":
|
|
91
88
|
default:
|
|
92
|
-
return
|
|
89
|
+
return ParticipantRole.UNRECOGNIZED;
|
|
93
90
|
}
|
|
94
91
|
}
|
|
95
|
-
function
|
|
92
|
+
function participantRoleToJSON(object) {
|
|
96
93
|
switch (object) {
|
|
97
|
-
case
|
|
94
|
+
case ParticipantRole.UNSPECIFIED:
|
|
98
95
|
return "UNSPECIFIED";
|
|
99
|
-
case
|
|
96
|
+
case ParticipantRole.ISSUER:
|
|
100
97
|
return "ISSUER";
|
|
101
|
-
case
|
|
98
|
+
case ParticipantRole.VERIFIER:
|
|
102
99
|
return "VERIFIER";
|
|
103
|
-
case
|
|
100
|
+
case ParticipantRole.ISSUER_GRANTOR:
|
|
104
101
|
return "ISSUER_GRANTOR";
|
|
105
|
-
case
|
|
102
|
+
case ParticipantRole.VERIFIER_GRANTOR:
|
|
106
103
|
return "VERIFIER_GRANTOR";
|
|
107
|
-
case
|
|
104
|
+
case ParticipantRole.ECOSYSTEM:
|
|
108
105
|
return "ECOSYSTEM";
|
|
109
|
-
case
|
|
106
|
+
case ParticipantRole.HOLDER:
|
|
110
107
|
return "HOLDER";
|
|
111
|
-
case
|
|
108
|
+
case ParticipantRole.UNRECOGNIZED:
|
|
112
109
|
default:
|
|
113
110
|
return "UNRECOGNIZED";
|
|
114
111
|
}
|
|
115
112
|
}
|
|
116
|
-
/**
|
|
117
|
-
var
|
|
118
|
-
(function (
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
})(
|
|
125
|
-
function
|
|
113
|
+
/** Participant onboarding-process states */
|
|
114
|
+
var OnboardingState;
|
|
115
|
+
(function (OnboardingState) {
|
|
116
|
+
OnboardingState[OnboardingState["ONBOARDING_STATE_UNSPECIFIED"] = 0] = "ONBOARDING_STATE_UNSPECIFIED";
|
|
117
|
+
OnboardingState[OnboardingState["PENDING"] = 1] = "PENDING";
|
|
118
|
+
OnboardingState[OnboardingState["VALIDATED"] = 2] = "VALIDATED";
|
|
119
|
+
OnboardingState[OnboardingState["TERMINATED"] = 3] = "TERMINATED";
|
|
120
|
+
OnboardingState[OnboardingState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
121
|
+
})(OnboardingState || (exports.OnboardingState = OnboardingState = {}));
|
|
122
|
+
function onboardingStateFromJSON(object) {
|
|
126
123
|
switch (object) {
|
|
127
124
|
case 0:
|
|
128
|
-
case "
|
|
129
|
-
return
|
|
125
|
+
case "ONBOARDING_STATE_UNSPECIFIED":
|
|
126
|
+
return OnboardingState.ONBOARDING_STATE_UNSPECIFIED;
|
|
130
127
|
case 1:
|
|
131
128
|
case "PENDING":
|
|
132
|
-
return
|
|
129
|
+
return OnboardingState.PENDING;
|
|
133
130
|
case 2:
|
|
134
131
|
case "VALIDATED":
|
|
135
|
-
return
|
|
132
|
+
return OnboardingState.VALIDATED;
|
|
136
133
|
case 3:
|
|
137
134
|
case "TERMINATED":
|
|
138
|
-
return
|
|
135
|
+
return OnboardingState.TERMINATED;
|
|
139
136
|
case -1:
|
|
140
137
|
case "UNRECOGNIZED":
|
|
141
138
|
default:
|
|
142
|
-
return
|
|
139
|
+
return OnboardingState.UNRECOGNIZED;
|
|
143
140
|
}
|
|
144
141
|
}
|
|
145
|
-
function
|
|
142
|
+
function onboardingStateToJSON(object) {
|
|
146
143
|
switch (object) {
|
|
147
|
-
case
|
|
148
|
-
return "
|
|
149
|
-
case
|
|
144
|
+
case OnboardingState.ONBOARDING_STATE_UNSPECIFIED:
|
|
145
|
+
return "ONBOARDING_STATE_UNSPECIFIED";
|
|
146
|
+
case OnboardingState.PENDING:
|
|
150
147
|
return "PENDING";
|
|
151
|
-
case
|
|
148
|
+
case OnboardingState.VALIDATED:
|
|
152
149
|
return "VALIDATED";
|
|
153
|
-
case
|
|
150
|
+
case OnboardingState.TERMINATED:
|
|
154
151
|
return "TERMINATED";
|
|
155
|
-
case
|
|
152
|
+
case OnboardingState.UNRECOGNIZED:
|
|
156
153
|
default:
|
|
157
154
|
return "UNRECOGNIZED";
|
|
158
155
|
}
|
|
159
156
|
}
|
|
160
|
-
function
|
|
157
|
+
function createBaseParticipant() {
|
|
161
158
|
return {
|
|
162
159
|
id: 0,
|
|
163
160
|
schemaId: 0,
|
|
164
|
-
|
|
161
|
+
role: 0,
|
|
165
162
|
did: "",
|
|
166
|
-
corporation: "",
|
|
167
163
|
created: undefined,
|
|
168
164
|
adjusted: undefined,
|
|
169
165
|
slashed: undefined,
|
|
@@ -178,25 +174,21 @@ function createBasePermission() {
|
|
|
178
174
|
slashedDeposit: 0,
|
|
179
175
|
repaidDeposit: 0,
|
|
180
176
|
revoked: undefined,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
177
|
+
validatorParticipantId: 0,
|
|
178
|
+
opState: 0,
|
|
179
|
+
opExp: undefined,
|
|
180
|
+
opLastStateChange: undefined,
|
|
181
|
+
opValidatorDeposit: 0,
|
|
182
|
+
opCurrentFees: 0,
|
|
183
|
+
opCurrentDeposit: 0,
|
|
184
|
+
opSummaryDigest: "",
|
|
189
185
|
issuanceFeeDiscount: 0,
|
|
190
186
|
verificationFeeDiscount: 0,
|
|
191
187
|
vsOperator: "",
|
|
192
|
-
|
|
193
|
-
vsOperatorAuthzSpendLimit: [],
|
|
194
|
-
vsOperatorAuthzWithFeegrant: false,
|
|
195
|
-
vsOperatorAuthzFeeSpendLimit: [],
|
|
196
|
-
vsOperatorAuthzSpendPeriod: undefined,
|
|
188
|
+
corporationId: 0,
|
|
197
189
|
};
|
|
198
190
|
}
|
|
199
|
-
exports.
|
|
191
|
+
exports.Participant = {
|
|
200
192
|
encode(message, writer = _m0.Writer.create()) {
|
|
201
193
|
if (message.id !== 0) {
|
|
202
194
|
writer.uint32(8).uint64(message.id);
|
|
@@ -204,15 +196,12 @@ exports.Permission = {
|
|
|
204
196
|
if (message.schemaId !== 0) {
|
|
205
197
|
writer.uint32(16).uint64(message.schemaId);
|
|
206
198
|
}
|
|
207
|
-
if (message.
|
|
208
|
-
writer.uint32(24).int32(message.
|
|
199
|
+
if (message.role !== 0) {
|
|
200
|
+
writer.uint32(24).int32(message.role);
|
|
209
201
|
}
|
|
210
202
|
if (message.did !== "") {
|
|
211
203
|
writer.uint32(34).string(message.did);
|
|
212
204
|
}
|
|
213
|
-
if (message.corporation !== "") {
|
|
214
|
-
writer.uint32(42).string(message.corporation);
|
|
215
|
-
}
|
|
216
205
|
if (message.created !== undefined) {
|
|
217
206
|
timestamp_1.Timestamp.encode(toTimestamp(message.created), writer.uint32(50).fork()).ldelim();
|
|
218
207
|
}
|
|
@@ -255,29 +244,29 @@ exports.Permission = {
|
|
|
255
244
|
if (message.revoked !== undefined) {
|
|
256
245
|
timestamp_1.Timestamp.encode(toTimestamp(message.revoked), writer.uint32(186).fork()).ldelim();
|
|
257
246
|
}
|
|
258
|
-
if (message.
|
|
259
|
-
writer.uint32(208).uint64(message.
|
|
247
|
+
if (message.validatorParticipantId !== 0) {
|
|
248
|
+
writer.uint32(208).uint64(message.validatorParticipantId);
|
|
260
249
|
}
|
|
261
|
-
if (message.
|
|
262
|
-
writer.uint32(216).int32(message.
|
|
250
|
+
if (message.opState !== 0) {
|
|
251
|
+
writer.uint32(216).int32(message.opState);
|
|
263
252
|
}
|
|
264
|
-
if (message.
|
|
265
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.
|
|
253
|
+
if (message.opExp !== undefined) {
|
|
254
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.opExp), writer.uint32(226).fork()).ldelim();
|
|
266
255
|
}
|
|
267
|
-
if (message.
|
|
268
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.
|
|
256
|
+
if (message.opLastStateChange !== undefined) {
|
|
257
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.opLastStateChange), writer.uint32(234).fork()).ldelim();
|
|
269
258
|
}
|
|
270
|
-
if (message.
|
|
271
|
-
writer.uint32(240).uint64(message.
|
|
259
|
+
if (message.opValidatorDeposit !== 0) {
|
|
260
|
+
writer.uint32(240).uint64(message.opValidatorDeposit);
|
|
272
261
|
}
|
|
273
|
-
if (message.
|
|
274
|
-
writer.uint32(248).uint64(message.
|
|
262
|
+
if (message.opCurrentFees !== 0) {
|
|
263
|
+
writer.uint32(248).uint64(message.opCurrentFees);
|
|
275
264
|
}
|
|
276
|
-
if (message.
|
|
277
|
-
writer.uint32(256).uint64(message.
|
|
265
|
+
if (message.opCurrentDeposit !== 0) {
|
|
266
|
+
writer.uint32(256).uint64(message.opCurrentDeposit);
|
|
278
267
|
}
|
|
279
|
-
if (message.
|
|
280
|
-
writer.uint32(266).string(message.
|
|
268
|
+
if (message.opSummaryDigest !== "") {
|
|
269
|
+
writer.uint32(266).string(message.opSummaryDigest);
|
|
281
270
|
}
|
|
282
271
|
if (message.issuanceFeeDiscount !== 0) {
|
|
283
272
|
writer.uint32(280).uint64(message.issuanceFeeDiscount);
|
|
@@ -288,27 +277,15 @@ exports.Permission = {
|
|
|
288
277
|
if (message.vsOperator !== "") {
|
|
289
278
|
writer.uint32(298).string(message.vsOperator);
|
|
290
279
|
}
|
|
291
|
-
if (message.
|
|
292
|
-
writer.uint32(
|
|
293
|
-
}
|
|
294
|
-
for (const v of message.vsOperatorAuthzSpendLimit) {
|
|
295
|
-
coin_1.Coin.encode(v, writer.uint32(314).fork()).ldelim();
|
|
296
|
-
}
|
|
297
|
-
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
298
|
-
writer.uint32(320).bool(message.vsOperatorAuthzWithFeegrant);
|
|
299
|
-
}
|
|
300
|
-
for (const v of message.vsOperatorAuthzFeeSpendLimit) {
|
|
301
|
-
coin_1.Coin.encode(v, writer.uint32(330).fork()).ldelim();
|
|
302
|
-
}
|
|
303
|
-
if (message.vsOperatorAuthzSpendPeriod !== undefined) {
|
|
304
|
-
duration_1.Duration.encode(message.vsOperatorAuthzSpendPeriod, writer.uint32(338).fork()).ldelim();
|
|
280
|
+
if (message.corporationId !== 0) {
|
|
281
|
+
writer.uint32(344).uint64(message.corporationId);
|
|
305
282
|
}
|
|
306
283
|
return writer;
|
|
307
284
|
},
|
|
308
285
|
decode(input, length) {
|
|
309
286
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
310
287
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
311
|
-
const message =
|
|
288
|
+
const message = createBaseParticipant();
|
|
312
289
|
while (reader.pos < end) {
|
|
313
290
|
const tag = reader.uint32();
|
|
314
291
|
switch (tag >>> 3) {
|
|
@@ -328,7 +305,7 @@ exports.Permission = {
|
|
|
328
305
|
if (tag !== 24) {
|
|
329
306
|
break;
|
|
330
307
|
}
|
|
331
|
-
message.
|
|
308
|
+
message.role = reader.int32();
|
|
332
309
|
continue;
|
|
333
310
|
case 4:
|
|
334
311
|
if (tag !== 34) {
|
|
@@ -336,12 +313,6 @@ exports.Permission = {
|
|
|
336
313
|
}
|
|
337
314
|
message.did = reader.string();
|
|
338
315
|
continue;
|
|
339
|
-
case 5:
|
|
340
|
-
if (tag !== 42) {
|
|
341
|
-
break;
|
|
342
|
-
}
|
|
343
|
-
message.corporation = reader.string();
|
|
344
|
-
continue;
|
|
345
316
|
case 6:
|
|
346
317
|
if (tag !== 50) {
|
|
347
318
|
break;
|
|
@@ -430,49 +401,49 @@ exports.Permission = {
|
|
|
430
401
|
if (tag !== 208) {
|
|
431
402
|
break;
|
|
432
403
|
}
|
|
433
|
-
message.
|
|
404
|
+
message.validatorParticipantId = longToNumber(reader.uint64());
|
|
434
405
|
continue;
|
|
435
406
|
case 27:
|
|
436
407
|
if (tag !== 216) {
|
|
437
408
|
break;
|
|
438
409
|
}
|
|
439
|
-
message.
|
|
410
|
+
message.opState = reader.int32();
|
|
440
411
|
continue;
|
|
441
412
|
case 28:
|
|
442
413
|
if (tag !== 226) {
|
|
443
414
|
break;
|
|
444
415
|
}
|
|
445
|
-
message.
|
|
416
|
+
message.opExp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
446
417
|
continue;
|
|
447
418
|
case 29:
|
|
448
419
|
if (tag !== 234) {
|
|
449
420
|
break;
|
|
450
421
|
}
|
|
451
|
-
message.
|
|
422
|
+
message.opLastStateChange = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
452
423
|
continue;
|
|
453
424
|
case 30:
|
|
454
425
|
if (tag !== 240) {
|
|
455
426
|
break;
|
|
456
427
|
}
|
|
457
|
-
message.
|
|
428
|
+
message.opValidatorDeposit = longToNumber(reader.uint64());
|
|
458
429
|
continue;
|
|
459
430
|
case 31:
|
|
460
431
|
if (tag !== 248) {
|
|
461
432
|
break;
|
|
462
433
|
}
|
|
463
|
-
message.
|
|
434
|
+
message.opCurrentFees = longToNumber(reader.uint64());
|
|
464
435
|
continue;
|
|
465
436
|
case 32:
|
|
466
437
|
if (tag !== 256) {
|
|
467
438
|
break;
|
|
468
439
|
}
|
|
469
|
-
message.
|
|
440
|
+
message.opCurrentDeposit = longToNumber(reader.uint64());
|
|
470
441
|
continue;
|
|
471
442
|
case 33:
|
|
472
443
|
if (tag !== 266) {
|
|
473
444
|
break;
|
|
474
445
|
}
|
|
475
|
-
message.
|
|
446
|
+
message.opSummaryDigest = reader.string();
|
|
476
447
|
continue;
|
|
477
448
|
case 35:
|
|
478
449
|
if (tag !== 280) {
|
|
@@ -492,35 +463,11 @@ exports.Permission = {
|
|
|
492
463
|
}
|
|
493
464
|
message.vsOperator = reader.string();
|
|
494
465
|
continue;
|
|
495
|
-
case
|
|
496
|
-
if (tag !==
|
|
466
|
+
case 43:
|
|
467
|
+
if (tag !== 344) {
|
|
497
468
|
break;
|
|
498
469
|
}
|
|
499
|
-
message.
|
|
500
|
-
continue;
|
|
501
|
-
case 39:
|
|
502
|
-
if (tag !== 314) {
|
|
503
|
-
break;
|
|
504
|
-
}
|
|
505
|
-
message.vsOperatorAuthzSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
506
|
-
continue;
|
|
507
|
-
case 40:
|
|
508
|
-
if (tag !== 320) {
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
message.vsOperatorAuthzWithFeegrant = reader.bool();
|
|
512
|
-
continue;
|
|
513
|
-
case 41:
|
|
514
|
-
if (tag !== 330) {
|
|
515
|
-
break;
|
|
516
|
-
}
|
|
517
|
-
message.vsOperatorAuthzFeeSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
518
|
-
continue;
|
|
519
|
-
case 42:
|
|
520
|
-
if (tag !== 338) {
|
|
521
|
-
break;
|
|
522
|
-
}
|
|
523
|
-
message.vsOperatorAuthzSpendPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
470
|
+
message.corporationId = longToNumber(reader.uint64());
|
|
524
471
|
continue;
|
|
525
472
|
}
|
|
526
473
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -534,9 +481,8 @@ exports.Permission = {
|
|
|
534
481
|
return {
|
|
535
482
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
536
483
|
schemaId: isSet(object.schemaId) ? globalThis.Number(object.schemaId) : 0,
|
|
537
|
-
|
|
484
|
+
role: isSet(object.role) ? participantRoleFromJSON(object.role) : 0,
|
|
538
485
|
did: isSet(object.did) ? globalThis.String(object.did) : "",
|
|
539
|
-
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
540
486
|
created: isSet(object.created) ? fromJsonTimestamp(object.created) : undefined,
|
|
541
487
|
adjusted: isSet(object.adjusted) ? fromJsonTimestamp(object.adjusted) : undefined,
|
|
542
488
|
slashed: isSet(object.slashed) ? fromJsonTimestamp(object.slashed) : undefined,
|
|
@@ -551,38 +497,25 @@ exports.Permission = {
|
|
|
551
497
|
slashedDeposit: isSet(object.slashedDeposit) ? globalThis.Number(object.slashedDeposit) : 0,
|
|
552
498
|
repaidDeposit: isSet(object.repaidDeposit) ? globalThis.Number(object.repaidDeposit) : 0,
|
|
553
499
|
revoked: isSet(object.revoked) ? fromJsonTimestamp(object.revoked) : undefined,
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
500
|
+
validatorParticipantId: isSet(object.validatorParticipantId)
|
|
501
|
+
? globalThis.Number(object.validatorParticipantId)
|
|
502
|
+
: 0,
|
|
503
|
+
opState: isSet(object.opState) ? onboardingStateFromJSON(object.opState) : 0,
|
|
504
|
+
opExp: isSet(object.opExp) ? fromJsonTimestamp(object.opExp) : undefined,
|
|
505
|
+
opLastStateChange: isSet(object.opLastStateChange) ? fromJsonTimestamp(object.opLastStateChange) : undefined,
|
|
506
|
+
opValidatorDeposit: isSet(object.opValidatorDeposit) ? globalThis.Number(object.opValidatorDeposit) : 0,
|
|
507
|
+
opCurrentFees: isSet(object.opCurrentFees) ? globalThis.Number(object.opCurrentFees) : 0,
|
|
508
|
+
opCurrentDeposit: isSet(object.opCurrentDeposit) ? globalThis.Number(object.opCurrentDeposit) : 0,
|
|
509
|
+
opSummaryDigest: isSet(object.opSummaryDigest) ? globalThis.String(object.opSummaryDigest) : "",
|
|
562
510
|
issuanceFeeDiscount: isSet(object.issuanceFeeDiscount) ? globalThis.Number(object.issuanceFeeDiscount) : 0,
|
|
563
511
|
verificationFeeDiscount: isSet(object.verificationFeeDiscount)
|
|
564
512
|
? globalThis.Number(object.verificationFeeDiscount)
|
|
565
513
|
: 0,
|
|
566
514
|
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
567
|
-
|
|
568
|
-
? globalThis.Boolean(object.vsOperatorAuthzEnabled)
|
|
569
|
-
: false,
|
|
570
|
-
vsOperatorAuthzSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzSpendLimit)
|
|
571
|
-
? object.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
572
|
-
: [],
|
|
573
|
-
vsOperatorAuthzWithFeegrant: isSet(object.vsOperatorAuthzWithFeegrant)
|
|
574
|
-
? globalThis.Boolean(object.vsOperatorAuthzWithFeegrant)
|
|
575
|
-
: false,
|
|
576
|
-
vsOperatorAuthzFeeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzFeeSpendLimit)
|
|
577
|
-
? object.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
578
|
-
: [],
|
|
579
|
-
vsOperatorAuthzSpendPeriod: isSet(object.vsOperatorAuthzSpendPeriod)
|
|
580
|
-
? duration_1.Duration.fromJSON(object.vsOperatorAuthzSpendPeriod)
|
|
581
|
-
: undefined,
|
|
515
|
+
corporationId: isSet(object.corporationId) ? globalThis.Number(object.corporationId) : 0,
|
|
582
516
|
};
|
|
583
517
|
},
|
|
584
518
|
toJSON(message) {
|
|
585
|
-
var _a, _b;
|
|
586
519
|
const obj = {};
|
|
587
520
|
if (message.id !== 0) {
|
|
588
521
|
obj.id = Math.round(message.id);
|
|
@@ -590,15 +523,12 @@ exports.Permission = {
|
|
|
590
523
|
if (message.schemaId !== 0) {
|
|
591
524
|
obj.schemaId = Math.round(message.schemaId);
|
|
592
525
|
}
|
|
593
|
-
if (message.
|
|
594
|
-
obj.
|
|
526
|
+
if (message.role !== 0) {
|
|
527
|
+
obj.role = participantRoleToJSON(message.role);
|
|
595
528
|
}
|
|
596
529
|
if (message.did !== "") {
|
|
597
530
|
obj.did = message.did;
|
|
598
531
|
}
|
|
599
|
-
if (message.corporation !== "") {
|
|
600
|
-
obj.corporation = message.corporation;
|
|
601
|
-
}
|
|
602
532
|
if (message.created !== undefined) {
|
|
603
533
|
obj.created = message.created.toISOString();
|
|
604
534
|
}
|
|
@@ -641,29 +571,29 @@ exports.Permission = {
|
|
|
641
571
|
if (message.revoked !== undefined) {
|
|
642
572
|
obj.revoked = message.revoked.toISOString();
|
|
643
573
|
}
|
|
644
|
-
if (message.
|
|
645
|
-
obj.
|
|
574
|
+
if (message.validatorParticipantId !== 0) {
|
|
575
|
+
obj.validatorParticipantId = Math.round(message.validatorParticipantId);
|
|
646
576
|
}
|
|
647
|
-
if (message.
|
|
648
|
-
obj.
|
|
577
|
+
if (message.opState !== 0) {
|
|
578
|
+
obj.opState = onboardingStateToJSON(message.opState);
|
|
649
579
|
}
|
|
650
|
-
if (message.
|
|
651
|
-
obj.
|
|
580
|
+
if (message.opExp !== undefined) {
|
|
581
|
+
obj.opExp = message.opExp.toISOString();
|
|
652
582
|
}
|
|
653
|
-
if (message.
|
|
654
|
-
obj.
|
|
583
|
+
if (message.opLastStateChange !== undefined) {
|
|
584
|
+
obj.opLastStateChange = message.opLastStateChange.toISOString();
|
|
655
585
|
}
|
|
656
|
-
if (message.
|
|
657
|
-
obj.
|
|
586
|
+
if (message.opValidatorDeposit !== 0) {
|
|
587
|
+
obj.opValidatorDeposit = Math.round(message.opValidatorDeposit);
|
|
658
588
|
}
|
|
659
|
-
if (message.
|
|
660
|
-
obj.
|
|
589
|
+
if (message.opCurrentFees !== 0) {
|
|
590
|
+
obj.opCurrentFees = Math.round(message.opCurrentFees);
|
|
661
591
|
}
|
|
662
|
-
if (message.
|
|
663
|
-
obj.
|
|
592
|
+
if (message.opCurrentDeposit !== 0) {
|
|
593
|
+
obj.opCurrentDeposit = Math.round(message.opCurrentDeposit);
|
|
664
594
|
}
|
|
665
|
-
if (message.
|
|
666
|
-
obj.
|
|
595
|
+
if (message.opSummaryDigest !== "") {
|
|
596
|
+
obj.opSummaryDigest = message.opSummaryDigest;
|
|
667
597
|
}
|
|
668
598
|
if (message.issuanceFeeDiscount !== 0) {
|
|
669
599
|
obj.issuanceFeeDiscount = Math.round(message.issuanceFeeDiscount);
|
|
@@ -674,110 +604,79 @@ exports.Permission = {
|
|
|
674
604
|
if (message.vsOperator !== "") {
|
|
675
605
|
obj.vsOperator = message.vsOperator;
|
|
676
606
|
}
|
|
677
|
-
if (message.
|
|
678
|
-
obj.
|
|
679
|
-
}
|
|
680
|
-
if ((_a = message.vsOperatorAuthzSpendLimit) === null || _a === void 0 ? void 0 : _a.length) {
|
|
681
|
-
obj.vsOperatorAuthzSpendLimit = message.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
682
|
-
}
|
|
683
|
-
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
684
|
-
obj.vsOperatorAuthzWithFeegrant = message.vsOperatorAuthzWithFeegrant;
|
|
685
|
-
}
|
|
686
|
-
if ((_b = message.vsOperatorAuthzFeeSpendLimit) === null || _b === void 0 ? void 0 : _b.length) {
|
|
687
|
-
obj.vsOperatorAuthzFeeSpendLimit = message.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
688
|
-
}
|
|
689
|
-
if (message.vsOperatorAuthzSpendPeriod !== undefined) {
|
|
690
|
-
obj.vsOperatorAuthzSpendPeriod = duration_1.Duration.toJSON(message.vsOperatorAuthzSpendPeriod);
|
|
607
|
+
if (message.corporationId !== 0) {
|
|
608
|
+
obj.corporationId = Math.round(message.corporationId);
|
|
691
609
|
}
|
|
692
610
|
return obj;
|
|
693
611
|
},
|
|
694
612
|
create(base) {
|
|
695
|
-
return exports.
|
|
613
|
+
return exports.Participant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
696
614
|
},
|
|
697
615
|
fromPartial(object) {
|
|
698
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5
|
|
699
|
-
const message =
|
|
616
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
617
|
+
const message = createBaseParticipant();
|
|
700
618
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
701
619
|
message.schemaId = (_b = object.schemaId) !== null && _b !== void 0 ? _b : 0;
|
|
702
|
-
message.
|
|
620
|
+
message.role = (_c = object.role) !== null && _c !== void 0 ? _c : 0;
|
|
703
621
|
message.did = (_d = object.did) !== null && _d !== void 0 ? _d : "";
|
|
704
|
-
message.
|
|
705
|
-
message.
|
|
706
|
-
message.
|
|
707
|
-
message.
|
|
708
|
-
message.
|
|
709
|
-
message.
|
|
710
|
-
message.
|
|
711
|
-
message.
|
|
712
|
-
message.
|
|
713
|
-
message.
|
|
714
|
-
message.
|
|
715
|
-
message.
|
|
716
|
-
message.
|
|
717
|
-
message.
|
|
718
|
-
message.
|
|
719
|
-
message.
|
|
720
|
-
message.
|
|
721
|
-
message.
|
|
722
|
-
message.
|
|
723
|
-
message.
|
|
724
|
-
message.
|
|
725
|
-
message.
|
|
726
|
-
message.
|
|
727
|
-
message.
|
|
728
|
-
message.
|
|
729
|
-
message.
|
|
730
|
-
message.vsOperatorAuthzEnabled = (_6 = object.vsOperatorAuthzEnabled) !== null && _6 !== void 0 ? _6 : false;
|
|
731
|
-
message.vsOperatorAuthzSpendLimit = ((_7 = object.vsOperatorAuthzSpendLimit) === null || _7 === void 0 ? void 0 : _7.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
732
|
-
message.vsOperatorAuthzWithFeegrant = (_8 = object.vsOperatorAuthzWithFeegrant) !== null && _8 !== void 0 ? _8 : false;
|
|
733
|
-
message.vsOperatorAuthzFeeSpendLimit = ((_9 = object.vsOperatorAuthzFeeSpendLimit) === null || _9 === void 0 ? void 0 : _9.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
734
|
-
message.vsOperatorAuthzSpendPeriod =
|
|
735
|
-
(object.vsOperatorAuthzSpendPeriod !== undefined && object.vsOperatorAuthzSpendPeriod !== null)
|
|
736
|
-
? duration_1.Duration.fromPartial(object.vsOperatorAuthzSpendPeriod)
|
|
737
|
-
: undefined;
|
|
622
|
+
message.created = (_e = object.created) !== null && _e !== void 0 ? _e : undefined;
|
|
623
|
+
message.adjusted = (_f = object.adjusted) !== null && _f !== void 0 ? _f : undefined;
|
|
624
|
+
message.slashed = (_g = object.slashed) !== null && _g !== void 0 ? _g : undefined;
|
|
625
|
+
message.repaid = (_h = object.repaid) !== null && _h !== void 0 ? _h : undefined;
|
|
626
|
+
message.effectiveFrom = (_j = object.effectiveFrom) !== null && _j !== void 0 ? _j : undefined;
|
|
627
|
+
message.effectiveUntil = (_k = object.effectiveUntil) !== null && _k !== void 0 ? _k : undefined;
|
|
628
|
+
message.modified = (_l = object.modified) !== null && _l !== void 0 ? _l : undefined;
|
|
629
|
+
message.validationFees = (_m = object.validationFees) !== null && _m !== void 0 ? _m : 0;
|
|
630
|
+
message.issuanceFees = (_o = object.issuanceFees) !== null && _o !== void 0 ? _o : 0;
|
|
631
|
+
message.verificationFees = (_p = object.verificationFees) !== null && _p !== void 0 ? _p : 0;
|
|
632
|
+
message.deposit = (_q = object.deposit) !== null && _q !== void 0 ? _q : 0;
|
|
633
|
+
message.slashedDeposit = (_r = object.slashedDeposit) !== null && _r !== void 0 ? _r : 0;
|
|
634
|
+
message.repaidDeposit = (_s = object.repaidDeposit) !== null && _s !== void 0 ? _s : 0;
|
|
635
|
+
message.revoked = (_t = object.revoked) !== null && _t !== void 0 ? _t : undefined;
|
|
636
|
+
message.validatorParticipantId = (_u = object.validatorParticipantId) !== null && _u !== void 0 ? _u : 0;
|
|
637
|
+
message.opState = (_v = object.opState) !== null && _v !== void 0 ? _v : 0;
|
|
638
|
+
message.opExp = (_w = object.opExp) !== null && _w !== void 0 ? _w : undefined;
|
|
639
|
+
message.opLastStateChange = (_x = object.opLastStateChange) !== null && _x !== void 0 ? _x : undefined;
|
|
640
|
+
message.opValidatorDeposit = (_y = object.opValidatorDeposit) !== null && _y !== void 0 ? _y : 0;
|
|
641
|
+
message.opCurrentFees = (_z = object.opCurrentFees) !== null && _z !== void 0 ? _z : 0;
|
|
642
|
+
message.opCurrentDeposit = (_0 = object.opCurrentDeposit) !== null && _0 !== void 0 ? _0 : 0;
|
|
643
|
+
message.opSummaryDigest = (_1 = object.opSummaryDigest) !== null && _1 !== void 0 ? _1 : "";
|
|
644
|
+
message.issuanceFeeDiscount = (_2 = object.issuanceFeeDiscount) !== null && _2 !== void 0 ? _2 : 0;
|
|
645
|
+
message.verificationFeeDiscount = (_3 = object.verificationFeeDiscount) !== null && _3 !== void 0 ? _3 : 0;
|
|
646
|
+
message.vsOperator = (_4 = object.vsOperator) !== null && _4 !== void 0 ? _4 : "";
|
|
647
|
+
message.corporationId = (_5 = object.corporationId) !== null && _5 !== void 0 ? _5 : 0;
|
|
738
648
|
return message;
|
|
739
649
|
},
|
|
740
650
|
};
|
|
741
|
-
function
|
|
742
|
-
return {
|
|
743
|
-
id: "",
|
|
744
|
-
corporation: "",
|
|
745
|
-
vsOperator: "",
|
|
746
|
-
agentPermId: 0,
|
|
747
|
-
sessionRecords: [],
|
|
748
|
-
created: undefined,
|
|
749
|
-
modified: undefined,
|
|
750
|
-
};
|
|
651
|
+
function createBaseParticipantSession() {
|
|
652
|
+
return { id: "", corporationId: 0, vsOperator: "", created: undefined, modified: undefined, sessionRecords: [] };
|
|
751
653
|
}
|
|
752
|
-
exports.
|
|
654
|
+
exports.ParticipantSession = {
|
|
753
655
|
encode(message, writer = _m0.Writer.create()) {
|
|
754
656
|
if (message.id !== "") {
|
|
755
657
|
writer.uint32(10).string(message.id);
|
|
756
658
|
}
|
|
757
|
-
if (message.
|
|
758
|
-
writer.uint32(
|
|
659
|
+
if (message.corporationId !== 0) {
|
|
660
|
+
writer.uint32(16).uint64(message.corporationId);
|
|
759
661
|
}
|
|
760
662
|
if (message.vsOperator !== "") {
|
|
761
663
|
writer.uint32(26).string(message.vsOperator);
|
|
762
664
|
}
|
|
763
|
-
if (message.agentPermId !== 0) {
|
|
764
|
-
writer.uint32(32).uint64(message.agentPermId);
|
|
765
|
-
}
|
|
766
|
-
for (const v of message.sessionRecords) {
|
|
767
|
-
exports.PermissionSessionRecord.encode(v, writer.uint32(42).fork()).ldelim();
|
|
768
|
-
}
|
|
769
665
|
if (message.created !== undefined) {
|
|
770
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.created), writer.uint32(
|
|
666
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.created), writer.uint32(34).fork()).ldelim();
|
|
771
667
|
}
|
|
772
668
|
if (message.modified !== undefined) {
|
|
773
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.modified), writer.uint32(
|
|
669
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.modified), writer.uint32(42).fork()).ldelim();
|
|
670
|
+
}
|
|
671
|
+
for (const v of message.sessionRecords) {
|
|
672
|
+
exports.ParticipantSessionRecord.encode(v, writer.uint32(50).fork()).ldelim();
|
|
774
673
|
}
|
|
775
674
|
return writer;
|
|
776
675
|
},
|
|
777
676
|
decode(input, length) {
|
|
778
677
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
779
678
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
780
|
-
const message =
|
|
679
|
+
const message = createBaseParticipantSession();
|
|
781
680
|
while (reader.pos < end) {
|
|
782
681
|
const tag = reader.uint32();
|
|
783
682
|
switch (tag >>> 3) {
|
|
@@ -788,10 +687,10 @@ exports.PermissionSession = {
|
|
|
788
687
|
message.id = reader.string();
|
|
789
688
|
continue;
|
|
790
689
|
case 2:
|
|
791
|
-
if (tag !==
|
|
690
|
+
if (tag !== 16) {
|
|
792
691
|
break;
|
|
793
692
|
}
|
|
794
|
-
message.
|
|
693
|
+
message.corporationId = longToNumber(reader.uint64());
|
|
795
694
|
continue;
|
|
796
695
|
case 3:
|
|
797
696
|
if (tag !== 26) {
|
|
@@ -800,28 +699,22 @@ exports.PermissionSession = {
|
|
|
800
699
|
message.vsOperator = reader.string();
|
|
801
700
|
continue;
|
|
802
701
|
case 4:
|
|
803
|
-
if (tag !==
|
|
702
|
+
if (tag !== 34) {
|
|
804
703
|
break;
|
|
805
704
|
}
|
|
806
|
-
message.
|
|
705
|
+
message.created = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
807
706
|
continue;
|
|
808
707
|
case 5:
|
|
809
708
|
if (tag !== 42) {
|
|
810
709
|
break;
|
|
811
710
|
}
|
|
812
|
-
message.
|
|
711
|
+
message.modified = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
813
712
|
continue;
|
|
814
713
|
case 6:
|
|
815
714
|
if (tag !== 50) {
|
|
816
715
|
break;
|
|
817
716
|
}
|
|
818
|
-
message.
|
|
819
|
-
continue;
|
|
820
|
-
case 7:
|
|
821
|
-
if (tag !== 58) {
|
|
822
|
-
break;
|
|
823
|
-
}
|
|
824
|
-
message.modified = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
717
|
+
message.sessionRecords.push(exports.ParticipantSessionRecord.decode(reader, reader.uint32()));
|
|
825
718
|
continue;
|
|
826
719
|
}
|
|
827
720
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -834,14 +727,13 @@ exports.PermissionSession = {
|
|
|
834
727
|
fromJSON(object) {
|
|
835
728
|
return {
|
|
836
729
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
837
|
-
|
|
730
|
+
corporationId: isSet(object.corporationId) ? globalThis.Number(object.corporationId) : 0,
|
|
838
731
|
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
839
|
-
agentPermId: isSet(object.agentPermId) ? globalThis.Number(object.agentPermId) : 0,
|
|
840
|
-
sessionRecords: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessionRecords)
|
|
841
|
-
? object.sessionRecords.map((e) => exports.PermissionSessionRecord.fromJSON(e))
|
|
842
|
-
: [],
|
|
843
732
|
created: isSet(object.created) ? fromJsonTimestamp(object.created) : undefined,
|
|
844
733
|
modified: isSet(object.modified) ? fromJsonTimestamp(object.modified) : undefined,
|
|
734
|
+
sessionRecords: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessionRecords)
|
|
735
|
+
? object.sessionRecords.map((e) => exports.ParticipantSessionRecord.fromJSON(e))
|
|
736
|
+
: [],
|
|
845
737
|
};
|
|
846
738
|
},
|
|
847
739
|
toJSON(message) {
|
|
@@ -850,91 +742,112 @@ exports.PermissionSession = {
|
|
|
850
742
|
if (message.id !== "") {
|
|
851
743
|
obj.id = message.id;
|
|
852
744
|
}
|
|
853
|
-
if (message.
|
|
854
|
-
obj.
|
|
745
|
+
if (message.corporationId !== 0) {
|
|
746
|
+
obj.corporationId = Math.round(message.corporationId);
|
|
855
747
|
}
|
|
856
748
|
if (message.vsOperator !== "") {
|
|
857
749
|
obj.vsOperator = message.vsOperator;
|
|
858
750
|
}
|
|
859
|
-
if (message.agentPermId !== 0) {
|
|
860
|
-
obj.agentPermId = Math.round(message.agentPermId);
|
|
861
|
-
}
|
|
862
|
-
if ((_a = message.sessionRecords) === null || _a === void 0 ? void 0 : _a.length) {
|
|
863
|
-
obj.sessionRecords = message.sessionRecords.map((e) => exports.PermissionSessionRecord.toJSON(e));
|
|
864
|
-
}
|
|
865
751
|
if (message.created !== undefined) {
|
|
866
752
|
obj.created = message.created.toISOString();
|
|
867
753
|
}
|
|
868
754
|
if (message.modified !== undefined) {
|
|
869
755
|
obj.modified = message.modified.toISOString();
|
|
870
756
|
}
|
|
757
|
+
if ((_a = message.sessionRecords) === null || _a === void 0 ? void 0 : _a.length) {
|
|
758
|
+
obj.sessionRecords = message.sessionRecords.map((e) => exports.ParticipantSessionRecord.toJSON(e));
|
|
759
|
+
}
|
|
871
760
|
return obj;
|
|
872
761
|
},
|
|
873
762
|
create(base) {
|
|
874
|
-
return exports.
|
|
763
|
+
return exports.ParticipantSession.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
875
764
|
},
|
|
876
765
|
fromPartial(object) {
|
|
877
|
-
var _a, _b, _c, _d, _e, _f
|
|
878
|
-
const message =
|
|
766
|
+
var _a, _b, _c, _d, _e, _f;
|
|
767
|
+
const message = createBaseParticipantSession();
|
|
879
768
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
880
|
-
message.
|
|
769
|
+
message.corporationId = (_b = object.corporationId) !== null && _b !== void 0 ? _b : 0;
|
|
881
770
|
message.vsOperator = (_c = object.vsOperator) !== null && _c !== void 0 ? _c : "";
|
|
882
|
-
message.
|
|
883
|
-
message.
|
|
884
|
-
message.
|
|
885
|
-
message.modified = (_g = object.modified) !== null && _g !== void 0 ? _g : undefined;
|
|
771
|
+
message.created = (_d = object.created) !== null && _d !== void 0 ? _d : undefined;
|
|
772
|
+
message.modified = (_e = object.modified) !== null && _e !== void 0 ? _e : undefined;
|
|
773
|
+
message.sessionRecords = ((_f = object.sessionRecords) === null || _f === void 0 ? void 0 : _f.map((e) => exports.ParticipantSessionRecord.fromPartial(e))) || [];
|
|
886
774
|
return message;
|
|
887
775
|
},
|
|
888
776
|
};
|
|
889
|
-
function
|
|
890
|
-
return {
|
|
777
|
+
function createBaseParticipantSessionRecord() {
|
|
778
|
+
return {
|
|
779
|
+
id: 0,
|
|
780
|
+
created: undefined,
|
|
781
|
+
issuerParticipantId: 0,
|
|
782
|
+
verifierParticipantId: 0,
|
|
783
|
+
walletAgentParticipantId: 0,
|
|
784
|
+
agentParticipantId: 0,
|
|
785
|
+
};
|
|
891
786
|
}
|
|
892
|
-
exports.
|
|
787
|
+
exports.ParticipantSessionRecord = {
|
|
893
788
|
encode(message, writer = _m0.Writer.create()) {
|
|
789
|
+
if (message.id !== 0) {
|
|
790
|
+
writer.uint32(8).uint64(message.id);
|
|
791
|
+
}
|
|
894
792
|
if (message.created !== undefined) {
|
|
895
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.created), writer.uint32(
|
|
793
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.created), writer.uint32(18).fork()).ldelim();
|
|
794
|
+
}
|
|
795
|
+
if (message.issuerParticipantId !== 0) {
|
|
796
|
+
writer.uint32(24).uint64(message.issuerParticipantId);
|
|
896
797
|
}
|
|
897
|
-
if (message.
|
|
898
|
-
writer.uint32(
|
|
798
|
+
if (message.verifierParticipantId !== 0) {
|
|
799
|
+
writer.uint32(32).uint64(message.verifierParticipantId);
|
|
899
800
|
}
|
|
900
|
-
if (message.
|
|
901
|
-
writer.uint32(
|
|
801
|
+
if (message.walletAgentParticipantId !== 0) {
|
|
802
|
+
writer.uint32(40).uint64(message.walletAgentParticipantId);
|
|
902
803
|
}
|
|
903
|
-
if (message.
|
|
904
|
-
writer.uint32(
|
|
804
|
+
if (message.agentParticipantId !== 0) {
|
|
805
|
+
writer.uint32(48).uint64(message.agentParticipantId);
|
|
905
806
|
}
|
|
906
807
|
return writer;
|
|
907
808
|
},
|
|
908
809
|
decode(input, length) {
|
|
909
810
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
910
811
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
911
|
-
const message =
|
|
812
|
+
const message = createBaseParticipantSessionRecord();
|
|
912
813
|
while (reader.pos < end) {
|
|
913
814
|
const tag = reader.uint32();
|
|
914
815
|
switch (tag >>> 3) {
|
|
915
816
|
case 1:
|
|
916
|
-
if (tag !==
|
|
817
|
+
if (tag !== 8) {
|
|
917
818
|
break;
|
|
918
819
|
}
|
|
919
|
-
message.
|
|
820
|
+
message.id = longToNumber(reader.uint64());
|
|
920
821
|
continue;
|
|
921
822
|
case 2:
|
|
922
|
-
if (tag !==
|
|
823
|
+
if (tag !== 18) {
|
|
923
824
|
break;
|
|
924
825
|
}
|
|
925
|
-
message.
|
|
826
|
+
message.created = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
926
827
|
continue;
|
|
927
828
|
case 3:
|
|
928
829
|
if (tag !== 24) {
|
|
929
830
|
break;
|
|
930
831
|
}
|
|
931
|
-
message.
|
|
832
|
+
message.issuerParticipantId = longToNumber(reader.uint64());
|
|
932
833
|
continue;
|
|
933
834
|
case 4:
|
|
934
835
|
if (tag !== 32) {
|
|
935
836
|
break;
|
|
936
837
|
}
|
|
937
|
-
message.
|
|
838
|
+
message.verifierParticipantId = longToNumber(reader.uint64());
|
|
839
|
+
continue;
|
|
840
|
+
case 5:
|
|
841
|
+
if (tag !== 40) {
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
message.walletAgentParticipantId = longToNumber(reader.uint64());
|
|
845
|
+
continue;
|
|
846
|
+
case 6:
|
|
847
|
+
if (tag !== 48) {
|
|
848
|
+
break;
|
|
849
|
+
}
|
|
850
|
+
message.agentParticipantId = longToNumber(reader.uint64());
|
|
938
851
|
continue;
|
|
939
852
|
}
|
|
940
853
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -946,38 +859,50 @@ exports.PermissionSessionRecord = {
|
|
|
946
859
|
},
|
|
947
860
|
fromJSON(object) {
|
|
948
861
|
return {
|
|
862
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
949
863
|
created: isSet(object.created) ? fromJsonTimestamp(object.created) : undefined,
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
864
|
+
issuerParticipantId: isSet(object.issuerParticipantId) ? globalThis.Number(object.issuerParticipantId) : 0,
|
|
865
|
+
verifierParticipantId: isSet(object.verifierParticipantId) ? globalThis.Number(object.verifierParticipantId) : 0,
|
|
866
|
+
walletAgentParticipantId: isSet(object.walletAgentParticipantId)
|
|
867
|
+
? globalThis.Number(object.walletAgentParticipantId)
|
|
868
|
+
: 0,
|
|
869
|
+
agentParticipantId: isSet(object.agentParticipantId) ? globalThis.Number(object.agentParticipantId) : 0,
|
|
953
870
|
};
|
|
954
871
|
},
|
|
955
872
|
toJSON(message) {
|
|
956
873
|
const obj = {};
|
|
874
|
+
if (message.id !== 0) {
|
|
875
|
+
obj.id = Math.round(message.id);
|
|
876
|
+
}
|
|
957
877
|
if (message.created !== undefined) {
|
|
958
878
|
obj.created = message.created.toISOString();
|
|
959
879
|
}
|
|
960
|
-
if (message.
|
|
961
|
-
obj.
|
|
880
|
+
if (message.issuerParticipantId !== 0) {
|
|
881
|
+
obj.issuerParticipantId = Math.round(message.issuerParticipantId);
|
|
962
882
|
}
|
|
963
|
-
if (message.
|
|
964
|
-
obj.
|
|
883
|
+
if (message.verifierParticipantId !== 0) {
|
|
884
|
+
obj.verifierParticipantId = Math.round(message.verifierParticipantId);
|
|
965
885
|
}
|
|
966
|
-
if (message.
|
|
967
|
-
obj.
|
|
886
|
+
if (message.walletAgentParticipantId !== 0) {
|
|
887
|
+
obj.walletAgentParticipantId = Math.round(message.walletAgentParticipantId);
|
|
888
|
+
}
|
|
889
|
+
if (message.agentParticipantId !== 0) {
|
|
890
|
+
obj.agentParticipantId = Math.round(message.agentParticipantId);
|
|
968
891
|
}
|
|
969
892
|
return obj;
|
|
970
893
|
},
|
|
971
894
|
create(base) {
|
|
972
|
-
return exports.
|
|
895
|
+
return exports.ParticipantSessionRecord.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
973
896
|
},
|
|
974
897
|
fromPartial(object) {
|
|
975
|
-
var _a, _b, _c, _d;
|
|
976
|
-
const message =
|
|
977
|
-
message.
|
|
978
|
-
message.
|
|
979
|
-
message.
|
|
980
|
-
message.
|
|
898
|
+
var _a, _b, _c, _d, _e, _f;
|
|
899
|
+
const message = createBaseParticipantSessionRecord();
|
|
900
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
901
|
+
message.created = (_b = object.created) !== null && _b !== void 0 ? _b : undefined;
|
|
902
|
+
message.issuerParticipantId = (_c = object.issuerParticipantId) !== null && _c !== void 0 ? _c : 0;
|
|
903
|
+
message.verifierParticipantId = (_d = object.verifierParticipantId) !== null && _d !== void 0 ? _d : 0;
|
|
904
|
+
message.walletAgentParticipantId = (_e = object.walletAgentParticipantId) !== null && _e !== void 0 ? _e : 0;
|
|
905
|
+
message.agentParticipantId = (_f = object.agentParticipantId) !== null && _f !== void 0 ? _f : 0;
|
|
981
906
|
return message;
|
|
982
907
|
},
|
|
983
908
|
};
|