@mpgd/adapter-verse8 0.3.5 → 0.3.7
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/agent8-services.js +4 -4
- package/dist/server.js +1 -1
- package/package.json +5 -5
package/dist/agent8-services.js
CHANGED
|
@@ -4,10 +4,10 @@ const defaultLeaderboardCollectionNamespace = 'mpgdVerse8Leaderboard';
|
|
|
4
4
|
const defaultMaximumStorageEntries = 128;
|
|
5
5
|
const defaultMaximumStorageValueBytes = 64 * 1024;
|
|
6
6
|
const defaultMaximumStorageStateBytes = 512 * 1024;
|
|
7
|
-
const defaultMaximumLeaderboardParticipants =
|
|
8
|
-
const maximumLeaderboardParticipantsLimit =
|
|
7
|
+
const defaultMaximumLeaderboardParticipants = 1_000;
|
|
8
|
+
const maximumLeaderboardParticipantsLimit = 10_000;
|
|
9
9
|
const minimumPersistenceSecretBytes = 32;
|
|
10
|
-
const maximumPersistenceSecretBytes =
|
|
10
|
+
const maximumPersistenceSecretBytes = 1_024;
|
|
11
11
|
const sha256DigestPattern = /^[0-9a-f]{64}$/;
|
|
12
12
|
const sha256RoundConstants = Uint32Array.from(('428a2f98 71374491 b5c0fbcf e9b5dba5 3956c25b 59f111f1 923f82a4 ab1c5ed5 '
|
|
13
13
|
+ 'd807aa98 12835b01 243185be 550c7dc3 72be5d74 80deb1fe 9bdc06a7 c19bf174 '
|
|
@@ -811,7 +811,7 @@ function sha256Bytes(bytes) {
|
|
|
811
811
|
message.set(bytes);
|
|
812
812
|
message[bytes.length] = 0x80;
|
|
813
813
|
const view = new DataView(message.buffer);
|
|
814
|
-
view.setUint32(paddedLength - 8, Math.floor(bitLength /
|
|
814
|
+
view.setUint32(paddedLength - 8, Math.floor(bitLength / 0x1_0000_0000), false);
|
|
815
815
|
view.setUint32(paddedLength - 4, bitLength >>> 0, false);
|
|
816
816
|
const hash = new Uint32Array(8);
|
|
817
817
|
hash[0] = 0x6a09e667;
|
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { verse8AdsRewardEvidenceSchema } from './ads-contract.js';
|
|
2
2
|
export const defaultVerse8AdsVerifierBaseUrl = 'https://ads-verifier.verse8.io';
|
|
3
|
-
const maximumVerifierResponseLength =
|
|
3
|
+
const maximumVerifierResponseLength = 65_536;
|
|
4
4
|
export class Verse8AdsVerifierHttpError extends Error {
|
|
5
5
|
status;
|
|
6
6
|
code;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpgd/adapter-verse8",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Verse8 iframe platform adapter for mpgd games.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@verse8/ads": "0.4.0",
|
|
45
45
|
"@verse8/platform": "2.1.0",
|
|
46
|
-
"@mpgd/catalog": "0.7.
|
|
47
|
-
"@mpgd/platform": "0.12.
|
|
48
|
-
"@mpgd/game-services": "0.15.
|
|
46
|
+
"@mpgd/catalog": "0.7.3",
|
|
47
|
+
"@mpgd/platform": "0.12.1",
|
|
48
|
+
"@mpgd/game-services": "0.15.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"ttsc": "0.
|
|
51
|
+
"ttsc": "0.30.4",
|
|
52
52
|
"typescript": "7.0.2",
|
|
53
53
|
"vitest": "^4.0.0"
|
|
54
54
|
},
|