diff --git a/package.json b/package.json index 5b37ca4..d4a510b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dartroom/contracts", - "version": "0.2.1-alpha", + "version": "0.2.2-alpha", "description": "A package that includes all Dartroom's smart contracts written in TEAL, with complete interfaces in TypeScript to interact with them.", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/src/contracts.ts b/src/contracts.ts index 628051b..eed97ab 100644 --- a/src/contracts.ts +++ b/src/contracts.ts @@ -1,10 +1,21 @@ import { Indexer, Algodv2, BaseHTTPClient, Transaction } from "algosdk" -import { AlgodTokenHeader, CustomTokenHeader, IndexerTokenHeader } from "algosdk/src/client/urlTokenBaseHTTPClient" import { FixedBid } from './interface/fixedBid/index' import { RevenueSink } from './interface/acRevenueSink/index' import { verifyTxns } from './functions/verify' import { TxnFormatter } from "./functions/txn" +export interface AlgodTokenHeader { + 'X-Algo-API-Token': string; +} + +export interface IndexerTokenHeader { + 'X-Indexer-API-Token': string; +} + +export interface CustomTokenHeader { + [headerName: string]: string; +} + export interface Provider { indexer: Indexer algod: Algodv2