@neuraiproject/neurai-rpc 0.9.0 → 0.9.1
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/CHANGELOG.md +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 0.9.1
|
|
2
|
+
|
|
3
|
+
- Testnet reset of 2026-11-05: `TESTNET_GENESIS_HASH` is now `000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d`, so `assertRpcGenesis(rpc, TESTNET_GENESIS_HASH)` rejects a node of the previous testnet. The client and the method catalog are unchanged.
|
|
4
|
+
|
|
1
5
|
# 0.9.0
|
|
2
6
|
|
|
3
7
|
- Follow the node's RBF removal (no-RBF sequence rule): drop `bumpfee` from the method catalog, drop the `replaceable` argument from `sendtoaddress` / `sendfromaddress` / `sendmany` and the `bip125-replaceable` field from `gettransaction` / `listtransactions` / `listsinceblock`, and document the allowed `createrawtransaction` sequences.
|
package/dist/index.cjs
CHANGED
|
@@ -5864,7 +5864,7 @@ function assertNoDuplicateJsonKeys(text) {
|
|
|
5864
5864
|
|
|
5865
5865
|
// index.ts
|
|
5866
5866
|
var MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
|
|
5867
|
-
var TESTNET_GENESIS_HASH = "
|
|
5867
|
+
var TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
|
|
5868
5868
|
async function assertRpcGenesis(rpc, expectedGenesisHash) {
|
|
5869
5869
|
const actual = await rpc("getblockhash", [0]);
|
|
5870
5870
|
if (typeof actual !== "string" || actual.toLowerCase() !== expectedGenesisHash.toLowerCase()) {
|
package/dist/index.d.cts
CHANGED
|
@@ -291,7 +291,7 @@ declare function createDepinNodeRouter<T extends RpcNode>(healthyNodes: () => T[
|
|
|
291
291
|
declare function assertNoDuplicateJsonKeys(text: string): void;
|
|
292
292
|
|
|
293
293
|
declare const MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
|
|
294
|
-
declare const TESTNET_GENESIS_HASH = "
|
|
294
|
+
declare const TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
|
|
295
295
|
/** Reject an RPC endpoint that serves a different chain with the same network label. */
|
|
296
296
|
declare function assertRpcGenesis(rpc: (method: string, params: any[]) => Promise<unknown>, expectedGenesisHash: string): Promise<void>;
|
|
297
297
|
/** Exact decimal parameter, emitted as a JSON number rather than a quoted string. */
|
package/dist/index.d.ts
CHANGED
|
@@ -291,7 +291,7 @@ declare function createDepinNodeRouter<T extends RpcNode>(healthyNodes: () => T[
|
|
|
291
291
|
declare function assertNoDuplicateJsonKeys(text: string): void;
|
|
292
292
|
|
|
293
293
|
declare const MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
|
|
294
|
-
declare const TESTNET_GENESIS_HASH = "
|
|
294
|
+
declare const TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
|
|
295
295
|
/** Reject an RPC endpoint that serves a different chain with the same network label. */
|
|
296
296
|
declare function assertRpcGenesis(rpc: (method: string, params: any[]) => Promise<unknown>, expectedGenesisHash: string): Promise<void>;
|
|
297
297
|
/** Exact decimal parameter, emitted as a JSON number rather than a quoted string. */
|
package/dist/index.mjs
CHANGED
|
@@ -5828,7 +5828,7 @@ function assertNoDuplicateJsonKeys(text) {
|
|
|
5828
5828
|
|
|
5829
5829
|
// index.ts
|
|
5830
5830
|
var MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
|
|
5831
|
-
var TESTNET_GENESIS_HASH = "
|
|
5831
|
+
var TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
|
|
5832
5832
|
async function assertRpcGenesis(rpc, expectedGenesisHash) {
|
|
5833
5833
|
const actual = await rpc("getblockhash", [0]);
|
|
5834
5834
|
if (typeof actual !== "string" || actual.toLowerCase() !== expectedGenesisHash.toLowerCase()) {
|
package/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { assertNoDuplicateJsonKeys } from './json';
|
|
|
8
8
|
import { isDepinRemoteMethod } from './depin';
|
|
9
9
|
|
|
10
10
|
export const MAINNET_GENESIS_HASH = '00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806';
|
|
11
|
-
export const TESTNET_GENESIS_HASH = '
|
|
11
|
+
export const TESTNET_GENESIS_HASH = '000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d';
|
|
12
12
|
|
|
13
13
|
/** Reject an RPC endpoint that serves a different chain with the same network label. */
|
|
14
14
|
export async function assertRpcGenesis(
|