@xoxno/sdk-js 1.0.213 → 1.0.214

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 (52) hide show
  1. package/README.md +58 -42
  2. package/dist/cjs/index.d.ts +3 -3
  3. package/dist/cjs/sdk/index.d.ts +4 -4
  4. package/dist/cjs/sdk/stellar/__tests__/integration.test.d.ts +1 -0
  5. package/dist/cjs/sdk/stellar/admin.d.ts +28 -28
  6. package/dist/cjs/sdk/stellar/cctp.d.ts +2 -2
  7. package/dist/cjs/sdk/stellar/contracts.d.ts +98 -61
  8. package/dist/cjs/sdk/stellar/events/index.d.ts +2 -2
  9. package/dist/cjs/sdk/stellar/governance.d.ts +50 -49
  10. package/dist/cjs/sdk/stellar/index.d.ts +22 -14
  11. package/dist/cjs/sdk/stellar/lending-api-types.d.ts +943 -0
  12. package/dist/cjs/sdk/stellar/lending-read-types.d.ts +54 -269
  13. package/dist/cjs/sdk/stellar/lending-read.d.ts +279 -131
  14. package/dist/cjs/sdk/stellar/lending.d.ts +134 -63
  15. package/dist/cjs/sdk/stellar/prepare.d.ts +27 -7
  16. package/dist/cjs/sdk/stellar/quote.d.ts +16 -9
  17. package/dist/cjs/sdk/stellar/swap.d.ts +4 -5
  18. package/dist/cjs/sdk/stellar-schema.d.ts +5 -0
  19. package/dist/cjs/sdk/swagger.d.ts +63 -51
  20. package/dist/cjs/sdk/types.d.ts +2 -2
  21. package/dist/cjs/utils/api.d.ts +14 -4
  22. package/dist/cjs/utils/const.d.ts +0 -2
  23. package/dist/index.cjs +2 -1
  24. package/dist/index.cjs.LICENSE.txt +8 -0
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.esm.js +2 -1
  27. package/dist/index.esm.js.LICENSE.txt +8 -0
  28. package/dist/sdk/index.d.ts +4 -4
  29. package/dist/sdk/stellar/__tests__/integration.test.d.ts +1 -0
  30. package/dist/sdk/stellar/admin.d.ts +28 -28
  31. package/dist/sdk/stellar/cctp.d.ts +2 -2
  32. package/dist/sdk/stellar/contracts.d.ts +98 -61
  33. package/dist/sdk/stellar/events/index.d.ts +2 -2
  34. package/dist/sdk/stellar/governance.d.ts +50 -49
  35. package/dist/sdk/stellar/index.cjs +2 -1
  36. package/dist/sdk/stellar/index.cjs.LICENSE.txt +8 -0
  37. package/dist/sdk/stellar/index.d.ts +22 -14
  38. package/dist/sdk/stellar/index.esm.js +2 -1
  39. package/dist/sdk/stellar/index.esm.js.LICENSE.txt +8 -0
  40. package/dist/sdk/stellar/lending-api-types.d.ts +943 -0
  41. package/dist/sdk/stellar/lending-read-types.d.ts +54 -269
  42. package/dist/sdk/stellar/lending-read.d.ts +279 -131
  43. package/dist/sdk/stellar/lending.d.ts +134 -63
  44. package/dist/sdk/stellar/prepare.d.ts +27 -7
  45. package/dist/sdk/stellar/quote.d.ts +16 -9
  46. package/dist/sdk/stellar/swap.d.ts +4 -5
  47. package/dist/sdk/stellar-schema.d.ts +5 -0
  48. package/dist/sdk/swagger.d.ts +63 -51
  49. package/dist/sdk/types.d.ts +2 -2
  50. package/dist/utils/api.d.ts +14 -4
  51. package/dist/utils/const.d.ts +0 -2
  52. package/package.json +9 -4
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { AssetOracleConfigInputDto, ConfigureAssetOracleArgsDto, EditOracleToleranceArgsDto, InterestRateModelDto, MarketParamsRawDto, PositionLimitsDto } from '@xoxno/types';
13
13
  import type { StellarAssetOracle, StellarPriceKey } from '@xoxno/types/stellar-lending';
14
- import { type BuiltStellarTx, type StellarBuilderOptions } from './lending';
14
+ import { type BuiltStellarTx, type StellarLendingBuilderOptions } from './lending.js';
15
15
  import { xdr } from '@stellar/stellar-sdk';
16
16
  /** `InterestRateModel` — 8 RAY rates + reserve factor bps. */
17
17
  export declare const encodeInterestRateModel: (m: InterestRateModelDto) => xdr.ScVal;
@@ -60,50 +60,50 @@ export interface RewardEntry {
60
60
  }
61
61
  export interface UpdateAccountThresholdArgs {
62
62
  hasRisks: boolean;
63
- accountNonces: number[];
63
+ accountNonces: Array<number | string>;
64
64
  }
65
65
  /** upgrade(new_wasm_hash: BytesN<32>) */
