@provable-games/budokan-sdk 0.1.15 → 0.1.16
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/{client-d2NE8oS8.d.cts → client-CP4dxHGv.d.cts} +3 -0
- package/dist/{client-d2NE8oS8.d.ts → client-CP4dxHGv.d.ts} +3 -0
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +7 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +7 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/react.cjs
CHANGED
|
@@ -1002,6 +1002,7 @@ function parsePrize(raw) {
|
|
|
1002
1002
|
let tokenId = null;
|
|
1003
1003
|
let distributionType = null;
|
|
1004
1004
|
let distributionWeight = null;
|
|
1005
|
+
let distributionShares = null;
|
|
1005
1006
|
let distributionCount = null;
|
|
1006
1007
|
let payoutPosition = 0;
|
|
1007
1008
|
if (tokenTypeData) {
|
|
@@ -1020,7 +1021,11 @@ function parsePrize(raw) {
|
|
|
1020
1021
|
if (distType) {
|
|
1021
1022
|
distributionType = distType.toLowerCase();
|
|
1022
1023
|
const distValue = distVariant[distType];
|
|
1023
|
-
|
|
1024
|
+
if (distributionType === "custom") {
|
|
1025
|
+
distributionShares = Array.isArray(distValue) ? distValue.map((v) => Number(v)) : null;
|
|
1026
|
+
} else {
|
|
1027
|
+
distributionWeight = distValue != null ? Number(distValue) : null;
|
|
1028
|
+
}
|
|
1024
1029
|
}
|
|
1025
1030
|
}
|
|
1026
1031
|
const countOption = erc20?.distribution_count;
|
|
@@ -1041,6 +1046,7 @@ function parsePrize(raw) {
|
|
|
1041
1046
|
tokenId,
|
|
1042
1047
|
distributionType,
|
|
1043
1048
|
distributionWeight,
|
|
1049
|
+
distributionShares,
|
|
1044
1050
|
distributionCount,
|
|
1045
1051
|
sponsorAddress: starknet.num.toHex(obj.sponsor_address)
|
|
1046
1052
|
};
|