Skip to content

Commit

Permalink
change to wallet subscriptions pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
d4mr committed Feb 13, 2025
1 parent 0da7dfa commit 81cfd54
Show file tree
Hide file tree
Showing 38 changed files with 1,286 additions and 1,000 deletions.
6 changes: 3 additions & 3 deletions sdk/src/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { AccessTokensService } from './services/AccessTokensService';
import { AccountService } from './services/AccountService';
import { AccountFactoryService } from './services/AccountFactoryService';
import { BackendWalletService } from './services/BackendWalletService';
import { BalanceSubscriptionsService } from './services/BalanceSubscriptionsService';
import { ChainService } from './services/ChainService';
import { ConfigurationService } from './services/ConfigurationService';
import { ContractService } from './services/ContractService';
Expand All @@ -32,6 +31,7 @@ import { PermissionsService } from './services/PermissionsService';
import { RelayerService } from './services/RelayerService';
import { TransactionService } from './services/TransactionService';
import { WalletCredentialsService } from './services/WalletCredentialsService';
import { WalletSubscriptionsService } from './services/WalletSubscriptionsService';
import { WebhooksService } from './services/WebhooksService';

type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
Expand All @@ -42,7 +42,6 @@ class EngineLogic {
public readonly account: AccountService;
public readonly accountFactory: AccountFactoryService;
public readonly backendWallet: BackendWalletService;
public readonly balanceSubscriptions: BalanceSubscriptionsService;
public readonly chain: ChainService;
public readonly configuration: ConfigurationService;
public readonly contract: ContractService;
Expand All @@ -64,6 +63,7 @@ class EngineLogic {
public readonly relayer: RelayerService;
public readonly transaction: TransactionService;
public readonly walletCredentials: WalletCredentialsService;
public readonly walletSubscriptions: WalletSubscriptionsService;
public readonly webhooks: WebhooksService;

public readonly request: BaseHttpRequest;
Expand All @@ -85,7 +85,6 @@ class EngineLogic {
this.account = new AccountService(this.request);
this.accountFactory = new AccountFactoryService(this.request);
this.backendWallet = new BackendWalletService(this.request);
this.balanceSubscriptions = new BalanceSubscriptionsService(this.request);
this.chain = new ChainService(this.request);
this.configuration = new ConfigurationService(this.request);
this.contract = new ContractService(this.request);
Expand All @@ -107,6 +106,7 @@ class EngineLogic {
this.relayer = new RelayerService(this.request);
this.transaction = new TransactionService(this.request);
this.walletCredentials = new WalletCredentialsService(this.request);
this.walletSubscriptions = new WalletSubscriptionsService(this.request);
this.webhooks = new WebhooksService(this.request);
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export { AccessTokensService } from './services/AccessTokensService';
export { AccountService } from './services/AccountService';
export { AccountFactoryService } from './services/AccountFactoryService';
export { BackendWalletService } from './services/BackendWalletService';
export { BalanceSubscriptionsService } from './services/BalanceSubscriptionsService';
export { ChainService } from './services/ChainService';
export { ConfigurationService } from './services/ConfigurationService';
export { ContractService } from './services/ContractService';
Expand All @@ -36,4 +35,5 @@ export { PermissionsService } from './services/PermissionsService';
export { RelayerService } from './services/RelayerService';
export { TransactionService } from './services/TransactionService';
export { WalletCredentialsService } from './services/WalletCredentialsService';
export { WalletSubscriptionsService } from './services/WalletSubscriptionsService';
export { WebhooksService } from './services/WebhooksService';
273 changes: 0 additions & 273 deletions sdk/src/services/BalanceSubscriptionsService.ts

This file was deleted.

Loading

0 comments on commit 81cfd54

Please sign in to comment.