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

Soroban Testnet Starter Project issues #13

Open
LeonardoVieira1630 opened this issue Jan 10, 2025 · 0 comments
Open

Soroban Testnet Starter Project issues #13

LeonardoVieira1630 opened this issue Jan 10, 2025 · 0 comments

Comments

@LeonardoVieira1630
Copy link

Description

I've been trying to set up the Soroban testnet starter project but encountered multiple build failures and errors. Below is a detailed breakdown of the issues:

Steps to Reproduce

  1. Clone the repository:
git clone https://github.com/subquery/stellar-subql-starter.git
cd Stellar
cd soroban-testnet-starter
  1. Initial setup:
npm i
npm run-script build

Errors Encountered

1. Initial Build Error

The first error occurs during the build process:

Screenshot 2025-01-10 at 18 28 40

This error can be addressed by installing the required dependencies:

npm install stellar-sdk soroban-client

2. TypeScript Errors

After installing the dependencies, running npm run-script build produces TypeScript errors:

Screenshot 2025-01-10 at 18 29 50

These errors can be temporarily addressed with null checks:

if (!effect.ledger) {
    logger.warn('Effect missing ledger information');
    return;
}

3. Codegen Errors

After addressing the TypeScript errors, running npm run-script build produces additional errors:

Screenshot 2025-01-10 at 18 32 49

The errors are related to type declarations in /src/mappings/mappingHandlers.ts, specifically:

  • Property 'decoded' does not exist on type 'xdr.t'

4. Docker Issues

Even after addressing all the above issues, there are still problems with the Docker container configuration that prevent successful deployment.

Questions

  1. Is this starter project actively maintained?
  2. Are there plans to update it to work with the latest Soroban testnet?
  3. Could you recommend an alternative working example for indexing Soroban contracts?

Environment

  • Node.js version: v23.1.0
  • NPM version: 10.9.0
  • Operating System: MacOs 15.2 (24C101)

Additional Context

I'm trying to set up an indexer for Soroban contracts and would appreciate guidance on the best approach to achieve this, whether through fixing these issues or using an alternative solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant