@lumenwipe/verify 0.5.0 → 0.6.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/dist/index.d.cts CHANGED
@@ -530,14 +530,16 @@ declare interface SorobanTokenCoverage {
530
530
  detail?: string;
531
531
  }
532
532
 
533
- /** Where a Soroban token candidate came from before its balance was confirmed on the ledger. */
534
- declare type SorobanTokenSource = "explorer" | "positions" | "list" | "events" | "manual";
533
+ /** Where a Soroban token candidate came from before its balance was confirmed on the ledger.
534
+ * `"explorer"` is deprecated and no longer reported: the API stopped reading stellar.expert. It
535
+ * stays in the union so code that matches on it keeps compiling. */
536
+ declare type SorobanTokenSource = "explorer" | "indexer" | "positions" | "list" | "events" | "manual";
535
537
 
536
538
  /**
537
539
  * 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 explorer, the tokens named by detected
539
- * positions, bundled lists, recent on-chain `transfer`/`mint` events, and contracts the user added
540
- * by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
540
+ * this is a best-effort union of candidate sources - an indexer's account movements, the tokens
541
+ * named by detected positions, bundled lists, recent on-chain `transfer`/`mint` events, and
542
+ * contracts the user added by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
541
543
  * listed, never dropped; classic assets' contracts are excluded (their balance is the trustline).
542
544
  */
543
545
  declare interface SorobanTokensResult {
@@ -653,7 +655,7 @@ declare interface UnrecognizedDefiPosition {
653
655
  * that applies to several operation kinds (the fee cap, the operation source) shares one code,
654
656
  * since the kind is visible in the transaction itself.
655
657
  */
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"];
658
+ 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_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
659
 
658
660
  /** Thrown when a server-built close transaction fails verification. Never sign past this. */
659
661
  export declare class VerificationError extends Error {
package/dist/index.d.ts CHANGED
@@ -530,14 +530,16 @@ declare interface SorobanTokenCoverage {
530
530
  detail?: string;
531
531
  }
532
532
 
533
- /** Where a Soroban token candidate came from before its balance was confirmed on the ledger. */
534
- declare type SorobanTokenSource = "explorer" | "positions" | "list" | "events" | "manual";
533
+ /** Where a Soroban token candidate came from before its balance was confirmed on the ledger.
534
+ * `"explorer"` is deprecated and no longer reported: the API stopped reading stellar.expert. It
535
+ * stays in the union so code that matches on it keeps compiling. */
536
+ declare type SorobanTokenSource = "explorer" | "indexer" | "positions" | "list" | "events" | "manual";
535
537
 
536
538
  /**
537
539
  * 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 explorer, the tokens named by detected
539
- * positions, bundled lists, recent on-chain `transfer`/`mint` events, and contracts the user added
540
- * by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
540
+ * this is a best-effort union of candidate sources - an indexer's account movements, the tokens
541
+ * named by detected positions, bundled lists, recent on-chain `transfer`/`mint` events, and
542
+ * contracts the user added by hand - each confirmed by reading `balance(account)` on the ledger. What could not be read is
541
543
  * listed, never dropped; classic assets' contracts are excluded (their balance is the trustline).
542
544
  */
543
545
  declare interface SorobanTokensResult {
@@ -653,7 +655,7 @@ declare interface UnrecognizedDefiPosition {
653
655
  * that applies to several operation kinds (the fee cap, the operation source) shares one code,
654
656
  * since the kind is visible in the transaction itself.
655
657
  */
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"];
658
+ 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_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
659
 
658
660
  /** Thrown when a server-built close transaction fails verification. Never sign past this. */
659
661
  export declare class VerificationError extends Error {