@leofcoin/chain 1.9.17 → 1.9.18
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/exports/browser/{browser-8BFql6K9-BMRX6B2u.js → browser-8BFql6K9-Cfm2axSE.js} +2 -2
- package/exports/browser/{browser-FVp_QbaL-zB8FF4EN.js → browser-FVp_QbaL-DShoEW2_.js} +2 -2
- package/exports/browser/chain.js +4876 -4906
- package/exports/browser/{client-lPe0SUWx-DR-mCTBz.js → client-lPe0SUWx-Cm8Ph6Z5.js} +4 -4
- package/exports/browser/{constants-V2VjIc2r.js → constants-BCaq9RBn.js} +1 -1
- package/exports/browser/{index-D6qd-AUn-CCzkkXys.js → index-D6qd-AUn-q2EQ9wfH.js} +2 -2
- package/exports/browser/{messages-BfDvXW-x-C-CI69S2.js → messages-BfDvXW-x-CNuQ6tVL.js} +2 -2
- package/exports/browser/{node-browser-y2adT6_R.js → node-browser-CYsu-WiL.js} +4 -4
- package/exports/browser/node-browser.js +2 -2
- package/exports/chain.js +1777 -1719
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as inflate_1, c as createDebugger, d as deflate_1, L as LittlePubSub } from './node-browser-
|
|
1
|
+
import { i as inflate_1, c as createDebugger, d as deflate_1, L as LittlePubSub } from './node-browser-CYsu-WiL.js';
|
|
2
2
|
import 'crypto';
|
|
3
|
-
import './constants-
|
|
3
|
+
import './constants-BCaq9RBn.js';
|
|
4
4
|
|
|
5
5
|
class Api {
|
|
6
6
|
_pubsub;
|
|
@@ -231,7 +231,7 @@ class SocketRequestClient {
|
|
|
231
231
|
const init = async () => {
|
|
232
232
|
// @ts-ignore
|
|
233
233
|
if (!globalThis.WebSocket && !this.#experimentalWebsocket)
|
|
234
|
-
globalThis.WebSocket = (await import('./browser-8BFql6K9-
|
|
234
|
+
globalThis.WebSocket = (await import('./browser-8BFql6K9-Cfm2axSE.js').then(function (n) { return n.b; })).default.w3cwebsocket;
|
|
235
235
|
const client = new WebSocket(this.#url, this.#protocol);
|
|
236
236
|
if (this.#experimentalWebsocket) {
|
|
237
237
|
client.addEventListener('error', this.onerror);
|
|
@@ -1302,7 +1302,7 @@ class Client {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
async #loadNodeWebrtcImplementation() {
|
|
1305
|
-
const koushWrtcModule = await import('./browser-FVp_QbaL-
|
|
1305
|
+
const koushWrtcModule = await import('./browser-FVp_QbaL-DShoEW2_.js').then(function (n) { return n.b; });
|
|
1306
1306
|
const koushWrtc = koushWrtcModule.default;
|
|
1307
1307
|
if (!isWrtcImplementation(koushWrtc)) {
|
|
1308
1308
|
throw new Error('@koush/wrtc does not match required wrtc contract');
|
|
@@ -9040,4 +9040,4 @@ const DEFAULT_NODE_OPTIONS = {
|
|
|
9040
9040
|
stars: networks.leofcoin.peach.stars
|
|
9041
9041
|
};
|
|
9042
9042
|
|
|
9043
|
-
export {
|
|
9043
|
+
export { BlockMessage as B, ContractMessage as C, DEFAULT_NODE_OPTIONS as D, LastBlockMessage as L, PROTOCOL_VERSION as P, RawTransactionMessage as R, StateMessage as S, TransactionMessage as T, ValidatorMessage as V, REACHED_ONE_ZERO_ZERO as a, PrevoteMessage as b, PrecommitMessage as c, ProposalMessage as d, BWMessage as e, BWRequestMessage as f, networks$1 as n, toBase58 as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-
|
|
1
|
+
import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-CYsu-WiL.js';
|
|
2
2
|
import 'crypto';
|
|
3
|
-
import './constants-
|
|
3
|
+
import './constants-BCaq9RBn.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @params {String} network
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FormatInterface } from './node-browser-
|
|
1
|
+
import { F as FormatInterface } from './node-browser-CYsu-WiL.js';
|
|
2
2
|
import 'crypto';
|
|
3
|
-
import './constants-
|
|
3
|
+
import './constants-BCaq9RBn.js';
|
|
4
4
|
|
|
5
5
|
var proto$b = {
|
|
6
6
|
data: new Uint8Array(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash as createHash$1 } from 'crypto';
|
|
2
|
-
import { T as TransactionMessage, C as ContractMessage,
|
|
2
|
+
import { T as TransactionMessage, C as ContractMessage, B as BlockMessage, e as BWMessage, f as BWRequestMessage, V as ValidatorMessage, S as StateMessage, L as LastBlockMessage, D as DEFAULT_NODE_OPTIONS } from './constants-BCaq9RBn.js';
|
|
3
3
|
|
|
4
4
|
var nodeConfig = async (config = {
|
|
5
5
|
network: "leofcoin:peach",
|
|
@@ -8337,7 +8337,7 @@ class Identity {
|
|
|
8337
8337
|
this.selectedAccount = new TextDecoder().decode(selected);
|
|
8338
8338
|
}
|
|
8339
8339
|
else {
|
|
8340
|
-
const importee = await import(/* webpackChunkName: "generate-account" */ './index-D6qd-AUn-
|
|
8340
|
+
const importee = await import(/* webpackChunkName: "generate-account" */ './index-D6qd-AUn-q2EQ9wfH.js');
|
|
8341
8341
|
const { identity, accounts } = await importee.default(password, this.network);
|
|
8342
8342
|
await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
|
|
8343
8343
|
await globalThis.walletStore.put('version', String(1));
|
|
@@ -16998,7 +16998,7 @@ class Peernet {
|
|
|
16998
16998
|
await getAddress();
|
|
16999
16999
|
this.storePrefix = options.storePrefix;
|
|
17000
17000
|
this.root = options.root;
|
|
17001
|
-
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile } = await import(/* webpackChunkName: "messages" */ './messages-BfDvXW-x-
|
|
17001
|
+
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile } = await import(/* webpackChunkName: "messages" */ './messages-BfDvXW-x-CNuQ6tVL.js');
|
|
17002
17002
|
/**
|
|
17003
17003
|
* proto Object containing protos
|
|
17004
17004
|
* @type {Object}
|
|
@@ -17045,7 +17045,7 @@ class Peernet {
|
|
|
17045
17045
|
if (this.#starting || this.#started)
|
|
17046
17046
|
return;
|
|
17047
17047
|
this.#starting = true;
|
|
17048
|
-
const importee = await import('./client-lPe0SUWx-
|
|
17048
|
+
const importee = await import('./client-lPe0SUWx-Cm8Ph6Z5.js');
|
|
17049
17049
|
/**
|
|
17050
17050
|
* @access public
|
|
17051
17051
|
* @type {PeernetClient}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { N as default } from './node-browser-
|
|
1
|
+
export { N as default } from './node-browser-CYsu-WiL.js';
|
|
2
2
|
import 'crypto';
|
|
3
|
-
import './constants-
|
|
3
|
+
import './constants-BCaq9RBn.js';
|