Giter Club home page Giter Club logo

Comments (4)

ppedziwiatr avatar ppedziwiatr commented on August 19, 2024 1

As discussed on Discord: https://discord.com/channels/786251205008949258/816685554329583707/903189357731647490

The SDK itself cannot do much about it - apart from checking the status and amount of confirmations of each and every interaction transaction - which would cause a significant slowdown in contract evaluation.

If you are using some in-house solution for caching/loading interactions - you can implement the InteractionsLoader interface and plug it into the SDK - an example from https://github.com/redstone-finance/redstone-smartcontracts/blob/main/tools/loot-contract.ts#L25

const interactionsLoader = new FromFileInteractionsLoader(path.join(__dirname, 'data', 'interactions.json'));
const smartweave = SmartWeaveWebFactory.memCachedBased(arweave).setInteractionsLoader(interactionsLoader).build();

We will be working on a dedicated gateway for loading smartweave interactions (either taking the Vartex Gateway as a "base" or developing fully custom solution) - but that's definitely beyond the scope of the SDK itself.

from warp.

zyjblockchain avatar zyjblockchain commented on August 19, 2024

I find graphql return record this txids has block height. such as:

query{
  transactions(first: 100, 
    tags: [{name: "App-Name", values: "SmartWeaveAction"},
      {name:"Contract", values:"usjm4PCxUd5mtaon7zc97-dt-3qf67yPyqgzLnLqk5A"}],
  after: "WyIyMDIxLTEwLTI4VDAyOjQzOjE5LjU4M1oiLDMwMF0=") {
        pageInfo {
      hasNextPage
    }
    edges {
      node {
        id
        owner {
          address
        }
        recipient
        tags {
          name
          value
        }
        block {
          height
          id
          timestamp
        }
        fee {
          winston
        }
        quantity {
          winston
          ar
        }
        parent {
          id
        }
        bundledIn {
          id
        }
      }
      cursor
    }
  }
}```

return:
![image](https://user-images.githubusercontent.com/40423181/139204223-cceaf487-515f-4aac-9bbc-80d7a32f04d1.png)
but now I search block: 651903, can not include the txId

from warp.

zyjblockchain avatar zyjblockchain commented on August 19, 2024

return:
image
but now I search block: 651903, can not include the txId

from warp.

zyjblockchain avatar zyjblockchain commented on August 19, 2024

this is a graphql bug

from warp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.