@0xward/nullstate-logic 1.1.2 → 1.1.4
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 +3 -0
- package/index.js +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
# @0xward/nullstate-logic
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
7
|
+
<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>
|
|
8
|
+
<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>
|
|
9
|
+
<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>
|
|
7
10
|
</p>
|
|
8
11
|
|
|
9
12
|
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,6 @@
|
|
|
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 = Buffer.from('aHR0cHM6Ly9mb3Juby5jZWxvLm9yZw==', 'base64').toString('utf8');
|
|
6
5
|
const MIN_ACTION_PAYMENT = 0.01; // CELO
|
|
7
6
|
const MAX_GLORY_POINTS = 9999;
|
|
8
7
|
|
|
@@ -26,7 +25,7 @@ class NullStateEngine {
|
|
|
26
25
|
constructor(config = {}) {
|
|
27
26
|
this.providerUrl = config.providerUrl || CELO_PROVIDER_DEFAULT;
|
|
28
27
|
this.network = config.network || "celo";
|
|
29
|
-
this.version = "1.
|
|
28
|
+
this.version = "1.1.4";
|
|
30
29
|
this._validateConfig();
|
|
31
30
|
}
|
|
32
31
|
|
|
@@ -144,7 +143,6 @@ class NullStateEngine {
|
|
|
144
143
|
celoSpent: amount,
|
|
145
144
|
gloryEarned,
|
|
146
145
|
log: `Action "${action}" permanently recorded on Celo at block ${blockNum}.`,
|
|
147
|
-
explorerUrl: Buffer.from('aHR0cHM6Ly9leHBsb3Jlci5jZWxvLm9yZy90eC8=', 'base64').toString('utf8') + txHash,
|
|
148
146
|
timestamp: new Date().toISOString(),
|
|
149
147
|
};
|
|
150
148
|
}
|
package/package.json
CHANGED