@lumenwipe/verify 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +86 -1
- package/README.md +2 -0
- package/dist/index.cjs +442 -130
- package/dist/index.d.cts +74 -8
- package/dist/index.d.ts +74 -8
- package/dist/index.js +443 -132
- package/package.json +1 -1
- package/vectors/close-v1.json +3788 -238
package/dist/index.d.cts
CHANGED
|
@@ -202,6 +202,22 @@ export declare interface CloseExpectationInput extends ExitExpectations {
|
|
|
202
202
|
classicConversions: Record<string, ClassicConversionChoice>;
|
|
203
203
|
/** The Soroban token conversions the user chose, keyed by token contract. */
|
|
204
204
|
tokenConversions: Record<string, TokenConversionChoice>;
|
|
205
|
+
/**
|
|
206
|
+
* The classic liquidity pools the account holds shares in, by hex pool id. Build it with
|
|
207
|
+
* {@link poolWithdrawalExpectations} from the account read, never from a plan or a transactions
|
|
208
|
+
* response. A withdrawal must name one of these pools, for exactly its shares, with each minimum
|
|
209
|
+
* at least 98% and at most 101% of what these reserves give; a pool share line may be removed
|
|
210
|
+
* only for one of these pools, named by the asset pair and fee its operation carries. Omitted,
|
|
211
|
+
* every withdrawal and pool share line removal is refused.
|
|
212
|
+
*/
|
|
213
|
+
poolWithdrawals?: Record<string, PoolWithdrawalExpectation>;
|
|
214
|
+
/**
|
|
215
|
+
* The entries this account sponsors, as the account read lists them: pass its
|
|
216
|
+
* `sponsoredEntries` as is, never a list from a plan or a transactions response. A sponsorship
|
|
217
|
+
* revoke must name one of these entries, by kind, owner and key, at most once per transaction.
|
|
218
|
+
* Omitted, every sponsorship revoke is refused.
|
|
219
|
+
*/
|
|
220
|
+
sponsoredEntries?: SponsoredEntry[];
|
|
205
221
|
}
|
|
206
222
|
|
|
207
223
|
declare interface DataEntry {
|
|
@@ -385,6 +401,22 @@ declare interface FxdaoCdpPosition extends DefiPositionBase {
|
|
|
385
401
|
debtToken?: string;
|
|
386
402
|
}
|
|
387
403
|
|
|
404
|
+
/** A classic constant-product pool as the ledger holds it. Amounts in stroops, as integers. */
|
|
405
|
+
declare interface LiquidityPoolState {
|
|
406
|
+
/** "native" or "CODE:ISSUER", in the pool's own (lexicographic) order. */
|
|
407
|
+
assetA: string;
|
|
408
|
+
/** The pool's second asset, in the same form. */
|
|
409
|
+
assetB: string;
|
|
410
|
+
/** In basis points; 30 for every classic pool. */
|
|
411
|
+
fee: number;
|
|
412
|
+
/** The pool's reserve of `assetA`. */
|
|
413
|
+
reserveA: string;
|
|
414
|
+
/** The pool's reserve of `assetB`. */
|
|
415
|
+
reserveB: string;
|
|
416
|
+
/** Pool shares outstanding. */
|
|
417
|
+
totalShares: string;
|
|
418
|
+
}
|
|
419
|
+
|
|
388
420
|
/** The Stellar network a transaction is verified for. Selects the network passphrase the XDR is
|
|
389
421
|
* decoded with and the bundled registry entries that apply. */
|
|
390
422
|
export declare type Network = "mainnet" | "testnet";
|
|
@@ -429,8 +461,31 @@ declare interface PlanBlocker {
|
|
|
429
461
|
|
|
430
462
|
declare interface PoolShareEntry {
|
|
431
463
|
poolId: string;
|
|
464
|
+
/** Pool shares held, in the 7-decimal units Horizon reports. */
|
|
465
|
+
balance: string;
|
|
466
|
+
/** The pool's ledger entry, read over RPC; null when it could not be read. */
|
|
467
|
+
pool: LiquidityPoolState | null;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/** A classic liquidity pool the account holds shares in, as the account read showed it. Every
|
|
471
|
+
* amount is in stroops. */
|
|
472
|
+
export declare interface PoolWithdrawalExpectation {
|
|
473
|
+
/** The pool shares the account holds. A withdrawal must name exactly these. */
|
|
474
|
+
shares: string;
|
|
475
|
+
/** The pool's reserve of its first asset. */
|
|
476
|
+
reserveA: string;
|
|
477
|
+
/** The pool's reserve of its second asset. */
|
|
478
|
+
reserveB: string;
|
|
479
|
+
/** The pool shares outstanding. */
|
|
480
|
+
totalShares: string;
|
|
432
481
|
}
|
|
433
482
|
|
|
483
|
+
/**
|
|
484
|
+
* The pool half of a close expectation, from the account read the user reviewed. A pool the read
|
|
485
|
+
* could not see into is left out, so a withdrawal from it is refused.
|
|
486
|
+
*/
|
|
487
|
+
export declare function poolWithdrawalExpectations(accountState: AccountState | null | undefined): Record<string, PoolWithdrawalExpectation>;
|
|
488
|
+
|
|
434
489
|
/**
|
|
435
490
|
* Whether a close to `address` on `network` goes through the shared intermediary: true only for
|
|
436
491
|
* an exchange the registry bundled in this package lists, on that network, as unable to receive
|
|
@@ -530,14 +585,16 @@ declare interface SorobanTokenCoverage {
|
|
|
530
585
|
detail?: string;
|
|
531
586
|
}
|
|
532
587
|
|
|
533
|
-
/** Where a Soroban token candidate came from before its balance was confirmed on the ledger.
|
|
534
|
-
|
|
588
|
+
/** Where a Soroban token candidate came from before its balance was confirmed on the ledger.
|
|
589
|
+
* `"explorer"` is deprecated and no longer reported: the API stopped reading stellar.expert. It
|
|
590
|
+
* stays in the union so code that matches on it keeps compiling. */
|
|
591
|
+
declare type SorobanTokenSource = "explorer" | "indexer" | "positions" | "list" | "events" | "manual";
|
|
535
592
|
|
|
536
593
|
/**
|
|
537
594
|
* Soroban token balances the account holds directly. Soroban has no per-account token index, so
|
|
538
|
-
* this is a best-effort union of candidate sources - an
|
|
539
|
-
* positions, bundled lists, recent on-chain `transfer`/`mint` events, and
|
|
540
|
-
* by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
|
|
595
|
+
* this is a best-effort union of candidate sources - an indexer's account movements, the tokens
|
|
596
|
+
* named by detected positions, bundled lists, recent on-chain `transfer`/`mint` events, and
|
|
597
|
+
* contracts the user added by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
|
|
541
598
|
* listed, never dropped; classic assets' contracts are excluded (their balance is the trustline).
|
|
542
599
|
*/
|
|
543
600
|
declare interface SorobanTokensResult {
|
|
@@ -567,15 +624,21 @@ declare interface SoroswapLpPosition extends DefiPositionBase {
|
|
|
567
624
|
* A ledger entry this account currently sponsors, on another account (or itself, for
|
|
568
625
|
* "account" - a fully-sponsored account creation). Mirrors the ledger-key kinds
|
|
569
626
|
* RevokeSponsorship supports. Claimable balances have no owning-account concept in
|
|
570
|
-
* their ledger key (unlike
|
|
627
|
+
* their ledger key (unlike every other kind), so they carry only balanceId.
|
|
571
628
|
*/
|
|
572
|
-
declare type SponsoredEntry = {
|
|
629
|
+
export declare type SponsoredEntry = {
|
|
573
630
|
kind: "account";
|
|
574
631
|
owner: string;
|
|
575
632
|
} | {
|
|
576
633
|
kind: "trustline";
|
|
577
634
|
owner: string;
|
|
578
635
|
asset: string;
|
|
636
|
+
}
|
|
637
|
+
/** A liquidity pool share trustline, named by its 64-character hex pool id. */
|
|
638
|
+
| {
|
|
639
|
+
kind: "pool_share_trustline";
|
|
640
|
+
owner: string;
|
|
641
|
+
poolId: string;
|
|
579
642
|
} | {
|
|
580
643
|
kind: "offer";
|
|
581
644
|
owner: string;
|
|
@@ -621,6 +684,9 @@ declare interface Trustline {
|
|
|
621
684
|
asset: string;
|
|
622
685
|
balance: string;
|
|
623
686
|
limit?: string;
|
|
687
|
+
/** What the account's open offers are buying of this asset; from the Horizon-compatible
|
|
688
|
+
* reader only. */
|
|
689
|
+
buyingLiabilities?: string;
|
|
624
690
|
/** True only when `authorization` is `authorized`. */
|
|
625
691
|
authorized: boolean;
|
|
626
692
|
authorization: TrustlineAuthorization;
|
|
@@ -653,7 +719,7 @@ declare interface UnrecognizedDefiPosition {
|
|
|
653
719
|
* that applies to several operation kinds (the fee cap, the operation source) shares one code,
|
|
654
720
|
* since the kind is visible in the transaction itself.
|
|
655
721
|
*/
|
|
656
|
-
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "registry_memo_type_conflict", "registry_memo_type_unconfirmed", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
722
|
+
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "registry_memo_type_conflict", "registry_memo_type_unconfirmed", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_balance_unknown", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "pool_not_held", "pool_withdraw_duplicate", "pool_withdraw_amount_mismatch", "pool_withdraw_min_missing", "pool_withdraw_min_below_floor", "pool_withdraw_min_above_reserves", "pool_line_mismatch", "sponsorship_revoke_unknown", "sponsorship_revoke_duplicate", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_arguments_unexpected", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
657
723
|
|
|
658
724
|
/** Thrown when a server-built close transaction fails verification. Never sign past this. */
|
|
659
725
|
export declare class VerificationError extends Error {
|
package/dist/index.d.ts
CHANGED
|
@@ -202,6 +202,22 @@ export declare interface CloseExpectationInput extends ExitExpectations {
|
|
|
202
202
|
classicConversions: Record<string, ClassicConversionChoice>;
|
|
203
203
|
/** The Soroban token conversions the user chose, keyed by token contract. */
|
|
204
204
|
tokenConversions: Record<string, TokenConversionChoice>;
|
|
205
|
+
/**
|
|
206
|
+
* The classic liquidity pools the account holds shares in, by hex pool id. Build it with
|
|
207
|
+
* {@link poolWithdrawalExpectations} from the account read, never from a plan or a transactions
|
|
208
|
+
* response. A withdrawal must name one of these pools, for exactly its shares, with each minimum
|
|
209
|
+
* at least 98% and at most 101% of what these reserves give; a pool share line may be removed
|
|
210
|
+
* only for one of these pools, named by the asset pair and fee its operation carries. Omitted,
|
|
211
|
+
* every withdrawal and pool share line removal is refused.
|
|
212
|
+
*/
|
|
213
|
+
poolWithdrawals?: Record<string, PoolWithdrawalExpectation>;
|
|
214
|
+
/**
|
|
215
|
+
* The entries this account sponsors, as the account read lists them: pass its
|
|
216
|
+
* `sponsoredEntries` as is, never a list from a plan or a transactions response. A sponsorship
|
|
217
|
+
* revoke must name one of these entries, by kind, owner and key, at most once per transaction.
|
|
218
|
+
* Omitted, every sponsorship revoke is refused.
|
|
219
|
+
*/
|
|
220
|
+
sponsoredEntries?: SponsoredEntry[];
|
|
205
221
|
}
|
|
206
222
|
|
|
207
223
|
declare interface DataEntry {
|
|
@@ -385,6 +401,22 @@ declare interface FxdaoCdpPosition extends DefiPositionBase {
|
|
|
385
401
|
debtToken?: string;
|
|
386
402
|
}
|
|
387
403
|
|
|
404
|
+
/** A classic constant-product pool as the ledger holds it. Amounts in stroops, as integers. */
|
|
405
|
+
declare interface LiquidityPoolState {
|
|
406
|
+
/** "native" or "CODE:ISSUER", in the pool's own (lexicographic) order. */
|
|
407
|
+
assetA: string;
|
|
408
|
+
/** The pool's second asset, in the same form. */
|
|
409
|
+
assetB: string;
|
|
410
|
+
/** In basis points; 30 for every classic pool. */
|
|
411
|
+
fee: number;
|
|
412
|
+
/** The pool's reserve of `assetA`. */
|
|
413
|
+
reserveA: string;
|
|
414
|
+
/** The pool's reserve of `assetB`. */
|
|
415
|
+
reserveB: string;
|
|
416
|
+
/** Pool shares outstanding. */
|
|
417
|
+
totalShares: string;
|
|
418
|
+
}
|
|
419
|
+
|
|
388
420
|
/** The Stellar network a transaction is verified for. Selects the network passphrase the XDR is
|
|
389
421
|
* decoded with and the bundled registry entries that apply. */
|
|
390
422
|
export declare type Network = "mainnet" | "testnet";
|
|
@@ -429,8 +461,31 @@ declare interface PlanBlocker {
|
|
|
429
461
|
|
|
430
462
|
declare interface PoolShareEntry {
|
|
431
463
|
poolId: string;
|
|
464
|
+
/** Pool shares held, in the 7-decimal units Horizon reports. */
|
|
465
|
+
balance: string;
|
|
466
|
+
/** The pool's ledger entry, read over RPC; null when it could not be read. */
|
|
467
|
+
pool: LiquidityPoolState | null;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/** A classic liquidity pool the account holds shares in, as the account read showed it. Every
|
|
471
|
+
* amount is in stroops. */
|
|
472
|
+
export declare interface PoolWithdrawalExpectation {
|
|
473
|
+
/** The pool shares the account holds. A withdrawal must name exactly these. */
|
|
474
|
+
shares: string;
|
|
475
|
+
/** The pool's reserve of its first asset. */
|
|
476
|
+
reserveA: string;
|
|
477
|
+
/** The pool's reserve of its second asset. */
|
|
478
|
+
reserveB: string;
|
|
479
|
+
/** The pool shares outstanding. */
|
|
480
|
+
totalShares: string;
|
|
432
481
|
}
|
|
433
482
|
|
|
483
|
+
/**
|
|
484
|
+
* The pool half of a close expectation, from the account read the user reviewed. A pool the read
|
|
485
|
+
* could not see into is left out, so a withdrawal from it is refused.
|
|
486
|
+
*/
|
|
487
|
+
export declare function poolWithdrawalExpectations(accountState: AccountState | null | undefined): Record<string, PoolWithdrawalExpectation>;
|
|
488
|
+
|
|
434
489
|
/**
|
|
435
490
|
* Whether a close to `address` on `network` goes through the shared intermediary: true only for
|
|
436
491
|
* an exchange the registry bundled in this package lists, on that network, as unable to receive
|
|
@@ -530,14 +585,16 @@ declare interface SorobanTokenCoverage {
|
|
|
530
585
|
detail?: string;
|
|
531
586
|
}
|
|
532
587
|
|
|
533
|
-
/** Where a Soroban token candidate came from before its balance was confirmed on the ledger.
|
|
534
|
-
|
|
588
|
+
/** Where a Soroban token candidate came from before its balance was confirmed on the ledger.
|
|
589
|
+
* `"explorer"` is deprecated and no longer reported: the API stopped reading stellar.expert. It
|
|
590
|
+
* stays in the union so code that matches on it keeps compiling. */
|
|
591
|
+
declare type SorobanTokenSource = "explorer" | "indexer" | "positions" | "list" | "events" | "manual";
|
|
535
592
|
|
|
536
593
|
/**
|
|
537
594
|
* Soroban token balances the account holds directly. Soroban has no per-account token index, so
|
|
538
|
-
* this is a best-effort union of candidate sources - an
|
|
539
|
-
* positions, bundled lists, recent on-chain `transfer`/`mint` events, and
|
|
540
|
-
* by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
|
|
595
|
+
* this is a best-effort union of candidate sources - an indexer's account movements, the tokens
|
|
596
|
+
* named by detected positions, bundled lists, recent on-chain `transfer`/`mint` events, and
|
|
597
|
+
* contracts the user added by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
|
|
541
598
|
* listed, never dropped; classic assets' contracts are excluded (their balance is the trustline).
|
|
542
599
|
*/
|
|
543
600
|
declare interface SorobanTokensResult {
|
|
@@ -567,15 +624,21 @@ declare interface SoroswapLpPosition extends DefiPositionBase {
|
|
|
567
624
|
* A ledger entry this account currently sponsors, on another account (or itself, for
|
|
568
625
|
* "account" - a fully-sponsored account creation). Mirrors the ledger-key kinds
|
|
569
626
|
* RevokeSponsorship supports. Claimable balances have no owning-account concept in
|
|
570
|
-
* their ledger key (unlike
|
|
627
|
+
* their ledger key (unlike every other kind), so they carry only balanceId.
|
|
571
628
|
*/
|
|
572
|
-
declare type SponsoredEntry = {
|
|
629
|
+
export declare type SponsoredEntry = {
|
|
573
630
|
kind: "account";
|
|
574
631
|
owner: string;
|
|
575
632
|
} | {
|
|
576
633
|
kind: "trustline";
|
|
577
634
|
owner: string;
|
|
578
635
|
asset: string;
|
|
636
|
+
}
|
|
637
|
+
/** A liquidity pool share trustline, named by its 64-character hex pool id. */
|
|
638
|
+
| {
|
|
639
|
+
kind: "pool_share_trustline";
|
|
640
|
+
owner: string;
|
|
641
|
+
poolId: string;
|
|
579
642
|
} | {
|
|
580
643
|
kind: "offer";
|
|
581
644
|
owner: string;
|
|
@@ -621,6 +684,9 @@ declare interface Trustline {
|
|
|
621
684
|
asset: string;
|
|
622
685
|
balance: string;
|
|
623
686
|
limit?: string;
|
|
687
|
+
/** What the account's open offers are buying of this asset; from the Horizon-compatible
|
|
688
|
+
* reader only. */
|
|
689
|
+
buyingLiabilities?: string;
|
|
624
690
|
/** True only when `authorization` is `authorized`. */
|
|
625
691
|
authorized: boolean;
|
|
626
692
|
authorization: TrustlineAuthorization;
|
|
@@ -653,7 +719,7 @@ declare interface UnrecognizedDefiPosition {
|
|
|
653
719
|
* that applies to several operation kinds (the fee cap, the operation source) shares one code,
|
|
654
720
|
* since the kind is visible in the transaction itself.
|
|
655
721
|
*/
|
|
656
|
-
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "registry_memo_type_conflict", "registry_memo_type_unconfirmed", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
722
|
+
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "registry_memo_type_conflict", "registry_memo_type_unconfirmed", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_balance_unknown", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "pool_not_held", "pool_withdraw_duplicate", "pool_withdraw_amount_mismatch", "pool_withdraw_min_missing", "pool_withdraw_min_below_floor", "pool_withdraw_min_above_reserves", "pool_line_mismatch", "sponsorship_revoke_unknown", "sponsorship_revoke_duplicate", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_arguments_unexpected", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
657
723
|
|
|
658
724
|
/** Thrown when a server-built close transaction fails verification. Never sign past this. */
|
|
659
725
|
export declare class VerificationError extends Error {
|