@xoxno/sdk-js 1.0.234 → 1.0.236

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -23,7 +23,7 @@
23
23
  */
24
24
  import { xdr } from '@stellar/stellar-sdk';
25
25
  import { type StellarNetwork } from './contracts.js';
26
- export type StellarAuthPolicyErrorCode = 'MALFORMED_TRANSACTION' | 'INVOCATION_CHANGED' | 'UNSUPPORTED_CONTRACT' | 'CALLER_MISMATCH' | 'DUPLICATE_ENTRY' | 'UNEXPECTED_ROOT' | 'UNEXPECTED_CALL' | 'NESTED_INVOCATION' | 'UNEXPECTED_TOKEN' | 'UNEXPECTED_SENDER' | 'UNEXPECTED_RECIPIENT' | 'AMOUNT_EXCEEDED';
26
+ export type StellarAuthPolicyErrorCode = 'MALFORMED_TRANSACTION' | 'INVOCATION_CHANGED' | 'SOURCE_CHANGED' | 'UNSUPPORTED_CONTRACT' | 'CALLER_MISMATCH' | 'DUPLICATE_ENTRY' | 'UNEXPECTED_ROOT' | 'UNEXPECTED_CALL' | 'NESTED_INVOCATION' | 'UNEXPECTED_TOKEN' | 'UNEXPECTED_SENDER' | 'UNEXPECTED_RECIPIENT' | 'AMOUNT_EXCEEDED';
27
27
  /** The invocation that broke the policy, in readable form. */
28
28
  export interface StellarAuthOffender {
29
29
  contract: string;
@@ -85,11 +85,11 @@ export interface StellarAuthDeployment {
85
85
  export declare function stellarAuthPolicyForInvocation(caller: string, invocation: xdr.InvokeContractArgs, deployment: StellarAuthDeployment): StellarAuthPolicy;
86
86
  export interface StellarPreparedTxAuthOptions {
87
87
  network: StellarNetwork;
88
- /** The wallet address that will sign. */
88
+ /** Authorizing G... account or C... smart account, independently of the source. */
89
89
  caller: string;
90
90
  /**
91
91
  * The unsigned builder output that was sent to `prepareTransaction`. When
92
- * given, the prepared invocation must be byte-identical to it.
92
+ * given, the prepared invocation and effective source must match it.
93
93
  */
94
94
  builtXdr?: string;
95
95
  /** Replaces the derived policy (other contracts, custom flash receivers). */