Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement fetcher for blockfrost and maestro #92

Open
1 of 6 tasks
HinsonSIDAN opened this issue Oct 9, 2024 · 0 comments
Open
1 of 6 tasks

implement fetcher for blockfrost and maestro #92

HinsonSIDAN opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@HinsonSIDAN
Copy link
Member

HinsonSIDAN commented Oct 9, 2024

Objective

Implement fetcher capability for maestro and blockfrost.

Reference

Fetcher type on mesh:

export interface IFetcher {
  fetchAccountInfo(address: string): Promise<AccountInfo>;
  fetchAddressUTxOs(address: string, asset?: string): Promise<UTxO[]>;
  fetchAssetAddresses(
    asset: string,
  ): Promise<{ address: string; quantity: string }[]>;
  fetchAssetMetadata(asset: string): Promise<AssetMetadata>;
  fetchBlockInfo(hash: string): Promise<BlockInfo>;
  fetchCollectionAssets(
    policyId: string,
    cursor?: number | string,
  ): Promise<{ assets: Asset[]; next?: string | number | null }>;
  fetchHandle(handle: string): Promise<object>;
  fetchHandleAddress(handle: string): Promise<string>;
  fetchProtocolParameters(epoch: number): Promise<Protocol>;
  fetchTxInfo(hash: string): Promise<TransactionInfo>;
  fetchUTxOs(hash: string): Promise<UTxO[]>;
  get(url: string): Promise<any>;
}


export interface ISubmitter {
  submitTx(tx: string): Promise<string>;
}

export interface IEvaluator {
  evaluateTx(tx: string): Promise<Omit<Action, "data">[]>;
}

Tasks

  • Blockfrost - Fetcher
  • Blockfrost - Evaluator
  • Blockfrost - Submitter
  • Maestro - Fetcher
  • Blockfrost - Evaluator
  • Blockfrost - Submitter
@HinsonSIDAN HinsonSIDAN added the enhancement New feature or request label Oct 9, 2024
@HinsonSIDAN HinsonSIDAN moved this to Todo in F12: whisky Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants