@ouronet/ouronet-core 4.3.6

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.
Files changed (101) hide show
  1. package/CHANGELOG.md +3043 -0
  2. package/README.md +1940 -0
  3. package/dist/codex/codec.d.ts +77 -0
  4. package/dist/codex/codec.js +123 -0
  5. package/dist/codex/errors.d.ts +14 -0
  6. package/dist/codex/errors.js +20 -0
  7. package/dist/codex/index.d.ts +27 -0
  8. package/dist/codex/index.js +25 -0
  9. package/dist/codex/seedTypeMigration.d.ts +35 -0
  10. package/dist/codex/seedTypeMigration.js +45 -0
  11. package/dist/codex/types.d.ts +100 -0
  12. package/dist/codex/types.js +19 -0
  13. package/dist/constants/index.d.ts +2 -0
  14. package/dist/constants/index.js +3 -0
  15. package/dist/constants/ouronet.d.ts +33 -0
  16. package/dist/constants/ouronet.js +59 -0
  17. package/dist/constants/tokenIds.d.ts +13 -0
  18. package/dist/constants/tokenIds.js +21 -0
  19. package/dist/index.d.ts +18 -0
  20. package/dist/index.js +1 -0
  21. package/dist/interactions/activateFunctions.d.ts +67 -0
  22. package/dist/interactions/activateFunctions.js +154 -0
  23. package/dist/interactions/addLiquidityFunctions.d.ts +140 -0
  24. package/dist/interactions/addLiquidityFunctions.js +485 -0
  25. package/dist/interactions/coilFunctions.d.ts +73 -0
  26. package/dist/interactions/coilFunctions.js +213 -0
  27. package/dist/interactions/crossChainFunctions.d.ts +211 -0
  28. package/dist/interactions/crossChainFunctions.js +463 -0
  29. package/dist/interactions/dexAcquisitionPoolFunctions.d.ts +18 -0
  30. package/dist/interactions/dexAcquisitionPoolFunctions.js +18 -0
  31. package/dist/interactions/dexCollectablesFunctions.d.ts +28 -0
  32. package/dist/interactions/dexCollectablesFunctions.js +227 -0
  33. package/dist/interactions/dexFunctions.d.ts +23 -0
  34. package/dist/interactions/dexFunctions.js +23 -0
  35. package/dist/interactions/dexOrtoFungibleFunctions.d.ts +33 -0
  36. package/dist/interactions/dexOrtoFungibleFunctions.js +171 -0
  37. package/dist/interactions/dexParseFunctions.d.ts +150 -0
  38. package/dist/interactions/dexParseFunctions.js +316 -0
  39. package/dist/interactions/dexSwapPairAdminFunctions.d.ts +75 -0
  40. package/dist/interactions/dexSwapPairAdminFunctions.js +255 -0
  41. package/dist/interactions/dexSwapPairCalcFunctions.d.ts +55 -0
  42. package/dist/interactions/dexSwapPairCalcFunctions.js +218 -0
  43. package/dist/interactions/dexSwapPairDashboardFunctions.d.ts +47 -0
  44. package/dist/interactions/dexSwapPairDashboardFunctions.js +179 -0
  45. package/dist/interactions/dexSwapPairExecuteFunctions.d.ts +40 -0
  46. package/dist/interactions/dexSwapPairExecuteFunctions.js +301 -0
  47. package/dist/interactions/dexSwapPairSmartSwapFunctions.d.ts +25 -0
  48. package/dist/interactions/dexSwapPairSmartSwapFunctions.js +166 -0
  49. package/dist/interactions/dexTrueFungibleFunctions.d.ts +52 -0
  50. package/dist/interactions/dexTrueFungibleFunctions.js +220 -0
  51. package/dist/interactions/dexTypes.d.ts +465 -0
  52. package/dist/interactions/dexTypes.js +6 -0
  53. package/dist/interactions/errors.d.ts +12 -0
  54. package/dist/interactions/errors.js +13 -0
  55. package/dist/interactions/guardFunctions.d.ts +33 -0
  56. package/dist/interactions/guardFunctions.js +110 -0
  57. package/dist/interactions/index.d.ts +1 -0
  58. package/dist/interactions/index.js +20 -0
  59. package/dist/interactions/infoOneFunctions.d.ts +133 -0
  60. package/dist/interactions/infoOneFunctions.js +566 -0
  61. package/dist/interactions/kadenaFunctions.d.ts +11 -0
  62. package/dist/interactions/kadenaFunctions.js +40 -0
  63. package/dist/interactions/kpayFunctions.d.ts +45 -0
  64. package/dist/interactions/kpayFunctions.js +191 -0
  65. package/dist/interactions/ouroAccountFunctions.d.ts +64 -0
  66. package/dist/interactions/ouroAccountFunctions.js +229 -0
  67. package/dist/interactions/ouroBalanceFunctions.d.ts +39 -0
  68. package/dist/interactions/ouroBalanceFunctions.js +100 -0
  69. package/dist/interactions/ouroCoilFunctions.d.ts +33 -0
  70. package/dist/interactions/ouroCoilFunctions.js +190 -0
  71. package/dist/interactions/ouroFunctions.d.ts +23 -0
  72. package/dist/interactions/ouroFunctions.js +23 -0
  73. package/dist/interactions/ouroMovieBoosterFunctions.d.ts +18 -0
  74. package/dist/interactions/ouroMovieBoosterFunctions.js +203 -0
  75. package/dist/interactions/ouroPriceFunctions.d.ts +38 -0
  76. package/dist/interactions/ouroPriceFunctions.js +96 -0
  77. package/dist/interactions/ouroPrimordialsFunctions.d.ts +10 -0
  78. package/dist/interactions/ouroPrimordialsFunctions.js +480 -0
  79. package/dist/interactions/ouroRotateFunctions.d.ts +22 -0
  80. package/dist/interactions/ouroRotateFunctions.js +114 -0
  81. package/dist/interactions/ouroSubCompressFunctions.d.ts +23 -0
  82. package/dist/interactions/ouroSubCompressFunctions.js +191 -0
  83. package/dist/interactions/ouroTransferFunctions.d.ts +14 -0
  84. package/dist/interactions/ouroTransferFunctions.js +87 -0
  85. package/dist/interactions/ouroTypes.d.ts +113 -0
  86. package/dist/interactions/ouroTypes.js +6 -0
  87. package/dist/interactions/ouroUrStoaFunctions.d.ts +16 -0
  88. package/dist/interactions/ouroUrStoaFunctions.js +121 -0
  89. package/dist/interactions/ouroWrapFunctions.d.ts +22 -0
  90. package/dist/interactions/ouroWrapFunctions.js +234 -0
  91. package/dist/interactions/pensionFunctions.d.ts +12 -0
  92. package/dist/interactions/pensionFunctions.js +127 -0
  93. package/dist/interactions/urStoaFunctions.d.ts +104 -0
  94. package/dist/interactions/urStoaFunctions.js +475 -0
  95. package/dist/interactions/wrapFunctions.d.ts +46 -0
  96. package/dist/interactions/wrapFunctions.js +221 -0
  97. package/dist/pact/cfmBuilders.d.ts +807 -0
  98. package/dist/pact/cfmBuilders.js +812 -0
  99. package/dist/pact/index.d.ts +1 -0
  100. package/dist/pact/index.js +10 -0
  101. package/package.json +64 -0
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Typed error for shape mismatches in Kadena RPC envelopes.
3
+ *
4
+ * Mirrors `InvalidEnvelopeError` (stoa-core/signing/partialSig.ts): extends
5
+ * Error (NOT TypeError — TypeError is reserved for input-validation seam
6
+ * errors), uses ES2022 Error.cause for original-envelope propagation.
7
+ */
8
+ export class KadenaShapeError extends Error {
9
+ constructor(message, options) {
10
+ super(message, options);
11
+ this.name = "KadenaShapeError";
12
+ }
13
+ }
@@ -0,0 +1,33 @@
1
+ import type { IKadenaKeypair } from "@stoachain/stoa-core/signing";
2
+ export interface IDescribedKeyset {
3
+ keys: string[];
4
+ pred: string;
5
+ }
6
+ export interface RotateGuardParams {
7
+ patronAddress: string;
8
+ accountAddress: string;
9
+ mode: "define" | "existing";
10
+ newKeys?: string[];
11
+ newPred?: string;
12
+ keysetRef?: string;
13
+ safe: boolean;
14
+ gasStationKey: IKadenaKeypair;
15
+ patronGuardKeys: IKadenaKeypair[];
16
+ accountGuardKeys: IKadenaKeypair[];
17
+ newGuardKeys: IKadenaKeypair[];
18
+ }
19
+ /**
20
+ * Query RotateGuard info object from the chain.
21
+ * (ouronet-ns.DALOS-INFO.DALOS-INFO|URC_RotateGuard <patron> <account>)
22
+ */
23
+ export declare function getRotateGuardInfo(patron: string, account: string): Promise<any | null>;
24
+ /**
25
+ * Describe a keyset on-chain.
26
+ * (describe-keyset "keysetName")
27
+ */
28
+ export declare function describeKeyset(keysetName: string): Promise<IDescribedKeyset>;
29
+ /**
30
+ * Rotate Guard for an Ouronet account.
31
+ * (ouronet-ns.TS01-C1.DALOS|C_RotateGuard patron account GUARD_EXPR SAFE)
32
+ */
33
+ export declare function rotateGuard(params: RotateGuardParams): Promise<import("@stoachain/kadena-stoic-legacy/client").ITransactionDescriptor>;
@@ -0,0 +1,110 @@
1
+ import { calculateAutoGasLimit } from "@stoachain/stoa-core/gas";
2
+ import { KADENA_CHAIN_ID, KADENA_NAMESPACE, STOA_AUTONOMIC_OURONETGASSTATION, KADENA_NETWORK, } from "../constants/index.js";
3
+ import { Pact } from "@stoachain/kadena-stoic-legacy/client";
4
+ import { getFailoverClient } from "@stoachain/stoa-core/network";
5
+ import { pactRead } from "@stoachain/stoa-core/reads";
6
+ import { universalSignTransaction, fromKeypair } from "@stoachain/stoa-core/signing";
7
+ import { createSimulationError, logDetailedError } from "@stoachain/stoa-core/errors";
8
+ import { safeCreationTime } from "@stoachain/stoa-core/pact";
9
+ import { getLogger } from "@stoachain/stoa-core/observability";
10
+ /**
11
+ * Query RotateGuard info object from the chain.
12
+ * (ouronet-ns.DALOS-INFO.DALOS-INFO|URC_RotateGuard <patron> <account>)
13
+ */
14
+ export async function getRotateGuardInfo(patron, account) {
15
+ try {
16
+ const pactCode = `(${KADENA_NAMESPACE}.INFO-ZERO.DALOS-INFO|URC_RotateGuard "${patron}" "${account}")`;
17
+ const response = await pactRead(pactCode, { tier: "T7" });
18
+ if (response?.result?.status === "success") {
19
+ return response.result.data;
20
+ }
21
+ return null;
22
+ }
23
+ catch (error) {
24
+ getLogger().error("Error getting RotateGuard info:", error);
25
+ return null;
26
+ }
27
+ }
28
+ /**
29
+ * Describe a keyset on-chain.
30
+ * (describe-keyset "keysetName")
31
+ */
32
+ export async function describeKeyset(keysetName) {
33
+ const pactCode = `(describe-keyset "${keysetName}")`;
34
+ const response = await pactRead(pactCode, { tier: "T7" });
35
+ if (response?.result?.status === "success") {
36
+ const data = response.result.data;
37
+ return { keys: data.keys, pred: data.pred };
38
+ }
39
+ throw new Error(response?.result?.error?.message || "Failed to describe keyset");
40
+ }
41
+ /**
42
+ * Rotate Guard for an Ouronet account.
43
+ * (ouronet-ns.TS01-C1.DALOS|C_RotateGuard patron account GUARD_EXPR SAFE)
44
+ */
45
+ export async function rotateGuard(params) {
46
+ const { patronAddress, accountAddress, mode, newKeys, newPred, keysetRef, safe, gasStationKey, patronGuardKeys, accountGuardKeys, newGuardKeys, } = params;
47
+ let gasLimit = 2000000;
48
+ const guardExpr = mode === "define"
49
+ ? `(read-keyset "ks")`
50
+ : `(keyset-ref-guard "${keysetRef}")`;
51
+ // Collect all unique signers: gasStation + patronGuard + accountGuard + newGuard
52
+ const allSigners = [gasStationKey];
53
+ const addedPubs = new Set([gasStationKey.publicKey]);
54
+ for (const k of [...patronGuardKeys, ...accountGuardKeys, ...newGuardKeys]) {
55
+ if (!addedPubs.has(k.publicKey)) {
56
+ allSigners.push(k);
57
+ addedPubs.add(k.publicKey);
58
+ }
59
+ }
60
+ const buildTransaction = (gasLimitOverride) => {
61
+ let builder = Pact.builder.execution(`(${KADENA_NAMESPACE}.TS01-C1.DALOS|C_RotateGuard "${patronAddress}" "${accountAddress}" ${guardExpr} ${safe})`);
62
+ // Add keyset data for "define" mode
63
+ if (mode === "define" && newKeys && newPred) {
64
+ builder = builder.addData("ks", {
65
+ keys: newKeys,
66
+ pred: newPred,
67
+ });
68
+ }
69
+ builder = builder
70
+ .setMeta({
71
+ senderAccount: STOA_AUTONOMIC_OURONETGASSTATION,
72
+ creationTime: safeCreationTime(),
73
+ chainId: KADENA_CHAIN_ID,
74
+ gasLimit: gasLimitOverride || gasLimit,
75
+ })
76
+ .setNetworkId(KADENA_NETWORK)
77
+ // Gas Station key: GAS_PAYER capability
78
+ .addSigner(gasStationKey.publicKey, (withCapability) => [
79
+ withCapability(`${KADENA_NAMESPACE}.DALOS.GAS_PAYER`, "", { int: 0 }, { decimal: "0.0" }),
80
+ ]);
81
+ // All other keys: pure signers
82
+ const addedSignerPubs = new Set([gasStationKey.publicKey]);
83
+ for (const k of [
84
+ ...patronGuardKeys,
85
+ ...accountGuardKeys,
86
+ ...newGuardKeys,
87
+ ]) {
88
+ if (!addedSignerPubs.has(k.publicKey)) {
89
+ builder = builder.addSigner(k.publicKey);
90
+ addedSignerPubs.add(k.publicKey);
91
+ }
92
+ }
93
+ return builder.createTransaction();
94
+ };
95
+ const { dirtyRead, submit } = getFailoverClient(KADENA_CHAIN_ID);
96
+ let transaction = buildTransaction();
97
+ const simulation = await dirtyRead(transaction);
98
+ if (simulation.result.status === "failure") {
99
+ const error = createSimulationError("Rotate Guard", simulation.result, `Patron: ${patronAddress} | Account: ${accountAddress} | Mode: ${mode} | Safe: ${safe}`);
100
+ logDetailedError(error);
101
+ throw error;
102
+ }
103
+ const requiredGas = simulation.gas;
104
+ if (requiredGas) {
105
+ gasLimit = calculateAutoGasLimit(requiredGas);
106
+ transaction = buildTransaction(gasLimit);
107
+ }
108
+ const signedTransaction = await universalSignTransaction(transaction, allSigners.map((s) => fromKeypair(s)));
109
+ return await submit(signedTransaction);
110
+ }
@@ -0,0 +1 @@
1
+ export * from "./ouroFunctions.js";
@@ -0,0 +1,20 @@
1
+ // @ouronet/ouronet-core/interactions
2
+ //
3
+ // Pact builders + submit helpers for every on-chain action OuronetUI (and
4
+ // the future HUB backend) performs. Thirteen files in this directory — they
5
+ // have overlapping symbol names, so consumers should import from specific
6
+ // subpaths rather than via this barrel:
7
+ //
8
+ // import { executeCoil } from "@ouronet/ouronet-core/interactions/wrapFunctions";
9
+ //
10
+ // IKadenaKeypair lives in @stoachain/stoa-core/signing — chain-generic key
11
+ // shape, not Ouronet-specific. v4.0.0 removed the Phase-2b backwards-compat
12
+ // re-declaration that previously lived in interactions/ouroFunctions.ts;
13
+ // consumers should import directly:
14
+ //
15
+ // import type { IKadenaKeypair } from "@stoachain/stoa-core/signing";
16
+ //
17
+ // This barrel re-exports only ouroFunctions (the canonical source for
18
+ // IOuroAccountKeypair and the Ouronet-specific function-shaped types) for
19
+ // the convenience of any caller that wants just those.
20
+ export * from "./ouroFunctions.js";
@@ -0,0 +1,133 @@
1
+ /**
2
+ * Parse transfer preview data to extract relevant information
3
+ */
4
+ export interface TransferPreviewData {
5
+ ignisNeed: string;
6
+ ignisText: string;
7
+ preText: string[];
8
+ postText: string[];
9
+ kadenaFree: boolean;
10
+ }
11
+ export declare function parseTransferPreview(previewData: any): TransferPreviewData | null;
12
+ /**
13
+ * Get transfer preview information
14
+ * (INFO-ONE.DPTF|INFO_Transfer patron id sender receiver transfer-amount)
15
+ */
16
+ export declare function getTransferPreview(patronAddress: string, tokenId: string, senderAddress: string, receiverAddress: string, amount: string): Promise<{
17
+ result: any;
18
+ } | null>;
19
+ /**
20
+ * Get coil preview information from INFO-ONE
21
+ * (INFO-ONE.ATS|INFO_Coil patron coiler ats reward-token coil-amount)
22
+ */
23
+ export declare function getCoilPreviewInfo(patronAddress: string, coilerAddress: string, atsId: string, rewardTokenId: string, amount: string): Promise<{
24
+ result: any;
25
+ } | null>;
26
+ /**
27
+ * Get curl preview information from INFO-ONE
28
+ * (INFO-ONE.ATS|INFO_Curl patron curler ats1 ats2 reward-token curl-amount)
29
+ */
30
+ export declare function getCurlPreviewInfo(patronAddress: string, curlerAddress: string, ats1Id: string, ats2Id: string, rewardTokenId: string, amount: string): Promise<{
31
+ result: any;
32
+ } | null>;
33
+ /**
34
+ * Get brumate preview information from INFO-ONE
35
+ * (INFO-ONE.ATS|INFO_Brumate patron brumator ats1 ats2 reward-token brumate-amount dayz)
36
+ */
37
+ export declare function getBrumatePreviewInfo(patronAddress: string, brumatorAddress: string, ats1Id: string, ats2Id: string, rewardTokenId: string, amount: string, lockDays: number): Promise<{
38
+ result: any;
39
+ } | null>;
40
+ /**
41
+ * Get constrict preview information from INFO-ONE
42
+ * (INFO-ONE.ATS|INFO_Constrict patron constricter ats reward-token constrict-amount dayz)
43
+ */
44
+ export declare function getConstrictPreviewInfo(patronAddress: string, constracterAddress: string, atsId: string, rewardTokenId: string, amount: string, lockDays: number): Promise<{
45
+ result: any;
46
+ } | null>;
47
+ /**
48
+ * Get Sublimate info from INFO-ONE
49
+ * (ouronet-ns.INFO-ONE.ORBR|INFO_Sublimate <client:string> <target:string> <ouro-amount:decimal>)
50
+ */
51
+ export declare function getSublimateInfo(client: string, target: string, amount: number): Promise<any>;
52
+ /**
53
+ * Get Firestarter info from INFO-ONE
54
+ * (ouronet-ns.INFO-ONE.SWP|INFO_Firestarter <firestarter:string>)
55
+ */
56
+ export declare function getFirestarterInfo(firestarter: string): Promise<any>;
57
+ /**
58
+ * Get ChangeOwnership info from INFO-ONE
59
+ * (ouronet-ns.INFO-ONE.SWP|INFO_ChangeOwnership <patron> <swpair> <new-owner>)
60
+ */
61
+ export declare function getChangeOwnershipInfo(patron: string, swpair: string, newOwner: string): Promise<any>;
62
+ /**
63
+ * Get ModifyWeights info from INFO-ONE
64
+ * (ouronet-ns.INFO-ONE.SWP|INFO_ModifyWeights <patron> <swpair> <new-weights:[decimal]>)
65
+ */
66
+ export declare function getModifyWeightsInfo(patron: string, swpair: string, newWeights: string[]): Promise<any>;
67
+ /**
68
+ * Get ToggleSwapCapability info from INFO-ONE
69
+ * (ouronet-ns.INFO-ONE.SWP|INFO_ToggleSwapCapability <patron> <swpair> <toggle:bool>)
70
+ */
71
+ export declare function getToggleSwapCapabilityInfo(patron: string, swpair: string, toggle: boolean): Promise<any>;
72
+ /**
73
+ * Get ToggleAddLiquidity info from INFO-ONE
74
+ * (ouronet-ns.INFO-ONE.SWP|INFO_ToggleAddLiquidity <patron> <swpair> <toggle:bool>)
75
+ */
76
+ export declare function getToggleAddLiquidityInfo(patron: string, swpair: string, toggle: boolean): Promise<any>;
77
+ /**
78
+ * Get ModifyCanChangeOwner info from INFO-ONE
79
+ * (ouronet-ns.INFO-ONE.SWP|INFO_ModifyCanChangeOwner <patron> <swpair> <new-boolean:bool>)
80
+ */
81
+ export declare function getModifyCanChangeOwnerInfo(patron: string, swpair: string, newBoolean: boolean): Promise<any>;
82
+ /**
83
+ * Get DPTF Transfer info from INFO-ONE
84
+ * (ouronet-ns.INFO-ONE.DPTF|INFO_Transfer <patron> <token-id> <sender> <receiver> <amount>)
85
+ */
86
+ export declare function getTransferInfo(patron: string, tokenId: string, sender: string, receiver: string, amount: number): Promise<any>;
87
+ export declare function getRecoveryPrimordial(atsId: string, residentAddress: string): Promise<Record<string, any> | null>;
88
+ export declare function getColdRecoveryInfo(patronAddress: string, recovererAddress: string, atsId: string, ra: string): Promise<any | null>;
89
+ export declare function getDirectRecoveryInfo(patronAddress: string, recovererAddress: string, atsId: string, ra: string): Promise<any | null>;
90
+ export declare function getMaxRecoveryAmount(atsId: string, residentAddress: string): Promise<string | null>;
91
+ export declare function getCullInfo(patronAddress: string, cullerAddress: string, atsId: string): Promise<any>;
92
+ export interface HibernatedNonce {
93
+ nonce: number;
94
+ "nonce-supply": number;
95
+ "mint-time": string;
96
+ "release-time": string;
97
+ "hibernating-fee-promile": number;
98
+ remainder: number;
99
+ "hibernating-fee": number;
100
+ }
101
+ export declare function getHibernatedNoncesDisplay(residentAccount: string, dpof: string, sortBy?: "nonce" | "fee-promile"): Promise<HibernatedNonce[] | null>;
102
+ export declare function getAwakeInfo(patron: string, awaker: string, dpof: string, nonce: number): Promise<Record<string, unknown> | null>;
103
+ export declare function getSlumberInfo(patron: string, merger: string, dpof: string, nonces: number[]): Promise<Record<string, unknown> | null>;
104
+ /**
105
+ * Get ClearDispo preview info from INFO-ONE
106
+ * (ouronet-ns.INFO-ONE.DPTF|INFO_ClearDispo <patron:string> <account:string>)
107
+ */
108
+ export declare function getClearDispoInfo(patronAddress: string, accountAddress: string): Promise<any>;
109
+ /**
110
+ * INFO_AddLiquidity — dirty read for add liquidity preview.
111
+ * (ouronet-ns.INFO-ONE.SWP|INFO_AddLiquidity patron account swpair input-amounts kda-pid)
112
+ */
113
+ export declare function getInfoAddLiquidity(patron: string, account: string, swpair: string, inputAmounts: string[], kdaPid: string): Promise<any | null>;
114
+ /**
115
+ * INFO_Fuel — dirty read for fuel preview.
116
+ * (ouronet-ns.INFO-ONE.SWP|INFO_Fuel patron account swpair input-amounts)
117
+ */
118
+ export declare function getInfoFuel(patron: string, account: string, swpair: string, inputAmounts: string[]): Promise<any | null>;
119
+ /**
120
+ * INFO_SinglePoolSwap — dirty read for single-input swap preview.
121
+ * (ouronet-ns.INFO-ONE.SWP|INFO_SinglePoolSwap patron account swpair input-id input-amount output-id)
122
+ */
123
+ export declare function getInfoSinglePoolSwap(patron: string, account: string, swpair: string, inputId: string, inputAmount: string, outputId: string): Promise<any | null>;
124
+ /**
125
+ * INFO_MultiPoolSwap — dirty read for multi-input swap preview.
126
+ * (ouronet-ns.INFO-ONE.SWP|INFO_MultiPoolSwap patron account swpair input-ids input-amounts output-id)
127
+ */
128
+ export declare function getInfoMultiPoolSwap(patron: string, account: string, swpair: string, inputIds: string[], inputAmounts: string[], outputId: string): Promise<any | null>;
129
+ /**
130
+ * INFO_RemoveLiquidity — dirty read for remove liquidity (unfold) preview.
131
+ * (ouronet-ns.INFO-ONE.SWP|INFO_RemoveLiquidity patron account swpair lp-amount)
132
+ */
133
+ export declare function getInfoRemoveLiquidity(patron: string, account: string, swpair: string, lpAmount: string): Promise<any | null>;