@xoxno/sdk-js 1.0.212 → 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.
- package/README.md +73 -42
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/sdk/index.d.ts +4 -4
- package/dist/cjs/sdk/stellar/__tests__/integration.test.d.ts +1 -0
- package/dist/cjs/sdk/stellar/admin.d.ts +28 -28
- package/dist/cjs/sdk/stellar/cctp.d.ts +2 -2
- package/dist/cjs/sdk/stellar/contracts.d.ts +98 -61
- package/dist/cjs/sdk/stellar/events/index.d.ts +2 -2
- package/dist/cjs/sdk/stellar/governance.d.ts +50 -49
- package/dist/cjs/sdk/stellar/index.d.ts +22 -14
- package/dist/cjs/sdk/stellar/lending-api-types.d.ts +943 -0
- package/dist/cjs/sdk/stellar/lending-read-types.d.ts +54 -269
- package/dist/cjs/sdk/stellar/lending-read.d.ts +279 -131
- package/dist/cjs/sdk/stellar/lending.d.ts +134 -63
- package/dist/cjs/sdk/stellar/prepare.d.ts +27 -7
- package/dist/cjs/sdk/stellar/quote.d.ts +16 -9
- package/dist/cjs/sdk/stellar/swap.d.ts +4 -5
- package/dist/cjs/sdk/stellar-schema.d.ts +5 -0
- package/dist/cjs/sdk/swagger.d.ts +96 -51
- package/dist/cjs/sdk/types.d.ts +2 -2
- package/dist/cjs/utils/api.d.ts +14 -4
- package/dist/cjs/utils/const.d.ts +0 -2
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.LICENSE.txt +8 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.LICENSE.txt +8 -0
- package/dist/sdk/index.d.ts +4 -4
- package/dist/sdk/stellar/__tests__/integration.test.d.ts +1 -0
- package/dist/sdk/stellar/admin.d.ts +28 -28
- package/dist/sdk/stellar/cctp.d.ts +2 -2
- package/dist/sdk/stellar/contracts.d.ts +98 -61
- package/dist/sdk/stellar/events/index.d.ts +2 -2
- package/dist/sdk/stellar/governance.d.ts +50 -49
- package/dist/sdk/stellar/index.cjs +2 -1
- package/dist/sdk/stellar/index.cjs.LICENSE.txt +8 -0
- package/dist/sdk/stellar/index.d.ts +22 -14
- package/dist/sdk/stellar/index.esm.js +2 -1
- package/dist/sdk/stellar/index.esm.js.LICENSE.txt +8 -0
- package/dist/sdk/stellar/lending-api-types.d.ts +943 -0
- package/dist/sdk/stellar/lending-read-types.d.ts +54 -269
- package/dist/sdk/stellar/lending-read.d.ts +279 -131
- package/dist/sdk/stellar/lending.d.ts +134 -63
- package/dist/sdk/stellar/prepare.d.ts +27 -7
- package/dist/sdk/stellar/quote.d.ts +16 -9
- package/dist/sdk/stellar/swap.d.ts +4 -5
- package/dist/sdk/stellar-schema.d.ts +5 -0
- package/dist/sdk/swagger.d.ts +96 -51
- package/dist/sdk/types.d.ts +2 -2
- package/dist/utils/api.d.ts +14 -4
- package/dist/utils/const.d.ts +0 -2
- 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
|
-
*
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
123
|
+
export declare function buildStellarProposeSetPositionLimitsTx(opts: StellarGovernanceBuilderOptions, args: PositionLimitsDto, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
123
124
|
/** propose(CreateHub) */
|
|
124
|
-
export declare function buildStellarProposeCreateHubTx(opts:
|
|
125
|
+
export declare function buildStellarProposeCreateHubTx(opts: StellarGovernanceBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
125
126
|
/** propose(AddSpoke) */
|
|
126
|
-
export declare function buildStellarProposeAddSpokeTx(opts:
|
|
127
|
+
export declare function buildStellarProposeAddSpokeTx(opts: StellarGovernanceBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
127
128
|
/** propose(RemoveSpoke(spoke_id)) */
|
|
128
|
-
export declare function buildStellarProposeRemoveSpokeTx(opts:
|
|
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:
|
|
133
|
+
export declare function buildStellarProposeAddAssetToSpokeTx(opts: StellarGovernanceBuilderOptions, args: SpokeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
133
134
|
/** propose(EditAssetInSpoke(SpokeAssetArgs)) */
|
|
134
|
-
export declare function buildStellarProposeEditAssetInSpokeTx(opts:
|
|
135
|
+
export declare function buildStellarProposeEditAssetInSpokeTx(opts: StellarGovernanceBuilderOptions, args: SpokeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
135
136
|
/** propose(RemoveAssetFromSpoke(RemoveAssetFromSpokeArgs)) */
|
|
136
|
-
export declare function buildStellarProposeRemoveAssetFromSpokeTx(opts:
|
|
137
|
+
export declare function buildStellarProposeRemoveAssetFromSpokeTx(opts: StellarGovernanceBuilderOptions, args: RemoveAssetFromSpokeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
137
138
|
/** propose(SetSpokeLiquidationCurve(SpokeLiquidationCurveArgs)) */
|
|
138
|
-
export declare function buildStellarProposeSetSpokeLiquidationCurveTx(opts:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
166
|
+
export declare function buildStellarProposeCreateLiquidityPoolTx(opts: StellarGovernanceBuilderOptions, args: CreateLiquidityPoolArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
166
167
|
/** propose(UpgradeLiquidityPoolParams(UpgradePoolParamsArgs)) */
|
|
167
|
-
export declare function buildStellarProposeUpgradePoolParamsTx(opts:
|
|
168
|
+
export declare function buildStellarProposeUpgradePoolParamsTx(opts: StellarGovernanceBuilderOptions, args: UpgradeLiquidityPoolParamsArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
168
169
|
/** propose(DeployPool(hash)) */
|
|
169
|
-
export declare function buildStellarProposeDeployPoolTx(opts:
|
|
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:
|
|
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:
|
|
178
|
+
export declare function buildStellarProposeUpgradeControllerTx(opts: StellarGovernanceBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
178
179
|
/** propose(MigrateController(new_version)) */
|
|
179
|
-
export declare function buildStellarProposeMigrateControllerTx(opts:
|
|
180
|
+
export declare function buildStellarProposeMigrateControllerTx(opts: StellarGovernanceBuilderOptions, args: MigrateArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
180
181
|
/** propose(TransferCtrlOwnership(TransferOwnershipArgs)) */
|
|
181
|
-
export declare function buildStellarProposeTransferCtrlOwnershipTx(opts:
|
|
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:
|
|
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:
|
|
193
|
+
export declare function buildStellarProposeEditOracleToleranceTx(opts: StellarGovernanceBuilderOptions, args: EditOracleToleranceProposalArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
193
194
|
/** propose(UpgradeGov(hash)) */
|
|
194
|
-
export declare function buildStellarProposeGovernanceUpgradeTx(opts:
|
|
195
|
+
export declare function buildStellarProposeGovernanceUpgradeTx(opts: StellarGovernanceBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
195
196
|
/** propose(UpdateGovDelay(new_delay)) */
|
|
196
|
-
export declare function buildStellarProposeUpdateDelayTx(opts:
|
|
197
|
+
export declare function buildStellarProposeUpdateDelayTx(opts: StellarGovernanceBuilderOptions, args: UpdateDelayArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
197
198
|
/** propose(GrantGovRole(RoleArgs)) */
|
|
198
|
-
export declare function buildStellarProposeGrantGovernanceRoleTx(opts:
|
|
199
|
+
export declare function buildStellarProposeGrantGovernanceRoleTx(opts: StellarGovernanceBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
199
200
|
/** propose(RevokeGovRole(RoleArgs)) */
|
|
200
|
-
export declare function buildStellarProposeRevokeGovernanceRoleTx(opts:
|
|
201
|
+
export declare function buildStellarProposeRevokeGovernanceRoleTx(opts: StellarGovernanceBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
201
202
|
/** propose(TransferGovOwnership(TransferOwnershipArgs)) */
|
|
202
|
-
export declare function buildStellarProposeTransferGovOwnTx(opts:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
341
|
+
export declare function buildStellarProposeUnpauseTx(opts: StellarGovernanceBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export
|
|
14
|
-
export
|
|
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';
|