@owney/sdk 0.7.16-beta.1 → 0.7.16-beta.3

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
@@ -755,7 +755,7 @@ type YieldseekerAgentOptions = {
755
755
  auth?: YieldseekerAuthDependencies;
756
756
  /** Test seam for the wallet-submission/receipt boundary. */
757
757
  transactionExecutor?: (state: ConnectionState, chainId: number, transaction: YieldseekerTransaction) => Promise<Hex>;
758
- /** Test seam for Yieldseeker's already-submitted unwind transaction. */
758
+ /** Test seam for transactions submitted outside transactionExecutor. */
759
759
  unwindReceiptWaiter?: (state: ConnectionState, chainId: number, transactionHash: Hex) => Promise<void>;
760
760
  };
761
761
  declare class YieldseekerAgent implements IAgent {
@@ -767,7 +767,7 @@ declare class YieldseekerAgent implements IAgent {
767
767
  readonly chain: "BASE";
768
768
  readonly assets: readonly [{
769
769
  readonly symbol: "USDC";
770
- readonly minDepositAmount: "1";
770
+ readonly minDepositAmount: "10000000";
771
771
  }, {
772
772
  readonly symbol: "WETH";
773
773
  readonly minDepositAmount: "1";
@@ -777,7 +777,9 @@ declare class YieldseekerAgent implements IAgent {
777
777
  private readonly auth;
778
778
  private readonly transactionExecutor?;
779
779
  private readonly unwindReceiptWaiter?;
780
- private readonly activated;
780
+ private readonly agentContexts;
781
+ private readonly users;
782
+ private readonly pendingAgents;
781
783
  constructor(owneyApiKey: string, options?: YieldseekerAgentOptions);
782
784
  disconnect(): Promise<void>;
783
785
  activateAgent(state: ConnectionState, chainId: number, asset?: OwneySupportedTokens): Promise<void>;
@@ -789,12 +791,27 @@ declare class YieldseekerAgent implements IAgent {
789
791
  getHistory(state: ConnectionState, chainId: number, options?: HistoryFilters): Promise<OwneyAgentHistory>;
790
792
  getUserProfile(state: ConnectionState, chainId: number): Promise<AgentUserProfile>;
791
793
  getAgentApy(days: DailyApyDays, options?: AgentApyOptions): Promise<AgentApy>;
792
- private ensureActivated;
794
+ private userKey;
795
+ private contextKey;
796
+ private resolveUser;
797
+ private forgetUser;
798
+ private ensureAgent;
799
+ private findAgent;
800
+ private resolveAgent;
801
+ private loadPortfolio;
802
+ private loadPortfolioContext;
803
+ private deployAfterFunding;
804
+ private refreshSnapshotAfterMovement;
805
+ private agentPath;
793
806
  private walletRequest;
807
+ private providerRequest;
794
808
  private mapApiError;
795
809
  private submitTransaction;
796
- private waitForUnwindReceipt;
797
- private positionMatchesChain;
810
+ private waitForReceipt;
811
+ private assertTransaction;
812
+ private assertAgent;
813
+ private isOwneyAgent;
814
+ private assetForAgent;
798
815
  private isTransactionHash;
799
816
  private assertChain;
800
817
  private assertOptionalChain;
package/dist/index.d.ts CHANGED
@@ -755,7 +755,7 @@ type YieldseekerAgentOptions = {
755
755
  auth?: YieldseekerAuthDependencies;
756
756
  /** Test seam for the wallet-submission/receipt boundary. */
757
757
  transactionExecutor?: (state: ConnectionState, chainId: number, transaction: YieldseekerTransaction) => Promise<Hex>;
758
- /** Test seam for Yieldseeker's already-submitted unwind transaction. */
758
+ /** Test seam for transactions submitted outside transactionExecutor. */
759
759
  unwindReceiptWaiter?: (state: ConnectionState, chainId: number, transactionHash: Hex) => Promise<void>;
760
760
  };
761
761
  declare class YieldseekerAgent implements IAgent {
@@ -767,7 +767,7 @@ declare class YieldseekerAgent implements IAgent {
767
767
  readonly chain: "BASE";
768
768
  readonly assets: readonly [{
769
769
  readonly symbol: "USDC";
770
- readonly minDepositAmount: "1";
770
+ readonly minDepositAmount: "10000000";
771
771
  }, {
772
772
  readonly symbol: "WETH";
773
773
  readonly minDepositAmount: "1";
@@ -777,7 +777,9 @@ declare class YieldseekerAgent implements IAgent {
777
777
  private readonly auth;
778
778
  private readonly transactionExecutor?;
779
779
  private readonly unwindReceiptWaiter?;
780
- private readonly activated;
780
+ private readonly agentContexts;
781
+ private readonly users;
782
+ private readonly pendingAgents;
781
783
  constructor(owneyApiKey: string, options?: YieldseekerAgentOptions);
782
784
  disconnect(): Promise<void>;
783
785
  activateAgent(state: ConnectionState, chainId: number, asset?: OwneySupportedTokens): Promise<void>;
@@ -789,12 +791,27 @@ declare class YieldseekerAgent implements IAgent {
789
791
  getHistory(state: ConnectionState, chainId: number, options?: HistoryFilters): Promise<OwneyAgentHistory>;
790
792
  getUserProfile(state: ConnectionState, chainId: number): Promise<AgentUserProfile>;
791
793
  getAgentApy(days: DailyApyDays, options?: AgentApyOptions): Promise<AgentApy>;
792
- private ensureActivated;
794
+ private userKey;
795
+ private contextKey;
796
+ private resolveUser;
797
+ private forgetUser;
798
+ private ensureAgent;
799
+ private findAgent;
800
+ private resolveAgent;
801
+ private loadPortfolio;
802
+ private loadPortfolioContext;
803
+ private deployAfterFunding;
804
+ private refreshSnapshotAfterMovement;
805
+ private agentPath;
793
806
  private walletRequest;
807
+ private providerRequest;
794
808
  private mapApiError;
795
809
  private submitTransaction;
796
- private waitForUnwindReceipt;
797
- private positionMatchesChain;
810
+ private waitForReceipt;
811
+ private assertTransaction;
812
+ private assertAgent;
813
+ private isOwneyAgent;
814
+ private assetForAgent;
798
815
  private isTransactionHash;
799
816
  private assertChain;
800
817
  private assertOptionalChain;