@xyo-network/xl1-rpc 1.7.19 → 1.8.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/neutral/index.mjs +14 -14
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/host/Abstract.d.ts +3 -3
- package/dist/neutral/provider/host/Abstract.d.ts.map +1 -1
- package/dist/neutral/provider/provider/XyoConnection.d.ts +2 -2
- package/dist/neutral/provider/provider/XyoConnection.d.ts.map +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoGatewayRpcSchemas.d.ts +4 -3
- package/dist/neutral/types/schema/XyoGatewayRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/AddressSchema.d.ts +2 -1
- package/dist/neutral/types/schema/common/AddressSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BigIntSchema.d.ts +1 -1
- package/dist/neutral/types/schema/common/BigIntSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HashSchema.d.ts +2 -1
- package/dist/neutral/types/schema/common/HashSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HexSchema.d.ts +2 -1
- package/dist/neutral/types/schema/common/HexSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/SequenceSchema.d.ts +4 -3
- package/dist/neutral/types/schema/common/SequenceSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TransactionFees.d.ts +8 -8
- package/dist/node/index-node.mjs +14 -14
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/host/Abstract.d.ts +3 -3
- package/dist/node/provider/host/Abstract.d.ts.map +1 -1
- package/dist/node/provider/provider/XyoConnection.d.ts +2 -2
- package/dist/node/provider/provider/XyoConnection.d.ts.map +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/node/types/schema/XyoGatewayRpcSchemas.d.ts +4 -3
- package/dist/node/types/schema/XyoGatewayRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/AddressSchema.d.ts +2 -1
- package/dist/node/types/schema/common/AddressSchema.d.ts.map +1 -1
- package/dist/node/types/schema/common/BigIntSchema.d.ts +1 -1
- package/dist/node/types/schema/common/BigIntSchema.d.ts.map +1 -1
- package/dist/node/types/schema/common/HashSchema.d.ts +2 -1
- package/dist/node/types/schema/common/HashSchema.d.ts.map +1 -1
- package/dist/node/types/schema/common/HexSchema.d.ts +2 -1
- package/dist/node/types/schema/common/HexSchema.d.ts.map +1 -1
- package/dist/node/types/schema/common/SequenceSchema.d.ts +4 -3
- package/dist/node/types/schema/common/SequenceSchema.d.ts.map +1 -1
- package/dist/node/types/schema/common/TransactionFees.d.ts +8 -8
- package/package.json +37 -36
- package/src/provider/host/Abstract.ts +3 -3
- package/src/provider/provider/XyoConnection.ts +2 -2
- package/src/provider/signer/JsonRpcXyoSigner.ts +1 -1
- package/src/provider/viewer/spec/JsonRpcXyoViewer.spec.ts +1 -1
- package/src/types/schema/common/BigIntSchema.ts +5 -3
- package/src/types/schema/common/HashSchema.ts +2 -2
package/dist/neutral/index.mjs
CHANGED
|
@@ -120,7 +120,7 @@ var AbstractXyoGateway = class {
|
|
|
120
120
|
activeConnection() {
|
|
121
121
|
throw new Error("Deprecated method not implemented.");
|
|
122
122
|
}
|
|
123
|
-
addConnection(
|
|
123
|
+
addConnection(_config) {
|
|
124
124
|
throw new Error("Deprecated method not implemented.");
|
|
125
125
|
}
|
|
126
126
|
connections() {
|
|
@@ -129,10 +129,10 @@ var AbstractXyoGateway = class {
|
|
|
129
129
|
getPermissions() {
|
|
130
130
|
throw new Error("Deprecated method not implemented.");
|
|
131
131
|
}
|
|
132
|
-
requestPermissions(
|
|
132
|
+
requestPermissions(_permissions) {
|
|
133
133
|
throw new Error("Deprecated method not implemented.");
|
|
134
134
|
}
|
|
135
|
-
revokePermissions(
|
|
135
|
+
revokePermissions(_permissions) {
|
|
136
136
|
throw new Error("Deprecated method not implemented.");
|
|
137
137
|
}
|
|
138
138
|
async submitTransaction(elevatedPayloads, additionalPayloads) {
|
|
@@ -326,12 +326,12 @@ var AddressToStringSchema = z.string().toLowerCase().regex(CompiledAddressRegEx)
|
|
|
326
326
|
var AddressFromStringSchema = z.string().toLowerCase().regex(CompiledAddressRegEx).transform((v) => toAddress(v));
|
|
327
327
|
|
|
328
328
|
// src/types/schema/common/BigIntSchema.ts
|
|
329
|
-
import { hexToBigInt, toHex } from "@xylabs/hex";
|
|
329
|
+
import { asHex, hexToBigInt, toHex } from "@xylabs/hex";
|
|
330
330
|
import { HexRegEx } from "@xyo-network/payload-wrapper";
|
|
331
331
|
import { z as z2 } from "zod";
|
|
332
332
|
var CompiledHexRegEx = new RegExp(HexRegEx);
|
|
333
|
-
var BigIntToStringSchema = z2.bigint().nonnegative().transform((x) => toHex(x));
|
|
334
|
-
var BigIntFromStringSchema = z2.string().regex(CompiledHexRegEx).transform((x) => hexToBigInt(toHex(x)));
|
|
333
|
+
var BigIntToStringSchema = z2.bigint().nonnegative().transform((x) => asHex(toHex(x)));
|
|
334
|
+
var BigIntFromStringSchema = z2.string().regex(CompiledHexRegEx).transform((x) => hexToBigInt(asHex(toHex(x), true)));
|
|
335
335
|
|
|
336
336
|
// src/types/schema/common/BlockBoundWitnessSchema.ts
|
|
337
337
|
import { z as z9 } from "zod";
|
|
@@ -341,18 +341,18 @@ import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
|
341
341
|
import { z as z8 } from "zod";
|
|
342
342
|
|
|
343
343
|
// src/types/schema/common/HashSchema.ts
|
|
344
|
-
import {
|
|
344
|
+
import { asHash } from "@xylabs/hex";
|
|
345
345
|
import { HashRegEx } from "@xyo-network/payload-wrapper";
|
|
346
346
|
import { z as z3 } from "zod";
|
|
347
347
|
var HashToStringSchema = z3.string().toLowerCase().regex(new RegExp(HashRegEx));
|
|
348
|
-
var HashFromStringSchema = z3.string().toLowerCase().regex(new RegExp(HashRegEx)).transform((v) =>
|
|
348
|
+
var HashFromStringSchema = z3.string().toLowerCase().regex(new RegExp(HashRegEx)).transform((v) => asHash(v, true));
|
|
349
349
|
|
|
350
350
|
// src/types/schema/common/HexSchema.ts
|
|
351
|
-
import { toHex as
|
|
351
|
+
import { toHex as toHex2 } from "@xylabs/hex";
|
|
352
352
|
import { HexRegEx as HexRegEx2 } from "@xyo-network/payload-wrapper";
|
|
353
353
|
import { z as z4 } from "zod";
|
|
354
354
|
var HexToStringSchema = z4.string().toLowerCase().regex(new RegExp(HexRegEx2));
|
|
355
|
-
var HexFromStringSchema = z4.string().toLowerCase().regex(new RegExp(HexRegEx2)).transform((v) =>
|
|
355
|
+
var HexFromStringSchema = z4.string().toLowerCase().regex(new RegExp(HexRegEx2)).transform((v) => toHex2(v));
|
|
356
356
|
|
|
357
357
|
// src/types/schema/common/PayloadSchema.ts
|
|
358
358
|
import { z as z7 } from "zod";
|
|
@@ -361,16 +361,16 @@ import { z as z7 } from "zod";
|
|
|
361
361
|
import { z as z6 } from "zod";
|
|
362
362
|
|
|
363
363
|
// src/types/schema/common/SequenceSchema.ts
|
|
364
|
-
import { toHex as
|
|
364
|
+
import { toHex as toHex3 } from "@xylabs/hex";
|
|
365
365
|
import { SequenceConstants } from "@xyo-network/payload-model";
|
|
366
366
|
import { HexRegExMinMax } from "@xyo-network/payload-wrapper";
|
|
367
367
|
import { z as z5 } from "zod";
|
|
368
368
|
var LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes));
|
|
369
369
|
var LocalSequenceToStringSchema = z5.string().regex(LocalSequenceRegex);
|
|
370
|
-
var LocalSequenceFromStringSchema = z5.string().regex(LocalSequenceRegex).transform((v) =>
|
|
370
|
+
var LocalSequenceFromStringSchema = z5.string().regex(LocalSequenceRegex).transform((v) => toHex3(v));
|
|
371
371
|
var QualifiedSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.qualifiedSequenceBytes, SequenceConstants.qualifiedSequenceBytes));
|
|
372
372
|
var QualifiedSequenceToStringSchema = z5.string().regex(QualifiedSequenceRegex);
|
|
373
|
-
var QualifiedSequenceFromStringSchema = z5.string().regex(QualifiedSequenceRegex).transform((v) =>
|
|
373
|
+
var QualifiedSequenceFromStringSchema = z5.string().regex(QualifiedSequenceRegex).transform((v) => toHex3(v));
|
|
374
374
|
var SequenceToStringSchema = z5.union([
|
|
375
375
|
LocalSequenceToStringSchema,
|
|
376
376
|
QualifiedSequenceToStringSchema
|
|
@@ -1198,7 +1198,7 @@ var RpcXyoSigner = class {
|
|
|
1198
1198
|
from
|
|
1199
1199
|
]);
|
|
1200
1200
|
}
|
|
1201
|
-
signTransaction(
|
|
1201
|
+
signTransaction(_tx) {
|
|
1202
1202
|
throw new Error("Method not implemented.");
|
|
1203
1203
|
}
|
|
1204
1204
|
};
|