@d9-network/spec 0.0.14 → 0.1.0
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/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8248,6 +8248,7 @@ type WhitelistEntriesByChain = Partial<{
|
|
|
8248
8248
|
}>;
|
|
8249
8249
|
//#endregion
|
|
8250
8250
|
//#region ../ink/dist/index.d.mts
|
|
8251
|
+
//#endregion
|
|
8251
8252
|
//#region src/errors.d.ts
|
|
8252
8253
|
/**
|
|
8253
8254
|
* Structured error types for contract operations.
|
|
@@ -9305,7 +9306,7 @@ declare function toD9Address(address: SS58String$1): SS58String$1;
|
|
|
9305
9306
|
/**
|
|
9306
9307
|
* Balance formatting utilities for D9 blockchain
|
|
9307
9308
|
*/
|
|
9308
|
-
declare const D9_DECIMALS =
|
|
9309
|
+
declare const D9_DECIMALS = 2;
|
|
9309
9310
|
declare const D9_SYMBOL = "D9";
|
|
9310
9311
|
declare const D9_SS58_PREFIX = 9;
|
|
9311
9312
|
declare const USDT_DECIMALS = 2;
|
package/dist/index.d.mts
CHANGED
|
@@ -8248,6 +8248,7 @@ type WhitelistEntriesByChain = Partial<{
|
|
|
8248
8248
|
}>;
|
|
8249
8249
|
//#endregion
|
|
8250
8250
|
//#region ../ink/dist/index.d.mts
|
|
8251
|
+
//#endregion
|
|
8251
8252
|
//#region src/errors.d.ts
|
|
8252
8253
|
/**
|
|
8253
8254
|
* Structured error types for contract operations.
|
|
@@ -9305,7 +9306,7 @@ declare function toD9Address(address: SS58String$1): SS58String$1;
|
|
|
9305
9306
|
/**
|
|
9306
9307
|
* Balance formatting utilities for D9 blockchain
|
|
9307
9308
|
*/
|
|
9308
|
-
declare const D9_DECIMALS =
|
|
9309
|
+
declare const D9_DECIMALS = 2;
|
|
9309
9310
|
declare const D9_SYMBOL = "D9";
|
|
9310
9311
|
declare const D9_SS58_PREFIX = 9;
|
|
9311
9312
|
declare const USDT_DECIMALS = 2;
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { _Enum, createClient } from "polkadot-api";
|
|
|
3
3
|
import { getWsProvider } from "polkadot-api/ws-provider";
|
|
4
4
|
import { withPolkadotSdkCompat } from "polkadot-api/polkadot-sdk-compat";
|
|
5
5
|
import { withLegacy } from "@polkadot-api/legacy-provider";
|
|
6
|
-
import { ContractEventParser, createContractEventStream, createD9InkSdk, createNativeTransferStream, createPSP22TransferStream } from "@d9-network/ink";
|
|
6
|
+
import { ContractEventParser, D9_DECIMALS as D9_DECIMALS$1, D9_SS58_PREFIX as D9_SS58_PREFIX$1, D9_SYMBOL as D9_SYMBOL$1, USDT_DECIMALS as USDT_DECIMALS$1, USDT_SYMBOL as USDT_SYMBOL$1, createContractEventStream, createD9InkSdk, createNativeTransferStream, createPSP22TransferStream } from "@d9-network/ink";
|
|
7
7
|
import { generateMnemonic as generateMnemonic$1, mnemonicToMiniSecret as mnemonicToMiniSecret$1, ss58Decode, ss58Encode, validateMnemonic as validateMnemonic$1 } from "@polkadot-labs/hdkd-helpers";
|
|
8
8
|
import { sr25519CreateDerive, withNetworkAccount } from "@polkadot-labs/hdkd";
|
|
9
9
|
import { getPolkadotSigner } from "@polkadot-api/signer";
|
|
@@ -7589,11 +7589,11 @@ function createAccountFromPrivateKey(options) {
|
|
|
7589
7589
|
/**
|
|
7590
7590
|
* Balance formatting utilities for D9 blockchain
|
|
7591
7591
|
*/
|
|
7592
|
-
const D9_DECIMALS =
|
|
7593
|
-
const D9_SYMBOL =
|
|
7594
|
-
const D9_SS58_PREFIX =
|
|
7595
|
-
const USDT_DECIMALS =
|
|
7596
|
-
const USDT_SYMBOL =
|
|
7592
|
+
const D9_DECIMALS = D9_DECIMALS$1;
|
|
7593
|
+
const D9_SYMBOL = D9_SYMBOL$1;
|
|
7594
|
+
const D9_SS58_PREFIX = D9_SS58_PREFIX$1;
|
|
7595
|
+
const USDT_DECIMALS = USDT_DECIMALS$1;
|
|
7596
|
+
const USDT_SYMBOL = USDT_SYMBOL$1;
|
|
7597
7597
|
/**
|
|
7598
7598
|
* Pre-configured D9 token
|
|
7599
7599
|
*/
|