Skip to content

Commit

Permalink
fix: replace AlgorandClientInterface with AlgorandClient (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed Jan 4, 2025
1 parent 5271138 commit 2a2a0ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 19 deletions.
5 changes: 0 additions & 5 deletions src/types/algorand-client-interface.ts

This file was deleted.

8 changes: 4 additions & 4 deletions src/types/app-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { legacySendTransactionBridge } from '../transaction/legacy-bridge'
import { encodeTransactionNote, getSenderAddress } from '../transaction/transaction'
import { asJson, binaryStartsWith } from '../util'
import { TransactionSignerAccount } from './account'
import { AlgorandClientInterface } from './algorand-client-interface'
import { AlgorandClient } from './algorand-client'
import { AlgoAmount } from './amount'
import {
ABIAppCallArg,
Expand Down Expand Up @@ -325,7 +325,7 @@ export interface AppClientParams {
appSpec: Arc56Contract | AppSpec | string

/** An `AlgorandClient` instance */
algorand: AlgorandClientInterface
algorand: AlgorandClient

/**
* Optional override for the app name; used for on-chain metadata and lookups.
Expand Down Expand Up @@ -477,7 +477,7 @@ export class AppClient {
private _appAddress: Address
private _appName: string
private _appSpec: Arc56Contract
private _algorand: AlgorandClientInterface
private _algorand: AlgorandClient
private _defaultSender?: Address
private _defaultSigner?: TransactionSigner

Expand Down Expand Up @@ -639,7 +639,7 @@ export class AppClient {
}

/** A reference to the underlying `AlgorandClient` this app client is using. */
public get algorand(): AlgorandClientInterface {
public get algorand(): AlgorandClient {
return this._algorand
}

Expand Down
6 changes: 3 additions & 3 deletions src/types/app-factory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import algosdk, { Address } from 'algosdk'
import { TransactionSignerAccount } from './account'
import { AlgorandClientInterface } from './algorand-client-interface'
import { AlgorandClient } from './algorand-client'
import {
AppCompilationResult,
AppReturn,
Expand Down Expand Up @@ -53,7 +53,7 @@ export interface AppFactoryParams {
appSpec: Arc56Contract | AppSpec | string

/** `AlgorandClient` instance */
algorand: AlgorandClientInterface
algorand: AlgorandClient

/**
* Optional override for the app name; used for on-chain metadata and lookups.
Expand Down Expand Up @@ -170,7 +170,7 @@ export type AppFactoryDeployParams = Expand<
export class AppFactory {
private _appSpec: Arc56Contract
private _appName: string
private _algorand: AlgorandClientInterface
private _algorand: AlgorandClient
private _version: string
private _defaultSender?: Address
private _defaultSigner?: TransactionSigner
Expand Down
6 changes: 3 additions & 3 deletions src/types/client-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import algosdk, { SuggestedParams } from 'algosdk'
import { AlgoHttpClientWithRetry } from './algo-http-client-with-retry'
import { AlgorandClientInterface } from './algorand-client-interface'
import { AlgorandClient } from './algorand-client'
import { AppClient, AppClientParams, ResolveAppClientByCreatorAndName } from './app-client'
import { AppFactory, AppFactoryParams } from './app-factory'
import { TestNetDispenserApiClient, TestNetDispenserApiClientParams } from './dispenser-client'
Expand Down Expand Up @@ -49,7 +49,7 @@ export class ClientManager {
private _algod: algosdk.Algodv2
private _indexer?: algosdk.Indexer
private _kmd?: algosdk.Kmd
private _algorand?: AlgorandClientInterface
private _algorand?: AlgorandClient

/**
* algosdk clients or config for interacting with the official Algorand APIs.
Expand All @@ -71,7 +71,7 @@ export class ClientManager {
* const clientManager = new ClientManager({ algodConfig, indexerConfig, kmdConfig })
* ```
*/
constructor(clientsOrConfig: AlgoConfig | AlgoSdkClients, algorandClient?: AlgorandClientInterface) {
constructor(clientsOrConfig: AlgoConfig | AlgoSdkClients, algorandClient?: AlgorandClient) {
const _clients =
'algod' in clientsOrConfig
? clientsOrConfig
Expand Down
4 changes: 0 additions & 4 deletions src/types/instance_of.ts

This file was deleted.

0 comments on commit 2a2a0ea

Please sign in to comment.