@verana-labs/verana-types 0.9.3 → 0.10.1-dev.2
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 +79 -0
- package/dist/codec/cosmos/base/v1beta1/coin.js +283 -0
- package/dist/codec/google/protobuf/descriptor.d.ts +2 -0
- package/dist/codec/google/protobuf/descriptor.js +7 -0
- package/dist/codec/google/protobuf/duration.d.ts +98 -0
- package/dist/codec/google/protobuf/duration.js +128 -0
- package/dist/codec/google/protobuf/timestamp.d.ts +7 -6
- package/dist/codec/verana/cs/v1/params.d.ts +0 -1
- package/dist/codec/verana/cs/v1/params.js +7 -24
- package/dist/codec/verana/cs/v1/query.d.ts +4 -1
- package/dist/codec/verana/cs/v1/query.js +55 -2
- package/dist/codec/verana/cs/v1/tx.d.ts +18 -4
- package/dist/codec/verana/cs/v1/tx.js +160 -71
- package/dist/codec/verana/cs/v1/types.d.ts +17 -1
- package/dist/codec/verana/cs/v1/types.js +105 -25
- package/dist/codec/verana/de/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/de/module/v1/module.js +98 -0
- package/dist/codec/verana/de/v1/genesis.d.ts +27 -0
- package/dist/codec/verana/de/v1/genesis.js +100 -0
- package/dist/codec/verana/de/v1/params.d.ts +24 -0
- package/dist/codec/verana/de/v1/params.js +81 -0
- package/dist/codec/verana/de/v1/query.d.ts +94 -0
- package/dist/codec/verana/de/v1/query.js +296 -0
- package/dist/codec/verana/de/v1/tx.d.ts +175 -0
- package/dist/codec/verana/de/v1/tx.js +564 -0
- package/dist/codec/verana/de/v1/types.d.ts +95 -0
- package/dist/codec/verana/de/v1/types.js +458 -0
- package/dist/codec/verana/tr/v1/params.d.ts +0 -1
- package/dist/codec/verana/tr/v1/params.js +4 -22
- package/dist/codec/verana/tr/v1/tx.d.ts +56 -11
- package/dist/codec/verana/tr/v1/tx.js +165 -95
- package/dist/helpers/aminoConverters.d.ts +32 -0
- package/dist/helpers/aminoConverters.js +592 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +18 -0
- package/package.json +5 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "cosmos.base.v1beta1";
|
|
3
|
+
/**
|
|
4
|
+
* Coin defines a token with a denomination and an amount.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: The amount field is an Int which implements the custom method
|
|
7
|
+
* signatures required by gogoproto.
|
|
8
|
+
*/
|
|
9
|
+
export interface Coin {
|
|
10
|
+
denom: string;
|
|
11
|
+
amount: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* DecCoin defines a token with a denomination and a decimal amount.
|
|
15
|
+
*
|
|
16
|
+
* NOTE: The amount field is an Dec which implements the custom method
|
|
17
|
+
* signatures required by gogoproto.
|
|
18
|
+
*/
|
|
19
|
+
export interface DecCoin {
|
|
20
|
+
denom: string;
|
|
21
|
+
amount: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* IntProto defines a Protobuf wrapper around an Int object.
|
|
25
|
+
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
|
|
26
|
+
*/
|
|
27
|
+
export interface IntProto {
|
|
28
|
+
int: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* DecProto defines a Protobuf wrapper around a Dec object.
|
|
32
|
+
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
|
|
33
|
+
*/
|
|
34
|
+
export interface DecProto {
|
|
35
|
+
dec: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const Coin: {
|
|
38
|
+
encode(message: Coin, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Coin;
|
|
40
|
+
fromJSON(object: any): Coin;
|
|
41
|
+
toJSON(message: Coin): unknown;
|
|
42
|
+
create<I extends Exact<DeepPartial<Coin>, I>>(base?: I): Coin;
|
|
43
|
+
fromPartial<I extends Exact<DeepPartial<Coin>, I>>(object: I): Coin;
|
|
44
|
+
};
|
|
45
|
+
export declare const DecCoin: {
|
|
46
|
+
encode(message: DecCoin, writer?: _m0.Writer): _m0.Writer;
|
|
47
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin;
|
|
48
|
+
fromJSON(object: any): DecCoin;
|
|
49
|
+
toJSON(message: DecCoin): unknown;
|
|
50
|
+
create<I extends Exact<DeepPartial<DecCoin>, I>>(base?: I): DecCoin;
|
|
51
|
+
fromPartial<I extends Exact<DeepPartial<DecCoin>, I>>(object: I): DecCoin;
|
|
52
|
+
};
|
|
53
|
+
export declare const IntProto: {
|
|
54
|
+
encode(message: IntProto, writer?: _m0.Writer): _m0.Writer;
|
|
55
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IntProto;
|
|
56
|
+
fromJSON(object: any): IntProto;
|
|
57
|
+
toJSON(message: IntProto): unknown;
|
|
58
|
+
create<I extends Exact<DeepPartial<IntProto>, I>>(base?: I): IntProto;
|
|
59
|
+
fromPartial<I extends Exact<DeepPartial<IntProto>, I>>(object: I): IntProto;
|
|
60
|
+
};
|
|
61
|
+
export declare const DecProto: {
|
|
62
|
+
encode(message: DecProto, writer?: _m0.Writer): _m0.Writer;
|
|
63
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DecProto;
|
|
64
|
+
fromJSON(object: any): DecProto;
|
|
65
|
+
toJSON(message: DecProto): unknown;
|
|
66
|
+
create<I extends Exact<DeepPartial<DecProto>, I>>(base?: I): DecProto;
|
|
67
|
+
fromPartial<I extends Exact<DeepPartial<DecProto>, I>>(object: I): DecProto;
|
|
68
|
+
};
|
|
69
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
70
|
+
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 {} ? {
|
|
71
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
72
|
+
} : Partial<T>;
|
|
73
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
74
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
75
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
76
|
+
} & {
|
|
77
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
78
|
+
};
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: cosmos/base/v1beta1/coin.proto
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function(o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function(o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
+
return ar;
|
|
29
|
+
};
|
|
30
|
+
return ownKeys(o);
|
|
31
|
+
};
|
|
32
|
+
return function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.DecProto = exports.IntProto = exports.DecCoin = exports.Coin = exports.protobufPackage = void 0;
|
|
42
|
+
/* eslint-disable */
|
|
43
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
|
+
exports.protobufPackage = "cosmos.base.v1beta1";
|
|
45
|
+
function createBaseCoin() {
|
|
46
|
+
return { denom: "", amount: "" };
|
|
47
|
+
}
|
|
48
|
+
exports.Coin = {
|
|
49
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
50
|
+
if (message.denom !== "") {
|
|
51
|
+
writer.uint32(10).string(message.denom);
|
|
52
|
+
}
|
|
53
|
+
if (message.amount !== "") {
|
|
54
|
+
writer.uint32(18).string(message.amount);
|
|
55
|
+
}
|
|
56
|
+
return writer;
|
|
57
|
+
},
|
|
58
|
+
decode(input, length) {
|
|
59
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
60
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
61
|
+
const message = createBaseCoin();
|
|
62
|
+
while (reader.pos < end) {
|
|
63
|
+
const tag = reader.uint32();
|
|
64
|
+
switch (tag >>> 3) {
|
|
65
|
+
case 1:
|
|
66
|
+
if (tag !== 10) {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
message.denom = reader.string();
|
|
70
|
+
continue;
|
|
71
|
+
case 2:
|
|
72
|
+
if (tag !== 18) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.amount = reader.string();
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
reader.skipType(tag & 7);
|
|
82
|
+
}
|
|
83
|
+
return message;
|
|
84
|
+
},
|
|
85
|
+
fromJSON(object) {
|
|
86
|
+
return {
|
|
87
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
88
|
+
amount: isSet(object.amount) ? globalThis.String(object.amount) : "",
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
toJSON(message) {
|
|
92
|
+
const obj = {};
|
|
93
|
+
if (message.denom !== "") {
|
|
94
|
+
obj.denom = message.denom;
|
|
95
|
+
}
|
|
96
|
+
if (message.amount !== "") {
|
|
97
|
+
obj.amount = message.amount;
|
|
98
|
+
}
|
|
99
|
+
return obj;
|
|
100
|
+
},
|
|
101
|
+
create(base) {
|
|
102
|
+
return exports.Coin.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
103
|
+
},
|
|
104
|
+
fromPartial(object) {
|
|
105
|
+
var _a, _b;
|
|
106
|
+
const message = createBaseCoin();
|
|
107
|
+
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
108
|
+
message.amount = (_b = object.amount) !== null && _b !== void 0 ? _b : "";
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
function createBaseDecCoin() {
|
|
113
|
+
return { denom: "", amount: "" };
|
|
114
|
+
}
|
|
115
|
+
exports.DecCoin = {
|
|
116
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
117
|
+
if (message.denom !== "") {
|
|
118
|
+
writer.uint32(10).string(message.denom);
|
|
119
|
+
}
|
|
120
|
+
if (message.amount !== "") {
|
|
121
|
+
writer.uint32(18).string(message.amount);
|
|
122
|
+
}
|
|
123
|
+
return writer;
|
|
124
|
+
},
|
|
125
|
+
decode(input, length) {
|
|
126
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
127
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
128
|
+
const message = createBaseDecCoin();
|
|
129
|
+
while (reader.pos < end) {
|
|
130
|
+
const tag = reader.uint32();
|
|
131
|
+
switch (tag >>> 3) {
|
|
132
|
+
case 1:
|
|
133
|
+
if (tag !== 10) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
message.denom = reader.string();
|
|
137
|
+
continue;
|
|
138
|
+
case 2:
|
|
139
|
+
if (tag !== 18) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
message.amount = reader.string();
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
reader.skipType(tag & 7);
|
|
149
|
+
}
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
fromJSON(object) {
|
|
153
|
+
return {
|
|
154
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
155
|
+
amount: isSet(object.amount) ? globalThis.String(object.amount) : "",
|
|
156
|
+
};
|
|
157
|
+
},
|
|
158
|
+
toJSON(message) {
|
|
159
|
+
const obj = {};
|
|
160
|
+
if (message.denom !== "") {
|
|
161
|
+
obj.denom = message.denom;
|
|
162
|
+
}
|
|
163
|
+
if (message.amount !== "") {
|
|
164
|
+
obj.amount = message.amount;
|
|
165
|
+
}
|
|
166
|
+
return obj;
|
|
167
|
+
},
|
|
168
|
+
create(base) {
|
|
169
|
+
return exports.DecCoin.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
170
|
+
},
|
|
171
|
+
fromPartial(object) {
|
|
172
|
+
var _a, _b;
|
|
173
|
+
const message = createBaseDecCoin();
|
|
174
|
+
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
175
|
+
message.amount = (_b = object.amount) !== null && _b !== void 0 ? _b : "";
|
|
176
|
+
return message;
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
function createBaseIntProto() {
|
|
180
|
+
return { int: "" };
|
|
181
|
+
}
|
|
182
|
+
exports.IntProto = {
|
|
183
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
184
|
+
if (message.int !== "") {
|
|
185
|
+
writer.uint32(10).string(message.int);
|
|
186
|
+
}
|
|
187
|
+
return writer;
|
|
188
|
+
},
|
|
189
|
+
decode(input, length) {
|
|
190
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
191
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
192
|
+
const message = createBaseIntProto();
|
|
193
|
+
while (reader.pos < end) {
|
|
194
|
+
const tag = reader.uint32();
|
|
195
|
+
switch (tag >>> 3) {
|
|
196
|
+
case 1:
|
|
197
|
+
if (tag !== 10) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.int = reader.string();
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
reader.skipType(tag & 7);
|
|
207
|
+
}
|
|
208
|
+
return message;
|
|
209
|
+
},
|
|
210
|
+
fromJSON(object) {
|
|
211
|
+
return { int: isSet(object.int) ? globalThis.String(object.int) : "" };
|
|
212
|
+
},
|
|
213
|
+
toJSON(message) {
|
|
214
|
+
const obj = {};
|
|
215
|
+
if (message.int !== "") {
|
|
216
|
+
obj.int = message.int;
|
|
217
|
+
}
|
|
218
|
+
return obj;
|
|
219
|
+
},
|
|
220
|
+
create(base) {
|
|
221
|
+
return exports.IntProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object) {
|
|
224
|
+
var _a;
|
|
225
|
+
const message = createBaseIntProto();
|
|
226
|
+
message.int = (_a = object.int) !== null && _a !== void 0 ? _a : "";
|
|
227
|
+
return message;
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
function createBaseDecProto() {
|
|
231
|
+
return { dec: "" };
|
|
232
|
+
}
|
|
233
|
+
exports.DecProto = {
|
|
234
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
235
|
+
if (message.dec !== "") {
|
|
236
|
+
writer.uint32(10).string(message.dec);
|
|
237
|
+
}
|
|
238
|
+
return writer;
|
|
239
|
+
},
|
|
240
|
+
decode(input, length) {
|
|
241
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
242
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
243
|
+
const message = createBaseDecProto();
|
|
244
|
+
while (reader.pos < end) {
|
|
245
|
+
const tag = reader.uint32();
|
|
246
|
+
switch (tag >>> 3) {
|
|
247
|
+
case 1:
|
|
248
|
+
if (tag !== 10) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
message.dec = reader.string();
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
reader.skipType(tag & 7);
|
|
258
|
+
}
|
|
259
|
+
return message;
|
|
260
|
+
},
|
|
261
|
+
fromJSON(object) {
|
|
262
|
+
return { dec: isSet(object.dec) ? globalThis.String(object.dec) : "" };
|
|
263
|
+
},
|
|
264
|
+
toJSON(message) {
|
|
265
|
+
const obj = {};
|
|
266
|
+
if (message.dec !== "") {
|
|
267
|
+
obj.dec = message.dec;
|
|
268
|
+
}
|
|
269
|
+
return obj;
|
|
270
|
+
},
|
|
271
|
+
create(base) {
|
|
272
|
+
return exports.DecProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
273
|
+
},
|
|
274
|
+
fromPartial(object) {
|
|
275
|
+
var _a;
|
|
276
|
+
const message = createBaseDecProto();
|
|
277
|
+
message.dec = (_a = object.dec) !== null && _a !== void 0 ? _a : "";
|
|
278
|
+
return message;
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
function isSet(value) {
|
|
282
|
+
return value !== null && value !== undefined;
|
|
283
|
+
}
|
|
@@ -24,6 +24,8 @@ export declare enum Edition {
|
|
|
24
24
|
*/
|
|
25
25
|
EDITION_2023 = 1000,
|
|
26
26
|
EDITION_2024 = 1001,
|
|
27
|
+
/** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
|
|
28
|
+
EDITION_UNSTABLE = 9999,
|
|
27
29
|
/**
|
|
28
30
|
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
|
|
29
31
|
* used or relied on outside of tests.
|
|
@@ -109,6 +109,8 @@ var Edition;
|
|
|
109
109
|
*/
|
|
110
110
|
Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
|
|
111
111
|
Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024";
|
|
112
|
+
/** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
|
|
113
|
+
Edition[Edition["EDITION_UNSTABLE"] = 9999] = "EDITION_UNSTABLE";
|
|
112
114
|
/**
|
|
113
115
|
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
|
|
114
116
|
* used or relied on outside of tests.
|
|
@@ -146,6 +148,9 @@ function editionFromJSON(object) {
|
|
|
146
148
|
case 1001:
|
|
147
149
|
case "EDITION_2024":
|
|
148
150
|
return Edition.EDITION_2024;
|
|
151
|
+
case 9999:
|
|
152
|
+
case "EDITION_UNSTABLE":
|
|
153
|
+
return Edition.EDITION_UNSTABLE;
|
|
149
154
|
case 1:
|
|
150
155
|
case "EDITION_1_TEST_ONLY":
|
|
151
156
|
return Edition.EDITION_1_TEST_ONLY;
|
|
@@ -184,6 +189,8 @@ function editionToJSON(object) {
|
|
|
184
189
|
return "EDITION_2023";
|
|
185
190
|
case Edition.EDITION_2024:
|
|
186
191
|
return "EDITION_2024";
|
|
192
|
+
case Edition.EDITION_UNSTABLE:
|
|
193
|
+
return "EDITION_UNSTABLE";
|
|
187
194
|
case Edition.EDITION_1_TEST_ONLY:
|
|
188
195
|
return "EDITION_1_TEST_ONLY";
|
|
189
196
|
case Edition.EDITION_2_TEST_ONLY:
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* A Duration represents a signed, fixed-length span of time represented
|
|
5
|
+
* as a count of seconds and fractions of seconds at nanosecond
|
|
6
|
+
* resolution. It is independent of any calendar and concepts like "day"
|
|
7
|
+
* or "month". It is related to Timestamp in that the difference between
|
|
8
|
+
* two Timestamp values is a Duration and it can be added or subtracted
|
|
9
|
+
* from a Timestamp. Range is approximately +-10,000 years.
|
|
10
|
+
*
|
|
11
|
+
* # Examples
|
|
12
|
+
*
|
|
13
|
+
* Example 1: Compute Duration from two Timestamps in pseudo code.
|
|
14
|
+
*
|
|
15
|
+
* Timestamp start = ...;
|
|
16
|
+
* Timestamp end = ...;
|
|
17
|
+
* Duration duration = ...;
|
|
18
|
+
*
|
|
19
|
+
* duration.seconds = end.seconds - start.seconds;
|
|
20
|
+
* duration.nanos = end.nanos - start.nanos;
|
|
21
|
+
*
|
|
22
|
+
* if (duration.seconds < 0 && duration.nanos > 0) {
|
|
23
|
+
* duration.seconds += 1;
|
|
24
|
+
* duration.nanos -= 1000000000;
|
|
25
|
+
* } else if (duration.seconds > 0 && duration.nanos < 0) {
|
|
26
|
+
* duration.seconds -= 1;
|
|
27
|
+
* duration.nanos += 1000000000;
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
|
31
|
+
*
|
|
32
|
+
* Timestamp start = ...;
|
|
33
|
+
* Duration duration = ...;
|
|
34
|
+
* Timestamp end = ...;
|
|
35
|
+
*
|
|
36
|
+
* end.seconds = start.seconds + duration.seconds;
|
|
37
|
+
* end.nanos = start.nanos + duration.nanos;
|
|
38
|
+
*
|
|
39
|
+
* if (end.nanos < 0) {
|
|
40
|
+
* end.seconds -= 1;
|
|
41
|
+
* end.nanos += 1000000000;
|
|
42
|
+
* } else if (end.nanos >= 1000000000) {
|
|
43
|
+
* end.seconds += 1;
|
|
44
|
+
* end.nanos -= 1000000000;
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* Example 3: Compute Duration from datetime.timedelta in Python.
|
|
48
|
+
*
|
|
49
|
+
* td = datetime.timedelta(days=3, minutes=10)
|
|
50
|
+
* duration = Duration()
|
|
51
|
+
* duration.FromTimedelta(td)
|
|
52
|
+
*
|
|
53
|
+
* # JSON Mapping
|
|
54
|
+
*
|
|
55
|
+
* In JSON format, the Duration type is encoded as a string rather than an
|
|
56
|
+
* object, where the string ends in the suffix "s" (indicating seconds) and
|
|
57
|
+
* is preceded by the number of seconds, with nanoseconds expressed as
|
|
58
|
+
* fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
|
59
|
+
* encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
|
60
|
+
* be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
|
61
|
+
* microsecond should be expressed in JSON format as "3.000001s".
|
|
62
|
+
*/
|
|
63
|
+
export interface Duration {
|
|
64
|
+
/**
|
|
65
|
+
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
66
|
+
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
67
|
+
* 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
|
68
|
+
*/
|
|
69
|
+
seconds: number;
|
|
70
|
+
/**
|
|
71
|
+
* Signed fractions of a second at nanosecond resolution of the span
|
|
72
|
+
* of time. Durations less than one second are represented with a 0
|
|
73
|
+
* `seconds` field and a positive or negative `nanos` field. For durations
|
|
74
|
+
* of one second or more, a non-zero value for the `nanos` field must be
|
|
75
|
+
* of the same sign as the `seconds` field. Must be from -999,999,999
|
|
76
|
+
* to +999,999,999 inclusive.
|
|
77
|
+
*/
|
|
78
|
+
nanos: number;
|
|
79
|
+
}
|
|
80
|
+
export declare const Duration: {
|
|
81
|
+
encode(message: Duration, writer?: _m0.Writer): _m0.Writer;
|
|
82
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Duration;
|
|
83
|
+
fromJSON(object: any): Duration;
|
|
84
|
+
toJSON(message: Duration): unknown;
|
|
85
|
+
create<I extends Exact<DeepPartial<Duration>, I>>(base?: I): Duration;
|
|
86
|
+
fromPartial<I extends Exact<DeepPartial<Duration>, I>>(object: I): Duration;
|
|
87
|
+
};
|
|
88
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
89
|
+
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 {} ? {
|
|
90
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
91
|
+
} : Partial<T>;
|
|
92
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
93
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
94
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
95
|
+
} & {
|
|
96
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
97
|
+
};
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: google/protobuf/duration.proto
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function(o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function(o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
+
return ar;
|
|
29
|
+
};
|
|
30
|
+
return ownKeys(o);
|
|
31
|
+
};
|
|
32
|
+
return function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Duration = exports.protobufPackage = void 0;
|
|
42
|
+
/* eslint-disable */
|
|
43
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
|
+
const Long = require("long");
|
|
45
|
+
exports.protobufPackage = "google.protobuf";
|
|
46
|
+
function createBaseDuration() {
|
|
47
|
+
return { seconds: 0, nanos: 0 };
|
|
48
|
+
}
|
|
49
|
+
exports.Duration = {
|
|
50
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
51
|
+
if (message.seconds !== 0) {
|
|
52
|
+
writer.uint32(8).int64(message.seconds);
|
|
53
|
+
}
|
|
54
|
+
if (message.nanos !== 0) {
|
|
55
|
+
writer.uint32(16).int32(message.nanos);
|
|
56
|
+
}
|
|
57
|
+
return writer;
|
|
58
|
+
},
|
|
59
|
+
decode(input, length) {
|
|
60
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
61
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
62
|
+
const message = createBaseDuration();
|
|
63
|
+
while (reader.pos < end) {
|
|
64
|
+
const tag = reader.uint32();
|
|
65
|
+
switch (tag >>> 3) {
|
|
66
|
+
case 1:
|
|
67
|
+
if (tag !== 8) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
message.seconds = longToNumber(reader.int64());
|
|
71
|
+
continue;
|
|
72
|
+
case 2:
|
|
73
|
+
if (tag !== 16) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.nanos = reader.int32();
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
reader.skipType(tag & 7);
|
|
83
|
+
}
|
|
84
|
+
return message;
|
|
85
|
+
},
|
|
86
|
+
fromJSON(object) {
|
|
87
|
+
return {
|
|
88
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
89
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
toJSON(message) {
|
|
93
|
+
const obj = {};
|
|
94
|
+
if (message.seconds !== 0) {
|
|
95
|
+
obj.seconds = Math.round(message.seconds);
|
|
96
|
+
}
|
|
97
|
+
if (message.nanos !== 0) {
|
|
98
|
+
obj.nanos = Math.round(message.nanos);
|
|
99
|
+
}
|
|
100
|
+
return obj;
|
|
101
|
+
},
|
|
102
|
+
create(base) {
|
|
103
|
+
return exports.Duration.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
104
|
+
},
|
|
105
|
+
fromPartial(object) {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
const message = createBaseDuration();
|
|
108
|
+
message.seconds = (_a = object.seconds) !== null && _a !== void 0 ? _a : 0;
|
|
109
|
+
message.nanos = (_b = object.nanos) !== null && _b !== void 0 ? _b : 0;
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
function longToNumber(long) {
|
|
114
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
115
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
116
|
+
}
|
|
117
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
118
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
119
|
+
}
|
|
120
|
+
return long.toNumber();
|
|
121
|
+
}
|
|
122
|
+
if (_m0.util.Long !== Long) {
|
|
123
|
+
_m0.util.Long = Long;
|
|
124
|
+
_m0.configure();
|
|
125
|
+
}
|
|
126
|
+
function isSet(value) {
|
|
127
|
+
return value !== null && value !== undefined;
|
|
128
|
+
}
|
|
@@ -93,15 +93,16 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
93
93
|
*/
|
|
94
94
|
export interface Timestamp {
|
|
95
95
|
/**
|
|
96
|
-
* Represents seconds of UTC time since Unix epoch
|
|
97
|
-
*
|
|
98
|
-
* 9999-12-31T23:59:59Z
|
|
96
|
+
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
97
|
+
* be between -315576000000 and 315576000000 inclusive (which corresponds to
|
|
98
|
+
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
99
99
|
*/
|
|
100
100
|
seconds: number;
|
|
101
101
|
/**
|
|
102
|
-
* Non-negative fractions of a second at nanosecond resolution.
|
|
103
|
-
*
|
|
104
|
-
*
|
|
102
|
+
* Non-negative fractions of a second at nanosecond resolution. This field is
|
|
103
|
+
* the nanosecond portion of the duration, not an alternative to seconds.
|
|
104
|
+
* Negative second values with fractions must still have non-negative nanos
|
|
105
|
+
* values that count forward in time. Must be between 0 and 999,999,999
|
|
105
106
|
* inclusive.
|
|
106
107
|
*/
|
|
107
108
|
nanos: number;
|
|
@@ -2,7 +2,6 @@ import * as _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "verana.cs.v1";
|
|
3
3
|
/** Params defines the parameters for the module. */
|
|
4
4
|
export interface Params {
|
|
5
|
-
credentialSchemaTrustDeposit: number;
|
|
6
5
|
credentialSchemaSchemaMaxSize: number;
|
|
7
6
|
credentialSchemaIssuerGrantorValidationValidityPeriodMaxDays: number;
|
|
8
7
|
credentialSchemaVerifierGrantorValidationValidityPeriodMaxDays: number;
|