@agoric/cosmic-proto 0.4.1-dev-a66b840.0 → 0.4.1-dev-a48b2ce.0
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/codegen/binary.d.ts +1 -1
- package/dist/codegen/binary.js +7 -7
- package/dist/codegen/binary.js.map +1 -1
- package/dist/codegen/google/protobuf/descriptor.d.ts +4 -5
- package/dist/codegen/google/protobuf/descriptor.js +3 -5
- package/dist/codegen/google/protobuf/descriptor.js.map +1 -1
- package/dist/codegen/helpers.d.ts +6 -1
- package/dist/codegen/helpers.js +44 -12
- package/dist/codegen/helpers.js.map +1 -1
- package/dist/codegen/index.d.ts +1 -1
- package/dist/codegen/index.js +1 -1
- package/dist/codegen/json-safe.d.ts +4 -4
- package/dist/codegen/json-safe.js +1 -1
- package/dist/codegen/tendermint/abci/types.d.ts +2 -5
- package/dist/codegen/tendermint/abci/types.js.map +1 -1
- package/dist/codegen/tendermint/types/types.d.ts +2 -0
- package/dist/codegen/tendermint/types/types.js.map +1 -1
- package/dist/codegen/utf8.d.ts +1 -1
- package/dist/codegen/utf8.js +1 -1
- package/dist/codegen/varint.d.ts +1 -1
- package/dist/codegen/varint.js +3 -3
- package/dist/codegen/varint.js.map +1 -1
- package/dist/helpers.d.ts +6 -1
- package/package.json +12 -4
package/dist/codegen/helpers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
|
@@ -21,7 +21,7 @@ export function omitDefault(input) {
|
|
|
21
21
|
if (typeof input === 'bigint') {
|
|
22
22
|
return input === BigInt(0) ? undefined : input;
|
|
23
23
|
}
|
|
24
|
-
throw Error(`Got unsupported type ${typeof input}`);
|
|
24
|
+
throw new Error(`Got unsupported type ${typeof input}`);
|
|
25
25
|
}
|
|
26
26
|
export function toDuration(duration) {
|
|
27
27
|
return {
|
|
@@ -98,9 +98,9 @@ export function fromJsonTimestamp(o) {
|
|
|
98
98
|
function numberToLong(number) {
|
|
99
99
|
return BigInt(Math.trunc(number));
|
|
100
100
|
}
|
|
101
|
+
// START agoric-sdk patch
|
|
101
102
|
// The largest value we need is 18 (Ether).
|
|
102
103
|
const maxFractionalDigits = 30;
|
|
103
|
-
// Subset of Decimal in @cosmjs/math
|
|
104
104
|
/**
|
|
105
105
|
* A type for arbitrary precision, non-negative decimals.
|
|
106
106
|
*
|
|
@@ -112,7 +112,7 @@ export class Decimal {
|
|
|
112
112
|
const badCharacter = input.match(/[^0-9.]/);
|
|
113
113
|
if (badCharacter) {
|
|
114
114
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
115
|
-
throw Error(`Invalid character at position ${badCharacter.index + 1}`);
|
|
115
|
+
throw new Error(`Invalid character at position ${badCharacter.index + 1}`);
|
|
116
116
|
}
|
|
117
117
|
let whole;
|
|
118
118
|
let fractional;
|
|
@@ -120,7 +120,7 @@ export class Decimal {
|
|
|
120
120
|
whole = '0';
|
|
121
121
|
fractional = '';
|
|
122
122
|
}
|
|
123
|
-
else if (input.search(
|
|
123
|
+
else if (input.search(/\./) === -1) {
|
|
124
124
|
// integer format, no separator
|
|
125
125
|
whole = input;
|
|
126
126
|
fractional = '';
|
|
@@ -130,19 +130,19 @@ export class Decimal {
|
|
|
130
130
|
switch (parts.length) {
|
|
131
131
|
case 0:
|
|
132
132
|
case 1:
|
|
133
|
-
throw Error('Fewer than two elements in split result. This must not happen here.');
|
|
133
|
+
throw new Error('Fewer than two elements in split result. This must not happen here.');
|
|
134
134
|
case 2:
|
|
135
135
|
if (!parts[1])
|
|
136
|
-
throw Error('Fractional part missing');
|
|
136
|
+
throw new Error('Fractional part missing');
|
|
137
137
|
whole = parts[0];
|
|
138
138
|
fractional = parts[1].replace(/0+$/, '');
|
|
139
139
|
break;
|
|
140
140
|
default:
|
|
141
|
-
throw Error('More than one separator found');
|
|
141
|
+
throw new Error('More than one separator found');
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
if (fractional.length > fractionalDigits) {
|
|
145
|
-
throw Error('Got more fractional digits than supported');
|
|
145
|
+
throw new Error('Got more fractional digits than supported');
|
|
146
146
|
}
|
|
147
147
|
const quantity = `${whole}${fractional.padEnd(fractionalDigits, '0')}`;
|
|
148
148
|
return new Decimal(quantity, fractionalDigits);
|
|
@@ -153,12 +153,44 @@ export class Decimal {
|
|
|
153
153
|
}
|
|
154
154
|
static verifyFractionalDigits(fractionalDigits) {
|
|
155
155
|
if (!Number.isInteger(fractionalDigits))
|
|
156
|
-
throw Error('Fractional digits is not an integer');
|
|
156
|
+
throw new Error('Fractional digits is not an integer');
|
|
157
157
|
if (fractionalDigits < 0)
|
|
158
|
-
throw Error('Fractional digits must not be negative');
|
|
158
|
+
throw new Error('Fractional digits must not be negative');
|
|
159
159
|
if (fractionalDigits > maxFractionalDigits) {
|
|
160
|
-
throw Error(`Fractional digits must not exceed ${maxFractionalDigits}`);
|
|
160
|
+
throw new Error(`Fractional digits must not exceed ${maxFractionalDigits}`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
get atomics() {
|
|
164
|
+
return this.data.atomics.toString();
|
|
165
|
+
}
|
|
166
|
+
get fractionalDigits() {
|
|
167
|
+
return this.data.fractionalDigits;
|
|
168
|
+
}
|
|
169
|
+
data;
|
|
170
|
+
constructor(atomics, fractionalDigits) {
|
|
171
|
+
if (!atomics.match(/^[0-9]+$/)) {
|
|
172
|
+
throw new Error('Invalid string format. Only non-negative integers in decimal representation supported.');
|
|
173
|
+
}
|
|
174
|
+
this.data = {
|
|
175
|
+
atomics: BigInt(atomics),
|
|
176
|
+
fractionalDigits: fractionalDigits,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
toString() {
|
|
180
|
+
const factor = BigInt(10) ** BigInt(this.data.fractionalDigits);
|
|
181
|
+
const whole = this.data.atomics / factor;
|
|
182
|
+
const fractional = this.data.atomics % factor;
|
|
183
|
+
if (fractional === 0n) {
|
|
184
|
+
return whole.toString();
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
const fullFractionalPart = fractional
|
|
188
|
+
.toString()
|
|
189
|
+
.padStart(this.data.fractionalDigits, '0');
|
|
190
|
+
const trimmedFractionalPart = fullFractionalPart.replace(/0+$/, '');
|
|
191
|
+
return `${whole.toString()}.${trimmedFractionalPart}`;
|
|
161
192
|
}
|
|
162
193
|
}
|
|
163
194
|
}
|
|
195
|
+
// END agoric-sdk patch
|
|
164
196
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/codegen/helpers.ts"],"names":[],"mappings":"AAAA,aAAa;AACb;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE1D,qCAAqC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAkC,YAAY,CAAC;AAC3E,MAAM,CAAC,MAAM,eAAe,GAAkC,YAAY,CAAC;AAO3E,MAAM,UAAU,WAAW,CACzB,KAAQ;IAER,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,KAAK,KAAK,KAAK,C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BAAkB,GAAG,UAAU;iBAClC,QAAQ,EAAE;iBACV,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;YAC7C,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACpE,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAE,IAAI,qBAAqB,EAAE,CAAC;QACxD,CAAC;IACH,CAAC;CACF;AACD,uBAAuB"}
|
package/dist/codegen/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8.3
|
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
4
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
5
|
*/
|
package/dist/codegen/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8.3
|
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
4
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
5
|
*/
|
|
6
|
-
export type JsonSafe<T> = {
|
|
7
|
-
[
|
|
8
|
-
};
|
|
6
|
+
export type JsonSafe<T> = T extends Uint8Array | bigint | Date ? string : T extends Array<infer U> ? Array<JsonSafe<U>> : T extends object ? {
|
|
7
|
+
[K in keyof T]: JsonSafe<T[K]>;
|
|
8
|
+
} : T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
|
@@ -693,12 +693,9 @@ export interface TxResultSDKType {
|
|
|
693
693
|
}
|
|
694
694
|
/** Validator */
|
|
695
695
|
export interface Validator {
|
|
696
|
-
/**
|
|
697
|
-
* The first 20 bytes of SHA256(public key)
|
|
698
|
-
* PubKey pub_key = 2 [(gogoproto.nullable)=false];
|
|
699
|
-
*/
|
|
696
|
+
/** The first 20 bytes of SHA256(public key) */
|
|
700
697
|
address: Uint8Array;
|
|
701
|
-
/**
|
|
698
|
+
/** PubKey pub_key = 2 [(gogoproto.nullable)=false]; */
|
|
702
699
|
power: bigint;
|
|
703
700
|
}
|
|
704
701
|
export interface ValidatorProtoMsg {
|