66
- export declare function buildStellarUpgradeControllerTx(opts: StellarBuilderOptions, args: {
66
+ export declare function buildStellarUpgradeControllerTx(opts: StellarLendingBuilderOptions, args: {
67
67
  wasmHash: string;
68
68
  }): BuiltStellarTx;
69
69
  /** migrate(new_version: u32) */
70
- export declare function buildStellarMigrateTx(opts: StellarBuilderOptions, args: {
70
+ export declare function buildStellarMigrateTx(opts: StellarLendingBuilderOptions, args: {
71
71
  newVersion: number;
72
72
  }): BuiltStellarTx;
73
73
  /** pause() */
74
- export declare function buildStellarPauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
74
+ export declare function buildStellarPauseTx(opts: StellarLendingBuilderOptions): BuiltStellarTx;
75
75
  /** unpause() */
76
- export declare function buildStellarUnpauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
76
+ export declare function buildStellarUnpauseTx(opts: StellarLendingBuilderOptions): BuiltStellarTx;
77
77
  /** grant_role(account: Address, role: Symbol) */
78
- export declare function buildStellarGrantRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
78
+ export declare function buildStellarGrantRoleTx(opts: StellarLendingBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
79
79
  /** revoke_role(account: Address, role: Symbol) */
80
- export declare function buildStellarRevokeRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
80
+ export declare function buildStellarRevokeRoleTx(opts: StellarLendingBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
81
81
  /** transfer_ownership(new_owner: Address, live_until_ledger: u32) */
82
- export declare function buildStellarTransferOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs): BuiltStellarTx;
82
+ export declare function buildStellarTransferOwnershipTx(opts: StellarLendingBuilderOptions, args: TransferOwnershipArgs): BuiltStellarTx;
83
83
  /** accept_ownership() */
84
- export declare function buildStellarAcceptOwnershipTx(opts: StellarBuilderOptions): BuiltStellarTx;
84
+ export declare function buildStellarAcceptOwnershipTx(opts: StellarLendingBuilderOptions): BuiltStellarTx;
85
85
  /** set_swap_aggregator(addr: Address) — #[only_owner] */
86
- export declare function buildStellarSetSwapAggregatorTx(opts: StellarBuilderOptions, args: {
86
+ export declare function buildStellarSetSwapAggregatorTx(opts: StellarLendingBuilderOptions, args: {
87
87
  aggregator: string;
88
88
  }): BuiltStellarTx;
89
89
  /** set_price_aggregator(addr: Address) — #[only_owner] */
90
- export declare function buildStellarSetPriceAggregatorTx(opts: StellarBuilderOptions, args: {
90
+ export declare function buildStellarSetPriceAggregatorTx(opts: StellarLendingBuilderOptions, args: {
91
91
  aggregator: string;
92
92
  }): BuiltStellarTx;
93
93
  /** @deprecated Use buildStellarSetSwapAggregatorTx. */
94
94
  export declare const buildStellarSetAggregatorTx: typeof buildStellarSetSwapAggregatorTx;
95
95
  /** set_accumulator(addr: Address) — #[only_owner] */
96
- export declare function buildStellarSetAccumulatorTx(opts: StellarBuilderOptions, args: {
96
+ export declare function buildStellarSetAccumulatorTx(opts: StellarLendingBuilderOptions, args: {
97
97
  accumulator: string;
98
98
  }): BuiltStellarTx;
99
99
  /** set_position_limits(limits: PositionLimits) — #[only_owner] */
100
- export declare function buildStellarSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto): BuiltStellarTx;
100
+ export declare function buildStellarSetPositionLimitsTx(opts: StellarLendingBuilderOptions, args: PositionLimitsDto): BuiltStellarTx;
101
101
  /** approve_blend_pool(pool: Address) — #[only_owner] */
102
- export declare function buildStellarApproveBlendPoolTx(opts: StellarBuilderOptions, args: {
102
+ export declare function buildStellarApproveBlendPoolTx(opts: StellarLendingBuilderOptions, args: {
103
103
  pool: string;
104
104
  }): BuiltStellarTx;
105
105
  /** revoke_blend_pool(pool: Address) — #[only_owner] */
106
- export declare function buildStellarRevokeBlendPoolTx(opts: StellarBuilderOptions, args: {
106
+ export declare function buildStellarRevokeBlendPoolTx(opts: StellarLendingBuilderOptions, args: {
107
107
  pool: string;
108
108
  }): BuiltStellarTx;
109
109
  /** @deprecated Use buildStellarApproveBlendPoolTx. */
@@ -115,11 +115,11 @@ export declare const buildStellarRevokeTokenTx: typeof buildStellarRevokeBlendPo
115
115
  * contract address as tx source after deploy). Prefer governance propose path
116
116
  * in production.
117
117
  */
118
- export declare function buildStellarSetOracleTx(opts: StellarBuilderOptions, args: ConfigureAssetOracleArgs): BuiltStellarTx;
118
+ export declare function buildStellarSetOracleTx(opts: StellarLendingBuilderOptions, args: ConfigureAssetOracleArgs): BuiltStellarTx;
119
119
  /** @deprecated Use buildStellarSetOracleTx. */
120
120
  export declare const buildStellarSetMarketOracleConfigTx: typeof buildStellarSetOracleTx;
121
121
  /** price-aggregator `set_tolerance(key, OracleTolerance)` — owner only. */
122
- export declare function buildStellarSetOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceArgs & {
122
+ export declare function buildStellarSetOracleToleranceTx(opts: StellarLendingBuilderOptions, args: EditOracleToleranceArgs & {
123
123
  upperRatioBps?: number;
124
124
  lowerRatioBps?: number;
125
125
  }): BuiltStellarTx;
@@ -130,7 +130,7 @@ export declare function buildStellarSetOracleToleranceTx(opts: StellarBuilderOpt
130
130
  * (`buildStellarGovernanceSetSpokeAssetFlagsImmediateTx`). Every flag is a
131
131
  * one-way ratchet here: clearing one requires the timelocked spoke-asset edit.
132
132
  */
133
- export declare function buildStellarSetSpokeAssetFlagsTx(opts: StellarBuilderOptions, args: {
133
+ export declare function buildStellarSetSpokeAssetFlagsTx(opts: StellarLendingBuilderOptions, args: {
134
134
  spokeId: number;
135
135
  hubId: number;
136
136
  asset: string;
@@ -144,36 +144,36 @@ export declare function buildStellarSetSpokeAssetFlagsTx(opts: StellarBuilderOpt
144
144
  * Band-only oracle edit; production callers route through the ORACLE-gated
145
145
  * governance forwarder (`buildStellarGovernanceSetOracleSanityBoundsImmediateTx`).
146
146
  */
147
- export declare function buildStellarSetOracleSanityBoundsTx(opts: StellarBuilderOptions, args: {
147
+ export declare function buildStellarSetOracleSanityBoundsTx(opts: StellarLendingBuilderOptions, args: {
148
148
  asset: string;
149
149
  minPriceWad: string;
150
150
  maxPriceWad: string;
151
151
  }): BuiltStellarTx;
152
152
  /** update_indexes(caller, assets: Vec<HubAssetKey>) */
153
- export declare function buildStellarUpdateIndexesTx(opts: StellarBuilderOptions, args: {
153
+ export declare function buildStellarUpdateIndexesTx(opts: StellarLendingBuilderOptions, args: {
154
154
  assets: Array<{
155
155
  hubId: number;
156
156
  asset: string;
157
157
  }>;
158
158
  }): BuiltStellarTx;
159
159
  /** renew_account(caller, account_id: u64) */
160
- export declare function buildStellarRenewAccountTx(opts: StellarBuilderOptions, args: {
161
- accountNonce: number;
160
+ export declare function buildStellarRenewAccountTx(opts: StellarLendingBuilderOptions, args: {
161
+ accountNonce: number | string;
162
162
  }): BuiltStellarTx;
163
163
  /** create_liquidity_pool(hub_id, asset, params: MarketParamsRaw) -> Address — #[only_owner] */
164
- export declare function buildStellarCreateLiquidityPoolTx(opts: StellarBuilderOptions, args: CreateLiquidityPoolArgs): BuiltStellarTx;
164
+ export declare function buildStellarCreateLiquidityPoolTx(opts: StellarLendingBuilderOptions, args: CreateLiquidityPoolArgs): BuiltStellarTx;
165
165
  /** upgrade_liquidity_pool_params(hub_asset: HubAssetKey, params) — #[only_owner] */
166
- export declare function buildStellarUpgradeLiquidityPoolParamsTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolParamsArgs): BuiltStellarTx;
166
+ export declare function buildStellarUpgradeLiquidityPoolParamsTx(opts: StellarLendingBuilderOptions, args: UpgradeLiquidityPoolParamsArgs): BuiltStellarTx;
167
167
  /** claim_revenue(caller, assets: Vec<HubAssetKey>) -> Vec<i128> */
168
- export declare function buildStellarClaimRevenueTx(opts: StellarBuilderOptions, args: {
168
+ export declare function buildStellarClaimRevenueTx(opts: StellarLendingBuilderOptions, args: {
169
169
  assets: Array<{
170
170
  hubId: number;
171
171
  asset: string;
172
172
  }>;
173
173
  }): BuiltStellarTx;
174
174
  /** add_rewards(caller, rewards: Vec<(HubAssetKey, i128)>) */
175
- export declare function buildStellarAddRewardsTx(opts: StellarBuilderOptions, args: {
175
+ export declare function buildStellarAddRewardsTx(opts: StellarLendingBuilderOptions, args: {
176
176
  rewards: RewardEntry[];
177
177
  }): BuiltStellarTx;
178
178
  /** update_account_threshold(caller, asset, has_risks, account_ids: Vec<u64>) — #[only_role(caller, "KEEPER")] */
179
- export declare function buildStellarUpdateAccountThresholdTx(opts: StellarBuilderOptions, args: UpdateAccountThresholdArgs): BuiltStellarTx;
179
+ export declare function buildStellarUpdateAccountThresholdTx(opts: StellarLendingBuilderOptions, args: UpdateAccountThresholdArgs): BuiltStellarTx;
@@ -1,5 +1,5 @@
1
- import { type StellarNetwork } from './contracts';
2
- import type { BuiltStellarTx, StellarBuilderOptions } from './lending';
1
+ import { type StellarNetwork } from './contracts.js';
2
+ import type { BuiltStellarTx, StellarBuilderOptions } from './lending.js';
3
3
  export interface BuildStellarCctpForwardTxArgs extends StellarBuilderOptions {
4
4
  forwarderAddress: string;
5
5
  message: string;
@@ -1,70 +1,107 @@
1
- /**
2
- * Stellar Soroban contract addresses + Soroban RPC + quote-server config
3
- * per network.
4
- *
5
- * Addresses are env-sourced so ops can rotate mainnet/testnet deployments
6
- * without a code change. Defaults fall back to empty strings so a missing
7
- * env surfaces as a clear "not configured" error at call time rather than
8
- * silently pointing at the wrong contract.
9
- */
1
+ /** Stellar network identifiers understood by the Soroban transaction builders. */
10
2
  export type StellarNetwork = 'mainnet' | 'testnet';
3
+ /** Stable keys for the Stellar network deployment manifest. */
4
+ export type StellarNetworkId = 'stellarMainnet' | 'stellarTestnet';
11
5
  /**
12
- * Stellar lending controller contract addresses per network.
13
- * Env vars:
14
- * - STELLAR_LENDING_CONTROLLER_MAINNET
15
- * - STELLAR_LENDING_CONTROLLER_TESTNET
16
- */
17
- export declare const STELLAR_LENDING_CONTROLLER: Record<StellarNetwork, string>;
18
- /**
19
- * Stellar aggregator router contract addresses per network.
20
- * Targets `execute_strategy(sender, total_in, swap_xdr)` for direct
21
- * (non-lending) swaps.
22
- * Env vars:
23
- * - STELLAR_AGGREGATOR_ROUTER_MAINNET
24
- * - STELLAR_AGGREGATOR_ROUTER_TESTNET
25
- */
26
- export declare const STELLAR_AGGREGATOR_ROUTER: Record<StellarNetwork, string>;
27
- /**
28
- * Stellar governance (timelock) contract addresses per network. Owns the
29
- * controller's admin surface: PROPOSER-gated `propose_*` scheduling and the
30
- * open `execute` / `execute_*` lifecycle.
31
- * Env vars:
32
- * - STELLAR_GOVERNANCE_MAINNET
33
- * - STELLAR_GOVERNANCE_TESTNET
34
- */
35
- export declare const STELLAR_GOVERNANCE: Record<StellarNetwork, string>;
36
- /**
37
- * Default Soroban RPC URLs per network.
38
- * Overridable at runtime via the `sorobanRpcUrl` option on each builder.
6
+ * Public XOXNO Stellar deployment metadata.
7
+ *
8
+ * The API URL is deliberately absent: it belongs to `XOXNOClientOptions` and
9
+ * may use a different host from the chain infrastructure. Consumers choose a
10
+ * manifest entry by network and may pass its addresses/URLs to their own
11
+ * transaction and RPC clients.
39
12
  */
40
- export declare const STELLAR_SOROBAN_RPC_URL: Record<StellarNetwork, string>;
13
+ export interface StellarDeployment {
14
+ readonly name: StellarNetwork;
15
+ readonly passphrase: string;
16
+ readonly horizonUrl: string;
17
+ readonly sorobanRpcUrl: string;
18
+ readonly quoteUrl: string;
19
+ readonly explorerNetwork: 'public' | 'testnet';
20
+ readonly aquariusApiUrl: string;
21
+ readonly aquariusRouter: string;
22
+ readonly lendingController: string;
23
+ readonly aggregatorRouter: string;
24
+ readonly governance: string;
25
+ readonly priceAggregator: string;
26
+ readonly positionNftContract: string;
27
+ }
41
28
  /**
42
- * Stellar aggregator quote-server base URLs per network. The quote server
43
- * exposes `GET /api/v1/tokens` and `GET /api/v1/quote`.
44
- *
45
- * Env vars:
46
- * - STELLAR_QUOTE_URL_MAINNET
47
- * - STELLAR_QUOTE_URL_TESTNET
29
+ * XOXNO's supported Stellar deployments. Keep this table in the SDK so UI
30
+ * and integrators use the same network, RPC, quote-server, and contract IDs.
31
+ * It contains no environment or runtime discovery logic.
48
32
  */
49
- export declare const STELLAR_QUOTE_URL: Record<StellarNetwork, string>;
33
+ export declare const STELLAR_NETWORKS: {
34
+ readonly stellarMainnet: {
35
+ readonly name: "mainnet";
36
+ readonly passphrase: "Public Global Stellar Network ; September 2015";
37
+ readonly horizonUrl: "https://horizon.stellar.org";
38
+ readonly sorobanRpcUrl: "https://stellar-gateway.xoxno.com";
39
+ readonly quoteUrl: "https://stellar-swap.xoxno.com";
40
+ readonly explorerNetwork: "public";
41
+ readonly aquariusApiUrl: "https://amm-api.aqua.network";
42
+ readonly aquariusRouter: "CBQDHNBFBZYE4MKPWBSJOPIYLW4SFSXAXUTSXJN76GNKYVYPCKWC6QUK";
43
+ readonly lendingController: "CAUCMIN5KSXEVZ7NMXR3LZATGD5EFIEUI5XWTFLYRO2R5OTXI22WE5JX";
44
+ readonly aggregatorRouter: "CCVENFSVCBYDHVOACFZXMNNYVOZ3LKXPZYU5LUI4N7KTXOKRVYD7F3TR";
45
+ readonly governance: "CC44PEQW7HSEPKAZ5ZRPH2JS5M5KVJXCUBLJ2ZX4E3WCDKMNFILHC2AD";
46
+ readonly priceAggregator: "CBGUF2G2Q7HCVCWYISDXBHPVBGMYNXA7PG2VET66YBZX6IKOOV27NSMV";
47
+ readonly positionNftContract: "CAWCSG77AY2W24QZ6ZXLHZU4UXEFHZBM6EI4A4IF7JB5CTY4XND3TI6C";
48
+ };
49
+ readonly stellarTestnet: {
50
+ readonly name: "testnet";
51
+ readonly passphrase: "Test SDF Network ; September 2015";
52
+ readonly horizonUrl: "https://horizon-testnet.stellar.org";
53
+ readonly sorobanRpcUrl: "https://stellar-testnet-gateway.xoxno.com";
54
+ readonly quoteUrl: "https://testnet-stellar-swap.xoxno.com";
55
+ readonly explorerNetwork: "testnet";
56
+ readonly aquariusApiUrl: "https://amm-api-testnet.aqua.network";
57
+ readonly aquariusRouter: "CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD";
58
+ readonly lendingController: "CCXRWJ6SIU2WPFEGLFGJVITPL57QAYIMIO6OAM2NBGNDQSSCK2FFV3F3";
59
+ readonly aggregatorRouter: "CDNTWMWW2WGYTKIZTJYNGNVQQZI4KTC5BQRZ3275KESRX5T4O3AYECL5";
60
+ readonly governance: "CDS33JDOYH3F3FL4QUQ6DV4WKHML2AKHF4LADTZ57FRUAEBTE7NMY5FQ";
61
+ readonly priceAggregator: "CAALOOTIDXCX7D7FMQIBSSAJLPKOM3GMXS4UUSTDIG42JCRRJHOPUHOP";
62
+ readonly positionNftContract: "CDVN5JU675MEDPVRPCYC45AHFC275UH57WEU5OTFE4WFGZBNN7HTLPSY";
63
+ };
64
+ };
65
+ /** Lowercase alias for consumers that prefer the UI's existing naming. */
66
+ export declare const stellarNetworks: {
67
+ readonly stellarMainnet: {
68
+ readonly name: "mainnet";
69
+ readonly passphrase: "Public Global Stellar Network ; September 2015";
70
+ readonly horizonUrl: "https://horizon.stellar.org";
71
+ readonly sorobanRpcUrl: "https://stellar-gateway.xoxno.com";
72
+ readonly quoteUrl: "https://stellar-swap.xoxno.com";
73
+ readonly explorerNetwork: "public";
74
+ readonly aquariusApiUrl: "https://amm-api.aqua.network";
75
+ readonly aquariusRouter: "CBQDHNBFBZYE4MKPWBSJOPIYLW4SFSXAXUTSXJN76GNKYVYPCKWC6QUK";
76
+ readonly lendingController: "CAUCMIN5KSXEVZ7NMXR3LZATGD5EFIEUI5XWTFLYRO2R5OTXI22WE5JX";
77
+ readonly aggregatorRouter: "CCVENFSVCBYDHVOACFZXMNNYVOZ3LKXPZYU5LUI4N7KTXOKRVYD7F3TR";
78
+ readonly governance: "CC44PEQW7HSEPKAZ5ZRPH2JS5M5KVJXCUBLJ2ZX4E3WCDKMNFILHC2AD";
79
+ readonly priceAggregator: "CBGUF2G2Q7HCVCWYISDXBHPVBGMYNXA7PG2VET66YBZX6IKOOV27NSMV";
80
+ readonly positionNftContract: "CAWCSG77AY2W24QZ6ZXLHZU4UXEFHZBM6EI4A4IF7JB5CTY4XND3TI6C";
81
+ };
82
+ readonly stellarTestnet: {
83
+ readonly name: "testnet";
84
+ readonly passphrase: "Test SDF Network ; September 2015";
85
+ readonly horizonUrl: "https://horizon-testnet.stellar.org";
86
+ readonly sorobanRpcUrl: "https://stellar-testnet-gateway.xoxno.com";
87
+ readonly quoteUrl: "https://testnet-stellar-swap.xoxno.com";
88
+ readonly explorerNetwork: "testnet";
89
+ readonly aquariusApiUrl: "https://amm-api-testnet.aqua.network";
90
+ readonly aquariusRouter: "CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD";
91
+ readonly lendingController: "CCXRWJ6SIU2WPFEGLFGJVITPL57QAYIMIO6OAM2NBGNDQSSCK2FFV3F3";
92
+ readonly aggregatorRouter: "CDNTWMWW2WGYTKIZTJYNGNVQQZI4KTC5BQRZ3275KESRX5T4O3AYECL5";
93
+ readonly governance: "CDS33JDOYH3F3FL4QUQ6DV4WKHML2AKHF4LADTZ57FRUAEBTE7NMY5FQ";
94
+ readonly priceAggregator: "CAALOOTIDXCX7D7FMQIBSSAJLPKOM3GMXS4UUSTDIG42JCRRJHOPUHOP";
95
+ readonly positionNftContract: "CDVN5JU675MEDPVRPCYC45AHFC275UH57WEU5OTFE4WFGZBNN7HTLPSY";
96
+ };
97
+ };
98
+ /** Resolve a deployment from the network name used by transaction builders. */
99
+ export declare function getStellarDeployment(network: StellarNetwork): StellarDeployment;
50
100
  /**
51
101
  * Stellar network passphrases (Soroban tx signing domain separator).
52
102
  * These are fixed by the Stellar network itself and must not be overridden.
53
103
  */
54
- export declare const STELLAR_NETWORK_PASSPHRASE: Record<StellarNetwork, string>;
55
- /**
56
- * Assert a controller address is configured for the target network.
57
- * Throws early with a clear message rather than building an XDR that
58
- * points at `""`.
59
- */
60
- export declare function getStellarLendingController(network: StellarNetwork): string;
61
- /**
62
- * Assert an aggregator router address is configured for the target network.
63
- * Used by `buildStellarExecuteStrategyTx` for direct user -> router swaps.
64
- */
65
- export declare function getStellarAggregatorRouter(network: StellarNetwork): string;
66
- /**
67
- * Assert a governance address is configured for the target network. Used by
68
- * the governance `propose_*` / `execute` / `execute_*` builders.
69
- */
70
- export declare function getStellarGovernance(network: StellarNetwork): string;
104
+ export declare const STELLAR_NETWORK_PASSPHRASE: {
105
+ readonly mainnet: "Public Global Stellar Network ; September 2015";
106
+ readonly testnet: "Test SDF Network ; September 2015";
107
+ };
@@ -1,2 +1,2 @@
1
- export * from './decode';
2
- export * from './id';
1
+ export * from './decode.js';
2
+ export * from './id.js';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Stellar lending governance (timelock) transaction builders. Each builder
3
3
  * returns an unsigned `BuiltStellarTx` XDR targeting the governance contract
4
- * (`opts.governanceAddress`, or env via `getStellarGovernance(network)`).
4
+ * selected explicitly by `opts.governanceAddress`.
5
5
  *
6
6
  * Flow:
7
7
  * - An admin holding the PROPOSER role calls the single `propose(proposer,
@@ -25,9 +25,10 @@
25
25
  * sourceSequence)`), exactly like the lending / admin builders. The returned
26
26
  * XDR still needs `rpc.Server.prepareTransaction` before signing.
27
27
  */
28
+ import { Buffer } from 'buffer';
28
29
  import type { PositionLimitsDto } from '@xoxno/types';
29
- import { type ConfigureAssetOracleArgs, type CreateLiquidityPoolArgs, type RoleGrantArgs, type TransferOwnershipArgs, type UpgradeLiquidityPoolParamsArgs } from './admin';
30
- import type { BuiltStellarTx, StellarBuilderOptions } from './lending';
30
+ import { type ConfigureAssetOracleArgs, type CreateLiquidityPoolArgs, type RoleGrantArgs, type TransferOwnershipArgs, type UpgradeLiquidityPoolParamsArgs } from './admin.js';
31
+ import type { BuiltStellarTx, StellarGovernanceBuilderOptions } from './lending.js';
31
32
  /**
32
33
  * A `salt: BytesN<32>` for a governance proposal/execution. Accepts a 32-byte
33
34
  * hex string (optionally `0x`-prefixed) or a 32-byte `Buffer`/`Uint8Array`.
@@ -105,101 +106,101 @@ export interface UpdateDelayArgs {
105
106
  newDelay: number;
106
107
  }
107
108
  /** propose(SetSwapAggregator(addr)) */
108
- export declare function buildStellarProposeSetSwapAggregatorTx(opts: StellarBuilderOptions, args: {
109
+ export declare function buildStellarProposeSetSwapAggregatorTx(opts: StellarGovernanceBuilderOptions, args: {
109
110
  aggregator: string;
110
111
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
111
112
  /** propose(SetPriceAggregator(addr)) — Sensitive-tier self-op. */
112
- export declare function buildStellarProposeSetPriceAggregatorTx(opts: StellarBuilderOptions, args: {
113
+ export declare function buildStellarProposeSetPriceAggregatorTx(opts: StellarGovernanceBuilderOptions, args: {
113
114
  aggregator: string;
114
115
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
115
116
  /** @deprecated Use buildStellarProposeSetSwapAggregatorTx. */
116
117
  export declare const buildStellarProposeSetAggregatorTx: typeof buildStellarProposeSetSwapAggregatorTx;
117
118
  /** propose(SetAccumulator(addr)) */
118
- export declare function buildStellarProposeSetAccumulatorTx(opts: StellarBuilderOptions, args: {
119
+ export declare function buildStellarProposeSetAccumulatorTx(opts: StellarGovernanceBuilderOptions, args: {
119
120
  accumulator: string;
120
121
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
121
122
  /** propose(SetPositionLimits(limits)) */
122
- export declare function buildStellarProposeSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto, salt: StellarGovernanceSalt): BuiltStellarTx;
123
+ export declare function buildStellarProposeSetPositionLimitsTx(opts: StellarGovernanceBuilderOptions, args: PositionLimitsDto, salt: StellarGovernanceSalt): BuiltStellarTx;
123
124
  /** propose(CreateHub) */
124
- export declare function buildStellarProposeCreateHubTx(opts: StellarBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
125
+ export declare function buildStellarProposeCreateHubTx(opts: StellarGovernanceBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
125
126
  /** propose(AddSpoke) */
126
- export declare function buildStellarProposeAddSpokeTx(opts: StellarBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
127
+ export declare function buildStellarProposeAddSpokeTx(opts: StellarGovernanceBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
127
128
  /** propose(RemoveSpoke(spoke_id)) */
128
- export declare function buildStellarProposeRemoveSpokeTx(opts: StellarBuilderOptions, args: {
129
+ export declare function buildStellarProposeRemoveSpokeTx(opts: StellarGovernanceBuilderOptions, args: {
129
130
  spokeId: number;
130
131
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
131
132
  /** propose(AddAssetToSpoke(SpokeAssetArgs)) */
132
- export declare function buildStellarProposeAddAssetToSpokeTx(opts: StellarBuilderOptions, args: SpokeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
133
+ export declare function buildStellarProposeAddAssetToSpokeTx(opts: StellarGovernanceBuilderOptions, args: SpokeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
133
134
  /** propose(EditAssetInSpoke(SpokeAssetArgs)) */
134
- export declare function buildStellarProposeEditAssetInSpokeTx(opts: StellarBuilderOptions, args: SpokeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
135
+ export declare function buildStellarProposeEditAssetInSpokeTx(opts: StellarGovernanceBuilderOptions, args: SpokeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
135
136
  /** propose(RemoveAssetFromSpoke(RemoveAssetFromSpokeArgs)) */
136
- export declare function buildStellarProposeRemoveAssetFromSpokeTx(opts: StellarBuilderOptions, args: RemoveAssetFromSpokeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
137
+ export declare function buildStellarProposeRemoveAssetFromSpokeTx(opts: StellarGovernanceBuilderOptions, args: RemoveAssetFromSpokeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
137
138
  /** propose(SetSpokeLiquidationCurve(SpokeLiquidationCurveArgs)) */
138
- export declare function buildStellarProposeSetSpokeLiquidationCurveTx(opts: StellarBuilderOptions, args: SpokeLiquidationCurveArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
139
+ export declare function buildStellarProposeSetSpokeLiquidationCurveTx(opts: StellarGovernanceBuilderOptions, args: SpokeLiquidationCurveArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
139
140
  /** propose(SetPositionManager(manager, is_active)) — tuple variant. */
140
- export declare function buildStellarProposeSetPositionManagerTx(opts: StellarBuilderOptions, args: {
141
+ export declare function buildStellarProposeSetPositionManagerTx(opts: StellarGovernanceBuilderOptions, args: {
141
142
  manager: string;
142
143
  isActive: boolean;
143
144
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
144
145
  /** propose(SetMinBorrowCollateralUsd(floor_wad)) */
145
- export declare function buildStellarProposeSetMinBorrowCollatTx(opts: StellarBuilderOptions, args: {
146
+ export declare function buildStellarProposeSetMinBorrowCollatTx(opts: StellarGovernanceBuilderOptions, args: {
146
147
  floorWad: string;
147
148
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
148
149
  /** propose(ApproveToken(token)) */
149
- export declare function buildStellarProposeApproveTokenTx(opts: StellarBuilderOptions, args: {
150
+ export declare function buildStellarProposeApproveTokenTx(opts: StellarGovernanceBuilderOptions, args: {
150
151
  token: string;
151
152
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
152
153
  /** propose(RevokeToken(token)) */
153
- export declare function buildStellarProposeRevokeTokenTx(opts: StellarBuilderOptions, args: {
154
+ export declare function buildStellarProposeRevokeTokenTx(opts: StellarGovernanceBuilderOptions, args: {
154
155
  token: string;
155
156
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
156
157
  /** propose(ApproveBlendPool(pool)) */
157
- export declare function buildStellarProposeApproveBlendPoolTx(opts: StellarBuilderOptions, args: {
158
+ export declare function buildStellarProposeApproveBlendPoolTx(opts: StellarGovernanceBuilderOptions, args: {
158
159
  pool: string;
159
160
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
160
161
  /** propose(RevokeBlendPool(pool)) */
161
- export declare function buildStellarProposeRevokeBlendPoolTx(opts: StellarBuilderOptions, args: {
162
+ export declare function buildStellarProposeRevokeBlendPoolTx(opts: StellarGovernanceBuilderOptions, args: {
162
163
  pool: string;
163
164
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
164
165
  /** propose(CreateLiquidityPool(CreatePoolArgs)) */
165
- export declare function buildStellarProposeCreateLiquidityPoolTx(opts: StellarBuilderOptions, args: CreateLiquidityPoolArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
166
+ export declare function buildStellarProposeCreateLiquidityPoolTx(opts: StellarGovernanceBuilderOptions, args: CreateLiquidityPoolArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
166
167
  /** propose(UpgradeLiquidityPoolParams(UpgradePoolParamsArgs)) */
167
- export declare function buildStellarProposeUpgradePoolParamsTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolParamsArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
168
+ export declare function buildStellarProposeUpgradePoolParamsTx(opts: StellarGovernanceBuilderOptions, args: UpgradeLiquidityPoolParamsArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
168
169
  /** propose(DeployPool(hash)) */
169
- export declare function buildStellarProposeDeployPoolTx(opts: StellarBuilderOptions, args: {
170
+ export declare function buildStellarProposeDeployPoolTx(opts: StellarGovernanceBuilderOptions, args: {
170
171
  wasmHash: string;
171
172
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
172
173
  /** propose(UpgradePool(hash)) */
173
- export declare function buildStellarProposeUpgradePoolTx(opts: StellarBuilderOptions, args: {
174
+ export declare function buildStellarProposeUpgradePoolTx(opts: StellarGovernanceBuilderOptions, args: {
174
175
  wasmHash: string;
175
176
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
176
177
  /** propose(UpgradeController(hash)) */
177
- export declare function buildStellarProposeUpgradeControllerTx(opts: StellarBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
178
+ export declare function buildStellarProposeUpgradeControllerTx(opts: StellarGovernanceBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
178
179
  /** propose(MigrateController(new_version)) */
179
- export declare function buildStellarProposeMigrateControllerTx(opts: StellarBuilderOptions, args: MigrateArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
180
+ export declare function buildStellarProposeMigrateControllerTx(opts: StellarGovernanceBuilderOptions, args: MigrateArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
180
181
  /** propose(TransferCtrlOwnership(TransferOwnershipArgs)) */
181
- export declare function buildStellarProposeTransferCtrlOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
182
+ export declare function buildStellarProposeTransferCtrlOwnershipTx(opts: StellarGovernanceBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
182
183
  /**
183
184
  * propose(ConfigureAssetOracle(ConfigureAssetOracleArgs))
184
185
  *
185
186
  * Pass PriceKey + AssetOracle input; governance resolves asset_decimals for
186
187
  * Token keys at propose time.
187
188
  */
188
- export declare function buildStellarProposeConfigureAssetOracleTx(opts: StellarBuilderOptions, args: ConfigureAssetOracleArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
189
+ export declare function buildStellarProposeConfigureAssetOracleTx(opts: StellarGovernanceBuilderOptions, args: ConfigureAssetOracleArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
189
190
  /** @deprecated Use buildStellarProposeConfigureAssetOracleTx. */
190
191
  export declare const buildStellarProposeConfigureMarketOracleTx: typeof buildStellarProposeConfigureAssetOracleTx;
191
192
  /** propose(EditOracleTolerance(EditToleranceArgs)) */
192
- export declare function buildStellarProposeEditOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceProposalArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
193
+ export declare function buildStellarProposeEditOracleToleranceTx(opts: StellarGovernanceBuilderOptions, args: EditOracleToleranceProposalArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
193
194
  /** propose(UpgradeGov(hash)) */
194
- export declare function buildStellarProposeGovernanceUpgradeTx(opts: StellarBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
195
+ export declare function buildStellarProposeGovernanceUpgradeTx(opts: StellarGovernanceBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
195
196
  /** propose(UpdateGovDelay(new_delay)) */
196
- export declare function buildStellarProposeUpdateDelayTx(opts: StellarBuilderOptions, args: UpdateDelayArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
197
+ export declare function buildStellarProposeUpdateDelayTx(opts: StellarGovernanceBuilderOptions, args: UpdateDelayArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
197
198
  /** propose(GrantGovRole(RoleArgs)) */
198
- export declare function buildStellarProposeGrantGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
199
+ export declare function buildStellarProposeGrantGovernanceRoleTx(opts: StellarGovernanceBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
199
200
  /** propose(RevokeGovRole(RoleArgs)) */
200
- export declare function buildStellarProposeRevokeGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
201
+ export declare function buildStellarProposeRevokeGovernanceRoleTx(opts: StellarGovernanceBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
201
202
  /** propose(TransferGovOwnership(TransferOwnershipArgs)) */
202
- export declare function buildStellarProposeTransferGovOwnTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
203
+ export declare function buildStellarProposeTransferGovOwnTx(opts: StellarGovernanceBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
203
204
  export interface StellarGovernanceExecuteArgs {
204
205
  /** Controller (or other) contract the scheduled op targets. */
205
206
  target: string;
@@ -230,17 +231,17 @@ export interface StellarGovernanceExecuteArgs {
230
231
  * byte-identical, so callers reconstruct `(target, function, argsXdr)` from the
231
232
  * indexed proposal exactly as before.
232
233
  */
233
- export declare function buildStellarGovernanceExecuteTx(opts: StellarBuilderOptions, args: StellarGovernanceExecuteArgs): BuiltStellarTx;
234
+ export declare function buildStellarGovernanceExecuteTx(opts: StellarGovernanceBuilderOptions, args: StellarGovernanceExecuteArgs): BuiltStellarTx;
234
235
  /** execute_self(executor=None, UpgradeGov(hash), salt) */
235
- export declare function buildStellarGovernanceExecuteGovernanceUpgradeTx(opts: StellarBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
236
+ export declare function buildStellarGovernanceExecuteGovernanceUpgradeTx(opts: StellarGovernanceBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
236
237
  /** execute_self(executor=None, UpdateGovDelay(new_delay), salt) */
237
- export declare function buildStellarGovernanceExecuteUpdateDelayTx(opts: StellarBuilderOptions, args: UpdateDelayArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
238
+ export declare function buildStellarGovernanceExecuteUpdateDelayTx(opts: StellarGovernanceBuilderOptions, args: UpdateDelayArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
238
239
  /** execute_self(executor=None, GrantGovRole(RoleArgs), salt) */
239
- export declare function buildStellarGovernanceExecuteGrantGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
240
+ export declare function buildStellarGovernanceExecuteGrantGovernanceRoleTx(opts: StellarGovernanceBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
240
241
  /** execute_self(executor=None, RevokeGovRole(RoleArgs), salt) */
241
- export declare function buildStellarGovernanceExecuteRevokeGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
242
+ export declare function buildStellarGovernanceExecuteRevokeGovernanceRoleTx(opts: StellarGovernanceBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
242
243
  /** execute_self(executor=None, TransferGovOwnership(TransferOwnershipArgs), salt) */
243
- export declare function buildStellarGovernanceExecuteTransferGovOwnTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
244
+ export declare function buildStellarGovernanceExecuteTransferGovOwnTx(opts: StellarGovernanceBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
244
245
  export interface CancellerResetArgs {
245
246
  /** New canceller council membership — replaces the existing set wholesale. */
246
247
  newCancellers: string[];
@@ -256,7 +257,7 @@ export interface ExecuteCancellerResetArgs extends CancellerResetArgs {
256
257
  * (`opts.caller`) must be the governance owner and sign. Returns the
257
258
  * operation id.
258
259
  */
259
- export declare function buildStellarProposeCancellerResetTx(opts: StellarBuilderOptions, args: CancellerResetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
260
+ export declare function buildStellarProposeCancellerResetTx(opts: StellarGovernanceBuilderOptions, args: CancellerResetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
260
261
  /**
261
262
  * execute_canceller_reset(executor, new_cancellers, salt) — executes a
262
263
  * matured council reset; direct entrypoint, not `execute_self` /
@@ -264,7 +265,7 @@ export declare function buildStellarProposeCancellerResetTx(opts: StellarBuilder
264
265
  * `newCancellers` and `salt` MUST match the values passed to
265
266
  * `buildStellarProposeCancellerResetTx`.
266
267
  */
267
- export declare function buildStellarExecuteCancellerResetTx(opts: StellarBuilderOptions, args: ExecuteCancellerResetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
268
+ export declare function buildStellarExecuteCancellerResetTx(opts: StellarGovernanceBuilderOptions, args: ExecuteCancellerResetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
268
269
  export interface SpokeAssetFlagsArgs {
269
270
  spokeId: number;
270
271
  hubId: number;
@@ -291,7 +292,7 @@ export interface OracleSanityBoundsArgs {
291
292
  * set them true. Clearing any of them requires the timelocked
292
293
  * `EditAssetInSpoke` proposal.
293
294
  */
294
- export declare function buildStellarGovernanceSetSpokeAssetFlagsImmediateTx(opts: StellarBuilderOptions, args: SpokeAssetFlagsArgs): BuiltStellarTx;
295
+ export declare function buildStellarGovernanceSetSpokeAssetFlagsImmediateTx(opts: StellarGovernanceBuilderOptions, args: SpokeAssetFlagsArgs): BuiltStellarTx;
295
296
  /**
296
297
  * set_oracle_sanity_bounds(caller, asset, min_wad, max_wad) — ORACLE-gated,
297
298
  * immediate. Moves only the sanity band; the controller requires the new band
@@ -301,19 +302,19 @@ export declare function buildStellarGovernanceSetSpokeAssetFlagsImmediateTx(opts
301
302
  * PriceFeedStale (feed cannot prove containment). `caller = opts.caller` must
302
303
  * hold ORACLE and sign.
303
304
  */
304
- export declare function buildStellarGovernanceSetOracleSanityBoundsImmediateTx(opts: StellarBuilderOptions, args: OracleSanityBoundsArgs): BuiltStellarTx;
305
+ export declare function buildStellarGovernanceSetOracleSanityBoundsImmediateTx(opts: StellarGovernanceBuilderOptions, args: OracleSanityBoundsArgs): BuiltStellarTx;
305
306
  /**
306
307
  * create_hub(caller) — GUARDIAN-gated, immediate; returns the new hub id.
307
308
  * The registry entry is inert until assets are listed through the timelocked
308
309
  * path. Distinct from `buildStellarProposeCreateHubTx` (timelock).
309
310
  */
310
- export declare function buildStellarGovernanceCreateHubImmediateTx(opts: StellarBuilderOptions): BuiltStellarTx;
311
+ export declare function buildStellarGovernanceCreateHubImmediateTx(opts: StellarGovernanceBuilderOptions): BuiltStellarTx;
311
312
  /**
312
313
  * add_spoke(caller) — GUARDIAN-gated, immediate; returns the new spoke id.
313
314
  * Listings on it still ride the timelock. Distinct from
314
315
  * `buildStellarProposeAddSpokeTx` (timelock).
315
316
  */
316
- export declare function buildStellarGovernanceAddSpokeImmediateTx(opts: StellarBuilderOptions): BuiltStellarTx;
317
+ export declare function buildStellarGovernanceAddSpokeImmediateTx(opts: StellarGovernanceBuilderOptions): BuiltStellarTx;
317
318
  /**
318
319
  * revoke_role_immediate(account, role) — owner-gated emergency
319
320
  * de-authorization; accepts only the immediate incident roles GUARDIAN and
@@ -321,7 +322,7 @@ export declare function buildStellarGovernanceAddSpokeImmediateTx(opts: StellarB
321
322
  * revocations stay timelocked. The tx source (`opts.caller`) must be the
322
323
  * governance owner.
323
324
  */
324
- export declare function buildStellarGovernanceRevokeRoleImmediateTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
325
+ export declare function buildStellarGovernanceRevokeRoleImmediateTx(opts: StellarGovernanceBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
325
326
  /**
326
327
  * pause(caller) — GUARDIAN-gated, immediate protocol-wide brake. Forwards to
327
328
  * the controller's `pause`, halting supply/borrow/strategy entrypoints across
@@ -331,10 +332,10 @@ export declare function buildStellarGovernanceRevokeRoleImmediateTx(opts: Stella
331
332
  * `buildStellarPauseTx`, which an EOA cannot call because the controller's
332
333
  * owner is the governance contract.
333
334
  */
334
- export declare function buildStellarGovernancePauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
335
+ export declare function buildStellarGovernancePauseTx(opts: StellarGovernanceBuilderOptions): BuiltStellarTx;
335
336
  /**
336
337
  * propose(Unpause) — resuming the controller is risk-loosening, so unlike the
337
338
  * GUARDIAN-immediate `pause` it rides the timelock as a Standard-delay
338
339
  * governance proposal. `proposer = opts.caller` must hold PROPOSER and sign.
339
340
  */
340
- export declare function buildStellarProposeUnpauseTx(opts: StellarBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
341
+ export declare function buildStellarProposeUnpauseTx(opts: StellarGovernanceBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;