@xoxno/sdk-js 1.0.213 → 1.0.215

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 (54) 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/__tests__/request-timeout.test.d.ts +1 -0
  22. package/dist/cjs/utils/api.d.ts +35 -4
  23. package/dist/cjs/utils/const.d.ts +0 -2
  24. package/dist/index.cjs +2 -1
  25. package/dist/index.cjs.LICENSE.txt +8 -0
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.esm.js +2 -1
  28. package/dist/index.esm.js.LICENSE.txt +8 -0
  29. package/dist/sdk/index.d.ts +4 -4
  30. package/dist/sdk/stellar/__tests__/integration.test.d.ts +1 -0
  31. package/dist/sdk/stellar/admin.d.ts +28 -28
  32. package/dist/sdk/stellar/cctp.d.ts +2 -2
  33. package/dist/sdk/stellar/contracts.d.ts +98 -61
  34. package/dist/sdk/stellar/events/index.d.ts +2 -2
  35. package/dist/sdk/stellar/governance.d.ts +50 -49
  36. package/dist/sdk/stellar/index.cjs +2 -1
  37. package/dist/sdk/stellar/index.cjs.LICENSE.txt +8 -0
  38. package/dist/sdk/stellar/index.d.ts +22 -14
  39. package/dist/sdk/stellar/index.esm.js +2 -1
  40. package/dist/sdk/stellar/index.esm.js.LICENSE.txt +8 -0
  41. package/dist/sdk/stellar/lending-api-types.d.ts +943 -0
  42. package/dist/sdk/stellar/lending-read-types.d.ts +54 -269
  43. package/dist/sdk/stellar/lending-read.d.ts +279 -131
  44. package/dist/sdk/stellar/lending.d.ts +134 -63
  45. package/dist/sdk/stellar/prepare.d.ts +27 -7
  46. package/dist/sdk/stellar/quote.d.ts +16 -9
  47. package/dist/sdk/stellar/swap.d.ts +4 -5
  48. package/dist/sdk/stellar-schema.d.ts +5 -0
  49. package/dist/sdk/swagger.d.ts +63 -51
  50. package/dist/sdk/types.d.ts +2 -2
  51. package/dist/utils/__tests__/request-timeout.test.d.ts +1 -0
  52. package/dist/utils/api.d.ts +35 -4
  53. package/dist/utils/const.d.ts +0 -2
  54. package/package.json +9 -4
@@ -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;
@@ -1,14 +1,22 @@
1
- export * from './contracts';
2
- export * from './lending';
3
- export * from './lending-read';
4
- export * from './admin';
5
- export * from './governance';
6
- export * from './events';
7
- export * from './quote';
8
- export * from './swap';
9
- export * from './prepare';
10
- export * from './position-mode';
11
- export * from './repay-swap';
12
- export * from './cctp';
13
- export type { StellarStrategySwapInput, StellarStrategySwapPathInput, StellarStrategySwapHopInput, } from './scval-encode';
14
- export { mapSorobanError } from '../../utils/soroban-errors';
1
+ /**
2
+ * Typed Stellar lending reads and unsigned Soroban transaction builders.
3
+ * Start with {@link stellarLendingRead}, then {@link buildStellarSupplyTx}
4
+ * and {@link prepareStellarBuiltTx}. The host wallet signs prepared XDR.
5
+ * @module Stellar lending
6
+ */
7
+ export { XOXNOClient } from '../../utils/api.js';
8
+ export type { OurRequestInit, XOXNOClientOptions } from '../../utils/api.js';
9
+ export * from './contracts.js';
10
+ export * from './lending.js';
11
+ export * from './lending-read.js';
12
+ export * from './admin.js';
13
+ export * from './governance.js';
14
+ export * from './events/index.js';
15
+ export * from './quote.js';
16
+ export * from './swap.js';
17
+ export * from './prepare.js';
18
+ export * from './position-mode.js';
19
+ export * from './repay-swap.js';
20
+ export * from './cctp.js';
21
+ export type { StellarStrategySwapInput, StellarStrategySwapPathInput, StellarStrategySwapHopInput, } from './scval-encode.js';
22
+ export { mapSorobanError } from '../../utils/soroban-errors.js';