boing-sdk 0.3.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/CHANGELOG.md +26 -0
- package/README.md +191 -0
- package/dist/accessList.d.ts +22 -0
- package/dist/accessList.d.ts.map +1 -0
- package/dist/accessList.js +45 -0
- package/dist/bincode.d.ts +92 -0
- package/dist/bincode.d.ts.map +1 -0
- package/dist/bincode.js +154 -0
- package/dist/callAbi.d.ts +119 -0
- package/dist/callAbi.d.ts.map +1 -0
- package/dist/callAbi.js +156 -0
- package/dist/calldata.d.ts +35 -0
- package/dist/calldata.d.ts.map +1 -0
- package/dist/calldata.js +93 -0
- package/dist/canonicalDeployArtifacts.d.ts +154 -0
- package/dist/canonicalDeployArtifacts.d.ts.map +1 -0
- package/dist/canonicalDeployArtifacts.js +271 -0
- package/dist/canonicalTestnet.d.ts +15 -0
- package/dist/canonicalTestnet.d.ts.map +1 -0
- package/dist/canonicalTestnet.js +15 -0
- package/dist/canonicalTestnetDex.d.ts +17 -0
- package/dist/canonicalTestnetDex.d.ts.map +1 -0
- package/dist/canonicalTestnetDex.js +17 -0
- package/dist/chainIds.d.ts +18 -0
- package/dist/chainIds.d.ts.map +1 -0
- package/dist/chainIds.js +56 -0
- package/dist/client.d.ts +223 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +659 -0
- package/dist/connectionMonitor.d.ts +47 -0
- package/dist/connectionMonitor.d.ts.map +1 -0
- package/dist/connectionMonitor.js +93 -0
- package/dist/create2.d.ts +94 -0
- package/dist/create2.d.ts.map +1 -0
- package/dist/create2.js +225 -0
- package/dist/dappDeploy.d.ts +100 -0
- package/dist/dappDeploy.d.ts.map +1 -0
- package/dist/dappDeploy.js +140 -0
- package/dist/dappUiHelpers.d.ts +28 -0
- package/dist/dappUiHelpers.d.ts.map +1 -0
- package/dist/dappUiHelpers.js +69 -0
- package/dist/defaultReferenceFungibleSecuredRuntimeBytecodeHex.d.ts +6 -0
- package/dist/defaultReferenceFungibleSecuredRuntimeBytecodeHex.d.ts.map +1 -0
- package/dist/defaultReferenceFungibleSecuredRuntimeBytecodeHex.js +5 -0
- package/dist/defaultReferenceFungibleSecuredTemplateBytecodeHex.d.ts +6 -0
- package/dist/defaultReferenceFungibleSecuredTemplateBytecodeHex.d.ts.map +1 -0
- package/dist/defaultReferenceFungibleSecuredTemplateBytecodeHex.js +5 -0
- package/dist/defaultReferenceFungibleTemplateBytecodeHex.d.ts +6 -0
- package/dist/defaultReferenceFungibleTemplateBytecodeHex.d.ts.map +1 -0
- package/dist/defaultReferenceFungibleTemplateBytecodeHex.js +5 -0
- package/dist/defaultReferenceNftCollectionTemplateBytecodeHex.d.ts +7 -0
- package/dist/defaultReferenceNftCollectionTemplateBytecodeHex.d.ts.map +1 -0
- package/dist/defaultReferenceNftCollectionTemplateBytecodeHex.js +6 -0
- package/dist/dexIntegration.d.ts +61 -0
- package/dist/dexIntegration.d.ts.map +1 -0
- package/dist/dexIntegration.js +193 -0
- package/dist/erc721Logs.d.ts +21 -0
- package/dist/erc721Logs.d.ts.map +1 -0
- package/dist/erc721Logs.js +69 -0
- package/dist/errors.d.ts +60 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +153 -0
- package/dist/hex.d.ts +27 -0
- package/dist/hex.d.ts.map +1 -0
- package/dist/hex.js +82 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +78 -0
- package/dist/indexerBatch.d.ts +111 -0
- package/dist/indexerBatch.d.ts.map +1 -0
- package/dist/indexerBatch.js +253 -0
- package/dist/indexerGaps.d.ts +50 -0
- package/dist/indexerGaps.d.ts.map +1 -0
- package/dist/indexerGaps.js +117 -0
- package/dist/indexerSync.d.ts +61 -0
- package/dist/indexerSync.d.ts.map +1 -0
- package/dist/indexerSync.js +100 -0
- package/dist/nativeAmm.d.ts +64 -0
- package/dist/nativeAmm.d.ts.map +1 -0
- package/dist/nativeAmm.js +174 -0
- package/dist/nativeAmmLogs.d.ts +48 -0
- package/dist/nativeAmmLogs.d.ts.map +1 -0
- package/dist/nativeAmmLogs.js +114 -0
- package/dist/nativeAmmLpVault.d.ts +94 -0
- package/dist/nativeAmmLpVault.d.ts.map +1 -0
- package/dist/nativeAmmLpVault.js +205 -0
- package/dist/nativeAmmPool.d.ts +124 -0
- package/dist/nativeAmmPool.d.ts.map +1 -0
- package/dist/nativeAmmPool.js +245 -0
- package/dist/nativeContractSubmit.d.ts +26 -0
- package/dist/nativeContractSubmit.d.ts.map +1 -0
- package/dist/nativeContractSubmit.js +23 -0
- package/dist/nativeDexDirectory.d.ts +83 -0
- package/dist/nativeDexDirectory.d.ts.map +1 -0
- package/dist/nativeDexDirectory.js +147 -0
- package/dist/nativeDexDirectoryApi.d.ts +121 -0
- package/dist/nativeDexDirectoryApi.d.ts.map +1 -0
- package/dist/nativeDexDirectoryApi.js +408 -0
- package/dist/nativeDexFactory.d.ts +25 -0
- package/dist/nativeDexFactory.d.ts.map +1 -0
- package/dist/nativeDexFactory.js +72 -0
- package/dist/nativeDexFactoryLogs.d.ts +19 -0
- package/dist/nativeDexFactoryLogs.d.ts.map +1 -0
- package/dist/nativeDexFactoryLogs.js +61 -0
- package/dist/nativeDexFactoryPool.d.ts +61 -0
- package/dist/nativeDexFactoryPool.d.ts.map +1 -0
- package/dist/nativeDexFactoryPool.js +120 -0
- package/dist/nativeDexIndexerStats.d.ts +96 -0
- package/dist/nativeDexIndexerStats.d.ts.map +1 -0
- package/dist/nativeDexIndexerStats.js +448 -0
- package/dist/nativeDexLedgerRouter.d.ts +67 -0
- package/dist/nativeDexLedgerRouter.d.ts.map +1 -0
- package/dist/nativeDexLedgerRouter.js +108 -0
- package/dist/nativeDexLpPositions.d.ts +39 -0
- package/dist/nativeDexLpPositions.d.ts.map +1 -0
- package/dist/nativeDexLpPositions.js +69 -0
- package/dist/nativeDexNftIndexer.d.ts +26 -0
- package/dist/nativeDexNftIndexer.d.ts.map +1 -0
- package/dist/nativeDexNftIndexer.js +50 -0
- package/dist/nativeDexPoolHistory.d.ts +40 -0
- package/dist/nativeDexPoolHistory.d.ts.map +1 -0
- package/dist/nativeDexPoolHistory.js +110 -0
- package/dist/nativeDexReceiptArchive.d.ts +25 -0
- package/dist/nativeDexReceiptArchive.d.ts.map +1 -0
- package/dist/nativeDexReceiptArchive.js +47 -0
- package/dist/nativeDexRouting.d.ts +160 -0
- package/dist/nativeDexRouting.d.ts.map +1 -0
- package/dist/nativeDexRouting.js +345 -0
- package/dist/nativeDexSeamless.d.ts +86 -0
- package/dist/nativeDexSeamless.d.ts.map +1 -0
- package/dist/nativeDexSeamless.js +131 -0
- package/dist/nativeDexSwap2Router.d.ts +45 -0
- package/dist/nativeDexSwap2Router.d.ts.map +1 -0
- package/dist/nativeDexSwap2Router.js +276 -0
- package/dist/nativeLpShareToken.d.ts +54 -0
- package/dist/nativeLpShareToken.d.ts.map +1 -0
- package/dist/nativeLpShareToken.js +135 -0
- package/dist/nativeTokenSecurity.d.ts +59 -0
- package/dist/nativeTokenSecurity.d.ts.map +1 -0
- package/dist/nativeTokenSecurity.js +59 -0
- package/dist/networkProfile.d.ts +8 -0
- package/dist/networkProfile.d.ts.map +1 -0
- package/dist/networkProfile.js +29 -0
- package/dist/newHeadsWs.d.ts +43 -0
- package/dist/newHeadsWs.d.ts.map +1 -0
- package/dist/newHeadsWs.js +139 -0
- package/dist/preflightGate.d.ts +16 -0
- package/dist/preflightGate.d.ts.map +1 -0
- package/dist/preflightGate.js +29 -0
- package/dist/receiptLogs.d.ts +29 -0
- package/dist/receiptLogs.d.ts.map +1 -0
- package/dist/receiptLogs.js +66 -0
- package/dist/referenceFungibleSecuredDeployBytecode.d.ts +54 -0
- package/dist/referenceFungibleSecuredDeployBytecode.d.ts.map +1 -0
- package/dist/referenceFungibleSecuredDeployBytecode.js +274 -0
- package/dist/referenceNft.d.ts +14 -0
- package/dist/referenceNft.d.ts.map +1 -0
- package/dist/referenceNft.js +34 -0
- package/dist/referenceToken.d.ts +14 -0
- package/dist/referenceToken.d.ts.map +1 -0
- package/dist/referenceToken.js +29 -0
- package/dist/retryAfter.d.ts +6 -0
- package/dist/retryAfter.d.ts.map +1 -0
- package/dist/retryAfter.js +24 -0
- package/dist/rpcCapabilities.d.ts +43 -0
- package/dist/rpcCapabilities.d.ts.map +1 -0
- package/dist/rpcCapabilities.js +159 -0
- package/dist/rpcDoctor.d.ts +27 -0
- package/dist/rpcDoctor.d.ts.map +1 -0
- package/dist/rpcDoctor.js +66 -0
- package/dist/rpcSurfaceUi.d.ts +32 -0
- package/dist/rpcSurfaceUi.d.ts.map +1 -0
- package/dist/rpcSurfaceUi.js +49 -0
- package/dist/submitFlow.d.ts +70 -0
- package/dist/submitFlow.d.ts.map +1 -0
- package/dist/submitFlow.js +121 -0
- package/dist/transactionBuilder.d.ts +55 -0
- package/dist/transactionBuilder.d.ts.map +1 -0
- package/dist/transactionBuilder.js +100 -0
- package/dist/types.d.ts +436 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/walletProvider.d.ts +46 -0
- package/dist/walletProvider.d.ts.map +1 -0
- package/dist/walletProvider.js +126 -0
- package/package.json +44 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dApp deploy helpers: QA preflight for **`contract_deploy_meta`** payloads (wizard “review” steps).
|
|
3
|
+
*
|
|
4
|
+
* See [BOING-CANONICAL-DEPLOY-ARTIFACTS.md](../../docs/BOING-CANONICAL-DEPLOY-ARTIFACTS.md),
|
|
5
|
+
* [BOING-DAPP-INTEGRATION.md](../../docs/BOING-DAPP-INTEGRATION.md).
|
|
6
|
+
*/
|
|
7
|
+
import { buildNativeConstantProductPoolDeployMetaTx, buildReferenceFungibleDeployMetaTx, buildReferenceFungibleSecuredDeployMetaTx, buildReferenceNftCollectionDeployMetaTx, } from './canonicalDeployArtifacts.js';
|
|
8
|
+
/**
|
|
9
|
+
* When **`boing_qaCheck`** needs **`asset_name` / `asset_symbol`** but the wizard has no description
|
|
10
|
+
* commitment yet, the RPC allows a **placeholder** 32-byte hash ([RPC-API-SPEC.md](../../docs/RPC-API-SPEC.md) § **boing_qaCheck**).
|
|
11
|
+
*/
|
|
12
|
+
export const BOING_QA_PLACEHOLDER_DESCRIPTION_HASH_HEX = `0x${'00'.repeat(32)}`;
|
|
13
|
+
/**
|
|
14
|
+
* Run **`boing_qaCheck`** using the same fields as a **`contract_deploy_meta`** tx object.
|
|
15
|
+
* Use on the **review** step of a deploy wizard so users see **allow / reject / unsure** before signing.
|
|
16
|
+
*/
|
|
17
|
+
export async function preflightContractDeployMetaQa(client, tx) {
|
|
18
|
+
const dh = tx.description_hash?.trim();
|
|
19
|
+
if (dh) {
|
|
20
|
+
return client.qaCheck(tx.bytecode, tx.purpose_category, dh, tx.asset_name, tx.asset_symbol);
|
|
21
|
+
}
|
|
22
|
+
return client.qaCheck(tx.bytecode, tx.purpose_category, BOING_QA_PLACEHOLDER_DESCRIPTION_HASH_HEX, tx.asset_name, tx.asset_symbol);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Map a **`boing_qaCheck`** response to user-facing copy (preflight or post-error messaging).
|
|
26
|
+
* Use with **`preflightContractDeployMetaQa`** on the review step, or after submit failures parsed as QA.
|
|
27
|
+
*/
|
|
28
|
+
export function describeContractDeployMetaQaResponse(qa) {
|
|
29
|
+
const outcome = qa.result;
|
|
30
|
+
switch (outcome) {
|
|
31
|
+
case 'allow':
|
|
32
|
+
return {
|
|
33
|
+
result: 'allow',
|
|
34
|
+
readyToSign: true,
|
|
35
|
+
headline: 'Ready to deploy',
|
|
36
|
+
detail: 'This deployment passed automated Boing quality checks. The user can sign when they are satisfied.',
|
|
37
|
+
tone: 'positive',
|
|
38
|
+
};
|
|
39
|
+
case 'reject': {
|
|
40
|
+
const rule = qa.rule_id?.trim();
|
|
41
|
+
const msg = qa.message?.trim();
|
|
42
|
+
const technical = rule && msg ? `${rule}: ${msg}` : msg || rule || 'This deployment does not meet network rules.';
|
|
43
|
+
return {
|
|
44
|
+
result: 'reject',
|
|
45
|
+
readyToSign: false,
|
|
46
|
+
headline: 'Deployment blocked by quality checks',
|
|
47
|
+
detail: `${technical} Adjust the contract, name, symbol, or purpose and try again, or see the network QA checklist for allowed deployments.`,
|
|
48
|
+
tone: 'destructive',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
case 'unsure':
|
|
52
|
+
return {
|
|
53
|
+
result: 'unsure',
|
|
54
|
+
readyToSign: true,
|
|
55
|
+
headline: 'Additional review may apply',
|
|
56
|
+
detail: 'Automated checks could not finalize a decision. After signing, the transaction may enter the community QA pool instead of landing immediately. Explain this to the user before they confirm.',
|
|
57
|
+
tone: 'warning',
|
|
58
|
+
};
|
|
59
|
+
default: {
|
|
60
|
+
const _exhaustive = outcome;
|
|
61
|
+
return _exhaustive;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Run **`preflightContractDeployMetaQa`** and attach {@link describeContractDeployMetaQaResponse} for one-shot UI wiring.
|
|
67
|
+
*/
|
|
68
|
+
export async function preflightContractDeployMetaWithUi(client, tx) {
|
|
69
|
+
const qa = await preflightContractDeployMetaQa(client, tx);
|
|
70
|
+
return { qa, ui: describeContractDeployMetaQaResponse(qa) };
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* **Wizard shortcut:** build pinned fungible **`contract_deploy_meta`** and run QA preflight with UI copy.
|
|
74
|
+
* Use the returned **`tx`** with **`boing_sendTransaction`** only when **`ui.readyToSign`** fits your product rules for **`unsure`**.
|
|
75
|
+
*/
|
|
76
|
+
export async function buildAndPreflightReferenceFungibleDeploy(client, input) {
|
|
77
|
+
const tx = buildReferenceFungibleDeployMetaTx(input);
|
|
78
|
+
const { qa, ui } = await preflightContractDeployMetaWithUi(client, tx);
|
|
79
|
+
return { tx, qa, ui };
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Same as {@link buildAndPreflightReferenceFungibleDeploy} for the reference NFT collection template.
|
|
83
|
+
*/
|
|
84
|
+
export async function buildAndPreflightReferenceNftCollectionDeployMeta(client, input) {
|
|
85
|
+
const tx = buildReferenceNftCollectionDeployMetaTx(input);
|
|
86
|
+
const { qa, ui } = await preflightContractDeployMetaWithUi(client, tx);
|
|
87
|
+
return { tx, qa, ui };
|
|
88
|
+
}
|
|
89
|
+
/** Default mempool QA **`purpose_category`** per integration kind (pool → **`dapp`** per native AMM docs). */
|
|
90
|
+
export function defaultPurposeCategoryForBoingDeployKind(kind) {
|
|
91
|
+
switch (kind) {
|
|
92
|
+
case 'token':
|
|
93
|
+
return 'token';
|
|
94
|
+
case 'nft':
|
|
95
|
+
return 'nft';
|
|
96
|
+
case 'liquidity_pool':
|
|
97
|
+
return 'dapp';
|
|
98
|
+
default: {
|
|
99
|
+
const _exhaustive = kind;
|
|
100
|
+
return _exhaustive;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Build **`contract_deploy_meta`** for token, NFT collection, or native CP pool — correct bytecode
|
|
106
|
+
* resolution and **`purpose_category`** for each **`kind`**.
|
|
107
|
+
*/
|
|
108
|
+
export function buildBoingIntegrationDeployMetaTx(input) {
|
|
109
|
+
switch (input.kind) {
|
|
110
|
+
case 'token': {
|
|
111
|
+
const { kind: _k, ...tokenFields } = input;
|
|
112
|
+
return buildReferenceFungibleSecuredDeployMetaTx(tokenFields);
|
|
113
|
+
}
|
|
114
|
+
case 'nft':
|
|
115
|
+
return buildReferenceNftCollectionDeployMetaTx(input);
|
|
116
|
+
case 'liquidity_pool':
|
|
117
|
+
return buildNativeConstantProductPoolDeployMetaTx(input);
|
|
118
|
+
default: {
|
|
119
|
+
const _exhaustive = input;
|
|
120
|
+
return _exhaustive;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* **One call:** build the meta tx for the chosen **`kind`**, run **`boing_qaCheck`**, return **`{ tx, qa, ui }`**
|
|
126
|
+
* (same as {@link preflightContractDeployMetaWithUi} plus the signed-ready payload).
|
|
127
|
+
*/
|
|
128
|
+
export async function preflightBoingIntegrationDeploy(client, input) {
|
|
129
|
+
const tx = buildBoingIntegrationDeployMetaTx(input);
|
|
130
|
+
const { qa, ui } = await preflightContractDeployMetaWithUi(client, tx);
|
|
131
|
+
return { tx, qa, ui };
|
|
132
|
+
}
|
|
133
|
+
/** Alias of {@link preflightBoingIntegrationDeploy} — same “build + QA UI” one-shot naming as token/NFT helpers. */
|
|
134
|
+
export const buildAndPreflightBoingIntegrationDeploy = preflightBoingIntegrationDeploy;
|
|
135
|
+
/**
|
|
136
|
+
* **Wizard shortcut** for native CP pool: build meta tx (default **`purpose_category: dapp`**) + QA preflight.
|
|
137
|
+
*/
|
|
138
|
+
export async function buildAndPreflightNativeConstantProductPoolDeploy(client, input) {
|
|
139
|
+
return preflightBoingIntegrationDeploy(client, { kind: 'liquidity_pool', ...input });
|
|
140
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for wallet / dApp UI copy and outbound links from **`boing_getNetworkInfo`**.
|
|
3
|
+
* Explorer URL layout follows common block-explorer patterns (`/tx/{hash}`, `/address/{hex}`).
|
|
4
|
+
*/
|
|
5
|
+
import type { NetworkInfo } from './types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Human-facing chain title: **`end_user.chain_display_name`**, then **`chain_name`**, then **`chain_id`**, else generic.
|
|
8
|
+
*/
|
|
9
|
+
export declare function displayChainTitle(info: NetworkInfo): string;
|
|
10
|
+
/** Base explorer URL from **`end_user.explorer_url`**, or **`undefined`** when unset. */
|
|
11
|
+
export declare function explorerBaseUrl(info: NetworkInfo): string | undefined;
|
|
12
|
+
/** Faucet URL from **`end_user.faucet_url`**, or **`undefined`** when unset. */
|
|
13
|
+
export declare function faucetUrl(info: NetworkInfo): string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Transaction deep link: `{base}/tx/{txHash}`.
|
|
16
|
+
* Returns **`undefined`** if no explorer base is configured.
|
|
17
|
+
*/
|
|
18
|
+
export declare function explorerTxUrl(info: NetworkInfo, txHashHex: string): string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Account deep link: `{base}/address/{accountIdHex}`.
|
|
21
|
+
* Returns **`undefined`** if no explorer base is configured.
|
|
22
|
+
*/
|
|
23
|
+
export declare function explorerAccountUrl(info: NetworkInfo, accountIdHex: string): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Optional “support” line combining **`explainBoingRpcError`** output with **`x-request-id`** when present.
|
|
26
|
+
*/
|
|
27
|
+
export declare function formatSupportHint(userMessage: string, requestId?: string | null): string;
|
|
28
|
+
//# sourceMappingURL=dappUiHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dappUiHelpers.d.ts","sourceRoot":"","sources":["../src/dappUiHelpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAY9C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAY3D;AAED,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAGrE;AAED,gFAAgF;AAChF,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAG/D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAItF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAI9F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAMxF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for wallet / dApp UI copy and outbound links from **`boing_getNetworkInfo`**.
|
|
3
|
+
* Explorer URL layout follows common block-explorer patterns (`/tx/{hash}`, `/address/{hex}`).
|
|
4
|
+
*/
|
|
5
|
+
function trimSlash(s) {
|
|
6
|
+
return s.replace(/\/+$/, '');
|
|
7
|
+
}
|
|
8
|
+
function ensure0x32(hex) {
|
|
9
|
+
const t = hex.trim();
|
|
10
|
+
if (t.startsWith('0x') || t.startsWith('0X'))
|
|
11
|
+
return t.toLowerCase();
|
|
12
|
+
return `0x${t.toLowerCase()}`;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Human-facing chain title: **`end_user.chain_display_name`**, then **`chain_name`**, then **`chain_id`**, else generic.
|
|
16
|
+
*/
|
|
17
|
+
export function displayChainTitle(info) {
|
|
18
|
+
const du = info.end_user;
|
|
19
|
+
if (du?.chain_display_name != null && du.chain_display_name.trim().length > 0) {
|
|
20
|
+
return du.chain_display_name.trim();
|
|
21
|
+
}
|
|
22
|
+
if (info.chain_name != null && info.chain_name.trim().length > 0) {
|
|
23
|
+
return info.chain_name.trim();
|
|
24
|
+
}
|
|
25
|
+
if (info.chain_id != null) {
|
|
26
|
+
return `Boing chain ${info.chain_id}`;
|
|
27
|
+
}
|
|
28
|
+
return 'Boing Network';
|
|
29
|
+
}
|
|
30
|
+
/** Base explorer URL from **`end_user.explorer_url`**, or **`undefined`** when unset. */
|
|
31
|
+
export function explorerBaseUrl(info) {
|
|
32
|
+
const u = info.end_user?.explorer_url?.trim();
|
|
33
|
+
return u && u.length > 0 ? trimSlash(u) : undefined;
|
|
34
|
+
}
|
|
35
|
+
/** Faucet URL from **`end_user.faucet_url`**, or **`undefined`** when unset. */
|
|
36
|
+
export function faucetUrl(info) {
|
|
37
|
+
const u = info.end_user?.faucet_url?.trim();
|
|
38
|
+
return u && u.length > 0 ? u : undefined;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Transaction deep link: `{base}/tx/{txHash}`.
|
|
42
|
+
* Returns **`undefined`** if no explorer base is configured.
|
|
43
|
+
*/
|
|
44
|
+
export function explorerTxUrl(info, txHashHex) {
|
|
45
|
+
const base = explorerBaseUrl(info);
|
|
46
|
+
if (base == null)
|
|
47
|
+
return undefined;
|
|
48
|
+
return `${base}/tx/${ensure0x32(txHashHex)}`;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Account deep link: `{base}/address/{accountIdHex}`.
|
|
52
|
+
* Returns **`undefined`** if no explorer base is configured.
|
|
53
|
+
*/
|
|
54
|
+
export function explorerAccountUrl(info, accountIdHex) {
|
|
55
|
+
const base = explorerBaseUrl(info);
|
|
56
|
+
if (base == null)
|
|
57
|
+
return undefined;
|
|
58
|
+
return `${base}/address/${ensure0x32(accountIdHex)}`;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Optional “support” line combining **`explainBoingRpcError`** output with **`x-request-id`** when present.
|
|
62
|
+
*/
|
|
63
|
+
export function formatSupportHint(userMessage, requestId) {
|
|
64
|
+
const rid = requestId?.trim();
|
|
65
|
+
if (rid && rid.length > 0) {
|
|
66
|
+
return `${userMessage}\n\nSupport ID: ${rid}`;
|
|
67
|
+
}
|
|
68
|
+
return userMessage;
|
|
69
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_fungible_secured_runtime_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `node boing-sdk/scripts/embed-reference-fungible-secured-template-hex.mjs`
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_REFERENCE_FUNGIBLE_SECURED_RUNTIME_BYTECODE_HEX: "0x7f0000000000000000000000000000000000000000000000000000000000000000517f00000000000000000000000000000000000000000000000000000000000000ff167f0000000000000000000000000000000000000000000000000000000000000180527f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000214157f0000000000000000000000000000000000000000000000000000000000000470577f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000002016157f000000000000000000000000000000000000000000000000000000000000013557007f00000000000000000000000000000000000000000000000000000000000000c25415157f000000000000000000000000000000000000000000000000000000000000046f57337f00000000000000000000000000000000000000000000000000000000000000c15414157f000000000000000000000000000000000000000000000000000000000000046f577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000001a051157f000000000000000000000000000000000000000000000000000000000000046f577f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f42414c5f5f5f00000000000000000018547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000001c051017f0000000000000000000000000000000000000000000000000000000000000200527f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001c051107f000000000000000000000000000000000000000000000000000000000000046f577f0000000000000000000000000000000000000000000000000000000000000200517f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f42414c5f5f5f00000000000000000018557f00000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000000c25500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000114157f000000000000000000000000000000000000000000000000000000000000107a577f00000000000000000000000000000000000000000000000000000000000000c654157f000000000000000000000000000000000000000000000000000000000000051d57007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000116157f00000000000000000000000000000000000000000000000000000000000005cc57337f424f494e475f524546534543555245445f44454e595f5f0000000000000000001854157f00000000000000000000000000000000000000000000000000000000000005cc57007f000000000000000000000000000000000000000000000000000000000000004051157f0000000000000000000000000000000000000000000000000000000000001079577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000116157f0000000000000000000000000000000000000000000000000000000000000769577f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f44454e595f5f0000000000000000001854157f000000000000000000000000000000000000000000000000000000000000076957007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000004016157f000000000000000000000000000000000000000000000000000000000000081757407f00000000000000000000000000000000000000000000000000000000000000ca54107f000000000000000000000000000000000000000000000000000000000000081757007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000816157f000000000000000000000000000000000000000000000000000000000000094f57407f00000000000000000000000000000000000000000000000000000000000000c754107f00000000000000000000000000000000000000000000000000000000000008e6577f000000000000000000000000000000000000000000000000000000000000094f567f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000000c85411157f000000000000000000000000000000000000000000000000000000000000094f57007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000216157f0000000000000000000000000000000000000000000000000000000000000a1f577f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000000c45411157f0000000000000000000000000000000000000000000000000000000000000a1f57007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000001016157f0000000000000000000000000000000000000000000000000000000000000bc057337f424f494e475f524546534543555245445f434f4f4c5f5f00000000000000000018547f0000000000000000000000000000000000000000000000000000000000000280527f000000000000000000000000000000000000000000000000000000000000028051157f0000000000000000000000000000000000000000000000000000000000000bc0577f0000000000000000000000000000000000000000000000000000000000000280517f00000000000000000000000000000000000000000000000000000000000000c954017f00000000000000000000000000000000000000000000000000000000000002a052417f00000000000000000000000000000000000000000000000000000000000002a05110157f0000000000000000000000000000000000000000000000000000000000000bc05700337f424f494e475f524546534543555245445f42414c5f5f5f000000000000000000187f0000000000000000000000000000000000000000000000000000000000000240527f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f42414c5f5f5f000000000000000000187f0000000000000000000000000000000000000000000000000000000000000260527f000000000000000000000000000000000000000000000000000000000000024051547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051107f0000000000000000000000000000000000000000000000000000000000001078577f000000000000000000000000000000000000000000000000000000000000026051547f00000000000000000000000000000000000000000000000000000000000001e0527f00000000000000000000000000000000000000000000000000000000000001e0517f00000000000000000000000000000000000000000000000000000000000001a051017f0000000000000000000000000000000000000000000000000000000000000200527f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000416157f0000000000000000000000000000000000000000000000000000000000000e93577f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000000c55411157f0000000000000000000000000000000000000000000000000000000000000e9357007f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001e051107f0000000000000000000000000000000000000000000000000000000000001078577f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051027f0000000000000000000000000000000000000000000000000000000000000220527f0000000000000000000000000000000000000000000000000000000000000220517f000000000000000000000000000000000000000000000000000000000000024051557f0000000000000000000000000000000000000000000000000000000000000200517f000000000000000000000000000000000000000000000000000000000000026051557f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000001016157f00000000000000000000000000000000000000000000000000000000000010775741337f424f494e475f524546534543555245445f434f4f4c5f5f00000000000000000018550000007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000314157f000000000000000000000000000000000000000000000000000000000000121857337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001217577f000000000000000000000000000000000000000000000000000000000000004051157f00000000000000000000000000000000000000000000000000000000000011b0577f00000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000011d1567f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000020517f424f494e475f524546534543555245445f44454e595f5f000000000000000000185500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000414157f000000000000000000000000000000000000000000000000000000000000139357337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001392577f000000000000000000000000000000000000000000000000000000000000004051157f000000000000000000000000000000000000000000000000000000000000134e577f00000000000000000000000000000000000000000000000000000000000000017f000000000000000000000000000000000000000000000000000000000000136f567f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c65500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000514157f000000000000000000000000000000000000000000000000000000000000148657337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001485577f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c15500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000714157f000000000000000000000000000000000000000000000000000000000000157a57337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001579577f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000000ca55000000";
|
|
6
|
+
//# sourceMappingURL=defaultReferenceFungibleSecuredRuntimeBytecodeHex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultReferenceFungibleSecuredRuntimeBytecodeHex.d.ts","sourceRoot":"","sources":["../src/defaultReferenceFungibleSecuredRuntimeBytecodeHex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,uDAAuD,4vVAAswV,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_fungible_secured_runtime_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `node boing-sdk/scripts/embed-reference-fungible-secured-template-hex.mjs`
|
|
4
|
+
*/
|
|
5
|
+
export const DEFAULT_REFERENCE_FUNGIBLE_SECURED_RUNTIME_BYTECODE_HEX = `0x7f0000000000000000000000000000000000000000000000000000000000000000517f00000000000000000000000000000000000000000000000000000000000000ff167f0000000000000000000000000000000000000000000000000000000000000180527f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000214157f0000000000000000000000000000000000000000000000000000000000000470577f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000002016157f000000000000000000000000000000000000000000000000000000000000013557007f00000000000000000000000000000000000000000000000000000000000000c25415157f000000000000000000000000000000000000000000000000000000000000046f57337f00000000000000000000000000000000000000000000000000000000000000c15414157f000000000000000000000000000000000000000000000000000000000000046f577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000001a051157f000000000000000000000000000000000000000000000000000000000000046f577f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f42414c5f5f5f00000000000000000018547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000001c051017f0000000000000000000000000000000000000000000000000000000000000200527f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001c051107f000000000000000000000000000000000000000000000000000000000000046f577f0000000000000000000000000000000000000000000000000000000000000200517f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f42414c5f5f5f00000000000000000018557f00000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000000c25500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000114157f000000000000000000000000000000000000000000000000000000000000107a577f00000000000000000000000000000000000000000000000000000000000000c654157f000000000000000000000000000000000000000000000000000000000000051d57007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000116157f00000000000000000000000000000000000000000000000000000000000005cc57337f424f494e475f524546534543555245445f44454e595f5f0000000000000000001854157f00000000000000000000000000000000000000000000000000000000000005cc57007f000000000000000000000000000000000000000000000000000000000000004051157f0000000000000000000000000000000000000000000000000000000000001079577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000116157f0000000000000000000000000000000000000000000000000000000000000769577f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f44454e595f5f0000000000000000001854157f000000000000000000000000000000000000000000000000000000000000076957007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000004016157f000000000000000000000000000000000000000000000000000000000000081757407f00000000000000000000000000000000000000000000000000000000000000ca54107f000000000000000000000000000000000000000000000000000000000000081757007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000816157f000000000000000000000000000000000000000000000000000000000000094f57407f00000000000000000000000000000000000000000000000000000000000000c754107f00000000000000000000000000000000000000000000000000000000000008e6577f000000000000000000000000000000000000000000000000000000000000094f567f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000000c85411157f000000000000000000000000000000000000000000000000000000000000094f57007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000216157f0000000000000000000000000000000000000000000000000000000000000a1f577f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000000c45411157f0000000000000000000000000000000000000000000000000000000000000a1f57007f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000001016157f0000000000000000000000000000000000000000000000000000000000000bc057337f424f494e475f524546534543555245445f434f4f4c5f5f00000000000000000018547f0000000000000000000000000000000000000000000000000000000000000280527f000000000000000000000000000000000000000000000000000000000000028051157f0000000000000000000000000000000000000000000000000000000000000bc0577f0000000000000000000000000000000000000000000000000000000000000280517f00000000000000000000000000000000000000000000000000000000000000c954017f00000000000000000000000000000000000000000000000000000000000002a052417f00000000000000000000000000000000000000000000000000000000000002a05110157f0000000000000000000000000000000000000000000000000000000000000bc05700337f424f494e475f524546534543555245445f42414c5f5f5f000000000000000000187f0000000000000000000000000000000000000000000000000000000000000240527f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f524546534543555245445f42414c5f5f5f000000000000000000187f0000000000000000000000000000000000000000000000000000000000000260527f000000000000000000000000000000000000000000000000000000000000024051547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051107f0000000000000000000000000000000000000000000000000000000000001078577f000000000000000000000000000000000000000000000000000000000000026051547f00000000000000000000000000000000000000000000000000000000000001e0527f00000000000000000000000000000000000000000000000000000000000001e0517f00000000000000000000000000000000000000000000000000000000000001a051017f0000000000000000000000000000000000000000000000000000000000000200527f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000000416157f0000000000000000000000000000000000000000000000000000000000000e93577f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000000c55411157f0000000000000000000000000000000000000000000000000000000000000e9357007f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001e051107f0000000000000000000000000000000000000000000000000000000000001078577f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051027f0000000000000000000000000000000000000000000000000000000000000220527f0000000000000000000000000000000000000000000000000000000000000220517f000000000000000000000000000000000000000000000000000000000000024051557f0000000000000000000000000000000000000000000000000000000000000200517f000000000000000000000000000000000000000000000000000000000000026051557f00000000000000000000000000000000000000000000000000000000000000c3547f000000000000000000000000000000000000000000000000000000000000001016157f00000000000000000000000000000000000000000000000000000000000010775741337f424f494e475f524546534543555245445f434f4f4c5f5f00000000000000000018550000007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000314157f000000000000000000000000000000000000000000000000000000000000121857337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001217577f000000000000000000000000000000000000000000000000000000000000004051157f00000000000000000000000000000000000000000000000000000000000011b0577f00000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000011d1567f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000020517f424f494e475f524546534543555245445f44454e595f5f000000000000000000185500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000414157f000000000000000000000000000000000000000000000000000000000000139357337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001392577f000000000000000000000000000000000000000000000000000000000000004051157f000000000000000000000000000000000000000000000000000000000000134e577f00000000000000000000000000000000000000000000000000000000000000017f000000000000000000000000000000000000000000000000000000000000136f567f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c65500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000514157f000000000000000000000000000000000000000000000000000000000000148657337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001485577f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c15500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000714157f000000000000000000000000000000000000000000000000000000000000157a57337f00000000000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000001579577f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000000ca55000000`;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_fungible_secured_pinned_default_deploy_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `node boing-sdk/scripts/embed-reference-fungible-secured-template-hex.mjs`
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_REFERENCE_FUNGIBLE_SECURED_TEMPLATE_BYTECODE_HEX: "0xfd337f00000000000000000000000000000000000000000000000000000000000000c155407f0000000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000000c7557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c3557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c4557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c5557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c8557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c9557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000ca557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c6557f7f000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000527f00517f00000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000020527f0000ff167f0000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000040527f0000000180527f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000060527f00000000000180517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000080527f00000000000000000214157f00000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000a0527f000000000000000000000470577f0000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c0527f00000000000000000000000000c3547f000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000e0527f0000000000000000000000000000002016157f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000100527f0000000000000000000000000000000000013557007f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000120527f000000000000000000000000000000000000000000c25415157f0000000000007f0000000000000000000000000000000000000000000000000000000000000140527f000000000000000000000000000000000000000000000000046f57337f0000007f0000000000000000000000000000000000000000000000000000000000000160527f00000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000000180527f7f000000000000000000000000000000000000000000000000000000000000047f00000000000000000000000000000000000000000000000000000000000001a0527f6f577f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000001c0527f000020517f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000001e0527f0000000160527f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000200527f00000000000040517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000220527f0000000000000001a0527f0000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000240527f00000000000000000001a051157f0000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000260527f000000000000000000000000046f577f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000280527f00000000000000000000000000000160517f424f494e475f52454653454355527f00000000000000000000000000000000000000000000000000000000000002a0527f45445f42414c5f5f5f00000000000000000018547f00000000000000000000007f00000000000000000000000000000000000000000000000000000000000002c0527f0000000000000000000000000000000000000001c0527f0000000000000000007f00000000000000000000000000000000000000000000000000000000000002e0527f00000000000000000000000000000000000000000001a0517f000000000000007f0000000000000000000000000000000000000000000000000000000000000300527f000000000000000000000000000000000000000000000001c051017f000000007f0000000000000000000000000000000000000000000000000000000000000320527f00000000000000000000000000000000000000000000000000000200527f00007f0000000000000000000000000000000000000000000000000000000000000340527f000000000000000000000000000000000000000000000000000000000200517f7f0000000000000000000000000000000000000000000000000000000000000360527f00000000000000000000000000000000000000000000000000000000000001c07f0000000000000000000000000000000000000000000000000000000000000380527f51107f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000003a0527f00046f577f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000003c0527f0000000200517f000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000003e0527f00000000000160517f424f494e475f524546534543555245445f42414c5f5f5f7f0000000000000000000000000000000000000000000000000000000000000400527f00000000000000000018557f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000420527f0000000000000000000000017f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000440527f000000000000000000000000c25500007f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000460527f0000000000000000000000000000000180517f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000480527f0000000000000000000000000000000000000114157f000000000000000000007f00000000000000000000000000000000000000000000000000000000000004a0527f0000000000000000000000000000000000000000107a577f00000000000000007f00000000000000000000000000000000000000000000000000000000000004c0527f0000000000000000000000000000000000000000000000c654157f00000000007f00000000000000000000000000000000000000000000000000000000000004e0527f00000000000000000000000000000000000000000000000000051d57007f00007f0000000000000000000000000000000000000000000000000000000000000500527f0000000000000000000000000000000000000000000000000000000000c3547f7f0000000000000000000000000000000000000000000000000000000000000520527f00000000000000000000000000000000000000000000000000000000000000017f0000000000000000000000000000000000000000000000000000000000000540527f16157f00000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000560527f0005cc57337f424f494e475f524546534543555245445f44454e595f5f0000007f0000000000000000000000000000000000000000000000000000000000000580527f0000000000001854157f000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000005a0527f000000000000000005cc57007f000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000005c0527f0000000000000000000000004051157f000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000005e0527f00000000000000000000000000001079577f00000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000600527f000000000000000000000000000000000020517f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000620527f0000000000000000000000000000000000000160527f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000640527f00000000000000000000000000000000000000000040517f00000000000000007f0000000000000000000000000000000000000000000000000000000000000660527f0000000000000000000000000000000000000000000001a0527f0000000000007f0000000000000000000000000000000000000000000000000000000000000680527f00000000000000000000000000000000000000000000000000c3547f000000007f00000000000000000000000000000000000000000000000000000000000006a0527f0000000000000000000000000000000000000000000000000000000116157f007f00000000000000000000000000000000000000000000000000000000000006c0527f00000000000000000000000000000000000000000000000000000000000769577f00000000000000000000000000000000000000000000000000000000000006e0527f7f000000000000000000000000000000000000000000000000000000000000017f0000000000000000000000000000000000000000000000000000000000000700527f60517f424f494e475f524546534543555245445f44454e595f5f0000000000007f0000000000000000000000000000000000000000000000000000000000000720527f0000001854157f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000740527f0000000000076957007f000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000760527f000000000000000000c3547f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000780527f00000000000000000000004016157f00000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000007a0527f00000000000000000000000000081757407f00000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000007c0527f0000000000000000000000000000000000ca54107f00000000000000000000007f00000000000000000000000000000000000000000000000000000000000007e0527f00000000000000000000000000000000000000081757007f00000000000000007f0000000000000000000000000000000000000000000000000000000000000800527f0000000000000000000000000000000000000000000000c3547f0000000000007f0000000000000000000000000000000000000000000000000000000000000820527f000000000000000000000000000000000000000000000000000816157f0000007f0000000000000000000000000000000000000000000000000000000000000840527f000000000000000000000000000000000000000000000000000000094f57407f7f0000000000000000000000000000000000000000000000000000000000000860527f00000000000000000000000000000000000000000000000000000000000000c77f0000000000000000000000000000000000000000000000000000000000000880527f54107f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000008a0527f0008e6577f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000008c0527f000000094f567f000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000008e0527f000000000001a0517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000900527f0000000000000000c85411157f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000920527f0000000000000000000000094f57007f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000940527f000000000000000000000000000000c3547f00000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000960527f00000000000000000000000000000000000216157f00000000000000000000007f0000000000000000000000000000000000000000000000000000000000000980527f000000000000000000000000000000000000000a1f577f0000000000000000007f00000000000000000000000000000000000000000000000000000000000009a0527f00000000000000000000000000000000000000000001a0517f000000000000007f00000000000000000000000000000000000000000000000000000000000009c0527f000000000000000000000000000000000000000000000000c45411157f0000007f00000000000000000000000000000000000000000000000000000000000009e0527f0000000000000000000000000000000000000000000000000000000a1f57007f7f0000000000000000000000000000000000000000000000000000000000000a00527f00000000000000000000000000000000000000000000000000000000000000c37f0000000000000000000000000000000000000000000000000000000000000a20527f547f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000a40527f001016157f0000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000a60527f0000000bc057337f424f494e475f524546534543555245445f434f4f4c5f5f007f0000000000000000000000000000000000000000000000000000000000000a80527f000000000000000018547f0000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000aa0527f0000000000000000000280527f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ac0527f0000000000000000000000028051157f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ae0527f00000000000000000000000000000bc0577f00000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000b00527f000000000000000000000000000000000280517f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000b20527f00000000000000000000000000000000000000c954017f0000000000000000007f0000000000000000000000000000000000000000000000000000000000000b40527f00000000000000000000000000000000000000000002a052417f0000000000007f0000000000000000000000000000000000000000000000000000000000000b60527f00000000000000000000000000000000000000000000000002a05110157f00007f0000000000000000000000000000000000000000000000000000000000000b80527f000000000000000000000000000000000000000000000000000000000bc057007f0000000000000000000000000000000000000000000000000000000000000ba0527f337f424f494e475f524546534543555245445f42414c5f5f5f000000000000007f0000000000000000000000000000000000000000000000000000000000000bc0527f0000187f000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000be0527f00000240527f00000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c00527f000000000160517f424f494e475f524546534543555245445f42414c5f5f5f007f0000000000000000000000000000000000000000000000000000000000000c20527f0000000000000000187f000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c40527f00000000000000000260527f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c60527f00000000000000000000024051547f00000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c80527f0000000000000000000000000001c0527f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ca0527f00000000000000000000000000000001c0517f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000cc0527f000000000000000000000000000000000001a051107f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ce0527f00000000000000000000000000000000000000001078577f00000000000000007f0000000000000000000000000000000000000000000000000000000000000d00527f00000000000000000000000000000000000000000000026051547f00000000007f0000000000000000000000000000000000000000000000000000000000000d20527f0000000000000000000000000000000000000000000000000001e0527f0000007f0000000000000000000000000000000000000000000000000000000000000d40527f00000000000000000000000000000000000000000000000000000001e0517f007f0000000000000000000000000000000000000000000000000000000000000d60527f000000000000000000000000000000000000000000000000000000000001a0517f0000000000000000000000000000000000000000000000000000000000000d80527f017f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000da0527f0200527f000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000dc0527f000000c3547f00000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000de0527f00000000000416157f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e00527f000000000000000e93577f0000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e20527f0000000000000000000200517f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e40527f000000000000000000000000c55411157f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e60527f0000000000000000000000000000000e9357007f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e80527f0000000000000000000000000000000000000200517f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ea0527f000000000000000000000000000000000000000001e051107f000000000000007f0000000000000000000000000000000000000000000000000000000000000ec0527f00000000000000000000000000000000000000000000001078577f00000000007f0000000000000000000000000000000000000000000000000000000000000ee0527f0000000000000000000000000000000000000000000000000001c0517f0000007f0000000000000000000000000000000000000000000000000000000000000f00527f00000000000000000000000000000000000000000000000000000001a051027f7f0000000000000000000000000000000000000000000000000000000000000f20527f00000000000000000000000000000000000000000000000000000000000002207f0000000000000000000000000000000000000000000000000000000000000f40527f527f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000f60527f0220517f000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000f80527f0000024051557f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000fa0527f00000000000200517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000fc0527f00000000000000026051557f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000fe0527f0000000000000000000000c3547f0000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001000527f000000000000000000000000001016157f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001020527f00000000000000000000000000000010775741337f424f494e475f52454653457f0000000000000000000000000000000000000000000000000000000000001040527f43555245445f434f4f4c5f5f00000000000000000018550000007f00000000007f0000000000000000000000000000000000000000000000000000000000001060527f000000000000000000000000000000000000000000000000000180517f0000007f0000000000000000000000000000000000000000000000000000000000001080527f000000000000000000000000000000000000000000000000000000000314157f7f00000000000000000000000000000000000000000000000000000000000010a0527f00000000000000000000000000000000000000000000000000000000000012187f00000000000000000000000000000000000000000000000000000000000010c0527f57337f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000010e0527f0000c15414157f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001100527f00000000001217577f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001120527f00000000000000004051157f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001140527f0000000000000000000011b0577f0000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001160527f00000000000000000000000000017f00000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001180527f0000000000000000000000000011d1567f0000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000011a0527f00000000000000000000000000000000007f00000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000011c0527f000000000000000000000000000000000020517f424f494e475f5245465345437f00000000000000000000000000000000000000000000000000000000000011e0527f555245445f44454e595f5f000000000000000000185500007f000000000000007f0000000000000000000000000000000000000000000000000000000000001200527f00000000000000000000000000000000000000000000000180517f00000000007f0000000000000000000000000000000000000000000000000000000000001220527f00000000000000000000000000000000000000000000000000000414157f00007f0000000000000000000000000000000000000000000000000000000000001240527f00000000000000000000000000000000000000000000000000000000139357337f0000000000000000000000000000000000000000000000000000000000001260527f7f000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001280527fc15414157f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000012a0527f0000001392577f000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000012c0527f0000000000004051157f000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000012e0527f0000000000000000134e577f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001300527f0000000000000000000000017f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001320527f0000000000000000000000136f567f00000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001340527f0000000000000000000000000000007f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001360527f000000000000000000000000000000c65500007f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001380527f0000000000000000000000000000000000000180517f000000000000000000007f00000000000000000000000000000000000000000000000000000000000013a0527f0000000000000000000000000000000000000000000514157f000000000000007f00000000000000000000000000000000000000000000000000000000000013c0527f0000000000000000000000000000000000000000000000148657337f000000007f00000000000000000000000000000000000000000000000000000000000013e0527f000000000000000000000000000000000000000000000000000000c15414157f7f0000000000000000000000000000000000000000000000000000000000001400527f00000000000000000000000000000000000000000000000000000000000014857f0000000000000000000000000000000000000000000000000000000000001420527f577f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001440527f00007f00000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001460527f0000c15500007f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001480527f00000000000180517f00000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000014a0527f00000000000000000714157f00000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000014c0527f00000000000000000000157a57337f00000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000014e0527f0000000000000000000000000000c15414157f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001500527f00000000000000000000000000000000001579577f00000000000000000000007f0000000000000000000000000000000000000000000000000000000000001520527f000000000000000000000000000000000000000040517f0000000000000000007f0000000000000000000000000000000000000000000000000000000000001540527f00000000000000000000000000000000000000000000ca5500000000000000007f0000000000000000000000000000000000000000000000000000000000001560527f000000000000000000000000000000000000000000000000000000000000157b7f0000000000000000000000000000000000000000000000000000000000000000f300";
|
|
6
|
+
//# sourceMappingURL=defaultReferenceFungibleSecuredTemplateBytecodeHex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultReferenceFungibleSecuredTemplateBytecodeHex.d.ts","sourceRoot":"","sources":["../src/defaultReferenceFungibleSecuredTemplateBytecodeHex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,wDAAwD,kxvBAA4xvB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_fungible_secured_pinned_default_deploy_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `node boing-sdk/scripts/embed-reference-fungible-secured-template-hex.mjs`
|
|
4
|
+
*/
|
|
5
|
+
export const DEFAULT_REFERENCE_FUNGIBLE_SECURED_TEMPLATE_BYTECODE_HEX = `0xfd337f00000000000000000000000000000000000000000000000000000000000000c155407f0000000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000000c7557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c3557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c4557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c5557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c8557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c9557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000ca557f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c6557f7f000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000527f00517f00000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000020527f0000ff167f0000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000040527f0000000180527f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000060527f00000000000180517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000080527f00000000000000000214157f00000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000a0527f000000000000000000000470577f0000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000c0527f00000000000000000000000000c3547f000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000e0527f0000000000000000000000000000002016157f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000100527f0000000000000000000000000000000000013557007f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000120527f000000000000000000000000000000000000000000c25415157f0000000000007f0000000000000000000000000000000000000000000000000000000000000140527f000000000000000000000000000000000000000000000000046f57337f0000007f0000000000000000000000000000000000000000000000000000000000000160527f00000000000000000000000000000000000000000000000000000000c15414157f0000000000000000000000000000000000000000000000000000000000000180527f7f000000000000000000000000000000000000000000000000000000000000047f00000000000000000000000000000000000000000000000000000000000001a0527f6f577f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000001c0527f000020517f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000001e0527f0000000160527f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000200527f00000000000040517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000220527f0000000000000001a0527f0000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000240527f00000000000000000001a051157f0000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000260527f000000000000000000000000046f577f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000280527f00000000000000000000000000000160517f424f494e475f52454653454355527f00000000000000000000000000000000000000000000000000000000000002a0527f45445f42414c5f5f5f00000000000000000018547f00000000000000000000007f00000000000000000000000000000000000000000000000000000000000002c0527f0000000000000000000000000000000000000001c0527f0000000000000000007f00000000000000000000000000000000000000000000000000000000000002e0527f00000000000000000000000000000000000000000001a0517f000000000000007f0000000000000000000000000000000000000000000000000000000000000300527f000000000000000000000000000000000000000000000001c051017f000000007f0000000000000000000000000000000000000000000000000000000000000320527f00000000000000000000000000000000000000000000000000000200527f00007f0000000000000000000000000000000000000000000000000000000000000340527f000000000000000000000000000000000000000000000000000000000200517f7f0000000000000000000000000000000000000000000000000000000000000360527f00000000000000000000000000000000000000000000000000000000000001c07f0000000000000000000000000000000000000000000000000000000000000380527f51107f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000003a0527f00046f577f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000003c0527f0000000200517f000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000003e0527f00000000000160517f424f494e475f524546534543555245445f42414c5f5f5f7f0000000000000000000000000000000000000000000000000000000000000400527f00000000000000000018557f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000420527f0000000000000000000000017f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000440527f000000000000000000000000c25500007f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000460527f0000000000000000000000000000000180517f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000480527f0000000000000000000000000000000000000114157f000000000000000000007f00000000000000000000000000000000000000000000000000000000000004a0527f0000000000000000000000000000000000000000107a577f00000000000000007f00000000000000000000000000000000000000000000000000000000000004c0527f0000000000000000000000000000000000000000000000c654157f00000000007f00000000000000000000000000000000000000000000000000000000000004e0527f00000000000000000000000000000000000000000000000000051d57007f00007f0000000000000000000000000000000000000000000000000000000000000500527f0000000000000000000000000000000000000000000000000000000000c3547f7f0000000000000000000000000000000000000000000000000000000000000520527f00000000000000000000000000000000000000000000000000000000000000017f0000000000000000000000000000000000000000000000000000000000000540527f16157f00000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000560527f0005cc57337f424f494e475f524546534543555245445f44454e595f5f0000007f0000000000000000000000000000000000000000000000000000000000000580527f0000000000001854157f000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000005a0527f000000000000000005cc57007f000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000005c0527f0000000000000000000000004051157f000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000005e0527f00000000000000000000000000001079577f00000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000600527f000000000000000000000000000000000020517f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000620527f0000000000000000000000000000000000000160527f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000640527f00000000000000000000000000000000000000000040517f00000000000000007f0000000000000000000000000000000000000000000000000000000000000660527f0000000000000000000000000000000000000000000001a0527f0000000000007f0000000000000000000000000000000000000000000000000000000000000680527f00000000000000000000000000000000000000000000000000c3547f000000007f00000000000000000000000000000000000000000000000000000000000006a0527f0000000000000000000000000000000000000000000000000000000116157f007f00000000000000000000000000000000000000000000000000000000000006c0527f00000000000000000000000000000000000000000000000000000000000769577f00000000000000000000000000000000000000000000000000000000000006e0527f7f000000000000000000000000000000000000000000000000000000000000017f0000000000000000000000000000000000000000000000000000000000000700527f60517f424f494e475f524546534543555245445f44454e595f5f0000000000007f0000000000000000000000000000000000000000000000000000000000000720527f0000001854157f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000740527f0000000000076957007f000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000760527f000000000000000000c3547f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000780527f00000000000000000000004016157f00000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000007a0527f00000000000000000000000000081757407f00000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000007c0527f0000000000000000000000000000000000ca54107f00000000000000000000007f00000000000000000000000000000000000000000000000000000000000007e0527f00000000000000000000000000000000000000081757007f00000000000000007f0000000000000000000000000000000000000000000000000000000000000800527f0000000000000000000000000000000000000000000000c3547f0000000000007f0000000000000000000000000000000000000000000000000000000000000820527f000000000000000000000000000000000000000000000000000816157f0000007f0000000000000000000000000000000000000000000000000000000000000840527f000000000000000000000000000000000000000000000000000000094f57407f7f0000000000000000000000000000000000000000000000000000000000000860527f00000000000000000000000000000000000000000000000000000000000000c77f0000000000000000000000000000000000000000000000000000000000000880527f54107f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000008a0527f0008e6577f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000008c0527f000000094f567f000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000008e0527f000000000001a0517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000900527f0000000000000000c85411157f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000920527f0000000000000000000000094f57007f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000940527f000000000000000000000000000000c3547f00000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000960527f00000000000000000000000000000000000216157f00000000000000000000007f0000000000000000000000000000000000000000000000000000000000000980527f000000000000000000000000000000000000000a1f577f0000000000000000007f00000000000000000000000000000000000000000000000000000000000009a0527f00000000000000000000000000000000000000000001a0517f000000000000007f00000000000000000000000000000000000000000000000000000000000009c0527f000000000000000000000000000000000000000000000000c45411157f0000007f00000000000000000000000000000000000000000000000000000000000009e0527f0000000000000000000000000000000000000000000000000000000a1f57007f7f0000000000000000000000000000000000000000000000000000000000000a00527f00000000000000000000000000000000000000000000000000000000000000c37f0000000000000000000000000000000000000000000000000000000000000a20527f547f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000a40527f001016157f0000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000a60527f0000000bc057337f424f494e475f524546534543555245445f434f4f4c5f5f007f0000000000000000000000000000000000000000000000000000000000000a80527f000000000000000018547f0000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000aa0527f0000000000000000000280527f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ac0527f0000000000000000000000028051157f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ae0527f00000000000000000000000000000bc0577f00000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000b00527f000000000000000000000000000000000280517f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000b20527f00000000000000000000000000000000000000c954017f0000000000000000007f0000000000000000000000000000000000000000000000000000000000000b40527f00000000000000000000000000000000000000000002a052417f0000000000007f0000000000000000000000000000000000000000000000000000000000000b60527f00000000000000000000000000000000000000000000000002a05110157f00007f0000000000000000000000000000000000000000000000000000000000000b80527f000000000000000000000000000000000000000000000000000000000bc057007f0000000000000000000000000000000000000000000000000000000000000ba0527f337f424f494e475f524546534543555245445f42414c5f5f5f000000000000007f0000000000000000000000000000000000000000000000000000000000000bc0527f0000187f000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000be0527f00000240527f00000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c00527f000000000160517f424f494e475f524546534543555245445f42414c5f5f5f007f0000000000000000000000000000000000000000000000000000000000000c20527f0000000000000000187f000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c40527f00000000000000000260527f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c60527f00000000000000000000024051547f00000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000c80527f0000000000000000000000000001c0527f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ca0527f00000000000000000000000000000001c0517f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000cc0527f000000000000000000000000000000000001a051107f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ce0527f00000000000000000000000000000000000000001078577f00000000000000007f0000000000000000000000000000000000000000000000000000000000000d00527f00000000000000000000000000000000000000000000026051547f00000000007f0000000000000000000000000000000000000000000000000000000000000d20527f0000000000000000000000000000000000000000000000000001e0527f0000007f0000000000000000000000000000000000000000000000000000000000000d40527f00000000000000000000000000000000000000000000000000000001e0517f007f0000000000000000000000000000000000000000000000000000000000000d60527f000000000000000000000000000000000000000000000000000000000001a0517f0000000000000000000000000000000000000000000000000000000000000d80527f017f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000da0527f0200527f000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000dc0527f000000c3547f00000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000de0527f00000000000416157f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e00527f000000000000000e93577f0000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e20527f0000000000000000000200517f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e40527f000000000000000000000000c55411157f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e60527f0000000000000000000000000000000e9357007f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000e80527f0000000000000000000000000000000000000200517f000000000000000000007f0000000000000000000000000000000000000000000000000000000000000ea0527f000000000000000000000000000000000000000001e051107f000000000000007f0000000000000000000000000000000000000000000000000000000000000ec0527f00000000000000000000000000000000000000000000001078577f00000000007f0000000000000000000000000000000000000000000000000000000000000ee0527f0000000000000000000000000000000000000000000000000001c0517f0000007f0000000000000000000000000000000000000000000000000000000000000f00527f00000000000000000000000000000000000000000000000000000001a051027f7f0000000000000000000000000000000000000000000000000000000000000f20527f00000000000000000000000000000000000000000000000000000000000002207f0000000000000000000000000000000000000000000000000000000000000f40527f527f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000f60527f0220517f000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000f80527f0000024051557f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000fa0527f00000000000200517f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000fc0527f00000000000000026051557f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000fe0527f0000000000000000000000c3547f0000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001000527f000000000000000000000000001016157f0000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001020527f00000000000000000000000000000010775741337f424f494e475f52454653457f0000000000000000000000000000000000000000000000000000000000001040527f43555245445f434f4f4c5f5f00000000000000000018550000007f00000000007f0000000000000000000000000000000000000000000000000000000000001060527f000000000000000000000000000000000000000000000000000180517f0000007f0000000000000000000000000000000000000000000000000000000000001080527f000000000000000000000000000000000000000000000000000000000314157f7f00000000000000000000000000000000000000000000000000000000000010a0527f00000000000000000000000000000000000000000000000000000000000012187f00000000000000000000000000000000000000000000000000000000000010c0527f57337f00000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000010e0527f0000c15414157f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001100527f00000000001217577f00000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001120527f00000000000000004051157f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001140527f0000000000000000000011b0577f0000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001160527f00000000000000000000000000017f00000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001180527f0000000000000000000000000011d1567f0000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000011a0527f00000000000000000000000000000000007f00000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000011c0527f000000000000000000000000000000000020517f424f494e475f5245465345437f00000000000000000000000000000000000000000000000000000000000011e0527f555245445f44454e595f5f000000000000000000185500007f000000000000007f0000000000000000000000000000000000000000000000000000000000001200527f00000000000000000000000000000000000000000000000180517f00000000007f0000000000000000000000000000000000000000000000000000000000001220527f00000000000000000000000000000000000000000000000000000414157f00007f0000000000000000000000000000000000000000000000000000000000001240527f00000000000000000000000000000000000000000000000000000000139357337f0000000000000000000000000000000000000000000000000000000000001260527f7f000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001280527fc15414157f0000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000012a0527f0000001392577f000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000012c0527f0000000000004051157f000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000012e0527f0000000000000000134e577f00000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001300527f0000000000000000000000017f000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001320527f0000000000000000000000136f567f00000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001340527f0000000000000000000000000000007f000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001360527f000000000000000000000000000000c65500007f0000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001380527f0000000000000000000000000000000000000180517f000000000000000000007f00000000000000000000000000000000000000000000000000000000000013a0527f0000000000000000000000000000000000000000000514157f000000000000007f00000000000000000000000000000000000000000000000000000000000013c0527f0000000000000000000000000000000000000000000000148657337f000000007f00000000000000000000000000000000000000000000000000000000000013e0527f000000000000000000000000000000000000000000000000000000c15414157f7f0000000000000000000000000000000000000000000000000000000000001400527f00000000000000000000000000000000000000000000000000000000000014857f0000000000000000000000000000000000000000000000000000000000001420527f577f0000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001440527f00007f00000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001460527f0000c15500007f000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001480527f00000000000180517f00000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000014a0527f00000000000000000714157f00000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000014c0527f00000000000000000000157a57337f00000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000014e0527f0000000000000000000000000000c15414157f000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000001500527f00000000000000000000000000000000001579577f00000000000000000000007f0000000000000000000000000000000000000000000000000000000000001520527f000000000000000000000000000000000000000040517f0000000000000000007f0000000000000000000000000000000000000000000000000000000000001540527f00000000000000000000000000000000000000000000ca5500000000000000007f0000000000000000000000000000000000000000000000000000000000001560527f000000000000000000000000000000000000000000000000000000000000157b7f0000000000000000000000000000000000000000000000000000000000000000f300`;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_fungible_template_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `node boing-sdk/scripts/embed-reference-fungible-template-hex.mjs`
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_REFERENCE_FUNGIBLE_TEMPLATE_BYTECODE_HEX: "0x337f00000000000000000000000000000000000000000000000000000000000000f054157f0000000000000000000000000000000000000000000000000000000000000068577f000000000000000000000000000000000000000000000000000000000000008b56337f00000000000000000000000000000000000000000000000000000000000000f0557f0000000000000000000000000000000000000000000000000000000000000000517f00000000000000000000000000000000000000000000000000000000000000ff167f0000000000000000000000000000000000000000000000000000000000000180527f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000214157f0000000000000000000000000000000000000000000000000000000000000493577f00000000000000000000000000000000000000000000000000000000000000f15415157f000000000000000000000000000000000000000000000000000000000000049257337f00000000000000000000000000000000000000000000000000000000000000f05414157f0000000000000000000000000000000000000000000000000000000000000492577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000001a051157f0000000000000000000000000000000000000000000000000000000000000492577f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f52454646554e4749424c455f42414c310000000000000000000018547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000001c051017f0000000000000000000000000000000000000000000000000000000000000200527f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001c051107f0000000000000000000000000000000000000000000000000000000000000492577f0000000000000000000000000000000000000000000000000000000000000200517f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f52454646554e4749424c455f42414c310000000000000000000018557f00000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000000f15500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000114157f0000000000000000000000000000000000000000000000000000000000000925577f000000000000000000000000000000000000000000000000000000000000004051157f0000000000000000000000000000000000000000000000000000000000000924577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a052337f424f494e475f52454646554e4749424c455f42414c3100000000000000000000187f0000000000000000000000000000000000000000000000000000000000000240527f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f52454646554e4749424c455f42414c3100000000000000000000187f0000000000000000000000000000000000000000000000000000000000000260527f000000000000000000000000000000000000000000000000000000000000024051547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051107f0000000000000000000000000000000000000000000000000000000000000923577f000000000000000000000000000000000000000000000000000000000000026051547f00000000000000000000000000000000000000000000000000000000000001e0527f00000000000000000000000000000000000000000000000000000000000001e0517f00000000000000000000000000000000000000000000000000000000000001a051017f0000000000000000000000000000000000000000000000000000000000000200527f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001e051107f0000000000000000000000000000000000000000000000000000000000000923577f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051027f0000000000000000000000000000000000000000000000000000000000000220527f0000000000000000000000000000000000000000000000000000000000000220517f000000000000000000000000000000000000000000000000000000000000024051557f0000000000000000000000000000000000000000000000000000000000000200517f0000000000000000000000000000000000000000000000000000000000000260515500000000";
|
|
6
|
+
//# sourceMappingURL=defaultReferenceFungibleTemplateBytecodeHex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultReferenceFungibleTemplateBytecodeHex.d.ts","sourceRoot":"","sources":["../src/defaultReferenceFungibleTemplateBytecodeHex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gDAAgD,klJAA4lJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_fungible_template_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `node boing-sdk/scripts/embed-reference-fungible-template-hex.mjs`
|
|
4
|
+
*/
|
|
5
|
+
export const DEFAULT_REFERENCE_FUNGIBLE_TEMPLATE_BYTECODE_HEX = `0x337f00000000000000000000000000000000000000000000000000000000000000f054157f0000000000000000000000000000000000000000000000000000000000000068577f000000000000000000000000000000000000000000000000000000000000008b56337f00000000000000000000000000000000000000000000000000000000000000f0557f0000000000000000000000000000000000000000000000000000000000000000517f00000000000000000000000000000000000000000000000000000000000000ff167f0000000000000000000000000000000000000000000000000000000000000180527f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000214157f0000000000000000000000000000000000000000000000000000000000000493577f00000000000000000000000000000000000000000000000000000000000000f15415157f000000000000000000000000000000000000000000000000000000000000049257337f00000000000000000000000000000000000000000000000000000000000000f05414157f0000000000000000000000000000000000000000000000000000000000000492577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000001a051157f0000000000000000000000000000000000000000000000000000000000000492577f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f52454646554e4749424c455f42414c310000000000000000000018547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001a0517f00000000000000000000000000000000000000000000000000000000000001c051017f0000000000000000000000000000000000000000000000000000000000000200527f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001c051107f0000000000000000000000000000000000000000000000000000000000000492577f0000000000000000000000000000000000000000000000000000000000000200517f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f52454646554e4749424c455f42414c310000000000000000000018557f00000000000000000000000000000000000000000000000000000000000000017f00000000000000000000000000000000000000000000000000000000000000f15500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000114157f0000000000000000000000000000000000000000000000000000000000000925577f000000000000000000000000000000000000000000000000000000000000004051157f0000000000000000000000000000000000000000000000000000000000000924577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a052337f424f494e475f52454646554e4749424c455f42414c3100000000000000000000187f0000000000000000000000000000000000000000000000000000000000000240527f0000000000000000000000000000000000000000000000000000000000000160517f424f494e475f52454646554e4749424c455f42414c3100000000000000000000187f0000000000000000000000000000000000000000000000000000000000000260527f000000000000000000000000000000000000000000000000000000000000024051547f00000000000000000000000000000000000000000000000000000000000001c0527f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051107f0000000000000000000000000000000000000000000000000000000000000923577f000000000000000000000000000000000000000000000000000000000000026051547f00000000000000000000000000000000000000000000000000000000000001e0527f00000000000000000000000000000000000000000000000000000000000001e0517f00000000000000000000000000000000000000000000000000000000000001a051017f0000000000000000000000000000000000000000000000000000000000000200527f0000000000000000000000000000000000000000000000000000000000000200517f00000000000000000000000000000000000000000000000000000000000001e051107f0000000000000000000000000000000000000000000000000000000000000923577f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a051027f0000000000000000000000000000000000000000000000000000000000000220527f0000000000000000000000000000000000000000000000000000000000000220517f000000000000000000000000000000000000000000000000000000000000024051557f0000000000000000000000000000000000000000000000000000000000000200517f0000000000000000000000000000000000000000000000000000000000000260515500000000`;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_nft_collection_template_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `cargo run … dump_reference_token_artifacts` (canonical deploy hex for NFT collection template).
|
|
4
|
+
* Must stay aligned with `REFERENCE_NFT_COLLECTION_TEMPLATE_VERSION`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEFAULT_REFERENCE_NFT_COLLECTION_TEMPLATE_BYTECODE_HEX: "0x337f00000000000000000000000000000000000000000000000000000000000000e054157f0000000000000000000000000000000000000000000000000000000000000068577f000000000000000000000000000000000000000000000000000000000000008b56337f00000000000000000000000000000000000000000000000000000000000000e0557f0000000000000000000000000000000000000000000000000000000000000000517f00000000000000000000000000000000000000000000000000000000000000ff167f0000000000000000000000000000000000000000000000000000000000000180527f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000514157f0000000000000000000000000000000000000000000000000000000000000382577f0000000000000000000000000000000000000000000000000000000000000020517f00000000000000000000000000000000000000000000000000000000000001a0527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001c052337f00000000000000000000000000000000000000000000000000000000000000e05414157f0000000000000000000000000000000000000000000000000000000000000249577f000000000000000000000000000000000000000000000000000000000000031a567f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e4552303100000000000000000000000018547f000000000000000000000000000000000000000000000000000000000000014052337f00000000000000000000000000000000000000000000000000000000000001405114157f0000000000000000000000000000000000000000000000000000000000000319577f000000000000000000000000000000000000000000000000000000000000031a56007f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4d4554413031000000000000000000000000001855007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000414157f000000000000000000000000000000000000000000000000000000000000067c577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e4552303100000000000000000000000018547f0000000000000000000000000000000000000000000000000000000000000140527f000000000000000000000000000000000000000000000000000000000000014051157f00000000000000000000000000000000000000000000000000000000000005cc57337f00000000000000000000000000000000000000000000000000000000000001405114157f000000000000000000000000000000000000000000000000000000000000067b577f0000000000000000000000000000000000000000000000000000000000000160517f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e45523031000000000000000000000000185500337f00000000000000000000000000000000000000000000000000000000000000e05414157f000000000000000000000000000000000000000000000000000000000000067b577f0000000000000000000000000000000000000000000000000000000000000160517f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e45523031000000000000000000000000185500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000314157f000000000000000000000000000000000000000000000000000000000000076e577f0000000000000000000000000000000000000000000000000000000000000020517f424f494e475f5245464e46545f4f574e4552303100000000000000000000000018547f00000000000000000000000000000000000000000000000000000000000002005260207f0000000000000000000000000000000000000000000000000000000000000200f300";
|
|
7
|
+
//# sourceMappingURL=defaultReferenceNftCollectionTemplateBytecodeHex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultReferenceNftCollectionTemplateBytecodeHex.d.ts","sourceRoot":"","sources":["../src/defaultReferenceNftCollectionTemplateBytecodeHex.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,sDAAsD,ouHAA8uH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `reference_nft_collection_template_bytecode()` from `boing-execution`.
|
|
3
|
+
* Regenerate: `cargo run … dump_reference_token_artifacts` (canonical deploy hex for NFT collection template).
|
|
4
|
+
* Must stay aligned with `REFERENCE_NFT_COLLECTION_TEMPLATE_VERSION`.
|
|
5
|
+
*/
|
|
6
|
+
export const DEFAULT_REFERENCE_NFT_COLLECTION_TEMPLATE_BYTECODE_HEX = `0x337f00000000000000000000000000000000000000000000000000000000000000e054157f0000000000000000000000000000000000000000000000000000000000000068577f000000000000000000000000000000000000000000000000000000000000008b56337f00000000000000000000000000000000000000000000000000000000000000e0557f0000000000000000000000000000000000000000000000000000000000000000517f00000000000000000000000000000000000000000000000000000000000000ff167f0000000000000000000000000000000000000000000000000000000000000180527f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000514157f0000000000000000000000000000000000000000000000000000000000000382577f0000000000000000000000000000000000000000000000000000000000000020517f00000000000000000000000000000000000000000000000000000000000001a0527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001c052337f00000000000000000000000000000000000000000000000000000000000000e05414157f0000000000000000000000000000000000000000000000000000000000000249577f000000000000000000000000000000000000000000000000000000000000031a567f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e4552303100000000000000000000000018547f000000000000000000000000000000000000000000000000000000000000014052337f00000000000000000000000000000000000000000000000000000000000001405114157f0000000000000000000000000000000000000000000000000000000000000319577f000000000000000000000000000000000000000000000000000000000000031a56007f00000000000000000000000000000000000000000000000000000000000001c0517f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4d4554413031000000000000000000000000001855007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000414157f000000000000000000000000000000000000000000000000000000000000067c577f0000000000000000000000000000000000000000000000000000000000000020517f0000000000000000000000000000000000000000000000000000000000000160527f0000000000000000000000000000000000000000000000000000000000000040517f00000000000000000000000000000000000000000000000000000000000001a0527f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e4552303100000000000000000000000018547f0000000000000000000000000000000000000000000000000000000000000140527f000000000000000000000000000000000000000000000000000000000000014051157f00000000000000000000000000000000000000000000000000000000000005cc57337f00000000000000000000000000000000000000000000000000000000000001405114157f000000000000000000000000000000000000000000000000000000000000067b577f0000000000000000000000000000000000000000000000000000000000000160517f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e45523031000000000000000000000000185500337f00000000000000000000000000000000000000000000000000000000000000e05414157f000000000000000000000000000000000000000000000000000000000000067b577f0000000000000000000000000000000000000000000000000000000000000160517f00000000000000000000000000000000000000000000000000000000000001a0517f424f494e475f5245464e46545f4f574e45523031000000000000000000000000185500007f0000000000000000000000000000000000000000000000000000000000000180517f000000000000000000000000000000000000000000000000000000000000000314157f000000000000000000000000000000000000000000000000000000000000076e577f0000000000000000000000000000000000000000000000000000000000000020517f424f494e475f5245464e46545f4f574e4552303100000000000000000000000018547f00000000000000000000000000000000000000000000000000000000000002005260207f0000000000000000000000000000000000000000000000000000000000000200f300`;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One-call defaults for native Boing DEX wiring: merge **`boing_getNetworkInfo.end_user`**
|
|
3
|
+
* hints with embedded testnet fallbacks and app overrides.
|
|
4
|
+
*
|
|
5
|
+
* See [BOING-DAPP-INTEGRATION.md](../../docs/BOING-DAPP-INTEGRATION.md) § **Seamless native DEX defaults**.
|
|
6
|
+
*/
|
|
7
|
+
import type { BoingClient } from './client.js';
|
|
8
|
+
import { type NativeDexFactoryRegisterRpcParsed } from './nativeDexFactoryLogs.js';
|
|
9
|
+
import type { NetworkInfo } from './types.js';
|
|
10
|
+
export type NativeDexDefaultSource = 'rpc_end_user' | 'sdk_testnet_embedded' | 'override' | 'none';
|
|
11
|
+
/** Resolved pool / factory / router / LP helper accounts for native DEX UIs and calldata builders. */
|
|
12
|
+
export type NativeDexIntegrationDefaults = {
|
|
13
|
+
nativeCpPoolAccountHex: `0x${string}` | null;
|
|
14
|
+
nativeDexFactoryAccountHex: `0x${string}` | null;
|
|
15
|
+
poolSource: NativeDexDefaultSource;
|
|
16
|
+
factorySource: NativeDexDefaultSource;
|
|
17
|
+
nativeDexMultihopSwapRouterAccountHex: `0x${string}` | null;
|
|
18
|
+
nativeDexMultihopSwapRouterSource: NativeDexDefaultSource;
|
|
19
|
+
nativeDexLedgerRouterV2AccountHex: `0x${string}` | null;
|
|
20
|
+
nativeDexLedgerRouterV2Source: NativeDexDefaultSource;
|
|
21
|
+
nativeDexLedgerRouterV3AccountHex: `0x${string}` | null;
|
|
22
|
+
nativeDexLedgerRouterV3Source: NativeDexDefaultSource;
|
|
23
|
+
nativeAmmLpVaultAccountHex: `0x${string}` | null;
|
|
24
|
+
nativeAmmLpVaultSource: NativeDexDefaultSource;
|
|
25
|
+
nativeLpShareTokenAccountHex: `0x${string}` | null;
|
|
26
|
+
nativeLpShareTokenSource: NativeDexDefaultSource;
|
|
27
|
+
/** From `boing_getNetworkInfo.end_user.explorer_url` when set (https URL). */
|
|
28
|
+
endUserExplorerUrl: string | null;
|
|
29
|
+
};
|
|
30
|
+
export type NativeDexIntegrationOverrides = {
|
|
31
|
+
nativeCpPoolAccountHex?: string;
|
|
32
|
+
nativeDexFactoryAccountHex?: string;
|
|
33
|
+
nativeDexMultihopSwapRouterAccountHex?: string;
|
|
34
|
+
nativeDexLedgerRouterV2AccountHex?: string;
|
|
35
|
+
nativeDexLedgerRouterV3AccountHex?: string;
|
|
36
|
+
nativeAmmLpVaultAccountHex?: string;
|
|
37
|
+
nativeLpShareTokenAccountHex?: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Build {@link NativeDexIntegrationOverrides} from **`process.env`** (Node / Vite / CRA).
|
|
41
|
+
* First non-empty value wins per key group. Safe to call from browser bundles if env is injected at build time.
|
|
42
|
+
*/
|
|
43
|
+
export declare function buildNativeDexIntegrationOverridesFromProcessEnv(): NativeDexIntegrationOverrides;
|
|
44
|
+
/**
|
|
45
|
+
* Merge RPC **`end_user`** canonical addresses, optional app overrides, and embedded **6913** fallbacks
|
|
46
|
+
* (see [`canonicalTestnetDex.ts`](./canonicalTestnetDex.ts)).
|
|
47
|
+
* Order per field: overrides → node hints → testnet embedded constants.
|
|
48
|
+
*/
|
|
49
|
+
export declare function mergeNativeDexIntegrationDefaults(info: NetworkInfo | null | undefined, overrides?: NativeDexIntegrationOverrides): NativeDexIntegrationDefaults;
|
|
50
|
+
/** Fetch **`boing_getNetworkInfo`** and {@link mergeNativeDexIntegrationDefaults}. */
|
|
51
|
+
export declare function fetchNativeDexIntegrationDefaults(client: BoingClient, overrides?: NativeDexIntegrationOverrides): Promise<NativeDexIntegrationDefaults>;
|
|
52
|
+
/**
|
|
53
|
+
* Stream **`register_pair`** **`Log3`** rows for a factory (chunked **`boing_getLogs`**).
|
|
54
|
+
* Requires a known factory **`AccountId`** (from {@link NativeDexIntegrationDefaults} or CREATE2 prediction).
|
|
55
|
+
*/
|
|
56
|
+
export declare function fetchNativeDexFactoryRegisterLogs(client: BoingClient, opts: {
|
|
57
|
+
factoryAccountHex: string;
|
|
58
|
+
fromBlock: number;
|
|
59
|
+
toBlock: number;
|
|
60
|
+
}): Promise<NativeDexFactoryRegisterRpcParsed[]>;
|
|
61
|
+
//# sourceMappingURL=dexIntegration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dexIntegration.d.ts","sourceRoot":"","sources":["../src/dexIntegration.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAc/C,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAa9C,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,sBAAsB,GAAG,UAAU,GAAG,MAAM,CAAC;AAEnG,sGAAsG;AACtG,MAAM,MAAM,4BAA4B,GAAG;IACzC,sBAAsB,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IAC7C,0BAA0B,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IACjD,UAAU,EAAE,sBAAsB,CAAC;IACnC,aAAa,EAAE,sBAAsB,CAAC;IACtC,qCAAqC,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IAC5D,iCAAiC,EAAE,sBAAsB,CAAC;IAC1D,iCAAiC,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IACxD,6BAA6B,EAAE,sBAAsB,CAAC;IACtD,iCAAiC,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IACxD,6BAA6B,EAAE,sBAAsB,CAAC;IACtD,0BAA0B,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IACjD,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,4BAA4B,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IACnD,wBAAwB,EAAE,sBAAsB,CAAC;IACjD,8EAA8E;IAC9E,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC,CAAC;AAwCF;;;GAGG;AACH,wBAAgB,gDAAgD,IAAI,6BAA6B,CA+ChG;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,EACpC,SAAS,CAAC,EAAE,6BAA6B,GACxC,4BAA4B,CA4E9B;AAED,sFAAsF;AACtF,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,WAAW,EACnB,SAAS,CAAC,EAAE,6BAA6B,GACxC,OAAO,CAAC,4BAA4B,CAAC,CAGvC;AAED;;;GAGG;AACH,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE;IACJ,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,GACA,OAAO,CAAC,iCAAiC,EAAE,CAAC,CAkB9C"}
|