bitbadgesjs-sdk 0.3.72 → 0.3.74
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 +3 -3
- package/dist/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesApi.js +450 -378
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.d.ts +2 -25
- package/dist/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.js +1 -82
- package/dist/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/api-indexer/docs/docs.d.ts +1 -14
- package/dist/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/api-indexer/docs/docs.js +1 -29
- package/dist/api-indexer/docs/docs.js.map +1 -1
- package/dist/api-indexer/docs/interfaces.d.ts +0 -8
- package/dist/api-indexer/docs/interfaces.d.ts.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 -1
- package/dist/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/api-indexer/requests/routes.js +1 -1
- package/dist/api-indexer/requests/routes.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2921,9 +2921,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
2921
2921
|
return Promise.reject(error);
|
|
2922
2922
|
}
|
|
2923
2923
|
}
|
|
2924
|
-
async getFollowDetails(payload) {
|
|
2925
|
-
return await BitBadgesUserInfo_1.BitBadgesUserInfo.GetFollowDetails(this, payload);
|
|
2926
|
-
}
|
|
2927
2924
|
async getClaimAlerts(payload) {
|
|
2928
2925
|
try {
|
|
2929
2926
|
const validateRes = (input => {
|
|
@@ -3029,6 +3026,81 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3029
3026
|
return Promise.reject(error);
|
|
3030
3027
|
}
|
|
3031
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
|
+
}
|
|
3032
3104
|
async filterBadgesInCollection(collectionId, payload) {
|
|
3033
3105
|
return await BitBadgesCollection_1.BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
|
|
3034
3106
|
}
|
|
@@ -3544,21 +3616,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3544
3616
|
const errors = [];
|
|
3545
3617
|
const __is = input => {
|
|
3546
3618
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3547
|
-
const $io1 = input => (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $
|
|
3548
|
-
const $io2 = input => Array.isArray(input.
|
|
3549
|
-
const $io3 = input =>
|
|
3550
|
-
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)));
|
|
3551
|
-
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);
|
|
3552
|
-
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);
|
|
3553
|
-
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);
|
|
3554
|
-
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 => {
|
|
3555
3622
|
const value = input[key];
|
|
3556
3623
|
if (undefined === value)
|
|
3557
3624
|
return true;
|
|
3558
3625
|
return "string" === typeof value;
|
|
3559
3626
|
});
|
|
3560
|
-
const $
|
|
3561
|
-
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);
|
|
3562
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);
|
|
3563
3635
|
const $io13 = input => true;
|
|
3564
3636
|
return "object" === typeof input && null !== input && $io0(input);
|
|
@@ -3584,7 +3656,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3584
3656
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3585
3657
|
value: input.claims
|
|
3586
3658
|
})].every(flag => flag);
|
|
3587
|
-
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, {
|
|
3588
3668
|
path: _path + ".seedCode",
|
|
3589
3669
|
expected: "(string | undefined)",
|
|
3590
3670
|
value: input.seedCode
|
|
@@ -3596,7 +3676,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3596
3676
|
path: _path + ".balancesToSet",
|
|
3597
3677
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3598
3678
|
value: input.balancesToSet
|
|
3599
|
-
})) && $
|
|
3679
|
+
})) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3600
3680
|
path: _path + ".balancesToSet",
|
|
3601
3681
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3602
3682
|
value: input.balancesToSet
|
|
@@ -3608,14 +3688,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3608
3688
|
path: _path + ".approach",
|
|
3609
3689
|
expected: "(string | undefined)",
|
|
3610
3690
|
value: input.approach
|
|
3611
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3612
|
-
path: _path + ".metadata",
|
|
3613
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3614
|
-
value: input.metadata
|
|
3615
|
-
})) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3616
|
-
path: _path + ".metadata",
|
|
3617
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3618
|
-
value: input.metadata
|
|
3619
3691
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3620
3692
|
path: _path + ".assignMethod",
|
|
3621
3693
|
expected: "(string | undefined)",
|
|
@@ -3649,16 +3721,129 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3649
3721
|
expected: "Array<ManagePluginRequest>",
|
|
3650
3722
|
value: input.plugins
|
|
3651
3723
|
})].every(flag => flag);
|
|
3652
|
-
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, {
|
|
3653
3838
|
path: _path + ".manualBalances",
|
|
3654
3839
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3655
3840
|
value: input.manualBalances
|
|
3656
|
-
})) && input.manualBalances.map((elem,
|
|
3657
|
-
path: _path + ".manualBalances[" +
|
|
3841
|
+
})) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3842
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
3658
3843
|
expected: "iManualBalances<NumberType>",
|
|
3659
3844
|
value: elem
|
|
3660
|
-
})) && $
|
|
3661
|
-
path: _path + ".manualBalances[" +
|
|
3845
|
+
})) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3846
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
3662
3847
|
expected: "iManualBalances<NumberType>",
|
|
3663
3848
|
value: elem
|
|
3664
3849
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3669,7 +3854,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3669
3854
|
path: _path + ".incrementedBalances",
|
|
3670
3855
|
expected: "iIncrementedBalances<NumberType>",
|
|
3671
3856
|
value: input.incrementedBalances
|
|
3672
|
-
})) && $
|
|
3857
|
+
})) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
3673
3858
|
path: _path + ".incrementedBalances",
|
|
3674
3859
|
expected: "iIncrementedBalances<NumberType>",
|
|
3675
3860
|
value: input.incrementedBalances
|
|
@@ -3677,21 +3862,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3677
3862
|
path: _path + ".orderCalculationMethod",
|
|
3678
3863
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3679
3864
|
value: input.orderCalculationMethod
|
|
3680
|
-
})) && $
|
|
3865
|
+
})) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
3681
3866
|
path: _path + ".orderCalculationMethod",
|
|
3682
3867
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3683
3868
|
value: input.orderCalculationMethod
|
|
3684
3869
|
})].every(flag => flag);
|
|
3685
|
-
const $
|
|
3870
|
+
const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
3686
3871
|
path: _path + ".balances",
|
|
3687
3872
|
expected: "Array<iBalance<NumberType>>",
|
|
3688
3873
|
value: input.balances
|
|
3689
|
-
})) && input.balances.map((elem,
|
|
3690
|
-
path: _path + ".balances[" +
|
|
3874
|
+
})) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3875
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
3691
3876
|
expected: "iBalance<NumberType>",
|
|
3692
3877
|
value: elem
|
|
3693
|
-
})) && $
|
|
3694
|
-
path: _path + ".balances[" +
|
|
3878
|
+
})) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3879
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
3695
3880
|
expected: "iBalance<NumberType>",
|
|
3696
3881
|
value: elem
|
|
3697
3882
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3699,7 +3884,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3699
3884
|
expected: "Array<iBalance<NumberType>>",
|
|
3700
3885
|
value: input.balances
|
|
3701
3886
|
})].every(flag => flag);
|
|
3702
|
-
const $
|
|
3887
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
3703
3888
|
path: _path + ".amount",
|
|
3704
3889
|
expected: "(bigint | number | string)",
|
|
3705
3890
|
value: input.amount
|
|
@@ -3707,12 +3892,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3707
3892
|
path: _path + ".badgeIds",
|
|
3708
3893
|
expected: "Array<iUintRange<NumberType>>",
|
|
3709
3894
|
value: input.badgeIds
|
|
3710
|
-
})) && input.badgeIds.map((elem,
|
|
3711
|
-
path: _path + ".badgeIds[" +
|
|
3895
|
+
})) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3896
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
3712
3897
|
expected: "iUintRange<NumberType>",
|
|
3713
3898
|
value: elem
|
|
3714
|
-
})) && $
|
|
3715
|
-
path: _path + ".badgeIds[" +
|
|
3899
|
+
})) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3900
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
3716
3901
|
expected: "iUintRange<NumberType>",
|
|
3717
3902
|
value: elem
|
|
3718
3903
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3723,12 +3908,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3723
3908
|
path: _path + ".ownershipTimes",
|
|
3724
3909
|
expected: "Array<iUintRange<NumberType>>",
|
|
3725
3910
|
value: input.ownershipTimes
|
|
3726
|
-
})) && input.ownershipTimes.map((elem,
|
|
3727
|
-
path: _path + ".ownershipTimes[" +
|
|
3911
|
+
})) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3912
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
3728
3913
|
expected: "iUintRange<NumberType>",
|
|
3729
3914
|
value: elem
|
|
3730
|
-
})) && $
|
|
3731
|
-
path: _path + ".ownershipTimes[" +
|
|
3915
|
+
})) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3916
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
3732
3917
|
expected: "iUintRange<NumberType>",
|
|
3733
3918
|
value: elem
|
|
3734
3919
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3736,7 +3921,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3736
3921
|
expected: "Array<iUintRange<NumberType>>",
|
|
3737
3922
|
value: input.ownershipTimes
|
|
3738
3923
|
})].every(flag => flag);
|
|
3739
|
-
const $
|
|
3924
|
+
const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
3740
3925
|
path: _path + ".start",
|
|
3741
3926
|
expected: "(bigint | number | string)",
|
|
3742
3927
|
value: input.start
|
|
@@ -3745,16 +3930,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3745
3930
|
expected: "(bigint | number | string)",
|
|
3746
3931
|
value: input.end
|
|
3747
3932
|
})].every(flag => flag);
|
|
3748
|
-
const $
|
|
3933
|
+
const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
3749
3934
|
path: _path + ".startBalances",
|
|
3750
3935
|
expected: "Array<iBalance<NumberType>>",
|
|
3751
3936
|
value: input.startBalances
|
|
3752
|
-
})) && input.startBalances.map((elem,
|
|
3753
|
-
path: _path + ".startBalances[" +
|
|
3937
|
+
})) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3938
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
3754
3939
|
expected: "iBalance<NumberType>",
|
|
3755
3940
|
value: elem
|
|
3756
|
-
})) && $
|
|
3757
|
-
path: _path + ".startBalances[" +
|
|
3941
|
+
})) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3942
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
3758
3943
|
expected: "iBalance<NumberType>",
|
|
3759
3944
|
value: elem
|
|
3760
3945
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3770,7 +3955,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3770
3955
|
expected: "(bigint | number | string)",
|
|
3771
3956
|
value: input.incrementOwnershipTimesBy
|
|
3772
3957
|
})].every(flag => flag);
|
|
3773
|
-
const $
|
|
3958
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
3774
3959
|
path: _path + ".useOverallNumTransfers",
|
|
3775
3960
|
expected: "boolean",
|
|
3776
3961
|
value: input.useOverallNumTransfers
|
|
@@ -3795,141 +3980,28 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
3795
3980
|
expected: "string",
|
|
3796
3981
|
value: input.challengeTrackerId
|
|
3797
3982
|
})].every(flag => flag);
|
|
3798
|
-
const $
|
|
3799
|
-
path: _path + ".
|
|
3800
|
-
expected: "
|
|
3801
|
-
value: input.
|
|
3802
|
-
}), "
|
|
3803
|
-
path: _path + ".
|
|
3804
|
-
expected: "
|
|
3805
|
-
value: input.
|
|
3806
|
-
}), "
|
|
3807
|
-
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",
|
|
3808
4001
|
expected: "string",
|
|
3809
|
-
value: input.
|
|
3810
|
-
}),
|
|
3811
|
-
path: _path + ".
|
|
3812
|
-
expected: "(string | undefined)",
|
|
3813
|
-
value: input.video
|
|
3814
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3815
|
-
path: _path + ".category",
|
|
3816
|
-
expected: "(string | undefined)",
|
|
3817
|
-
value: input.category
|
|
3818
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3819
|
-
path: _path + ".externalUrl",
|
|
3820
|
-
expected: "(string | undefined)",
|
|
3821
|
-
value: input.externalUrl
|
|
3822
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3823
|
-
path: _path + ".tags",
|
|
3824
|
-
expected: "(Array<string> | undefined)",
|
|
3825
|
-
value: input.tags
|
|
3826
|
-
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
3827
|
-
path: _path + ".tags[" + _index8 + "]",
|
|
3828
|
-
expected: "string",
|
|
3829
|
-
value: elem
|
|
3830
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3831
|
-
path: _path + ".tags",
|
|
3832
|
-
expected: "(Array<string> | undefined)",
|
|
3833
|
-
value: input.tags
|
|
3834
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3835
|
-
path: _path + ".socials",
|
|
3836
|
-
expected: "(__type | undefined)",
|
|
3837
|
-
value: input.socials
|
|
3838
|
-
})) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3839
|
-
path: _path + ".socials",
|
|
3840
|
-
expected: "(__type | undefined)",
|
|
3841
|
-
value: input.socials
|
|
3842
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3843
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3844
|
-
expected: "(__type.o1 | undefined)",
|
|
3845
|
-
value: input.offChainTransferabilityInfo
|
|
3846
|
-
})) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3847
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3848
|
-
expected: "(__type.o1 | undefined)",
|
|
3849
|
-
value: input.offChainTransferabilityInfo
|
|
3850
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3851
|
-
path: _path + ".attributes",
|
|
3852
|
-
expected: "(Array<__type> | undefined)",
|
|
3853
|
-
value: input.attributes
|
|
3854
|
-
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3855
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
3856
|
-
expected: "__type.o2",
|
|
3857
|
-
value: elem
|
|
3858
|
-
})) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3859
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
3860
|
-
expected: "__type.o2",
|
|
3861
|
-
value: elem
|
|
3862
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3863
|
-
path: _path + ".attributes",
|
|
3864
|
-
expected: "(Array<__type> | undefined)",
|
|
3865
|
-
value: input.attributes
|
|
3866
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3867
|
-
path: _path + ".fetchedAtBlock",
|
|
3868
|
-
expected: "(bigint | number | string | undefined)",
|
|
3869
|
-
value: input.fetchedAtBlock
|
|
3870
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3871
|
-
path: _path + ".fetchedAt",
|
|
3872
|
-
expected: "(bigint | number | string | undefined)",
|
|
3873
|
-
value: input.fetchedAt
|
|
3874
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3875
|
-
path: _path + "._isUpdating",
|
|
3876
|
-
expected: "(boolean | undefined)",
|
|
3877
|
-
value: input._isUpdating
|
|
3878
|
-
})].every(flag => flag);
|
|
3879
|
-
const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3880
|
-
const value = input[key];
|
|
3881
|
-
if (undefined === value)
|
|
3882
|
-
return true;
|
|
3883
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
3884
|
-
path: _path + $join(key),
|
|
3885
|
-
expected: "string",
|
|
3886
|
-
value: value
|
|
3887
|
-
});
|
|
3888
|
-
}).every(flag => flag)].every(flag => flag);
|
|
3889
|
-
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3890
|
-
path: _path + ".host",
|
|
3891
|
-
expected: "string",
|
|
3892
|
-
value: input.host
|
|
3893
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3894
|
-
path: _path + ".assignMethod",
|
|
3895
|
-
expected: "string",
|
|
3896
|
-
value: input.assignMethod
|
|
3897
|
-
})].every(flag => flag);
|
|
3898
|
-
const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3899
|
-
path: _path + ".type",
|
|
3900
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
3901
|
-
value: input.type
|
|
3902
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3903
|
-
path: _path + ".name",
|
|
3904
|
-
expected: "string",
|
|
3905
|
-
value: input.name
|
|
3906
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3907
|
-
path: _path + ".value",
|
|
3908
|
-
expected: "(boolean | number | string)",
|
|
3909
|
-
value: input.value
|
|
3910
|
-
})].every(flag => flag);
|
|
3911
|
-
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
3912
|
-
path: _path + ".resetState",
|
|
3913
|
-
expected: "(boolean | undefined)",
|
|
3914
|
-
value: input.resetState
|
|
3915
|
-
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
3916
|
-
path: _path + ".newState",
|
|
3917
|
-
expected: "(__type.o3 | undefined)",
|
|
3918
|
-
value: input.newState
|
|
3919
|
-
})) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
3920
|
-
path: _path + ".newState",
|
|
3921
|
-
expected: "(__type.o3 | undefined)",
|
|
3922
|
-
value: input.newState
|
|
3923
|
-
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
3924
|
-
path: _path + ".onlyUpdateProvidedNewState",
|
|
3925
|
-
expected: "(boolean | undefined)",
|
|
3926
|
-
value: input.onlyUpdateProvidedNewState
|
|
3927
|
-
}), "string" === typeof input.instanceId || $report(_exceptionable, {
|
|
3928
|
-
path: _path + ".instanceId",
|
|
3929
|
-
expected: "string",
|
|
3930
|
-
value: input.instanceId
|
|
3931
|
-
}), "string" === typeof input.pluginId || $report(_exceptionable, {
|
|
3932
|
-
path: _path + ".pluginId",
|
|
4002
|
+
value: input.instanceId
|
|
4003
|
+
}), "string" === typeof input.pluginId || $report(_exceptionable, {
|
|
4004
|
+
path: _path + ".pluginId",
|
|
3933
4005
|
expected: "string",
|
|
3934
4006
|
value: input.pluginId
|
|
3935
4007
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
@@ -4040,23 +4112,23 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4040
4112
|
const errors = [];
|
|
4041
4113
|
const __is = input => {
|
|
4042
4114
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
4043
|
-
const $io1 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $
|
|
4044
|
-
const $io2 = input => Array.isArray(input.
|
|
4045
|
-
const $io3 = input =>
|
|
4046
|
-
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)));
|
|
4047
|
-
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);
|
|
4048
|
-
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);
|
|
4049
|
-
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);
|
|
4050
|
-
const $io9 = input => true;
|
|
4051
|
-
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);
|
|
4052
|
-
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 => {
|
|
4053
4118
|
const value = input[key];
|
|
4054
4119
|
if (undefined === value)
|
|
4055
4120
|
return true;
|
|
4056
4121
|
return "string" === typeof value;
|
|
4057
4122
|
});
|
|
4058
|
-
const $
|
|
4059
|
-
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;
|
|
4060
4132
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4061
4133
|
};
|
|
4062
4134
|
if (false === __is(input)) {
|
|
@@ -4080,7 +4152,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4080
4152
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
4081
4153
|
value: input.claims
|
|
4082
4154
|
})].every(flag => flag);
|
|
4083
|
-
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, {
|
|
4084
4164
|
path: _path + ".claimId",
|
|
4085
4165
|
expected: "string",
|
|
4086
4166
|
value: input.claimId
|
|
@@ -4088,7 +4168,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4088
4168
|
path: _path + ".balancesToSet",
|
|
4089
4169
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4090
4170
|
value: input.balancesToSet
|
|
4091
|
-
})) && $
|
|
4171
|
+
})) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4092
4172
|
path: _path + ".balancesToSet",
|
|
4093
4173
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4094
4174
|
value: input.balancesToSet
|
|
@@ -4100,7 +4180,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4100
4180
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4101
4181
|
expected: "IntegrationPluginDetails<string>",
|
|
4102
4182
|
value: elem
|
|
4103
|
-
})) && $
|
|
4183
|
+
})) && $vo12(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4104
4184
|
path: _path + ".plugins[" + _index2 + "]",
|
|
4105
4185
|
expected: "IntegrationPluginDetails<string>",
|
|
4106
4186
|
value: elem
|
|
@@ -4116,29 +4196,134 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4116
4196
|
path: _path + ".approach",
|
|
4117
4197
|
expected: "(string | undefined)",
|
|
4118
4198
|
value: input.approach
|
|
4119
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4120
|
-
path: _path + ".metadata",
|
|
4121
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4122
|
-
value: input.metadata
|
|
4123
|
-
})) && $vo10(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4124
|
-
path: _path + ".metadata",
|
|
4125
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4126
|
-
value: input.metadata
|
|
4127
4199
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4128
4200
|
path: _path + ".assignMethod",
|
|
4129
4201
|
expected: "(string | undefined)",
|
|
4130
4202
|
value: input.assignMethod
|
|
4131
4203
|
})].every(flag => flag);
|
|
4132
|
-
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, {
|
|
4133
4318
|
path: _path + ".manualBalances",
|
|
4134
4319
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4135
4320
|
value: input.manualBalances
|
|
4136
|
-
})) && input.manualBalances.map((elem,
|
|
4137
|
-
path: _path + ".manualBalances[" +
|
|
4321
|
+
})) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4322
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
4138
4323
|
expected: "iManualBalances<NumberType>",
|
|
4139
4324
|
value: elem
|
|
4140
|
-
})) && $
|
|
4141
|
-
path: _path + ".manualBalances[" +
|
|
4325
|
+
})) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4326
|
+
path: _path + ".manualBalances[" + _index5 + "]",
|
|
4142
4327
|
expected: "iManualBalances<NumberType>",
|
|
4143
4328
|
value: elem
|
|
4144
4329
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4149,7 +4334,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4149
4334
|
path: _path + ".incrementedBalances",
|
|
4150
4335
|
expected: "iIncrementedBalances<NumberType>",
|
|
4151
4336
|
value: input.incrementedBalances
|
|
4152
|
-
})) && $
|
|
4337
|
+
})) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4153
4338
|
path: _path + ".incrementedBalances",
|
|
4154
4339
|
expected: "iIncrementedBalances<NumberType>",
|
|
4155
4340
|
value: input.incrementedBalances
|
|
@@ -4157,21 +4342,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4157
4342
|
path: _path + ".orderCalculationMethod",
|
|
4158
4343
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4159
4344
|
value: input.orderCalculationMethod
|
|
4160
|
-
})) && $
|
|
4345
|
+
})) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4161
4346
|
path: _path + ".orderCalculationMethod",
|
|
4162
4347
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4163
4348
|
value: input.orderCalculationMethod
|
|
4164
4349
|
})].every(flag => flag);
|
|
4165
|
-
const $
|
|
4350
|
+
const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4166
4351
|
path: _path + ".balances",
|
|
4167
4352
|
expected: "Array<iBalance<NumberType>>",
|
|
4168
4353
|
value: input.balances
|
|
4169
|
-
})) && input.balances.map((elem,
|
|
4170
|
-
path: _path + ".balances[" +
|
|
4354
|
+
})) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4355
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
4171
4356
|
expected: "iBalance<NumberType>",
|
|
4172
4357
|
value: elem
|
|
4173
|
-
})) && $
|
|
4174
|
-
path: _path + ".balances[" +
|
|
4358
|
+
})) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4359
|
+
path: _path + ".balances[" + _index6 + "]",
|
|
4175
4360
|
expected: "iBalance<NumberType>",
|
|
4176
4361
|
value: elem
|
|
4177
4362
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4179,7 +4364,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4179
4364
|
expected: "Array<iBalance<NumberType>>",
|
|
4180
4365
|
value: input.balances
|
|
4181
4366
|
})].every(flag => flag);
|
|
4182
|
-
const $
|
|
4367
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
4183
4368
|
path: _path + ".amount",
|
|
4184
4369
|
expected: "(bigint | number | string)",
|
|
4185
4370
|
value: input.amount
|
|
@@ -4187,12 +4372,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4187
4372
|
path: _path + ".badgeIds",
|
|
4188
4373
|
expected: "Array<iUintRange<NumberType>>",
|
|
4189
4374
|
value: input.badgeIds
|
|
4190
|
-
})) && input.badgeIds.map((elem,
|
|
4191
|
-
path: _path + ".badgeIds[" +
|
|
4375
|
+
})) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4376
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
4192
4377
|
expected: "iUintRange<NumberType>",
|
|
4193
4378
|
value: elem
|
|
4194
|
-
})) && $
|
|
4195
|
-
path: _path + ".badgeIds[" +
|
|
4379
|
+
})) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4380
|
+
path: _path + ".badgeIds[" + _index7 + "]",
|
|
4196
4381
|
expected: "iUintRange<NumberType>",
|
|
4197
4382
|
value: elem
|
|
4198
4383
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4203,12 +4388,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4203
4388
|
path: _path + ".ownershipTimes",
|
|
4204
4389
|
expected: "Array<iUintRange<NumberType>>",
|
|
4205
4390
|
value: input.ownershipTimes
|
|
4206
|
-
})) && input.ownershipTimes.map((elem,
|
|
4207
|
-
path: _path + ".ownershipTimes[" +
|
|
4391
|
+
})) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4392
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
4208
4393
|
expected: "iUintRange<NumberType>",
|
|
4209
4394
|
value: elem
|
|
4210
|
-
})) && $
|
|
4211
|
-
path: _path + ".ownershipTimes[" +
|
|
4395
|
+
})) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4396
|
+
path: _path + ".ownershipTimes[" + _index8 + "]",
|
|
4212
4397
|
expected: "iUintRange<NumberType>",
|
|
4213
4398
|
value: elem
|
|
4214
4399
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4216,7 +4401,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4216
4401
|
expected: "Array<iUintRange<NumberType>>",
|
|
4217
4402
|
value: input.ownershipTimes
|
|
4218
4403
|
})].every(flag => flag);
|
|
4219
|
-
const $
|
|
4404
|
+
const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
4220
4405
|
path: _path + ".start",
|
|
4221
4406
|
expected: "(bigint | number | string)",
|
|
4222
4407
|
value: input.start
|
|
@@ -4225,16 +4410,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4225
4410
|
expected: "(bigint | number | string)",
|
|
4226
4411
|
value: input.end
|
|
4227
4412
|
})].every(flag => flag);
|
|
4228
|
-
const $
|
|
4413
|
+
const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4229
4414
|
path: _path + ".startBalances",
|
|
4230
4415
|
expected: "Array<iBalance<NumberType>>",
|
|
4231
4416
|
value: input.startBalances
|
|
4232
|
-
})) && input.startBalances.map((elem,
|
|
4233
|
-
path: _path + ".startBalances[" +
|
|
4417
|
+
})) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4418
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
4234
4419
|
expected: "iBalance<NumberType>",
|
|
4235
4420
|
value: elem
|
|
4236
|
-
})) && $
|
|
4237
|
-
path: _path + ".startBalances[" +
|
|
4421
|
+
})) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4422
|
+
path: _path + ".startBalances[" + _index9 + "]",
|
|
4238
4423
|
expected: "iBalance<NumberType>",
|
|
4239
4424
|
value: elem
|
|
4240
4425
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4250,7 +4435,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4250
4435
|
expected: "(bigint | number | string)",
|
|
4251
4436
|
value: input.incrementOwnershipTimesBy
|
|
4252
4437
|
})].every(flag => flag);
|
|
4253
|
-
const $
|
|
4438
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4254
4439
|
path: _path + ".useOverallNumTransfers",
|
|
4255
4440
|
expected: "boolean",
|
|
4256
4441
|
value: input.useOverallNumTransfers
|
|
@@ -4275,21 +4460,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4275
4460
|
expected: "string",
|
|
4276
4461
|
value: input.challengeTrackerId
|
|
4277
4462
|
})].every(flag => flag);
|
|
4278
|
-
const $
|
|
4463
|
+
const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4279
4464
|
path: _path + ".publicState",
|
|
4280
|
-
expected: "__type",
|
|
4465
|
+
expected: "__type.o3",
|
|
4281
4466
|
value: input.publicState
|
|
4282
|
-
})) && $
|
|
4467
|
+
})) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
|
|
4283
4468
|
path: _path + ".publicState",
|
|
4284
|
-
expected: "__type",
|
|
4469
|
+
expected: "__type.o3",
|
|
4285
4470
|
value: input.publicState
|
|
4286
4471
|
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
|
|
4287
4472
|
path: _path + ".privateState",
|
|
4288
|
-
expected: "(__type | undefined)",
|
|
4473
|
+
expected: "(__type.o3 | undefined)",
|
|
4289
4474
|
value: input.privateState
|
|
4290
|
-
})) && $
|
|
4475
|
+
})) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
|
|
4291
4476
|
path: _path + ".privateState",
|
|
4292
|
-
expected: "(__type | undefined)",
|
|
4477
|
+
expected: "(__type.o3 | undefined)",
|
|
4293
4478
|
value: input.privateState
|
|
4294
4479
|
}), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
4295
4480
|
path: _path + ".resetState",
|
|
@@ -4297,11 +4482,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4297
4482
|
value: input.resetState
|
|
4298
4483
|
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
4299
4484
|
path: _path + ".newState",
|
|
4300
|
-
expected: "(__type | undefined)",
|
|
4485
|
+
expected: "(__type.o3 | undefined)",
|
|
4301
4486
|
value: input.newState
|
|
4302
|
-
})) && $
|
|
4487
|
+
})) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
4303
4488
|
path: _path + ".newState",
|
|
4304
|
-
expected: "(__type | undefined)",
|
|
4489
|
+
expected: "(__type.o3 | undefined)",
|
|
4305
4490
|
value: input.newState
|
|
4306
4491
|
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
4307
4492
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
@@ -4317,135 +4502,22 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4317
4502
|
value: input.pluginId
|
|
4318
4503
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4319
4504
|
path: _path + ".publicParams",
|
|
4320
|
-
expected: "__type",
|
|
4505
|
+
expected: "__type.o3",
|
|
4321
4506
|
value: input.publicParams
|
|
4322
|
-
})) && $
|
|
4507
|
+
})) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4323
4508
|
path: _path + ".publicParams",
|
|
4324
|
-
expected: "__type",
|
|
4509
|
+
expected: "__type.o3",
|
|
4325
4510
|
value: input.publicParams
|
|
4326
4511
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4327
4512
|
path: _path + ".privateParams",
|
|
4328
|
-
expected: "__type",
|
|
4513
|
+
expected: "__type.o3",
|
|
4329
4514
|
value: input.privateParams
|
|
4330
|
-
})) && $
|
|
4515
|
+
})) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4331
4516
|
path: _path + ".privateParams",
|
|
4332
|
-
expected: "__type",
|
|
4333
|
-
value: input.privateParams
|
|
4334
|
-
})].every(flag => flag);
|
|
4335
|
-
const $vo9 = (input, _path, _exceptionable = true) => true;
|
|
4336
|
-
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4337
|
-
path: _path + ".name",
|
|
4338
|
-
expected: "string",
|
|
4339
|
-
value: input.name
|
|
4340
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4341
|
-
path: _path + ".description",
|
|
4342
|
-
expected: "string",
|
|
4343
|
-
value: input.description
|
|
4344
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4345
|
-
path: _path + ".image",
|
|
4346
|
-
expected: "string",
|
|
4347
|
-
value: input.image
|
|
4348
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4349
|
-
path: _path + ".video",
|
|
4350
|
-
expected: "(string | undefined)",
|
|
4351
|
-
value: input.video
|
|
4352
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4353
|
-
path: _path + ".category",
|
|
4354
|
-
expected: "(string | undefined)",
|
|
4355
|
-
value: input.category
|
|
4356
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4357
|
-
path: _path + ".externalUrl",
|
|
4358
|
-
expected: "(string | undefined)",
|
|
4359
|
-
value: input.externalUrl
|
|
4360
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4361
|
-
path: _path + ".tags",
|
|
4362
|
-
expected: "(Array<string> | undefined)",
|
|
4363
|
-
value: input.tags
|
|
4364
|
-
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
4365
|
-
path: _path + ".tags[" + _index8 + "]",
|
|
4366
|
-
expected: "string",
|
|
4367
|
-
value: elem
|
|
4368
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4369
|
-
path: _path + ".tags",
|
|
4370
|
-
expected: "(Array<string> | undefined)",
|
|
4371
|
-
value: input.tags
|
|
4372
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4373
|
-
path: _path + ".socials",
|
|
4374
|
-
expected: "(__type.o1 | undefined)",
|
|
4375
|
-
value: input.socials
|
|
4376
|
-
})) && $vo11(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4377
|
-
path: _path + ".socials",
|
|
4378
|
-
expected: "(__type.o1 | undefined)",
|
|
4379
|
-
value: input.socials
|
|
4380
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4381
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4382
|
-
expected: "(__type.o2 | undefined)",
|
|
4383
|
-
value: input.offChainTransferabilityInfo
|
|
4384
|
-
})) && $vo12(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4385
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4386
|
-
expected: "(__type.o2 | undefined)",
|
|
4387
|
-
value: input.offChainTransferabilityInfo
|
|
4388
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4389
|
-
path: _path + ".attributes",
|
|
4390
|
-
expected: "(Array<__type> | undefined)",
|
|
4391
|
-
value: input.attributes
|
|
4392
|
-
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4393
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
4394
4517
|
expected: "__type.o3",
|
|
4395
|
-
value:
|
|
4396
|
-
})) && $vo13(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4397
|
-
path: _path + ".attributes[" + _index9 + "]",
|
|
4398
|
-
expected: "__type.o3",
|
|
4399
|
-
value: elem
|
|
4400
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4401
|
-
path: _path + ".attributes",
|
|
4402
|
-
expected: "(Array<__type> | undefined)",
|
|
4403
|
-
value: input.attributes
|
|
4404
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4405
|
-
path: _path + ".fetchedAtBlock",
|
|
4406
|
-
expected: "(bigint | number | string | undefined)",
|
|
4407
|
-
value: input.fetchedAtBlock
|
|
4408
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4409
|
-
path: _path + ".fetchedAt",
|
|
4410
|
-
expected: "(bigint | number | string | undefined)",
|
|
4411
|
-
value: input.fetchedAt
|
|
4412
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4413
|
-
path: _path + "._isUpdating",
|
|
4414
|
-
expected: "(boolean | undefined)",
|
|
4415
|
-
value: input._isUpdating
|
|
4416
|
-
})].every(flag => flag);
|
|
4417
|
-
const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4418
|
-
const value = input[key];
|
|
4419
|
-
if (undefined === value)
|
|
4420
|
-
return true;
|
|
4421
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
4422
|
-
path: _path + $join(key),
|
|
4423
|
-
expected: "string",
|
|
4424
|
-
value: value
|
|
4425
|
-
});
|
|
4426
|
-
}).every(flag => flag)].every(flag => flag);
|
|
4427
|
-
const $vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4428
|
-
path: _path + ".host",
|
|
4429
|
-
expected: "string",
|
|
4430
|
-
value: input.host
|
|
4431
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4432
|
-
path: _path + ".assignMethod",
|
|
4433
|
-
expected: "string",
|
|
4434
|
-
value: input.assignMethod
|
|
4435
|
-
})].every(flag => flag);
|
|
4436
|
-
const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4437
|
-
path: _path + ".type",
|
|
4438
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
4439
|
-
value: input.type
|
|
4440
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4441
|
-
path: _path + ".name",
|
|
4442
|
-
expected: "string",
|
|
4443
|
-
value: input.name
|
|
4444
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4445
|
-
path: _path + ".value",
|
|
4446
|
-
expected: "(boolean | number | string)",
|
|
4447
|
-
value: input.value
|
|
4518
|
+
value: input.privateParams
|
|
4448
4519
|
})].every(flag => flag);
|
|
4520
|
+
const $vo13 = (input, _path, _exceptionable = true) => true;
|
|
4449
4521
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
4450
4522
|
path: _path + "",
|
|
4451
4523
|
expected: "UpdateClaimPayload",
|
|
@@ -6197,8 +6269,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6197
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);
|
|
6198
6270
|
const $io9 = input => true;
|
|
6199
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);
|
|
6200
|
-
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@
|
|
6201
|
-
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))
|
|
6202
6274
|
return true;
|
|
6203
6275
|
const value = input[key];
|
|
6204
6276
|
if (undefined === value)
|
|
@@ -6551,12 +6623,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6551
6623
|
path: _path + ".length",
|
|
6552
6624
|
expected: "number",
|
|
6553
6625
|
value: input.length
|
|
6554
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6555
|
-
path: _path + "[\"__@toStringTag@
|
|
6626
|
+
}), "Uint8Array" === input["__@toStringTag@202"] || $report(_exceptionable, {
|
|
6627
|
+
path: _path + "[\"__@toStringTag@202\"]",
|
|
6556
6628
|
expected: "\"Uint8Array\"",
|
|
6557
|
-
value: input["__@toStringTag@
|
|
6629
|
+
value: input["__@toStringTag@202"]
|
|
6558
6630
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6559
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6631
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
|
|
6560
6632
|
return true;
|
|
6561
6633
|
const value = input[key];
|
|
6562
6634
|
if (undefined === value)
|
|
@@ -6619,8 +6691,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6619
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);
|
|
6620
6692
|
const $io4 = input => true;
|
|
6621
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);
|
|
6622
|
-
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@
|
|
6623
|
-
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))
|
|
6624
6696
|
return true;
|
|
6625
6697
|
const value = input[key];
|
|
6626
6698
|
if (undefined === value)
|
|
@@ -6834,12 +6906,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6834
6906
|
path: _path + ".length",
|
|
6835
6907
|
expected: "number",
|
|
6836
6908
|
value: input.length
|
|
6837
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6838
|
-
path: _path + "[\"__@toStringTag@
|
|
6909
|
+
}), "Uint8Array" === input["__@toStringTag@202"] || $report(_exceptionable, {
|
|
6910
|
+
path: _path + "[\"__@toStringTag@202\"]",
|
|
6839
6911
|
expected: "\"Uint8Array\"",
|
|
6840
|
-
value: input["__@toStringTag@
|
|
6912
|
+
value: input["__@toStringTag@202"]
|
|
6841
6913
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6842
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6914
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@202"].some(prop => key === prop))
|
|
6843
6915
|
return true;
|
|
6844
6916
|
const value = input[key];
|
|
6845
6917
|
if (undefined === value)
|