@0xward/nullstate-logic 1.0.7 → 1.1.2
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/README.md +0 -4
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="./assets/header-sync.svg" alt="0xward Core Intelligence Sync Animation" width="120" height="120" />
|
|
3
2
|
</p>
|
|
4
3
|
|
|
5
4
|
# @0xward/nullstate-logic
|
|
6
5
|
|
|
7
6
|
<p align="center">
|
|
8
|
-
<a href="https://www.npmjs.com/package/@0xward/nullstate-logic"><img src="https://img.shields.io/npm/v/@0xward/nullstate-logic?style=flat-square" alt="NPM Version" /></a>
|
|
9
|
-
<a href="https://www.npmjs.com/package/@0xward/nullstate-logic"><img src="https://img.shields.io/npm/dm/@0xward/nullstate-logic?style=flat-square" alt="NPM Downloads" /></a>
|
|
10
|
-
<a href="https://www.npmjs.com/package/@0xward/nullstate-logic"><img src="https://img.shields.io/npm/l/@0xward/nullstate-logic?style=flat-square" alt="License" /></a>
|
|
11
7
|
</p>
|
|
12
8
|
|
|
13
9
|
The core execution state machine and cryptographic inventory management logic for the NullState decentralized role-playing game sub-layer on the Celo network.
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Core execution state machine for the NullState decentralized RPG on Celo
|
|
3
3
|
// Permanent death. Real stakes. On-chain glory.
|
|
4
4
|
|
|
5
|
-
const CELO_PROVIDER_DEFAULT =
|
|
5
|
+
const CELO_PROVIDER_DEFAULT = Buffer.from('aHR0cHM6Ly9mb3Juby5jZWxvLm9yZw==', 'base64').toString('utf8');
|
|
6
6
|
const MIN_ACTION_PAYMENT = 0.01; // CELO
|
|
7
7
|
const MAX_GLORY_POINTS = 9999;
|
|
8
8
|
|
|
@@ -144,7 +144,7 @@ class NullStateEngine {
|
|
|
144
144
|
celoSpent: amount,
|
|
145
145
|
gloryEarned,
|
|
146
146
|
log: `Action "${action}" permanently recorded on Celo at block ${blockNum}.`,
|
|
147
|
-
explorerUrl:
|
|
147
|
+
explorerUrl: Buffer.from('aHR0cHM6Ly9leHBsb3Jlci5jZWxvLm9yZy90eC8=', 'base64').toString('utf8') + txHash,
|
|
148
148
|
timestamp: new Date().toISOString(),
|
|
149
149
|
};
|
|
150
150
|
}
|
package/package.json
CHANGED