@xyo-network/xl1-protocol-model 2.0.8 → 2.0.10
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/TransferPayload.d.ts +16 -16
- package/dist/neutral/block/BlockBoundWitness.d.ts +51 -51
- package/dist/neutral/block/HydratedBlock.d.ts +103 -103
- package/dist/neutral/block/signed/SignedBlockBoundWitness.d.ts +12 -12
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +20 -20
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +24 -24
- package/dist/neutral/block/unsigned/UnsignedBlockBoundWitness.d.ts +12 -12
- package/dist/neutral/fields/Addressable.d.ts +2 -2
- package/dist/neutral/fields/Addressable.d.ts.map +1 -1
- package/dist/neutral/index.mjs +16 -15
- package/dist/neutral/index.mjs.map +3 -3
- package/dist/neutral/model/AccountBalance.d.ts +18 -17
- package/dist/neutral/model/AccountBalance.d.ts.map +1 -1
- package/dist/neutral/model/Context/ChainContext.zod.d.ts +6 -6
- package/dist/neutral/model/Context/HeadContext.zod.d.ts +4 -4
- package/dist/neutral/model/HydratedTransaction.d.ts +231 -231
- package/dist/neutral/model/Position.d.ts +3 -3
- package/dist/neutral/model/Position.d.ts.map +1 -1
- package/dist/neutral/model/RewardsRangeOptions.d.ts +2 -2
- package/dist/neutral/model/Stake.d.ts +28 -28
- package/dist/neutral/model/Stake.d.ts.map +1 -1
- package/dist/neutral/model/SyncStepSummary.d.ts +12 -12
- package/dist/neutral/model/TransferPair.d.ts +3 -3
- package/dist/neutral/model/TransferPair.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Executable.d.ts +3 -2
- package/dist/neutral/payload/elevatable/Executable.d.ts.map +1 -1
- package/dist/neutral/rejection/BlockRejectionPayload.d.ts +10 -10
- package/dist/neutral/rejection/TransactionRejectionPayload.d.ts +18 -18
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts +235 -235
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts.map +1 -1
- package/package.json +10 -8
package/dist/neutral/index.mjs
CHANGED
|
@@ -306,11 +306,11 @@ var asStepIdentityPayload = AsObjectFactory8.create(isStepIdentityPayload);
|
|
|
306
306
|
|
|
307
307
|
// src/transaction/TransactionBoundWitness.ts
|
|
308
308
|
import {
|
|
309
|
-
AddressZod,
|
|
310
309
|
zodAsFactory as zodAsFactory5,
|
|
311
310
|
zodIsFactory as zodIsFactory2,
|
|
312
311
|
zodToFactory as zodToFactory5
|
|
313
312
|
} from "@xylabs/sdk-js";
|
|
313
|
+
import { XyoAddressZod } from "@xyo-network/address";
|
|
314
314
|
import {
|
|
315
315
|
BoundWitnessZod,
|
|
316
316
|
HashMetaZod,
|
|
@@ -505,7 +505,7 @@ var BlockEndZod = z14.object({ exp: XL1BlockNumberZod });
|
|
|
505
505
|
var BlockDurationZod = z14.object({ nbf: XL1BlockNumberZod, exp: XL1BlockNumberZod });
|
|
506
506
|
var BlockScriptsZod = z14.object({ script: z14.optional(z14.array(z14.string())) });
|
|
507
507
|
var TransactionFeesZod = z14.object({ fees: TransactionFeesHexZod });
|
|
508
|
-
var TransactionBoundWitnessIdentityFields = z14.object({ chain: ChainZod, from:
|
|
508
|
+
var TransactionBoundWitnessIdentityFields = z14.object({ chain: ChainZod, from: XyoAddressZod });
|
|
509
509
|
var TransactionBoundWitnessFieldsZod = z14.safeExtend(
|
|
510
510
|
z14.safeExtend(
|
|
511
511
|
z14.safeExtend(
|
|
@@ -596,11 +596,11 @@ var TransactionGasCosts = {
|
|
|
596
596
|
|
|
597
597
|
// src/TransferPayload.ts
|
|
598
598
|
import {
|
|
599
|
-
AddressZod as AddressZod2,
|
|
600
599
|
AsObjectFactory as AsObjectFactory9,
|
|
601
600
|
HexZod as HexZod5,
|
|
602
601
|
JsonObjectZod
|
|
603
602
|
} from "@xylabs/sdk-js";
|
|
603
|
+
import { XyoAddressZod as XyoAddressZod2 } from "@xyo-network/address";
|
|
604
604
|
import {
|
|
605
605
|
asSchema as asSchema9,
|
|
606
606
|
isPayloadOfSchemaType as isPayloadOfSchemaType5,
|
|
@@ -613,8 +613,8 @@ var TransferFieldsZod = z15.object({
|
|
|
613
613
|
// $opCodes: z.array(z.string()).optional(),
|
|
614
614
|
context: z15.optional(JsonObjectZod),
|
|
615
615
|
epoch: z15.number(),
|
|
616
|
-
from:
|
|
617
|
-
transfers: z15.record(
|
|
616
|
+
from: XyoAddressZod2,
|
|
617
|
+
transfers: z15.record(XyoAddressZod2, HexZod5)
|
|
618
618
|
});
|
|
619
619
|
var TransferZod = z15.extend(PayloadZodOfSchema2(TransferSchema), TransferFieldsZod.shape);
|
|
620
620
|
var isTransfer = isPayloadOfSchemaType5(TransferSchema);
|
|
@@ -1250,13 +1250,13 @@ var XL1_REWARDS_MIN_BLOCK_REWARD = asAttoXL1(toFixedPoint(10n, XL1_REWARDS_PLACE
|
|
|
1250
1250
|
var XL1_REWARDS_CREATOR_REWARD = asAttoXL1(toFixedPoint(20000000000n, XL1_REWARDS_PLACES));
|
|
1251
1251
|
|
|
1252
1252
|
// src/model/RewardsRangeOptions.ts
|
|
1253
|
-
import {
|
|
1253
|
+
import { XyoAddressZod as XyoAddressZod3 } from "@xyo-network/address";
|
|
1254
1254
|
import { z as z36 } from "zod";
|
|
1255
1255
|
var RewardsRangeOptionsZod = z36.object({
|
|
1256
1256
|
positions: z36.array(z36.number()).optional(),
|
|
1257
1257
|
range: BlockRangeZod.optional(),
|
|
1258
1258
|
steps: z36.array(StepIdentityZod).optional(),
|
|
1259
|
-
stakers: z36.array(
|
|
1259
|
+
stakers: z36.array(XyoAddressZod3).optional()
|
|
1260
1260
|
});
|
|
1261
1261
|
|
|
1262
1262
|
// src/model/Sequence.ts
|
|
@@ -1273,7 +1273,8 @@ var SequenceToStringZod = z37.union([LocalSequenceToStringZod, QualifiedSequence
|
|
|
1273
1273
|
var SequenceFromStringZod = z37.union([LocalSequenceFromStringZod, QualifiedSequenceFromStringZod]);
|
|
1274
1274
|
|
|
1275
1275
|
// src/model/Stake.ts
|
|
1276
|
-
import {
|
|
1276
|
+
import { HexZod as HexZod6 } from "@xylabs/sdk-js";
|
|
1277
|
+
import { XyoAddressZod as XyoAddressZod4 } from "@xyo-network/address";
|
|
1277
1278
|
import { z as z38 } from "zod";
|
|
1278
1279
|
var StakeZod = z38.object({
|
|
1279
1280
|
amount: AttoZod,
|
|
@@ -1284,9 +1285,9 @@ var StakeZod = z38.object({
|
|
|
1284
1285
|
// the block number when the stake was removed (set to 0 if not removed)
|
|
1285
1286
|
removeBlock: z38.number(),
|
|
1286
1287
|
// the address that is being staked
|
|
1287
|
-
staked:
|
|
1288
|
+
staked: XyoAddressZod4,
|
|
1288
1289
|
// the address that owns the stake
|
|
1289
|
-
staker:
|
|
1290
|
+
staker: XyoAddressZod4,
|
|
1290
1291
|
// the block number when the stake was withdrawn (set to 0 if not withdrawn)
|
|
1291
1292
|
withdrawBlock: z38.number()
|
|
1292
1293
|
});
|
|
@@ -1295,8 +1296,8 @@ var StakeToJsonZod = StakeZod.transform((val) => ({
|
|
|
1295
1296
|
amount: BigIntToJsonZod2.parse(val.amount),
|
|
1296
1297
|
id: val.id,
|
|
1297
1298
|
removeBlock: val.removeBlock,
|
|
1298
|
-
staked:
|
|
1299
|
-
staker:
|
|
1299
|
+
staked: XyoAddressZod4.parse(val.staked),
|
|
1300
|
+
staker: XyoAddressZod4.parse(val.staker),
|
|
1300
1301
|
withdrawBlock: val.withdrawBlock
|
|
1301
1302
|
}));
|
|
1302
1303
|
var JsonToStakeZod = StakeZod.extend({ amount: HexZod6 }).transform((val) => ({
|
|
@@ -1355,11 +1356,11 @@ var TimeDomainZod = z40.union([
|
|
|
1355
1356
|
]);
|
|
1356
1357
|
|
|
1357
1358
|
// src/model/TransferPair.ts
|
|
1358
|
-
import {
|
|
1359
|
+
import { XyoAddressZod as XyoAddressZod5 } from "@xyo-network/address";
|
|
1359
1360
|
import { z as z41 } from "zod";
|
|
1360
1361
|
var TransferPairZod = z41.tuple([
|
|
1361
|
-
|
|
1362
|
-
|
|
1362
|
+
XyoAddressZod5,
|
|
1363
|
+
XyoAddressZod5
|
|
1363
1364
|
]);
|
|
1364
1365
|
|
|
1365
1366
|
// src/model/version.ts
|