bitbadgesjs-sdk 0.3.73 → 0.3.75
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/api-indexer/BitBadgesApi.d.ts +2 -1
- package/dist/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesApi.js +450 -375
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/docs/interfaces.d.ts +1 -0
- package/dist/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/api-indexer/requests/maps.d.ts +28 -3
- package/dist/api-indexer/requests/maps.d.ts.map +1 -1
- package/dist/api-indexer/requests/maps.js +19 -2
- package/dist/api-indexer/requests/maps.js.map +1 -1
- package/dist/api-indexer/requests/routes.d.ts +1 -0
- package/dist/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/api-indexer/requests/routes.js +1 -0
- package/dist/api-indexer/requests/routes.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3026,6 +3026,81 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3026
3026
|
return Promise.reject(error);
|
|
3027
3027
|
}
|
|
3028
3028
|
}
|
|
3029
|
+
async getMapValues(payload) {
|
|
3030
|
+
try {
|
|
3031
|
+
const validateRes = (input => {
|
|
3032
|
+
const errors = [];
|
|
3033
|
+
const __is = input => {
|
|
3034
|
+
const $io0 = input => Array.isArray(input.valuesToFetch) && input.valuesToFetch.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3035
|
+
const $io1 = input => "string" === typeof input.mapId && (Array.isArray(input.keys) && input.keys.every(elem => "string" === typeof elem));
|
|
3036
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
3037
|
+
};
|
|
3038
|
+
if (false === __is(input)) {
|
|
3039
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3040
|
+
((input, _path, _exceptionable = true) => {
|
|
3041
|
+
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.valuesToFetch) || $report(_exceptionable, {
|
|
3042
|
+
path: _path + ".valuesToFetch",
|
|
3043
|
+
expected: "Array<__type>",
|
|
3044
|
+
value: input.valuesToFetch
|
|
3045
|
+
})) && input.valuesToFetch.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3046
|
+
path: _path + ".valuesToFetch[" + _index1 + "]",
|
|
3047
|
+
expected: "__type",
|
|
3048
|
+
value: elem
|
|
3049
|
+
})) && $vo1(elem, _path + ".valuesToFetch[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3050
|
+
path: _path + ".valuesToFetch[" + _index1 + "]",
|
|
3051
|
+
expected: "__type",
|
|
3052
|
+
value: elem
|
|
3053
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3054
|
+
path: _path + ".valuesToFetch",
|
|
3055
|
+
expected: "Array<__type>",
|
|
3056
|
+
value: input.valuesToFetch
|
|
3057
|
+
})].every(flag => flag);
|
|
3058
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.mapId || $report(_exceptionable, {
|
|
3059
|
+
path: _path + ".mapId",
|
|
3060
|
+
expected: "string",
|
|
3061
|
+
value: input.mapId
|
|
3062
|
+
}), (Array.isArray(input.keys) || $report(_exceptionable, {
|
|
3063
|
+
path: _path + ".keys",
|
|
3064
|
+
expected: "Array<string>",
|
|
3065
|
+
value: input.keys
|
|
3066
|
+
})) && input.keys.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
|
|
3067
|
+
path: _path + ".keys[" + _index2 + "]",
|
|
3068
|
+
expected: "string",
|
|
3069
|
+
value: elem
|
|
3070
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3071
|
+
path: _path + ".keys",
|
|
3072
|
+
expected: "Array<string>",
|
|
3073
|
+
value: input.keys
|
|
3074
|
+
})].every(flag => flag);
|
|
3075
|
+
return ("object" === typeof input && null !== input || $report(true, {
|
|
3076
|
+
path: _path + "",
|
|
3077
|
+
expected: "GetMapValuesPayload",
|
|
3078
|
+
value: input
|
|
3079
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
3080
|
+
path: _path + "",
|
|
3081
|
+
expected: "GetMapValuesPayload",
|
|
3082
|
+
value: input
|
|
3083
|
+
});
|
|
3084
|
+
})(input, "$input", true);
|
|
3085
|
+
}
|
|
3086
|
+
const success = 0 === errors.length;
|
|
3087
|
+
return {
|
|
3088
|
+
success,
|
|
3089
|
+
errors,
|
|
3090
|
+
data: success ? input : undefined
|
|
3091
|
+
};
|
|
3092
|
+
})(payload ?? {});
|
|
3093
|
+
if (!validateRes.success) {
|
|
3094
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3095
|
+
}
|
|
3096
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetMapValuesRoute()}`, payload);
|
|
3097
|
+
return new maps_1.GetMapValuesSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3098
|
+
}
|
|
3099
|
+
catch (error) {
|
|
3100
|
+
await this.handleApiError(error);
|
|
3101
|
+
return Promise.reject(error);
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3029
3104
|
async filterBadgesInCollection(collectionId, payload) {
|
|
3030
3105
|
return await BitBadgesCollection_1.BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
|
|
3031
3106
|
}
|
|
@@ -3541,21 +3616,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3541
3616
|
const errors = [];
|
|
3542
3617
|
const __is = input => {
|
|
3543
3618
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3544
|
-
const $io1 = input => (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $
|
|
3545
|
-
const $io2 = input => Array.isArray(input.
|
|
3546
|
-
const $io3 = input =>
|
|
3547
|
-
const $io4 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
|
|
3548
|
-
const $io5 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
3549
|
-
const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
3550
|
-
const $io8 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io9(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io10(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
3551
|
-
const $io9 = input => Object.keys(input).every(key => {
|
|
3619
|
+
const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
|
|
3620
|
+
const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
3621
|
+
const $io3 = input => Object.keys(input).every(key => {
|
|
3552
3622
|
const value = input[key];
|
|
3553
3623
|
if (undefined === value)
|
|
3554
3624
|
return true;
|
|
3555
3625
|
return "string" === typeof value;
|
|
3556
3626
|
});
|
|
3557
|
-
const $
|
|
3558
|
-
const $
|
|
3627
|
+
const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3628
|
+
const $io5 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
3629
|
+
const $io6 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
3630
|
+
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
3631
|
+
const $io8 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem)));
|
|
3632
|
+
const $io9 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
3633
|
+
const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
3559
3634
|
const $io12 = input => (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
|
|
3560
3635
|
const $io13 = input => true;
|
|
3561
3636
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -3581,7 +3656,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3581
3656
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3582
3657
|
value: input.claims
|
|
3583
3658
|
})].every(flag => flag);
|
|
3584
|
-
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
3659
|
+
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3660
|
+
path: _path + ".metadata",
|
|
3661
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3662
|
+
value: input.metadata
|
|
3663
|
+
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3664
|
+
path: _path + ".metadata",
|
|
3665
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3666
|
+
value: input.metadata
|
|
3667
|
+
}), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3585
3668
|
path: _path + ".seedCode",
|
|
3586
3669
|
expected: "(string | undefined)",
|
|
3587
3670
|
value: input.seedCode
|
|
@@ -3593,7 +3676,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3593
3676
|
path: _path + ".balancesToSet",
|
|
3594
3677
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3595
3678
|
value: input.balancesToSet
|
|
3596
|
-
})) && $
|
|
3679
|
+
})) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3597
3680
|
path: _path + ".balancesToSet",
|
|
3598
3681
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3599
3682
|
value: input.balancesToSet
|
|
@@ -3605,14 +3688,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3605
3688
|
path: _path + ".approach",
|
|
3606
3689
|
expected: "(string | undefined)",
|
|
3607
3690
|
value: input.approach
|
|
3608
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3609
|
-
path: _path + ".metadata",
|
|
3610
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3611
|
-
value: input.metadata
|
|
3612
|
-
})) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3613
|
-
path: _path + ".metadata",
|
|
3614
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3615
|
-
value: input.metadata
|
|
3616
3691
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3617
3692
|
path: _path + ".assignMethod",
|
|
3618
3693
|
expected: "(string | undefined)",
|
|
@@ -3646,16 +3721,129 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3646
3721
|
expected: "Array<ManagePluginRequest>",
|
|
3647
3722
|
value: input.plugins
|
|
3648
3723
|
})].every(flag => flag);
|
|
3649
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
3724
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3725
|
+
path: _path + ".name",
|
|
3726
|
+
expected: "string",
|
|
3727
|
+
value: input.name
|
|
3728
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3729
|
+
path: _path + ".description",
|
|
3730
|
+
expected: "string",
|
|
3731
|
+
value: input.description
|
|
3732
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3733
|
+
path: _path + ".image",
|
|
3734
|
+
expected: "string",
|
|
3735
|
+
value: input.image
|
|
3736
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3737
|
+
path: _path + ".video",
|
|
3738
|
+
expected: "(string | undefined)",
|
|
3739
|
+
value: input.video
|
|
3740
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3741
|
+
path: _path + ".category",
|
|
3742
|
+
expected: "(string | undefined)",
|
|
3743
|
+
value: input.category
|
|
3744
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3745
|
+
path: _path + ".externalUrl",
|
|
3746
|
+
expected: "(string | undefined)",
|
|
3747
|
+
value: input.externalUrl
|
|
3748
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3749
|
+
path: _path + ".tags",
|
|
3750
|
+
expected: "(Array<string> | undefined)",
|
|
3751
|
+
value: input.tags
|
|
3752
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
3753
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
3754
|
+
expected: "string",
|
|
3755
|
+
value: elem
|
|
3756
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3757
|
+
path: _path + ".tags",
|
|
3758
|
+
expected: "(Array<string> | undefined)",
|
|
3759
|
+
value: input.tags
|
|
3760
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3761
|
+
path: _path + ".socials",
|
|
3762
|
+
expected: "(__type | undefined)",
|
|
3763
|
+
value: input.socials
|
|
3764
|
+
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3765
|
+
path: _path + ".socials",
|
|
3766
|
+
expected: "(__type | undefined)",
|
|
3767
|
+
value: input.socials
|
|
3768
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3769
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3770
|
+
expected: "(__type.o1 | undefined)",
|
|
3771
|
+
value: input.offChainTransferabilityInfo
|
|
3772
|
+
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3773
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3774
|
+
expected: "(__type.o1 | undefined)",
|
|
3775
|
+
value: input.offChainTransferabilityInfo
|
|
3776
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3777
|
+
path: _path + ".attributes",
|
|
3778
|
+
expected: "(Array<__type> | undefined)",
|
|
3779
|
+
value: input.attributes
|
|
3780
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3781
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
3782
|
+
expected: "__type.o2",
|
|
3783
|
+
value: elem
|
|
3784
|
+
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3785
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
3786
|
+
expected: "__type.o2",
|
|
3787
|
+
value: elem
|
|
3788
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3789
|
+
path: _path + ".attributes",
|
|
3790
|
+
expected: "(Array<__type> | undefined)",
|
|
3791
|
+
value: input.attributes
|
|
3792
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3793
|
+
path: _path + ".fetchedAtBlock",
|
|
3794
|
+
expected: "(bigint | number | string | undefined)",
|
|
3795
|
+
value: input.fetchedAtBlock
|
|
3796
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3797
|
+
path: _path + ".fetchedAt",
|
|
3798
|
+
expected: "(bigint | number | string | undefined)",
|
|
3799
|
+
value: input.fetchedAt
|
|
3800
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3801
|
+
path: _path + "._isUpdating",
|
|
3802
|
+
expected: "(boolean | undefined)",
|
|
3803
|
+
value: input._isUpdating
|
|
3804
|
+
})].every(flag => flag);
|
|
3805
|
+
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3806
|
+
const value = input[key];
|
|
3807
|
+
if (undefined === value)
|
|
3808
|
+
return true;
|
|
3809
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
3810
|
+
path: _path + $join(key),
|
|
3811
|
+
expected: "string",
|
|
3812
|
+
value: value
|
|
3813
|
+
});
|
|
3814
|
+
}).every(flag => flag)].every(flag => flag);
|
|
3815
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3816
|
+
path: _path + ".host",
|
|
3817
|
+
expected: "string",
|
|
3818
|
+
value: input.host
|
|
3819
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3820
|
+
path: _path + ".assignMethod",
|
|
3821
|
+
expected: "string",
|
|
3822
|
+
value: input.assignMethod
|
|
3823
|
+
})].every(flag => flag);
|
|
3824
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3825
|
+
path: _path + ".type",
|
|
3826
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
3827
|
+
value: input.type
|
|
3828
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3829
|
+
path: _path + ".name",
|
|
3830
|
+
expected: "string",
|
|
3831
|
+
value: input.name
|
|
3832
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3833
|
+
path: _path + ".value",
|
|
3834
|
+
expected: "(boolean | number | string)",
|
|
3835
|
+
value: input.value
|
|
3836
|
+
})].every(flag => flag);
|
|
3837
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3650
3838
|
path: _path + ".manualBalances",
|
|
3651
3839
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3652
3840
|
value: input.manualBalances
|
|
3653
|
-
})) && input.manualBalances.map((elem,
|
|
3654
|
-
path: _path + ".manualBalances[" +
|
|
3841
|
+
})) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3842
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
3655
3843
|
expected: "iManualBalances<NumberType>",
|
|
3656
3844
|
value: elem
|
|
3657
|
-
})) && $
|
|
3658
|
-
path: _path + ".manualBalances[" +
|
|
3845
|
+
})) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3846
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
3659
3847
|
expected: "iManualBalances<NumberType>",
|
|
3660
3848
|
value: elem
|
|
3661
3849
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3666,7 +3854,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3666
3854
|
path: _path + ".incrementedBalances",
|
|
3667
3855
|
expected: "iIncrementedBalances<NumberType>",
|
|
3668
3856
|
value: input.incrementedBalances
|
|
3669
|
-
})) && $
|
|
3857
|
+
})) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
3670
3858
|
path: _path + ".incrementedBalances",
|
|
3671
3859
|
expected: "iIncrementedBalances<NumberType>",
|
|
3672
3860
|
value: input.incrementedBalances
|
|
@@ -3674,21 +3862,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3674
3862
|
path: _path + ".orderCalculationMethod",
|
|
3675
3863
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3676
3864
|
value: input.orderCalculationMethod
|
|
3677
|
-
})) && $
|
|
3865
|
+
})) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
3678
3866
|
path: _path + ".orderCalculationMethod",
|
|
3679
3867
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3680
3868
|
value: input.orderCalculationMethod
|
|
3681
3869
|
})].every(flag => flag);
|
|
3682
|
-
const $
|
|
3870
|
+
const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
3683
3871
|
path: _path + ".balances",
|
|
3684
3872
|
expected: "Array<iBalance<NumberType>>",
|
|
3685
3873
|
value: input.balances
|
|
3686
|
-
})) && input.balances.map((elem,
|
|
3687
|
-
path: _path + ".balances[" +
|
|
3874
|
+
})) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3875
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
3688
3876
|
expected: "iBalance<NumberType>",
|
|
3689
3877
|
value: elem
|
|
3690
|
-
})) && $
|
|
3691
|
-
path: _path + ".balances[" +
|
|
3878
|
+
})) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3879
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
3692
3880
|
expected: "iBalance<NumberType>",
|
|
3693
3881
|
value: elem
|
|
3694
3882
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3696,7 +3884,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3696
3884
|
expected: "Array<iBalance<NumberType>>",
|
|
3697
3885
|
value: input.balances
|
|
3698
3886
|
})].every(flag => flag);
|
|
3699
|
-
const $
|
|
3887
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
3700
3888
|
path: _path + ".amount",
|
|
3701
3889
|
expected: "(bigint | number | string)",
|
|
3702
3890
|
value: input.amount
|
|
@@ -3704,12 +3892,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3704
3892
|
path: _path + ".badgeIds",
|
|
3705
3893
|
expected: "Array<iUintRange<NumberType>>",
|
|
3706
3894
|
value: input.badgeIds
|
|
3707
|
-
})) && input.badgeIds.map((elem,
|
|
3708
|
-
path: _path + ".badgeIds[" +
|
|
3895
|
+
})) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3896
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
3709
3897
|
expected: "iUintRange<NumberType>",
|
|
3710
3898
|
value: elem
|
|
3711
|
-
})) && $
|
|
3712
|
-
path: _path + ".badgeIds[" +
|
|
3899
|
+
})) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3900
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
3713
3901
|
expected: "iUintRange<NumberType>",
|
|
3714
3902
|
value: elem
|
|
3715
3903
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3720,12 +3908,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3720
3908
|
path: _path + ".ownershipTimes",
|
|
3721
3909
|
expected: "Array<iUintRange<NumberType>>",
|
|
3722
3910
|
value: input.ownershipTimes
|
|
3723
|
-
})) && input.ownershipTimes.map((elem,
|
|
3724
|
-
path: _path + ".ownershipTimes[" +
|
|
3911
|
+
})) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3912
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
3725
3913
|
expected: "iUintRange<NumberType>",
|
|
3726
3914
|
value: elem
|
|
3727
|
-
})) && $
|
|
3728
|
-
path: _path + ".ownershipTimes[" +
|
|
3915
|
+
})) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3916
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
3729
3917
|
expected: "iUintRange<NumberType>",
|
|
3730
3918
|
value: elem
|
|
3731
3919
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3733,7 +3921,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3733
3921
|
expected: "Array<iUintRange<NumberType>>",
|
|
3734
3922
|
value: input.ownershipTimes
|
|
3735
3923
|
})].every(flag => flag);
|
|
3736
|
-
const $
|
|
3924
|
+
const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
3737
3925
|
path: _path + ".start",
|
|
3738
3926
|
expected: "(bigint | number | string)",
|
|
3739
3927
|
value: input.start
|
|
@@ -3742,16 +3930,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3742
3930
|
expected: "(bigint | number | string)",
|
|
3743
3931
|
value: input.end
|
|
3744
3932
|
})].every(flag => flag);
|
|
3745
|
-
const $
|
|
3933
|
+
const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
3746
3934
|
path: _path + ".startBalances",
|
|
3747
3935
|
expected: "Array<iBalance<NumberType>>",
|
|
3748
3936
|
value: input.startBalances
|
|
3749
|
-
})) && input.startBalances.map((elem,
|
|
3750
|
-
path: _path + ".startBalances[" +
|
|
3937
|
+
})) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3938
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
3751
3939
|
expected: "iBalance<NumberType>",
|
|
3752
3940
|
value: elem
|
|
3753
|
-
})) && $
|
|
3754
|
-
path: _path + ".startBalances[" +
|
|
3941
|
+
})) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3942
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
3755
3943
|
expected: "iBalance<NumberType>",
|
|
3756
3944
|
value: elem
|
|
3757
3945
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3767,7 +3955,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3767
3955
|
expected: "(bigint | number | string)",
|
|
3768
3956
|
value: input.incrementOwnershipTimesBy
|
|
3769
3957
|
})].every(flag => flag);
|
|
3770
|
-
const $
|
|
3958
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
3771
3959
|
path: _path + ".useOverallNumTransfers",
|
|
3772
3960
|
expected: "boolean",
|
|
3773
3961
|
value: input.useOverallNumTransfers
|
|
@@ -3792,141 +3980,28 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3792
3980
|
expected: "string",
|
|
3793
3981
|
value: input.challengeTrackerId
|
|
3794
3982
|
})].every(flag => flag);
|
|
3795
|
-
const $
|
|
3796
|
-
path: _path + ".
|
|
3797
|
-
expected: "
|
|
3798
|
-
value: input.
|
|
3799
|
-
}), "
|
|
3800
|
-
path: _path + ".
|
|
3801
|
-
expected: "
|
|
3802
|
-
value: input.
|
|
3803
|
-
}), "
|
|
3804
|
-
path: _path + ".
|
|
3983
|
+
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
3984
|
+
path: _path + ".resetState",
|
|
3985
|
+
expected: "(boolean | undefined)",
|
|
3986
|
+
value: input.resetState
|
|
3987
|
+
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
3988
|
+
path: _path + ".newState",
|
|
3989
|
+
expected: "(__type.o3 | undefined)",
|
|
3990
|
+
value: input.newState
|
|
3991
|
+
})) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
3992
|
+
path: _path + ".newState",
|
|
3993
|
+
expected: "(__type.o3 | undefined)",
|
|
3994
|
+
value: input.newState
|
|
3995
|
+
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
3996
|
+
path: _path + ".onlyUpdateProvidedNewState",
|
|
3997
|
+
expected: "(boolean | undefined)",
|
|
3998
|
+
value: input.onlyUpdateProvidedNewState
|
|
3999
|
+
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
4000
|
+
path: _path + ".instanceId",
|
|
3805
4001
|
expected: "string",
|
|
3806
|
-
value: input.
|
|
3807
|
-
}),
|
|
3808
|
-
path: _path + ".
|
|
3809
|
-
expected: "(string | undefined)",
|
|
3810
|
-
value: input.video
|
|
3811
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3812
|
-
path: _path + ".category",
|
|
3813
|
-
expected: "(string | undefined)",
|
|
3814
|
-
value: input.category
|
|
3815
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3816
|
-
path: _path + ".externalUrl",
|
|
3817
|
-
expected: "(string | undefined)",
|
|
3818
|
-
value: input.externalUrl
|
|
3819
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3820
|
-
path: _path + ".tags",
|
|
3821
|
-
expected: "(Array<string> | undefined)",
|
|
3822
|
-
value: input.tags
|
|
3823
|
-
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
3824
|
-
path: _path + ".tags[" + _index8 + "]",
|
|
3825
|
-
expected: "string",
|
|
3826
|
-
value: elem
|
|
3827
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3828
|
-
path: _path + ".tags",
|
|
3829
|
-
expected: "(Array<string> | undefined)",
|
|
3830
|
-
value: input.tags
|
|
3831
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3832
|
-
path: _path + ".socials",
|
|
3833
|
-
expected: "(__type | undefined)",
|
|
3834
|
-
value: input.socials
|
|
3835
|
-
})) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3836
|
-
path: _path + ".socials",
|
|
3837
|
-
expected: "(__type | undefined)",
|
|
3838
|
-
value: input.socials
|
|
3839
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3840
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3841
|
-
expected: "(__type.o1 | undefined)",
|
|
3842
|
-
value: input.offChainTransferabilityInfo
|
|
3843
|
-
})) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3844
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3845
|
-
expected: "(__type.o1 | undefined)",
|
|
3846
|
-
value: input.offChainTransferabilityInfo
|
|
3847
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3848
|
-
path: _path + ".attributes",
|
|
3849
|
-
expected: "(Array<__type> | undefined)",
|
|
3850
|
-
value: input.attributes
|
|
3851
|
-
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3852
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
3853
|
-
expected: "__type.o2",
|
|
3854
|
-
value: elem
|
|
3855
|
-
})) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3856
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
3857
|
-
expected: "__type.o2",
|
|
3858
|
-
value: elem
|
|
3859
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3860
|
-
path: _path + ".attributes",
|
|
3861
|
-
expected: "(Array<__type> | undefined)",
|
|
3862
|
-
value: input.attributes
|
|
3863
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3864
|
-
path: _path + ".fetchedAtBlock",
|
|
3865
|
-
expected: "(bigint | number | string | undefined)",
|
|
3866
|
-
value: input.fetchedAtBlock
|
|
3867
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3868
|
-
path: _path + ".fetchedAt",
|
|
3869
|
-
expected: "(bigint | number | string | undefined)",
|
|
3870
|
-
value: input.fetchedAt
|
|
3871
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3872
|
-
path: _path + "._isUpdating",
|
|
3873
|
-
expected: "(boolean | undefined)",
|
|
3874
|
-
value: input._isUpdating
|
|
3875
|
-
})].every(flag => flag);
|
|
3876
|
-
const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3877
|
-
const value = input[key];
|
|
3878
|
-
if (undefined === value)
|
|
3879
|
-
return true;
|
|
3880
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
3881
|
-
path: _path + $join(key),
|
|
3882
|
-
expected: "string",
|
|
3883
|
-
value: value
|
|
3884
|
-
});
|
|
3885
|
-
}).every(flag => flag)].every(flag => flag);
|
|
3886
|
-
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3887
|
-
path: _path + ".host",
|
|
3888
|
-
expected: "string",
|
|
3889
|
-
value: input.host
|
|
3890
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3891
|
-
path: _path + ".assignMethod",
|
|
3892
|
-
expected: "string",
|
|
3893
|
-
value: input.assignMethod
|
|
3894
|
-
})].every(flag => flag);
|
|
3895
|
-
const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3896
|
-
path: _path + ".type",
|
|
3897
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
3898
|
-
value: input.type
|
|
3899
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3900
|
-
path: _path + ".name",
|
|
3901
|
-
expected: "string",
|
|
3902
|
-
value: input.name
|
|
3903
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3904
|
-
path: _path + ".value",
|
|
3905
|
-
expected: "(boolean | number | string)",
|
|
3906
|
-
value: input.value
|
|
3907
|
-
})].every(flag => flag);
|
|
3908
|
-
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
3909
|
-
path: _path + ".resetState",
|
|
3910
|
-
expected: "(boolean | undefined)",
|
|
3911
|
-
value: input.resetState
|
|
3912
|
-
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
3913
|
-
path: _path + ".newState",
|
|
3914
|
-
expected: "(__type.o3 | undefined)",
|
|
3915
|
-
value: input.newState
|
|
3916
|
-
})) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
3917
|
-
path: _path + ".newState",
|
|
3918
|
-
expected: "(__type.o3 | undefined)",
|
|
3919
|
-
value: input.newState
|
|
3920
|
-
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
3921
|
-
path: _path + ".onlyUpdateProvidedNewState",
|
|
3922
|
-
expected: "(boolean | undefined)",
|
|
3923
|
-
value: input.onlyUpdateProvidedNewState
|
|
3924
|
-
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
3925
|
-
path: _path + ".instanceId",
|
|
3926
|
-
expected: "string",
|
|
3927
|
-
value: input.instanceId
|
|
3928
|
-
}), "string" === typeof input.pluginId || $report(_exceptionable, {
|
|
3929
|
-
path: _path + ".pluginId",
|
|
4002
|
+
value: input.instanceId
|
|
4003
|
+
}), "string" === typeof input.pluginId || $report(_exceptionable, {
|
|
4004
|
+
path: _path + ".pluginId",
|
|
3930
4005
|
expected: "string",
|
|
3931
4006
|
value: input.pluginId
|
|
3932
4007
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
@@ -4037,23 +4112,23 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4037
4112
|
const errors = [];
|
|
4038
4113
|
const __is = input => {
|
|
4039
4114
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
4040
|
-
const $io1 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $
|
|
4041
|
-
const $io2 = input => Array.isArray(input.
|
|
4042
|
-
const $io3 = input =>
|
|
4043
|
-
const $io4 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
|
|
4044
|
-
const $io5 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
4045
|
-
const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
4046
|
-
const $io8 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io9(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io9(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
|
|
4047
|
-
const $io9 = input => true;
|
|
4048
|
-
const $io10 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io11(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io12(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
4049
|
-
const $io11 = input => Object.keys(input).every(key => {
|
|
4115
|
+
const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
|
|
4116
|
+
const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
4117
|
+
const $io3 = input => Object.keys(input).every(key => {
|
|
4050
4118
|
const value = input[key];
|
|
4051
4119
|
if (undefined === value)
|
|
4052
4120
|
return true;
|
|
4053
4121
|
return "string" === typeof value;
|
|
4054
4122
|
});
|
|
4055
|
-
const $
|
|
4056
|
-
const $
|
|
4123
|
+
const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
4124
|
+
const $io5 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
4125
|
+
const $io6 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
4126
|
+
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
4127
|
+
const $io8 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem)));
|
|
4128
|
+
const $io9 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
4129
|
+
const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
4130
|
+
const $io12 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io13(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
|
|
4131
|
+
const $io13 = input => true;
|
|
4057
4132
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4058
4133
|
};
|
|
4059
4134
|
if (false === __is(input)) {
|
|
@@ -4077,7 +4152,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4077
4152
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
4078
4153
|
value: input.claims
|
|
4079
4154
|
})].every(flag => flag);
|
|
4080
|
-
const $vo1 = (input, _path, _exceptionable = true) => ["
|
|
4155
|
+
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4156
|
+
path: _path + ".metadata",
|
|
4157
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4158
|
+
value: input.metadata
|
|
4159
|
+
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4160
|
+
path: _path + ".metadata",
|
|
4161
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4162
|
+
value: input.metadata
|
|
4163
|
+
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
4081
4164
|
path: _path + ".claimId",
|
|
4082
4165
|
expected: "string",
|
|
4083
4166
|
value: input.claimId
|
|
@@ -4085,7 +4168,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4085
4168
|
path: _path + ".balancesToSet",
|
|
4086
4169
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4087
4170
|
value: input.balancesToSet
|
|
4088
|
-
})) && $
|
|
4171
|
+
})) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4089
4172
|
path: _path + ".balancesToSet",
|
|
4090
4173
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4091
4174
|
value: input.balancesToSet
|
|
@@ -4097,7 +4180,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4097
4180
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4098
4181
|
expected: "IntegrationPluginDetails<string>",
|
|
4099
4182
|
value: elem
|
|
4100
|
-
})) && $
|
|
4183
|
+
})) && $vo12(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4101
4184
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4102
4185
|
expected: "IntegrationPluginDetails<string>",
|
|
4103
4186
|
value: elem
|
|
@@ -4113,29 +4196,134 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4113
4196
|
path: _path + ".approach",
|
|
4114
4197
|
expected: "(string | undefined)",
|
|
4115
4198
|
value: input.approach
|
|
4116
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4117
|
-
path: _path + ".metadata",
|
|
4118
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4119
|
-
value: input.metadata
|
|
4120
|
-
})) && $vo10(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4121
|
-
path: _path + ".metadata",
|
|
4122
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4123
|
-
value: input.metadata
|
|
4124
4199
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4125
4200
|
path: _path + ".assignMethod",
|
|
4126
4201
|
expected: "(string | undefined)",
|
|
4127
4202
|
value: input.assignMethod
|
|
4128
4203
|
})].every(flag => flag);
|
|
4129
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
4204
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4205
|
+
path: _path + ".name",
|
|
4206
|
+
expected: "string",
|
|
4207
|
+
value: input.name
|
|
4208
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4209
|
+
path: _path + ".description",
|
|
4210
|
+
expected: "string",
|
|
4211
|
+
value: input.description
|
|
4212
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4213
|
+
path: _path + ".image",
|
|
4214
|
+
expected: "string",
|
|
4215
|
+
value: input.image
|
|
4216
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4217
|
+
path: _path + ".video",
|
|
4218
|
+
expected: "(string | undefined)",
|
|
4219
|
+
value: input.video
|
|
4220
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4221
|
+
path: _path + ".category",
|
|
4222
|
+
expected: "(string | undefined)",
|
|
4223
|
+
value: input.category
|
|
4224
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4225
|
+
path: _path + ".externalUrl",
|
|
4226
|
+
expected: "(string | undefined)",
|
|
4227
|
+
value: input.externalUrl
|
|
4228
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4229
|
+
path: _path + ".tags",
|
|
4230
|
+
expected: "(Array<string> | undefined)",
|
|
4231
|
+
value: input.tags
|
|
4232
|
+
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
4233
|
+
path: _path + ".tags[" + _index3 + "]",
|
|
4234
|
+
expected: "string",
|
|
4235
|
+
value: elem
|
|
4236
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4237
|
+
path: _path + ".tags",
|
|
4238
|
+
expected: "(Array<string> | undefined)",
|
|
4239
|
+
value: input.tags
|
|
4240
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4241
|
+
path: _path + ".socials",
|
|
4242
|
+
expected: "(__type | undefined)",
|
|
4243
|
+
value: input.socials
|
|
4244
|
+
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4245
|
+
path: _path + ".socials",
|
|
4246
|
+
expected: "(__type | undefined)",
|
|
4247
|
+
value: input.socials
|
|
4248
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4249
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4250
|
+
expected: "(__type.o1 | undefined)",
|
|
4251
|
+
value: input.offChainTransferabilityInfo
|
|
4252
|
+
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4253
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4254
|
+
expected: "(__type.o1 | undefined)",
|
|
4255
|
+
value: input.offChainTransferabilityInfo
|
|
4256
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4257
|
+
path: _path + ".attributes",
|
|
4258
|
+
expected: "(Array<__type> | undefined)",
|
|
4259
|
+
value: input.attributes
|
|
4260
|
+
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4261
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
4262
|
+
expected: "__type.o2",
|
|
4263
|
+
value: elem
|
|
4264
|
+
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4265
|
+
path: _path + ".attributes[" + _index4 + "]",
|
|
4266
|
+
expected: "__type.o2",
|
|
4267
|
+
value: elem
|
|
4268
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4269
|
+
path: _path + ".attributes",
|
|
4270
|
+
expected: "(Array<__type> | undefined)",
|
|
4271
|
+
value: input.attributes
|
|
4272
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4273
|
+
path: _path + ".fetchedAtBlock",
|
|
4274
|
+
expected: "(bigint | number | string | undefined)",
|
|
4275
|
+
value: input.fetchedAtBlock
|
|
4276
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4277
|
+
path: _path + ".fetchedAt",
|
|
4278
|
+
expected: "(bigint | number | string | undefined)",
|
|
4279
|
+
value: input.fetchedAt
|
|
4280
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4281
|
+
path: _path + "._isUpdating",
|
|
4282
|
+
expected: "(boolean | undefined)",
|
|
4283
|
+
value: input._isUpdating
|
|
4284
|
+
})].every(flag => flag);
|
|
4285
|
+
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4286
|
+
const value = input[key];
|
|
4287
|
+
if (undefined === value)
|
|
4288
|
+
return true;
|
|
4289
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
4290
|
+
path: _path + $join(key),
|
|
4291
|
+
expected: "string",
|
|
4292
|
+
value: value
|
|
4293
|
+
});
|
|
4294
|
+
}).every(flag => flag)].every(flag => flag);
|
|
4295
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4296
|
+
path: _path + ".host",
|
|
4297
|
+
expected: "string",
|
|
4298
|
+
value: input.host
|
|
4299
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4300
|
+
path: _path + ".assignMethod",
|
|
4301
|
+
expected: "string",
|
|
4302
|
+
value: input.assignMethod
|
|
4303
|
+
})].every(flag => flag);
|
|
4304
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4305
|
+
path: _path + ".type",
|
|
4306
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
4307
|
+
value: input.type
|
|
4308
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4309
|
+
path: _path + ".name",
|
|
4310
|
+
expected: "string",
|
|
4311
|
+
value: input.name
|
|
4312
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4313
|
+
path: _path + ".value",
|
|
4314
|
+
expected: "(boolean | number | string)",
|
|
4315
|
+
value: input.value
|
|
4316
|
+
})].every(flag => flag);
|
|
4317
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4130
4318
|
path: _path + ".manualBalances",
|
|
4131
4319
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4132
4320
|
value: input.manualBalances
|
|
4133
|
-
})) && input.manualBalances.map((elem,
|
|
4134
|
-
path: _path + ".manualBalances[" +
|
|
4321
|
+
})) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4322
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
4135
4323
|
expected: "iManualBalances<NumberType>",
|
|
4136
4324
|
value: elem
|
|
4137
|
-
})) && $
|
|
4138
|
-
path: _path + ".manualBalances[" +
|
|
4325
|
+
})) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4326
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
4139
4327
|
expected: "iManualBalances<NumberType>",
|
|
4140
4328
|
value: elem
|
|
4141
4329
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4146,7 +4334,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4146
4334
|
path: _path + ".incrementedBalances",
|
|
4147
4335
|
expected: "iIncrementedBalances<NumberType>",
|
|
4148
4336
|
value: input.incrementedBalances
|
|
4149
|
-
})) && $
|
|
4337
|
+
})) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4150
4338
|
path: _path + ".incrementedBalances",
|
|
4151
4339
|
expected: "iIncrementedBalances<NumberType>",
|
|
4152
4340
|
value: input.incrementedBalances
|
|
@@ -4154,21 +4342,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4154
4342
|
path: _path + ".orderCalculationMethod",
|
|
4155
4343
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4156
4344
|
value: input.orderCalculationMethod
|
|
4157
|
-
})) && $
|
|
4345
|
+
})) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4158
4346
|
path: _path + ".orderCalculationMethod",
|
|
4159
4347
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4160
4348
|
value: input.orderCalculationMethod
|
|
4161
4349
|
})].every(flag => flag);
|
|
4162
|
-
const $
|
|
4350
|
+
const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4163
4351
|
path: _path + ".balances",
|
|
4164
4352
|
expected: "Array<iBalance<NumberType>>",
|
|
4165
4353
|
value: input.balances
|
|
4166
|
-
})) && input.balances.map((elem,
|
|
4167
|
-
path: _path + ".balances[" +
|
|
4354
|
+
})) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4355
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
4168
4356
|
expected: "iBalance<NumberType>",
|
|
4169
4357
|
value: elem
|
|
4170
|
-
})) && $
|
|
4171
|
-
path: _path + ".balances[" +
|
|
4358
|
+
})) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4359
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
4172
4360
|
expected: "iBalance<NumberType>",
|
|
4173
4361
|
value: elem
|
|
4174
4362
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4176,7 +4364,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4176
4364
|
expected: "Array<iBalance<NumberType>>",
|
|
4177
4365
|
value: input.balances
|
|
4178
4366
|
})].every(flag => flag);
|
|
4179
|
-
const $
|
|
4367
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
4180
4368
|
path: _path + ".amount",
|
|
4181
4369
|
expected: "(bigint | number | string)",
|
|
4182
4370
|
value: input.amount
|
|
@@ -4184,12 +4372,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4184
4372
|
path: _path + ".badgeIds",
|
|
4185
4373
|
expected: "Array<iUintRange<NumberType>>",
|
|
4186
4374
|
value: input.badgeIds
|
|
4187
|
-
})) && input.badgeIds.map((elem,
|
|
4188
|
-
path: _path + ".badgeIds[" +
|
|
4375
|
+
})) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4376
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
4189
4377
|
expected: "iUintRange<NumberType>",
|
|
4190
4378
|
value: elem
|
|
4191
|
-
})) && $
|
|
4192
|
-
path: _path + ".badgeIds[" +
|
|
4379
|
+
})) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4380
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
4193
4381
|
expected: "iUintRange<NumberType>",
|
|
4194
4382
|
value: elem
|
|
4195
4383
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4200,12 +4388,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4200
4388
|
path: _path + ".ownershipTimes",
|
|
4201
4389
|
expected: "Array<iUintRange<NumberType>>",
|
|
4202
4390
|
value: input.ownershipTimes
|
|
4203
|
-
})) && input.ownershipTimes.map((elem,
|
|
4204
|
-
path: _path + ".ownershipTimes[" +
|
|
4391
|
+
})) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4392
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
4205
4393
|
expected: "iUintRange<NumberType>",
|
|
4206
4394
|
value: elem
|
|
4207
|
-
})) && $
|
|
4208
|
-
path: _path + ".ownershipTimes[" +
|
|
4395
|
+
})) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4396
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
4209
4397
|
expected: "iUintRange<NumberType>",
|
|
4210
4398
|
value: elem
|
|
4211
4399
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4213,7 +4401,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4213
4401
|
expected: "Array<iUintRange<NumberType>>",
|
|
4214
4402
|
value: input.ownershipTimes
|
|
4215
4403
|
})].every(flag => flag);
|
|
4216
|
-
const $
|
|
4404
|
+
const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
4217
4405
|
path: _path + ".start",
|
|
4218
4406
|
expected: "(bigint | number | string)",
|
|
4219
4407
|
value: input.start
|
|
@@ -4222,16 +4410,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4222
4410
|
expected: "(bigint | number | string)",
|
|
4223
4411
|
value: input.end
|
|
4224
4412
|
})].every(flag => flag);
|
|
4225
|
-
const $
|
|
4413
|
+
const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4226
4414
|
path: _path + ".startBalances",
|
|
4227
4415
|
expected: "Array<iBalance<NumberType>>",
|
|
4228
4416
|
value: input.startBalances
|
|
4229
|
-
})) && input.startBalances.map((elem,
|
|
4230
|
-
path: _path + ".startBalances[" +
|
|
4417
|
+
})) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4418
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
4231
4419
|
expected: "iBalance<NumberType>",
|
|
4232
4420
|
value: elem
|
|
4233
|
-
})) && $
|
|
4234
|
-
path: _path + ".startBalances[" +
|
|
4421
|
+
})) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4422
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
4235
4423
|
expected: "iBalance<NumberType>",
|
|
4236
4424
|
value: elem
|
|
4237
4425
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4247,7 +4435,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4247
4435
|
expected: "(bigint | number | string)",
|
|
4248
4436
|
value: input.incrementOwnershipTimesBy
|
|
4249
4437
|
})].every(flag => flag);
|
|
4250
|
-
const $
|
|
4438
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4251
4439
|
path: _path + ".useOverallNumTransfers",
|
|
4252
4440
|
expected: "boolean",
|
|
4253
4441
|
value: input.useOverallNumTransfers
|
|
@@ -4272,21 +4460,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4272
4460
|
expected: "string",
|
|
4273
4461
|
value: input.challengeTrackerId
|
|
4274
4462
|
})].every(flag => flag);
|
|
4275
|
-
const $
|
|
4463
|
+
const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4276
4464
|
path: _path + ".publicState",
|
|
4277
|
-
expected: "__type",
|
|
4465
|
+
expected: "__type.o3",
|
|
4278
4466
|
value: input.publicState
|
|
4279
|
-
})) && $
|
|
4467
|
+
})) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
|
|
4280
4468
|
path: _path + ".publicState",
|
|
4281
|
-
expected: "__type",
|
|
4469
|
+
expected: "__type.o3",
|
|
4282
4470
|
value: input.publicState
|
|
4283
4471
|
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
|
|
4284
4472
|
path: _path + ".privateState",
|
|
4285
|
-
expected: "(__type | undefined)",
|
|
4473
|
+
expected: "(__type.o3 | undefined)",
|
|
4286
4474
|
value: input.privateState
|
|
4287
|
-
})) && $
|
|
4475
|
+
})) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
|
|
4288
4476
|
path: _path + ".privateState",
|
|
4289
|
-
expected: "(__type | undefined)",
|
|
4477
|
+
expected: "(__type.o3 | undefined)",
|
|
4290
4478
|
value: input.privateState
|
|
4291
4479
|
}), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
4292
4480
|
path: _path + ".resetState",
|
|
@@ -4294,11 +4482,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4294
4482
|
value: input.resetState
|
|
4295
4483
|
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
4296
4484
|
path: _path + ".newState",
|
|
4297
|
-
expected: "(__type | undefined)",
|
|
4485
|
+
expected: "(__type.o3 | undefined)",
|
|
4298
4486
|
value: input.newState
|
|
4299
|
-
})) && $
|
|
4487
|
+
})) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
4300
4488
|
path: _path + ".newState",
|
|
4301
|
-
expected: "(__type | undefined)",
|
|
4489
|
+
expected: "(__type.o3 | undefined)",
|
|
4302
4490
|
value: input.newState
|
|
4303
4491
|
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
4304
4492
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
@@ -4314,135 +4502,22 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4314
4502
|
value: input.pluginId
|
|
4315
4503
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4316
4504
|
path: _path + ".publicParams",
|
|
4317
|
-
expected: "__type",
|
|
4505
|
+
expected: "__type.o3",
|
|
4318
4506
|
value: input.publicParams
|
|
4319
|
-
})) && $
|
|
4507
|
+
})) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4320
4508
|
path: _path + ".publicParams",
|
|
4321
|
-
expected: "__type",
|
|
4509
|
+
expected: "__type.o3",
|
|
4322
4510
|
value: input.publicParams
|
|
4323
4511
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4324
4512
|
path: _path + ".privateParams",
|
|
4325
|
-
expected: "__type",
|
|
4513
|
+
expected: "__type.o3",
|
|
4326
4514
|
value: input.privateParams
|
|
4327
|
-
})) && $
|
|
4515
|
+
})) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4328
4516
|
path: _path + ".privateParams",
|
|
4329
|
-
expected: "__type",
|
|
4330
|
-
value: input.privateParams
|
|
4331
|
-
})].every(flag => flag);
|
|
4332
|
-
const $vo9 = (input, _path, _exceptionable = true) => true;
|
|
4333
|
-
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4334
|
-
path: _path + ".name",
|
|
4335
|
-
expected: "string",
|
|
4336
|
-
value: input.name
|
|
4337
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4338
|
-
path: _path + ".description",
|
|
4339
|
-
expected: "string",
|
|
4340
|
-
value: input.description
|
|
4341
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4342
|
-
path: _path + ".image",
|
|
4343
|
-
expected: "string",
|
|
4344
|
-
value: input.image
|
|
4345
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4346
|
-
path: _path + ".video",
|
|
4347
|
-
expected: "(string | undefined)",
|
|
4348
|
-
value: input.video
|
|
4349
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4350
|
-
path: _path + ".category",
|
|
4351
|
-
expected: "(string | undefined)",
|
|
4352
|
-
value: input.category
|
|
4353
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4354
|
-
path: _path + ".externalUrl",
|
|
4355
|
-
expected: "(string | undefined)",
|
|
4356
|
-
value: input.externalUrl
|
|
4357
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4358
|
-
path: _path + ".tags",
|
|
4359
|
-
expected: "(Array<string> | undefined)",
|
|
4360
|
-
value: input.tags
|
|
4361
|
-
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
4362
|
-
path: _path + ".tags[" + _index8 + "]",
|
|
4363
|
-
expected: "string",
|
|
4364
|
-
value: elem
|
|
4365
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4366
|
-
path: _path + ".tags",
|
|
4367
|
-
expected: "(Array<string> | undefined)",
|
|
4368
|
-
value: input.tags
|
|
4369
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4370
|
-
path: _path + ".socials",
|
|
4371
|
-
expected: "(__type.o1 | undefined)",
|
|
4372
|
-
value: input.socials
|
|
4373
|
-
})) && $vo11(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4374
|
-
path: _path + ".socials",
|
|
4375
|
-
expected: "(__type.o1 | undefined)",
|
|
4376
|
-
value: input.socials
|
|
4377
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4378
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4379
|
-
expected: "(__type.o2 | undefined)",
|
|
4380
|
-
value: input.offChainTransferabilityInfo
|
|
4381
|
-
})) && $vo12(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4382
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4383
|
-
expected: "(__type.o2 | undefined)",
|
|
4384
|
-
value: input.offChainTransferabilityInfo
|
|
4385
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4386
|
-
path: _path + ".attributes",
|
|
4387
|
-
expected: "(Array<__type> | undefined)",
|
|
4388
|
-
value: input.attributes
|
|
4389
|
-
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4390
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
4391
4517
|
expected: "__type.o3",
|
|
4392
|
-
value:
|
|
4393
|
-
})) && $vo13(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4394
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
4395
|
-
expected: "__type.o3",
|
|
4396
|
-
value: elem
|
|
4397
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4398
|
-
path: _path + ".attributes",
|
|
4399
|
-
expected: "(Array<__type> | undefined)",
|
|
4400
|
-
value: input.attributes
|
|
4401
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4402
|
-
path: _path + ".fetchedAtBlock",
|
|
4403
|
-
expected: "(bigint | number | string | undefined)",
|
|
4404
|
-
value: input.fetchedAtBlock
|
|
4405
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4406
|
-
path: _path + ".fetchedAt",
|
|
4407
|
-
expected: "(bigint | number | string | undefined)",
|
|
4408
|
-
value: input.fetchedAt
|
|
4409
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4410
|
-
path: _path + "._isUpdating",
|
|
4411
|
-
expected: "(boolean | undefined)",
|
|
4412
|
-
value: input._isUpdating
|
|
4413
|
-
})].every(flag => flag);
|
|
4414
|
-
const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4415
|
-
const value = input[key];
|
|
4416
|
-
if (undefined === value)
|
|
4417
|
-
return true;
|
|
4418
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
4419
|
-
path: _path + $join(key),
|
|
4420
|
-
expected: "string",
|
|
4421
|
-
value: value
|
|
4422
|
-
});
|
|
4423
|
-
}).every(flag => flag)].every(flag => flag);
|
|
4424
|
-
const $vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4425
|
-
path: _path + ".host",
|
|
4426
|
-
expected: "string",
|
|
4427
|
-
value: input.host
|
|
4428
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4429
|
-
path: _path + ".assignMethod",
|
|
4430
|
-
expected: "string",
|
|
4431
|
-
value: input.assignMethod
|
|
4432
|
-
})].every(flag => flag);
|
|
4433
|
-
const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4434
|
-
path: _path + ".type",
|
|
4435
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
4436
|
-
value: input.type
|
|
4437
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4438
|
-
path: _path + ".name",
|
|
4439
|
-
expected: "string",
|
|
4440
|
-
value: input.name
|
|
4441
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4442
|
-
path: _path + ".value",
|
|
4443
|
-
expected: "(boolean | number | string)",
|
|
4444
|
-
value: input.value
|
|
4518
|
+
value: input.privateParams
|
|
4445
4519
|
})].every(flag => flag);
|
|
4520
|
+
const $vo13 = (input, _path, _exceptionable = true) => true;
|
|
4446
4521
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
4447
4522
|
path: _path + "",
|
|
4448
4523
|
expected: "UpdateClaimPayload",
|
|
@@ -6194,8 +6269,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6194
6269
|
const $io8 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io9(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io10(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
6195
6270
|
const $io9 = input => true;
|
|
6196
6271
|
const $io10 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io11(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
6197
|
-
const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
6198
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6272
|
+
const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@202"] && Object.keys(input).every(key => {
|
|
6273
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
|
|
6199
6274
|
return true;
|
|
6200
6275
|
const value = input[key];
|
|
6201
6276
|
if (undefined === value)
|
|
@@ -6548,12 +6623,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6548
6623
|
path: _path + ".length",
|
|
6549
6624
|
expected: "number",
|
|
6550
6625
|
value: input.length
|
|
6551
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6552
|
-
path: _path + "[\"__@toStringTag@
|
|
6626
|
+
}), "Uint8Array" === input["__@toStringTag@202"] || $report(_exceptionable, {
|
|
6627
|
+
path: _path + "[\"__@toStringTag@202\"]",
|
|
6553
6628
|
expected: "\"Uint8Array\"",
|
|
6554
|
-
value: input["__@toStringTag@
|
|
6629
|
+
value: input["__@toStringTag@202"]
|
|
6555
6630
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6556
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6631
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
|
|
6557
6632
|
return true;
|
|
6558
6633
|
const value = input[key];
|
|
6559
6634
|
if (undefined === value)
|
|
@@ -6616,8 +6691,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6616
6691
|
const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
6617
6692
|
const $io4 = input => true;
|
|
6618
6693
|
const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
6619
|
-
const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
6620
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6694
|
+
const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@202"] && Object.keys(input).every(key => {
|
|
6695
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
|
|
6621
6696
|
return true;
|
|
6622
6697
|
const value = input[key];
|
|
6623
6698
|
if (undefined === value)
|
|
@@ -6831,12 +6906,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6831
6906
|
path: _path + ".length",
|
|
6832
6907
|
expected: "number",
|
|
6833
6908
|
value: input.length
|
|
6834
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6835
|
-
path: _path + "[\"__@toStringTag@
|
|
6909
|
+
}), "Uint8Array" === input["__@toStringTag@202"] || $report(_exceptionable, {
|
|
6910
|
+
path: _path + "[\"__@toStringTag@202\"]",
|
|
6836
6911
|
expected: "\"Uint8Array\"",
|
|
6837
|
-
value: input["__@toStringTag@
|
|
6912
|
+
value: input["__@toStringTag@202"]
|
|
6838
6913
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6839
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6914
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
|
|
6840
6915
|
return true;
|
|
6841
6916
|
const value = input[key];
|
|
6842
6917
|
if (undefined === value)
|