Skip to content

Commit

Permalink
fix(interface): rename interface to ContractCache
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Feb 15, 2024
1 parent 9501d1d commit 2a0a765
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/common/ArIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { ContractStateProvider } from '../types.js';
import { ContractCache } from '../types.js';

export class ArIO implements ContractStateProvider {
private contractStateProvider: ContractStateProvider;
export class ArIO implements ContractCache {
private contractStateProvider: ContractCache;

constructor({
contractStateProvider,
}: {
contractStateProvider: ContractStateProvider;
contractStateProvider: ContractCache;
}) {
this.contractStateProvider = contractStateProvider;
}
Expand Down
4 changes: 2 additions & 2 deletions src/common/ContractStateProviders/ArNSRemoteCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { ContractStateProvider, HTTPClient } from '../../types.js';
import { ContractCache, HTTPClient } from '../../types.js';
import { AxiosHTTPService } from '../http.js';
import { DefaultLogger } from '../logger.js';

export class ArNSRemoteCache implements ContractStateProvider {
export class ArNSRemoteCache implements ContractCache {
private logger: DefaultLogger;
private http: HTTPClient;
private apiVersion = 'v1' as const; // use v1 endpoints
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { Readable } from 'stream';
import { ReadableStream } from 'stream/web';

export interface ContractStateProvider {
export interface ContractCache {
/**
* The ContractStateProvider interface is used to define a contract state provider.
*/
Expand Down

0 comments on commit 2a0a765

Please sign in to comment.