@secondlayer/stacks 2.12.0 → 2.14.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/README.md +23 -0
- package/dist/shared/stacks-0cdm20eh.js +225 -0
- package/dist/shared/stacks-0cdm20eh.js.map +11 -0
- package/dist/shared/{stacks-y5epf0sb.cjs → stacks-6mhsf8hk.cjs} +52 -2
- package/dist/shared/{stacks-y5epf0sb.cjs.map → stacks-6mhsf8hk.cjs.map} +10 -5
- package/dist/shared/stacks-8khy9v27.cjs +7 -0
- package/dist/shared/stacks-8khy9v27.cjs.map +10 -0
- package/dist/shared/{stacks-kjg7fw4y.js → stacks-8rhjj23w.cjs} +40 -25
- package/dist/shared/{stacks-esn3wcw5.cjs.map → stacks-8rhjj23w.cjs.map} +7 -6
- package/dist/shared/stacks-bnbdqznq.cjs +211 -0
- package/dist/shared/stacks-bnbdqznq.cjs.map +11 -0
- package/dist/shared/{stacks-01pbr7gf.js → stacks-cqp2dgmc.js} +9 -3
- package/dist/shared/{stacks-01pbr7gf.js.map → stacks-cqp2dgmc.js.map} +3 -3
- package/dist/shared/stacks-fh48neva.js +13 -0
- package/dist/shared/stacks-fh48neva.js.map +10 -0
- package/dist/shared/{stacks-tbv5p6pn.cjs → stacks-fjrpnkt3.cjs} +5 -2
- package/dist/shared/{stacks-tbv5p6pn.cjs.map → stacks-fjrpnkt3.cjs.map} +3 -3
- package/dist/shared/{stacks-esn3wcw5.cjs → stacks-gh52j903.js} +61 -7
- package/dist/shared/{stacks-kjg7fw4y.js.map → stacks-gh52j903.js.map} +7 -6
- package/dist/shared/{stacks-59xy6t1p.js → stacks-hjaqtgaq.js} +58 -4
- package/dist/shared/{stacks-59xy6t1p.js.map → stacks-hjaqtgaq.js.map} +10 -5
- package/dist/shared/{stacks-g67f4w1d.js → stacks-hpcbn81g.js} +2 -2
- package/dist/shared/{stacks-6n2m9hyk.js → stacks-zzbkta7h.js} +3 -3
- package/dist/src/accounts/index.cjs +28 -1
- package/dist/src/accounts/index.cjs.map +4 -3
- package/dist/src/accounts/index.d.cts +23 -1
- package/dist/src/accounts/index.d.ts +23 -1
- package/dist/src/accounts/index.js +33 -1
- package/dist/src/accounts/index.js.map +4 -3
- package/dist/src/actions/index.cjs +6 -1
- package/dist/src/actions/index.cjs.map +1 -1
- package/dist/src/actions/index.d.cts +71 -1
- package/dist/src/actions/index.d.ts +71 -1
- package/dist/src/actions/index.js +17 -6
- package/dist/src/actions/index.js.map +1 -1
- package/dist/src/bitcoin/index.cjs +5 -176
- package/dist/src/bitcoin/index.cjs.map +5 -7
- package/dist/src/bitcoin/index.d.cts +18 -2
- package/dist/src/bitcoin/index.d.ts +18 -2
- package/dist/src/bitcoin/index.js +23 -182
- package/dist/src/bitcoin/index.js.map +5 -7
- package/dist/src/bns/index.cjs +9 -5
- package/dist/src/bns/index.cjs.map +3 -3
- package/dist/src/bns/index.js +13 -8
- package/dist/src/bns/index.js.map +3 -3
- package/dist/src/index.cjs +28 -8
- package/dist/src/index.cjs.map +4 -4
- package/dist/src/index.d.cts +53 -0
- package/dist/src/index.d.ts +53 -0
- package/dist/src/index.js +39 -12
- package/dist/src/index.js.map +4 -4
- package/dist/src/pox/index.js +5 -4
- package/dist/src/pox/index.js.map +2 -2
- package/dist/src/sbtc/index.cjs +49 -7
- package/dist/src/sbtc/index.cjs.map +6 -6
- package/dist/src/sbtc/index.d.cts +8 -2
- package/dist/src/sbtc/index.d.ts +8 -2
- package/dist/src/sbtc/index.js +57 -10
- package/dist/src/sbtc/index.js.map +6 -6
- package/dist/src/stackingdao/index.js +5 -4
- package/dist/src/stackingdao/index.js.map +2 -2
- package/dist/src/tools/index.cjs +213 -116
- package/dist/src/tools/index.cjs.map +22 -15
- package/dist/src/tools/index.js +213 -116
- package/dist/src/tools/index.js.map +22 -15
- package/dist/src/x402/index.js +4 -3
- package/dist/src/x402/index.js.map +2 -2
- package/package.json +1 -1
- /package/dist/shared/{stacks-g67f4w1d.js.map → stacks-hpcbn81g.js.map} +0 -0
- /package/dist/shared/{stacks-6n2m9hyk.js.map → stacks-zzbkta7h.js.map} +0 -0
|
@@ -41,7 +41,29 @@ declare function mnemonicToAccount(mnemonic: string, options?: {
|
|
|
41
41
|
accountIndex?: number
|
|
42
42
|
addressVersion?: number
|
|
43
43
|
}): LocalAccount;
|
|
44
|
+
type BitcoinNetwork = "mainnet" | "testnet" | "regtest";
|
|
45
|
+
type BitcoinKeyType = "p2wpkh" | "p2tr";
|
|
46
|
+
type MnemonicToBitcoinKeysOptions = {
|
|
47
|
+
/** `'p2wpkh'` (BIP84, `bc1q…`) or `'p2tr'` (BIP86, `bc1p…`). */
|
|
48
|
+
type: BitcoinKeyType
|
|
49
|
+
network?: BitcoinNetwork
|
|
50
|
+
accountIndex?: number
|
|
51
|
+
/** 0 = receive chain, 1 = change chain. */
|
|
52
|
+
changeIndex?: number
|
|
53
|
+
addressIndex?: number
|
|
54
|
+
};
|
|
55
|
+
type BitcoinKeys = {
|
|
56
|
+
/** 32-byte private key, hex. */
|
|
57
|
+
privateKey: string
|
|
58
|
+
/** 33-byte compressed public key, hex. */
|
|
59
|
+
publicKey: string
|
|
60
|
+
address: string
|
|
61
|
+
/** Full BIP84/BIP86 derivation path. */
|
|
62
|
+
path: string
|
|
63
|
+
};
|
|
64
|
+
/**\\n* Derive Bitcoin keys + address from the same mnemonic that backs a Stacks\\n* account — BIP84 (native segwit) or BIP86 (taproot) paths, matching what\\n* Leather/Xverse derive for the paired BTC account. Pure derivation: no\\n* Bitcoin transaction building or signing.\\n*\\n* @example\\n* const btc = mnemonicToBitcoinKeys(mnemonic, { type: "p2tr" });\\n* btc.address; // bc1p…\\n* btc.path; // m/86'/0'/0'/0/0\\n*/
|
|
65
|
+
declare function mnemonicToBitcoinKeys(mnemonic: string, options: MnemonicToBitcoinKeysOptions): BitcoinKeys;
|
|
44
66
|
declare function toAccount(source: AccountSource): CustomAccount;
|
|
45
67
|
/** Create a ProviderAccount by querying the wallet for addresses */
|
|
46
68
|
declare function providerToAccount(provider: StacksProvider): Promise<ProviderAccount>;
|
|
47
|
-
export { toAccount, providerToAccount, privateKeyToAccount, mnemonicToAccount, compressPrivateKey, StacksProvider, ProviderAccount, LocalAccount, CustomAccount, AccountSource };
|
|
69
|
+
export { toAccount, providerToAccount, privateKeyToAccount, mnemonicToBitcoinKeys, mnemonicToAccount, compressPrivateKey, StacksProvider, ProviderAccount, MnemonicToBitcoinKeysOptions, LocalAccount, CustomAccount, BitcoinKeys, BitcoinKeyType, AccountSource };
|
|
@@ -41,7 +41,29 @@ declare function mnemonicToAccount(mnemonic: string, options?: {
|
|
|
41
41
|
accountIndex?: number
|
|
42
42
|
addressVersion?: number
|
|
43
43
|
}): LocalAccount;
|
|
44
|
+
type BitcoinNetwork = "mainnet" | "testnet" | "regtest";
|
|
45
|
+
type BitcoinKeyType = "p2wpkh" | "p2tr";
|
|
46
|
+
type MnemonicToBitcoinKeysOptions = {
|
|
47
|
+
/** `'p2wpkh'` (BIP84, `bc1q…`) or `'p2tr'` (BIP86, `bc1p…`). */
|
|
48
|
+
type: BitcoinKeyType
|
|
49
|
+
network?: BitcoinNetwork
|
|
50
|
+
accountIndex?: number
|
|
51
|
+
/** 0 = receive chain, 1 = change chain. */
|
|
52
|
+
changeIndex?: number
|
|
53
|
+
addressIndex?: number
|
|
54
|
+
};
|
|
55
|
+
type BitcoinKeys = {
|
|
56
|
+
/** 32-byte private key, hex. */
|
|
57
|
+
privateKey: string
|
|
58
|
+
/** 33-byte compressed public key, hex. */
|
|
59
|
+
publicKey: string
|
|
60
|
+
address: string
|
|
61
|
+
/** Full BIP84/BIP86 derivation path. */
|
|
62
|
+
path: string
|
|
63
|
+
};
|
|
64
|
+
/**\\n* Derive Bitcoin keys + address from the same mnemonic that backs a Stacks\\n* account — BIP84 (native segwit) or BIP86 (taproot) paths, matching what\\n* Leather/Xverse derive for the paired BTC account. Pure derivation: no\\n* Bitcoin transaction building or signing.\\n*\\n* @example\\n* const btc = mnemonicToBitcoinKeys(mnemonic, { type: "p2tr" });\\n* btc.address; // bc1p…\\n* btc.path; // m/86'/0'/0'/0/0\\n*/
|
|
65
|
+
declare function mnemonicToBitcoinKeys(mnemonic: string, options: MnemonicToBitcoinKeysOptions): BitcoinKeys;
|
|
44
66
|
declare function toAccount(source: AccountSource): CustomAccount;
|
|
45
67
|
/** Create a ProviderAccount by querying the wallet for addresses */
|
|
46
68
|
declare function providerToAccount(provider: StacksProvider): Promise<ProviderAccount>;
|
|
47
|
-
export { toAccount, providerToAccount, privateKeyToAccount, mnemonicToAccount, compressPrivateKey, StacksProvider, ProviderAccount, LocalAccount, CustomAccount, AccountSource };
|
|
69
|
+
export { toAccount, providerToAccount, privateKeyToAccount, mnemonicToBitcoinKeys, mnemonicToAccount, compressPrivateKey, StacksProvider, ProviderAccount, MnemonicToBitcoinKeysOptions, LocalAccount, CustomAccount, BitcoinKeys, BitcoinKeyType, AccountSource };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
publicKeyToP2trAddress,
|
|
3
|
+
publicKeyToP2wpkhAddress
|
|
4
|
+
} from "../../shared/stacks-0cdm20eh.js";
|
|
5
|
+
import"../../shared/stacks-5nmz5ad9.js";
|
|
1
6
|
import {
|
|
2
7
|
providerToAccount
|
|
3
8
|
} from "../../shared/stacks-qcae5852.js";
|
|
@@ -78,6 +83,32 @@ function mnemonicToAccount(mnemonic, options) {
|
|
|
78
83
|
const privateKeyHex = compressPrivateKey(bytesToHex(child.privateKey));
|
|
79
84
|
return privateKeyToAccount(privateKeyHex, { addressVersion });
|
|
80
85
|
}
|
|
86
|
+
// src/accounts/mnemonicToBitcoinKeys.ts
|
|
87
|
+
import { HDKey as HDKey2 } from "@scure/bip32";
|
|
88
|
+
import { mnemonicToSeedSync as mnemonicToSeedSync2 } from "@scure/bip39";
|
|
89
|
+
var PURPOSE = { p2wpkh: 84, p2tr: 86 };
|
|
90
|
+
function mnemonicToBitcoinKeys(mnemonic, options) {
|
|
91
|
+
const {
|
|
92
|
+
type,
|
|
93
|
+
network = "mainnet",
|
|
94
|
+
accountIndex = 0,
|
|
95
|
+
changeIndex = 0,
|
|
96
|
+
addressIndex = 0
|
|
97
|
+
} = options;
|
|
98
|
+
const coinType = network === "mainnet" ? 0 : 1;
|
|
99
|
+
const path = `m/${PURPOSE[type]}'/${coinType}'/${accountIndex}'/${changeIndex}/${addressIndex}`;
|
|
100
|
+
const seed = mnemonicToSeedSync2(mnemonic);
|
|
101
|
+
const child = HDKey2.fromMasterSeed(seed).derive(path);
|
|
102
|
+
if (!child.privateKey || !child.publicKey)
|
|
103
|
+
throw new Error("Failed to derive Bitcoin key");
|
|
104
|
+
const address = type === "p2wpkh" ? publicKeyToP2wpkhAddress(child.publicKey, network) : publicKeyToP2trAddress(child.publicKey, network);
|
|
105
|
+
return {
|
|
106
|
+
privateKey: bytesToHex(child.privateKey),
|
|
107
|
+
publicKey: bytesToHex(child.publicKey),
|
|
108
|
+
address,
|
|
109
|
+
path
|
|
110
|
+
};
|
|
111
|
+
}
|
|
81
112
|
// src/accounts/toAccount.ts
|
|
82
113
|
function toAccount(source) {
|
|
83
114
|
return {
|
|
@@ -91,9 +122,10 @@ export {
|
|
|
91
122
|
toAccount,
|
|
92
123
|
providerToAccount,
|
|
93
124
|
privateKeyToAccount,
|
|
125
|
+
mnemonicToBitcoinKeys,
|
|
94
126
|
mnemonicToAccount,
|
|
95
127
|
compressPrivateKey
|
|
96
128
|
};
|
|
97
129
|
|
|
98
|
-
//# debugId=
|
|
130
|
+
//# debugId=D63669131B82ABCA64756E2164756E21
|
|
99
131
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/accounts/privateKeyToAccount.ts", "../src/accounts/mnemonicToAccount.ts", "../src/accounts/toAccount.ts"],
|
|
3
|
+
"sources": ["../src/accounts/privateKeyToAccount.ts", "../src/accounts/mnemonicToAccount.ts", "../src/accounts/mnemonicToBitcoinKeys.ts", "../src/accounts/toAccount.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import { hmac } from \"@noble/hashes/hmac.js\";\nimport { sha256 } from \"@noble/hashes/sha2.js\";\nimport { etc, getPublicKey as nobleGetPublicKey, sign } from \"@noble/secp256k1\";\nimport { c32address } from \"../utils/c32.ts\";\nimport { bytesToHex, hexToBytes, without0x } from \"../utils/encoding.ts\";\nimport { hash160 } from \"../utils/hash.ts\";\nimport type { LocalAccount } from \"./types.ts\";\n\nfunction ensureSyncSigning() {\n\tif (!etc.hmacSha256Sync) {\n\t\tetc.hmacSha256Sync = (key: Uint8Array, ...msgs: Uint8Array[]) => {\n\t\t\tconst h = hmac.create(sha256, key);\n\t\t\tfor (const msg of msgs) h.update(msg);\n\t\t\treturn h.digest();\n\t\t};\n\t}\n}\n\nconst PRIVATE_KEY_COMPRESSED_LENGTH = 33;\n\nexport function privateKeyToAccount(\n\tprivateKey: string | Uint8Array,\n\toptions?: { addressVersion?: number },\n): LocalAccount {\n\tensureSyncSigning();\n\tconst keyBytes = normalizePrivateKey(privateKey);\n\tconst rawKey = keyBytes.slice(0, 32);\n\n\t// Always derive compressed public key\n\tconst publicKeyBytes = nobleGetPublicKey(rawKey, true);\n\tconst publicKeyHex = bytesToHex(publicKeyBytes);\n\n\t// Default to mainnet single-sig (22)\n\tconst addressVersion = options?.addressVersion ?? 22;\n\tconst address = c32address(\n\t\taddressVersion,\n\t\tbytesToHex(hash160(publicKeyBytes)),\n\t);\n\n\treturn {\n\t\ttype: \"local\",\n\t\taddress,\n\t\tpublicKey: publicKeyHex,\n\n\t\tsign(hash: Uint8Array): Uint8Array {\n\t\t\tconst sig = sign(hash, rawKey, { lowS: true });\n\t\t\tconst result = new Uint8Array(65);\n\t\t\tresult[0] = sig.recovery;\n\t\t\tresult.set(sig.toCompactRawBytes(), 1);\n\t\t\treturn result;\n\t\t},\n\n\t\tsignMessage(message: string | Uint8Array): string {\n\t\t\tconst msgBytes =\n\t\t\t\ttypeof message === \"string\"\n\t\t\t\t\t? new TextEncoder().encode(message)\n\t\t\t\t\t: message;\n\t\t\tconst msgHash = sha256(msgBytes);\n\t\t\tconst sigBytes = this.sign(msgHash);\n\t\t\treturn bytesToHex(sigBytes);\n\t\t},\n\t};\n}\n\nfunction normalizePrivateKey(key: string | Uint8Array): Uint8Array {\n\tif (typeof key === \"string\") {\n\t\treturn hexToBytes(without0x(key));\n\t}\n\treturn key;\n}\n\n/** Append 0x01 suffix if not already compressed */\nexport function compressPrivateKey(key: string | Uint8Array): string {\n\tconst hex = typeof key === \"string\" ? without0x(key) : bytesToHex(key);\n\tif (hex.length === PRIVATE_KEY_COMPRESSED_LENGTH * 2) return hex;\n\treturn `${hex}01`;\n}\n",
|
|
6
6
|
"import { HDKey } from \"@scure/bip32\";\nimport { mnemonicToSeedSync } from \"@scure/bip39\";\nimport { bytesToHex } from \"../utils/encoding.ts\";\nimport {\n\tcompressPrivateKey,\n\tprivateKeyToAccount,\n} from \"./privateKeyToAccount.ts\";\nimport type { LocalAccount } from \"./types.ts\";\n\nconst STX_DERIVATION_PATH = \"m/44'/5757'/0'/0\";\n\nexport function mnemonicToAccount(\n\tmnemonic: string,\n\toptions?: {\n\t\taccountIndex?: number;\n\t\taddressVersion?: number;\n\t},\n): LocalAccount {\n\tconst { accountIndex = 0, addressVersion } = options ?? {};\n\n\tconst seed = mnemonicToSeedSync(mnemonic);\n\tconst root = HDKey.fromMasterSeed(seed);\n\tconst child = root.derive(`${STX_DERIVATION_PATH}/${accountIndex}`);\n\n\tif (!child.privateKey) throw new Error(\"Failed to derive private key\");\n\n\tconst privateKeyHex = compressPrivateKey(bytesToHex(child.privateKey));\n\treturn privateKeyToAccount(privateKeyHex, { addressVersion });\n}\n",
|
|
7
|
+
"import { HDKey } from \"@scure/bip32\";\nimport { mnemonicToSeedSync } from \"@scure/bip39\";\nimport {\n\tpublicKeyToP2trAddress,\n\tpublicKeyToP2wpkhAddress,\n} from \"../bitcoin/address.ts\";\nimport type { BitcoinNetwork } from \"../bitcoin/constants.ts\";\nimport { bytesToHex } from \"../utils/encoding.ts\";\n\nexport type BitcoinKeyType = \"p2wpkh\" | \"p2tr\";\n\nexport type MnemonicToBitcoinKeysOptions = {\n\t/** `'p2wpkh'` (BIP84, `bc1q…`) or `'p2tr'` (BIP86, `bc1p…`). */\n\ttype: BitcoinKeyType;\n\tnetwork?: BitcoinNetwork;\n\taccountIndex?: number;\n\t/** 0 = receive chain, 1 = change chain. */\n\tchangeIndex?: number;\n\taddressIndex?: number;\n};\n\nexport type BitcoinKeys = {\n\t/** 32-byte private key, hex. */\n\tprivateKey: string;\n\t/** 33-byte compressed public key, hex. */\n\tpublicKey: string;\n\taddress: string;\n\t/** Full BIP84/BIP86 derivation path. */\n\tpath: string;\n};\n\nconst PURPOSE: Record<BitcoinKeyType, number> = { p2wpkh: 84, p2tr: 86 };\n\n/**\n * Derive Bitcoin keys + address from the same mnemonic that backs a Stacks\n * account — BIP84 (native segwit) or BIP86 (taproot) paths, matching what\n * Leather/Xverse derive for the paired BTC account. Pure derivation: no\n * Bitcoin transaction building or signing.\n *\n * @example\n * const btc = mnemonicToBitcoinKeys(mnemonic, { type: \"p2tr\" });\n * btc.address; // bc1p…\n * btc.path; // m/86'/0'/0'/0/0\n */\nexport function mnemonicToBitcoinKeys(\n\tmnemonic: string,\n\toptions: MnemonicToBitcoinKeysOptions,\n): BitcoinKeys {\n\tconst {\n\t\ttype,\n\t\tnetwork = \"mainnet\",\n\t\taccountIndex = 0,\n\t\tchangeIndex = 0,\n\t\taddressIndex = 0,\n\t} = options;\n\n\t// BIP44 coin type: 0' mainnet, 1' testnet/regtest.\n\tconst coinType = network === \"mainnet\" ? 0 : 1;\n\tconst path = `m/${PURPOSE[type]}'/${coinType}'/${accountIndex}'/${changeIndex}/${addressIndex}`;\n\n\tconst seed = mnemonicToSeedSync(mnemonic);\n\tconst child = HDKey.fromMasterSeed(seed).derive(path);\n\tif (!child.privateKey || !child.publicKey)\n\t\tthrow new Error(\"Failed to derive Bitcoin key\");\n\n\tconst address =\n\t\ttype === \"p2wpkh\"\n\t\t\t? publicKeyToP2wpkhAddress(child.publicKey, network)\n\t\t\t: publicKeyToP2trAddress(child.publicKey, network);\n\n\treturn {\n\t\tprivateKey: bytesToHex(child.privateKey),\n\t\tpublicKey: bytesToHex(child.publicKey),\n\t\taddress,\n\t\tpath,\n\t};\n}\n",
|
|
7
8
|
"import type { AccountSource, CustomAccount } from \"./types.ts\";\n\nexport function toAccount(source: AccountSource): CustomAccount {\n\treturn {\n\t\ttype: \"custom\",\n\t\taddress: source.address,\n\t\tpublicKey: source.publicKey,\n\t\tsign: source.sign,\n\t};\n}\n"
|
|
8
9
|
],
|
|
9
|
-
"mappings": "
|
|
10
|
-
"debugId": "
|
|
10
|
+
"mappings": "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",
|
|
11
|
+
"debugId": "D63669131B82ABCA64756E2164756E21",
|
|
11
12
|
"names": []
|
|
12
13
|
}
|
|
@@ -23,14 +23,19 @@ __export(exports_actions, {
|
|
|
23
23
|
isFeeTier: () => isFeeTier,
|
|
24
24
|
indexTxSource: () => indexTxSource,
|
|
25
25
|
getTransaction: () => getTransaction,
|
|
26
|
+
getRawBlock: () => getRawBlock,
|
|
26
27
|
getNonce: () => getNonce,
|
|
28
|
+
getNftHoldings: () => getNftHoldings,
|
|
29
|
+
getMempoolStats: () => getMempoolStats,
|
|
27
30
|
getMapEntry: () => getMapEntry,
|
|
31
|
+
getContractSource: () => getContractSource,
|
|
28
32
|
getContractAbi: () => getContractAbi,
|
|
29
33
|
getContract: () => getContract,
|
|
30
34
|
getBlockHeight: () => getBlockHeight,
|
|
31
35
|
getBlock: () => getBlock,
|
|
32
36
|
getBalance: () => getBalance,
|
|
33
37
|
getAccountInfo: () => getAccountInfo,
|
|
38
|
+
getAccountHistory: () => getAccountHistory,
|
|
34
39
|
extendedApiSource: () => extendedApiSource,
|
|
35
40
|
estimateFee: () => estimateFee,
|
|
36
41
|
deployContract: () => deployContract,
|
|
@@ -39,5 +44,5 @@ __export(exports_actions, {
|
|
|
39
44
|
});
|
|
40
45
|
module.exports = __toCommonJS(exports_actions);
|
|
41
46
|
|
|
42
|
-
//# debugId=
|
|
47
|
+
//# debugId=096C166E216C663864756E2164756E21
|
|
43
48
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -415,6 +415,34 @@ type GetBlockParams = {
|
|
|
415
415
|
hash?: string
|
|
416
416
|
};
|
|
417
417
|
declare function getBlock(client: Client, params?: GetBlockParams): Promise<any>;
|
|
418
|
+
type GetRawBlockParams = {
|
|
419
|
+
height: number
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Raw node RPC block shape (`/v2/blocks/{height}`) — distinct from
|
|
423
|
+
* {@link getBlock}'s Hiro extended-API shape. Carries consensus/identity
|
|
424
|
+
* fields (`index_block_hash`, `miner_txid`, ...) that the indexed API doesn't
|
|
425
|
+
* expose, for trust-minimized use cases (e.g. block-header proofs) that can't
|
|
426
|
+
* rely on a third-party indexer.
|
|
427
|
+
*/
|
|
428
|
+
type RawBlockResponse = {
|
|
429
|
+
hash: string
|
|
430
|
+
height: number
|
|
431
|
+
parent_block_hash: string
|
|
432
|
+
burn_block_height: number
|
|
433
|
+
burn_block_hash: string
|
|
434
|
+
burn_block_time: number
|
|
435
|
+
index_block_hash: string
|
|
436
|
+
parent_index_block_hash: string
|
|
437
|
+
miner_txid: string
|
|
438
|
+
txs: string[]
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Fetch a block by height directly from a stacks-node (not Hiro's extended
|
|
442
|
+
* API — see {@link getBlock} for that). Returns `null` when the node has no
|
|
443
|
+
* block at that height.
|
|
444
|
+
*/
|
|
445
|
+
declare function getRawBlock(client: Client, params: GetRawBlockParams): Promise<RawBlockResponse | null>;
|
|
418
446
|
declare function getBlockHeight(client: Client): Promise<number>;
|
|
419
447
|
type ReadContractParams = {
|
|
420
448
|
contract: string
|
|
@@ -427,6 +455,21 @@ type GetContractAbiParams = {
|
|
|
427
455
|
contract: string
|
|
428
456
|
};
|
|
429
457
|
declare function getContractAbi(client: Client, params: GetContractAbiParams): Promise<any>;
|
|
458
|
+
type GetContractSourceParams = {
|
|
459
|
+
contract: string
|
|
460
|
+
};
|
|
461
|
+
type ContractSourceResponse = {
|
|
462
|
+
source: string
|
|
463
|
+
publish_height: number
|
|
464
|
+
marf_proof?: string
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* Fetch a deployed contract's Clarity source. Node-RPC only (`/v2/contracts/source`)
|
|
468
|
+
* — not available through Hiro's extended API or a tenant proxy, so `client`
|
|
469
|
+
* must be configured against a direct node transport. Returns `null` when the
|
|
470
|
+
* node has no source for the contract.
|
|
471
|
+
*/
|
|
472
|
+
declare function getContractSource(client: Client, params: GetContractSourceParams): Promise<ContractSourceResponse | null>;
|
|
430
473
|
type GetMapEntryParams = {
|
|
431
474
|
contract: string
|
|
432
475
|
mapName: string
|
|
@@ -594,6 +637,33 @@ type GetTransactionParams = {
|
|
|
594
637
|
* Returns `null` when the source has no record of the transaction.
|
|
595
638
|
*/
|
|
596
639
|
declare function getTransaction(client: Client, params: GetTransactionParams): Promise<TransactionReceipt | null>;
|
|
640
|
+
type GetAccountHistoryParams = {
|
|
641
|
+
address: string
|
|
642
|
+
/** Capped at 50. Default 20. */
|
|
643
|
+
limit?: number
|
|
644
|
+
};
|
|
645
|
+
type AccountHistoryResponse = {
|
|
646
|
+
results: unknown[]
|
|
647
|
+
total: number
|
|
648
|
+
};
|
|
649
|
+
/** Paginated transaction history for a principal (Hiro extended API). */
|
|
650
|
+
declare function getAccountHistory(client: Client, params: GetAccountHistoryParams): Promise<AccountHistoryResponse>;
|
|
651
|
+
/**
|
|
652
|
+
* Current mempool statistics: pending count, fee distribution, age buckets
|
|
653
|
+
* (Hiro extended API).
|
|
654
|
+
*/
|
|
655
|
+
declare function getMempoolStats(client: Client): Promise<any>;
|
|
656
|
+
type GetNftHoldingsParams = {
|
|
657
|
+
address: string
|
|
658
|
+
/** Capped at 50. Default 20. */
|
|
659
|
+
limit?: number
|
|
660
|
+
};
|
|
661
|
+
type NftHoldingsResponse = {
|
|
662
|
+
results: unknown[]
|
|
663
|
+
total: number
|
|
664
|
+
};
|
|
665
|
+
/** NFT holdings for a principal across all collections (Hiro extended API). */
|
|
666
|
+
declare function getNftHoldings(client: Client, params: GetNftHoldingsParams): Promise<NftHoldingsResponse>;
|
|
597
667
|
type WaitForTransactionReceiptParams = {
|
|
598
668
|
txid: string
|
|
599
669
|
/** Anchor-block confirmations to wait for. Default 1 (mined). */
|
|
@@ -1162,4 +1232,4 @@ declare class ContractResponseError extends Error {
|
|
|
1162
1232
|
name: string;
|
|
1163
1233
|
constructor(message: string, errorValue: unknown);
|
|
1164
1234
|
}
|
|
1165
|
-
export { watchTransaction, watchNftEvent, watchMempool, watchBlocks, watchAddressBalance, watchAddress, waitForTransactionReceipt, transferStx, sponsorTransaction, simulateTransaction, simulateCall, signTransactionAction, signMessage2 as signMessage, sendTransaction, resolveFee, readContract, multicall, minimumFee, isProviderAccount, isFeeTier, indexTxSource, getTransaction, getNonce, getMapEntry, getContractAbi, getContract, getBlockHeight, getBlock, getBalance, getAccountInfo, extendedApiSource, estimateFee, deployContract, callContract, WatchTransactionParams, WatchNftEventParams, WatchMempoolParams, WatchBlocksParams, WatchAddressParams, WatchAddressBalanceParams, WaitForTransactionReceiptParams, TransferStxParams, TransactionStatusSource, TransactionStatus, TransactionSnapshot, TransactionReceipt, SponsorTransactionParams, SimulateTransferResult, SimulateTransactionResult, SimulateTransactionParams, SimulateDeployResult, SimulateContractCallResult, SimulateCallSuccess, SimulateCallResult, SimulateCallParams, SimulateCallFailure, SignTransactionParams, SignMessageParams, SendTransactionResult, SendTransactionParams, ReadContractParams, MulticallSuccessResult, MulticallResult, MulticallParams, MulticallFailureResult, MulticallCall, IndexTxSourceParams, GetTransactionParams, GetNonceParams, GetMapEntryParams, GetContractParams, GetContractAbiParams, GetBlockParams, GetBalanceParams, GetAccountInfoParams, FeeTier, FeeParam, FeeEstimation, EstimateFeeParams, DeployContractParams, ContractResponseError, ContractInstance, ContractCallOptions, ContractBuildCallOptions, CallContractParams, AccountInfo };
|
|
1235
|
+
export { watchTransaction, watchNftEvent, watchMempool, watchBlocks, watchAddressBalance, watchAddress, waitForTransactionReceipt, transferStx, sponsorTransaction, simulateTransaction, simulateCall, signTransactionAction, signMessage2 as signMessage, sendTransaction, resolveFee, readContract, multicall, minimumFee, isProviderAccount, isFeeTier, indexTxSource, getTransaction, getRawBlock, getNonce, getNftHoldings, getMempoolStats, getMapEntry, getContractSource, getContractAbi, getContract, getBlockHeight, getBlock, getBalance, getAccountInfo, getAccountHistory, extendedApiSource, estimateFee, deployContract, callContract, WatchTransactionParams, WatchNftEventParams, WatchMempoolParams, WatchBlocksParams, WatchAddressParams, WatchAddressBalanceParams, WaitForTransactionReceiptParams, TransferStxParams, TransactionStatusSource, TransactionStatus, TransactionSnapshot, TransactionReceipt, SponsorTransactionParams, SimulateTransferResult, SimulateTransactionResult, SimulateTransactionParams, SimulateDeployResult, SimulateContractCallResult, SimulateCallSuccess, SimulateCallResult, SimulateCallParams, SimulateCallFailure, SignTransactionParams, SignMessageParams, SendTransactionResult, SendTransactionParams, ReadContractParams, RawBlockResponse, NftHoldingsResponse, MulticallSuccessResult, MulticallResult, MulticallParams, MulticallFailureResult, MulticallCall, IndexTxSourceParams, GetTransactionParams, GetRawBlockParams, GetNonceParams, GetNftHoldingsParams, GetMapEntryParams, GetContractSourceParams, GetContractParams, GetContractAbiParams, GetBlockParams, GetBalanceParams, GetAccountInfoParams, GetAccountHistoryParams, FeeTier, FeeParam, FeeEstimation, EstimateFeeParams, DeployContractParams, ContractSourceResponse, ContractResponseError, ContractInstance, ContractCallOptions, ContractBuildCallOptions, CallContractParams, AccountInfo, AccountHistoryResponse };
|
|
@@ -415,6 +415,34 @@ type GetBlockParams = {
|
|
|
415
415
|
hash?: string
|
|
416
416
|
};
|
|
417
417
|
declare function getBlock(client: Client, params?: GetBlockParams): Promise<any>;
|
|
418
|
+
type GetRawBlockParams = {
|
|
419
|
+
height: number
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Raw node RPC block shape (`/v2/blocks/{height}`) — distinct from
|
|
423
|
+
* {@link getBlock}'s Hiro extended-API shape. Carries consensus/identity
|
|
424
|
+
* fields (`index_block_hash`, `miner_txid`, ...) that the indexed API doesn't
|
|
425
|
+
* expose, for trust-minimized use cases (e.g. block-header proofs) that can't
|
|
426
|
+
* rely on a third-party indexer.
|
|
427
|
+
*/
|
|
428
|
+
type RawBlockResponse = {
|
|
429
|
+
hash: string
|
|
430
|
+
height: number
|
|
431
|
+
parent_block_hash: string
|
|
432
|
+
burn_block_height: number
|
|
433
|
+
burn_block_hash: string
|
|
434
|
+
burn_block_time: number
|
|
435
|
+
index_block_hash: string
|
|
436
|
+
parent_index_block_hash: string
|
|
437
|
+
miner_txid: string
|
|
438
|
+
txs: string[]
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Fetch a block by height directly from a stacks-node (not Hiro's extended
|
|
442
|
+
* API — see {@link getBlock} for that). Returns `null` when the node has no
|
|
443
|
+
* block at that height.
|
|
444
|
+
*/
|
|
445
|
+
declare function getRawBlock(client: Client, params: GetRawBlockParams): Promise<RawBlockResponse | null>;
|
|
418
446
|
declare function getBlockHeight(client: Client): Promise<number>;
|
|
419
447
|
type ReadContractParams = {
|
|
420
448
|
contract: string
|
|
@@ -427,6 +455,21 @@ type GetContractAbiParams = {
|
|
|
427
455
|
contract: string
|
|
428
456
|
};
|
|
429
457
|
declare function getContractAbi(client: Client, params: GetContractAbiParams): Promise<any>;
|
|
458
|
+
type GetContractSourceParams = {
|
|
459
|
+
contract: string
|
|
460
|
+
};
|
|
461
|
+
type ContractSourceResponse = {
|
|
462
|
+
source: string
|
|
463
|
+
publish_height: number
|
|
464
|
+
marf_proof?: string
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* Fetch a deployed contract's Clarity source. Node-RPC only (`/v2/contracts/source`)
|
|
468
|
+
* — not available through Hiro's extended API or a tenant proxy, so `client`
|
|
469
|
+
* must be configured against a direct node transport. Returns `null` when the
|
|
470
|
+
* node has no source for the contract.
|
|
471
|
+
*/
|
|
472
|
+
declare function getContractSource(client: Client, params: GetContractSourceParams): Promise<ContractSourceResponse | null>;
|
|
430
473
|
type GetMapEntryParams = {
|
|
431
474
|
contract: string
|
|
432
475
|
mapName: string
|
|
@@ -594,6 +637,33 @@ type GetTransactionParams = {
|
|
|
594
637
|
* Returns `null` when the source has no record of the transaction.
|
|
595
638
|
*/
|
|
596
639
|
declare function getTransaction(client: Client, params: GetTransactionParams): Promise<TransactionReceipt | null>;
|
|
640
|
+
type GetAccountHistoryParams = {
|
|
641
|
+
address: string
|
|
642
|
+
/** Capped at 50. Default 20. */
|
|
643
|
+
limit?: number
|
|
644
|
+
};
|
|
645
|
+
type AccountHistoryResponse = {
|
|
646
|
+
results: unknown[]
|
|
647
|
+
total: number
|
|
648
|
+
};
|
|
649
|
+
/** Paginated transaction history for a principal (Hiro extended API). */
|
|
650
|
+
declare function getAccountHistory(client: Client, params: GetAccountHistoryParams): Promise<AccountHistoryResponse>;
|
|
651
|
+
/**
|
|
652
|
+
* Current mempool statistics: pending count, fee distribution, age buckets
|
|
653
|
+
* (Hiro extended API).
|
|
654
|
+
*/
|
|
655
|
+
declare function getMempoolStats(client: Client): Promise<any>;
|
|
656
|
+
type GetNftHoldingsParams = {
|
|
657
|
+
address: string
|
|
658
|
+
/** Capped at 50. Default 20. */
|
|
659
|
+
limit?: number
|
|
660
|
+
};
|
|
661
|
+
type NftHoldingsResponse = {
|
|
662
|
+
results: unknown[]
|
|
663
|
+
total: number
|
|
664
|
+
};
|
|
665
|
+
/** NFT holdings for a principal across all collections (Hiro extended API). */
|
|
666
|
+
declare function getNftHoldings(client: Client, params: GetNftHoldingsParams): Promise<NftHoldingsResponse>;
|
|
597
667
|
type WaitForTransactionReceiptParams = {
|
|
598
668
|
txid: string
|
|
599
669
|
/** Anchor-block confirmations to wait for. Default 1 (mined). */
|
|
@@ -1162,4 +1232,4 @@ declare class ContractResponseError extends Error {
|
|
|
1162
1232
|
name: string;
|
|
1163
1233
|
constructor(message: string, errorValue: unknown);
|
|
1164
1234
|
}
|
|
1165
|
-
export { watchTransaction, watchNftEvent, watchMempool, watchBlocks, watchAddressBalance, watchAddress, waitForTransactionReceipt, transferStx, sponsorTransaction, simulateTransaction, simulateCall, signTransactionAction, signMessage2 as signMessage, sendTransaction, resolveFee, readContract, multicall, minimumFee, isProviderAccount, isFeeTier, indexTxSource, getTransaction, getNonce, getMapEntry, getContractAbi, getContract, getBlockHeight, getBlock, getBalance, getAccountInfo, extendedApiSource, estimateFee, deployContract, callContract, WatchTransactionParams, WatchNftEventParams, WatchMempoolParams, WatchBlocksParams, WatchAddressParams, WatchAddressBalanceParams, WaitForTransactionReceiptParams, TransferStxParams, TransactionStatusSource, TransactionStatus, TransactionSnapshot, TransactionReceipt, SponsorTransactionParams, SimulateTransferResult, SimulateTransactionResult, SimulateTransactionParams, SimulateDeployResult, SimulateContractCallResult, SimulateCallSuccess, SimulateCallResult, SimulateCallParams, SimulateCallFailure, SignTransactionParams, SignMessageParams, SendTransactionResult, SendTransactionParams, ReadContractParams, MulticallSuccessResult, MulticallResult, MulticallParams, MulticallFailureResult, MulticallCall, IndexTxSourceParams, GetTransactionParams, GetNonceParams, GetMapEntryParams, GetContractParams, GetContractAbiParams, GetBlockParams, GetBalanceParams, GetAccountInfoParams, FeeTier, FeeParam, FeeEstimation, EstimateFeeParams, DeployContractParams, ContractResponseError, ContractInstance, ContractCallOptions, ContractBuildCallOptions, CallContractParams, AccountInfo };
|
|
1235
|
+
export { watchTransaction, watchNftEvent, watchMempool, watchBlocks, watchAddressBalance, watchAddress, waitForTransactionReceipt, transferStx, sponsorTransaction, simulateTransaction, simulateCall, signTransactionAction, signMessage2 as signMessage, sendTransaction, resolveFee, readContract, multicall, minimumFee, isProviderAccount, isFeeTier, indexTxSource, getTransaction, getRawBlock, getNonce, getNftHoldings, getMempoolStats, getMapEntry, getContractSource, getContractAbi, getContract, getBlockHeight, getBlock, getBalance, getAccountInfo, getAccountHistory, extendedApiSource, estimateFee, deployContract, callContract, WatchTransactionParams, WatchNftEventParams, WatchMempoolParams, WatchBlocksParams, WatchAddressParams, WatchAddressBalanceParams, WaitForTransactionReceiptParams, TransferStxParams, TransactionStatusSource, TransactionStatus, TransactionSnapshot, TransactionReceipt, SponsorTransactionParams, SimulateTransferResult, SimulateTransactionResult, SimulateTransactionParams, SimulateDeployResult, SimulateContractCallResult, SimulateCallSuccess, SimulateCallResult, SimulateCallParams, SimulateCallFailure, SignTransactionParams, SignMessageParams, SendTransactionResult, SendTransactionParams, ReadContractParams, RawBlockResponse, NftHoldingsResponse, MulticallSuccessResult, MulticallResult, MulticallParams, MulticallFailureResult, MulticallCall, IndexTxSourceParams, GetTransactionParams, GetRawBlockParams, GetNonceParams, GetNftHoldingsParams, GetMapEntryParams, GetContractSourceParams, GetContractParams, GetContractAbiParams, GetBlockParams, GetBalanceParams, GetAccountInfoParams, GetAccountHistoryParams, FeeTier, FeeParam, FeeEstimation, EstimateFeeParams, DeployContractParams, ContractSourceResponse, ContractResponseError, ContractInstance, ContractCallOptions, ContractBuildCallOptions, CallContractParams, AccountInfo, AccountHistoryResponse };
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContractResponseError,
|
|
3
3
|
getContract
|
|
4
|
-
} from "../../shared/stacks-
|
|
4
|
+
} from "../../shared/stacks-zzbkta7h.js";
|
|
5
5
|
import {
|
|
6
6
|
deployContract,
|
|
7
|
+
getAccountHistory,
|
|
7
8
|
getAccountInfo,
|
|
8
9
|
getBalance,
|
|
9
10
|
getBlock,
|
|
10
11
|
getContractAbi,
|
|
12
|
+
getContractSource,
|
|
13
|
+
getMempoolStats,
|
|
14
|
+
getNftHoldings,
|
|
15
|
+
getRawBlock,
|
|
11
16
|
getTransaction,
|
|
12
17
|
multicall,
|
|
13
18
|
signMessage,
|
|
@@ -15,11 +20,11 @@ import {
|
|
|
15
20
|
simulateCall,
|
|
16
21
|
simulateTransaction,
|
|
17
22
|
transferStx
|
|
18
|
-
} from "../../shared/stacks-
|
|
23
|
+
} from "../../shared/stacks-hjaqtgaq.js";
|
|
19
24
|
import {
|
|
20
25
|
callContract,
|
|
21
26
|
getMapEntry
|
|
22
|
-
} from "../../shared/stacks-
|
|
27
|
+
} from "../../shared/stacks-cqp2dgmc.js";
|
|
23
28
|
import {
|
|
24
29
|
readContract
|
|
25
30
|
} from "../../shared/stacks-msmgyerb.js";
|
|
@@ -33,7 +38,7 @@ import {
|
|
|
33
38
|
} from "../../shared/stacks-tjjnkt3r.js";
|
|
34
39
|
import {
|
|
35
40
|
sponsorTransaction
|
|
36
|
-
} from "../../shared/stacks-
|
|
41
|
+
} from "../../shared/stacks-hpcbn81g.js";
|
|
37
42
|
import {
|
|
38
43
|
estimateFee,
|
|
39
44
|
extendedApiSource,
|
|
@@ -46,7 +51,8 @@ import {
|
|
|
46
51
|
resolveFee,
|
|
47
52
|
sendTransaction,
|
|
48
53
|
waitForTransactionReceipt
|
|
49
|
-
} from "../../shared/stacks-
|
|
54
|
+
} from "../../shared/stacks-gh52j903.js";
|
|
55
|
+
import"../../shared/stacks-fh48neva.js";
|
|
50
56
|
import"../../shared/stacks-709tra19.js";
|
|
51
57
|
import"../../shared/stacks-18jv9aen.js";
|
|
52
58
|
import"../../shared/stacks-g11v9a35.js";
|
|
@@ -78,14 +84,19 @@ export {
|
|
|
78
84
|
isFeeTier,
|
|
79
85
|
indexTxSource,
|
|
80
86
|
getTransaction,
|
|
87
|
+
getRawBlock,
|
|
81
88
|
getNonce,
|
|
89
|
+
getNftHoldings,
|
|
90
|
+
getMempoolStats,
|
|
82
91
|
getMapEntry,
|
|
92
|
+
getContractSource,
|
|
83
93
|
getContractAbi,
|
|
84
94
|
getContract,
|
|
85
95
|
getBlockHeight,
|
|
86
96
|
getBlock,
|
|
87
97
|
getBalance,
|
|
88
98
|
getAccountInfo,
|
|
99
|
+
getAccountHistory,
|
|
89
100
|
extendedApiSource,
|
|
90
101
|
estimateFee,
|
|
91
102
|
deployContract,
|
|
@@ -93,5 +104,5 @@ export {
|
|
|
93
104
|
ContractResponseError
|
|
94
105
|
};
|
|
95
106
|
|
|
96
|
-
//# debugId=
|
|
107
|
+
//# debugId=B0E84684200EC53E64756E2164756E21
|
|
97
108
|
//# sourceMappingURL=index.js.map
|