@xyo-network/xl1-protocol-model 1.26.25 → 1.26.28
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.d.ts +1 -0
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +58 -0
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/rejection/BlockRejectionPayload.d.ts +169 -0
- package/dist/neutral/rejection/BlockRejectionPayload.d.ts.map +1 -0
- package/dist/neutral/rejection/RejectionError.d.ts +10 -0
- package/dist/neutral/rejection/RejectionError.d.ts.map +1 -0
- package/dist/neutral/rejection/TransactionRejectionPayload.d.ts +205 -0
- package/dist/neutral/rejection/TransactionRejectionPayload.d.ts.map +1 -0
- package/dist/neutral/rejection/index.d.ts +4 -0
- package/dist/neutral/rejection/index.d.ts.map +1 -0
- package/package.json +3 -3
package/dist/neutral/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './model/index.ts';
|
|
|
8
8
|
export * from './payload/index.ts';
|
|
9
9
|
export * from './provider/index.ts';
|
|
10
10
|
export * from './RecordKeyType.ts';
|
|
11
|
+
export * from './rejection/index.ts';
|
|
11
12
|
export * from './Step/index.ts';
|
|
12
13
|
export * from './transaction/index.ts';
|
|
13
14
|
export * from './TransferPayload.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1302,6 +1302,53 @@ var asProviderMoniker = (value) => {
|
|
|
1302
1302
|
return assertEx(moniker);
|
|
1303
1303
|
};
|
|
1304
1304
|
var DefaultProviderMoniker = "Provider";
|
|
1305
|
+
|
|
1306
|
+
// src/rejection/BlockRejectionPayload.ts
|
|
1307
|
+
import { AsObjectFactory as AsObjectFactory11 } from "@xylabs/sdk-js";
|
|
1308
|
+
import {
|
|
1309
|
+
asSchema as asSchema11,
|
|
1310
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType7,
|
|
1311
|
+
PayloadZodOfSchema as PayloadZodOfSchema3
|
|
1312
|
+
} from "@xyo-network/sdk-js";
|
|
1313
|
+
import { z as z36 } from "zod";
|
|
1314
|
+
|
|
1315
|
+
// src/rejection/RejectionError.ts
|
|
1316
|
+
import { HashZod as HashZod4 } from "@xylabs/sdk-js";
|
|
1317
|
+
import { z as z35 } from "zod";
|
|
1318
|
+
var RejectionErrorZod = z35.object({
|
|
1319
|
+
hash: HashZod4,
|
|
1320
|
+
message: z35.string().optional(),
|
|
1321
|
+
name: z35.string()
|
|
1322
|
+
}).loose();
|
|
1323
|
+
|
|
1324
|
+
// src/rejection/BlockRejectionPayload.ts
|
|
1325
|
+
var BlockRejectionSchema = asSchema11("network.xyo.block.rejection", true);
|
|
1326
|
+
var BlockRejectionFieldsZod = z36.object({
|
|
1327
|
+
block: HydratedBlockZod,
|
|
1328
|
+
errors: z36.array(RejectionErrorZod),
|
|
1329
|
+
rejector: z36.string()
|
|
1330
|
+
});
|
|
1331
|
+
var BlockRejectionZod = PayloadZodOfSchema3(BlockRejectionSchema).extend(BlockRejectionFieldsZod.shape);
|
|
1332
|
+
var isBlockRejection = isPayloadOfSchemaType7(BlockRejectionSchema);
|
|
1333
|
+
var asBlockRejection = AsObjectFactory11.create(isBlockRejection);
|
|
1334
|
+
|
|
1335
|
+
// src/rejection/TransactionRejectionPayload.ts
|
|
1336
|
+
import { AsObjectFactory as AsObjectFactory12 } from "@xylabs/sdk-js";
|
|
1337
|
+
import {
|
|
1338
|
+
asSchema as asSchema12,
|
|
1339
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType8,
|
|
1340
|
+
PayloadZodOfSchema as PayloadZodOfSchema4
|
|
1341
|
+
} from "@xyo-network/sdk-js";
|
|
1342
|
+
import { z as z37 } from "zod";
|
|
1343
|
+
var TransactionRejectionSchema = asSchema12("network.xyo.transaction.rejection", true);
|
|
1344
|
+
var TransactionRejectionFieldsZod = z37.object({
|
|
1345
|
+
errors: z37.array(RejectionErrorZod),
|
|
1346
|
+
rejector: z37.string(),
|
|
1347
|
+
transaction: HydratedTransactionZod
|
|
1348
|
+
});
|
|
1349
|
+
var TransactionRejectionZod = PayloadZodOfSchema4(TransactionRejectionSchema).extend(TransactionRejectionFieldsZod.shape);
|
|
1350
|
+
var isTransactionRejection = isPayloadOfSchemaType8(TransactionRejectionSchema);
|
|
1351
|
+
var asTransactionRejection = AsObjectFactory12.create(isTransactionRejection);
|
|
1305
1352
|
export {
|
|
1306
1353
|
AccountBalanceConfigZod,
|
|
1307
1354
|
AccountBalanceHistoryItemZod,
|
|
@@ -1333,6 +1380,9 @@ export {
|
|
|
1333
1380
|
BlockRangeZod,
|
|
1334
1381
|
BlockRangeishZod,
|
|
1335
1382
|
BlockRateZod,
|
|
1383
|
+
BlockRejectionFieldsZod,
|
|
1384
|
+
BlockRejectionSchema,
|
|
1385
|
+
BlockRejectionZod,
|
|
1336
1386
|
BlockScriptsZod,
|
|
1337
1387
|
BlockStartZod,
|
|
1338
1388
|
BridgeDestinationObservationFieldsZod,
|
|
@@ -1402,6 +1452,7 @@ export {
|
|
|
1402
1452
|
QualifiedSequenceFromStringZod,
|
|
1403
1453
|
QualifiedSequenceToStringZod,
|
|
1404
1454
|
RangeZod,
|
|
1455
|
+
RejectionErrorZod,
|
|
1405
1456
|
RequestedPermissionZod,
|
|
1406
1457
|
RewardsRangeOptionsZod,
|
|
1407
1458
|
SequenceFromStringZod,
|
|
@@ -1452,6 +1503,9 @@ export {
|
|
|
1452
1503
|
TransactionFeesJsonToBigIntZod,
|
|
1453
1504
|
TransactionFeesZod,
|
|
1454
1505
|
TransactionGasCosts,
|
|
1506
|
+
TransactionRejectionFieldsZod,
|
|
1507
|
+
TransactionRejectionSchema,
|
|
1508
|
+
TransactionRejectionZod,
|
|
1455
1509
|
TransferFieldsZod,
|
|
1456
1510
|
TransferPairZod,
|
|
1457
1511
|
TransferSchema,
|
|
@@ -1502,6 +1556,7 @@ export {
|
|
|
1502
1556
|
asBlockNumberPayloadWithSources,
|
|
1503
1557
|
asBlockRange,
|
|
1504
1558
|
asBlockRate,
|
|
1559
|
+
asBlockRejection,
|
|
1505
1560
|
asBridgeDestinationObservation,
|
|
1506
1561
|
asBridgeIntent,
|
|
1507
1562
|
asBridgeSourceObservation,
|
|
@@ -1550,6 +1605,7 @@ export {
|
|
|
1550
1605
|
asTransactionBoundWitnessWithStorageMeta,
|
|
1551
1606
|
asTransactionFeesBigInt,
|
|
1552
1607
|
asTransactionFeesHex,
|
|
1608
|
+
asTransactionRejection,
|
|
1553
1609
|
asTransfer,
|
|
1554
1610
|
asUnsignedBlockBoundWitness,
|
|
1555
1611
|
asUnsignedHydratedTransaction,
|
|
@@ -1580,6 +1636,7 @@ export {
|
|
|
1580
1636
|
isBlockNumberPayload,
|
|
1581
1637
|
isBlockNumberPayloadWithSources,
|
|
1582
1638
|
isBlockRate,
|
|
1639
|
+
isBlockRejection,
|
|
1583
1640
|
isBridgeDestinationObservation,
|
|
1584
1641
|
isBridgeIntent,
|
|
1585
1642
|
isBridgeSourceObservation,
|
|
@@ -1628,6 +1685,7 @@ export {
|
|
|
1628
1685
|
isTransactionBoundWitnessWithStorageMeta,
|
|
1629
1686
|
isTransactionFeesBigInt,
|
|
1630
1687
|
isTransactionFeesHex,
|
|
1688
|
+
isTransactionRejection,
|
|
1631
1689
|
isTransfer,
|
|
1632
1690
|
isUnsignedBlockBoundWitness,
|
|
1633
1691
|
isUnsignedHydratedTransaction,
|