Comments (4)
As discussed on Discord: https://discord.com/channels/786251205008949258/816685554329583707/903189357731647490
- this is an issue with Arweave Gateways (already raised a few times on Arweave Discord:
https://discord.com/channels/357957786904166400/756557551234973696/891254856638160917
https://discord.com/channels/357957786904166400/756557551234973696/827281270722527293
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.
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.
return:
but now I search block: 651903, can not include the txId
from warp.
this is a graphql bug
from warp.
Related Issues (20)
- [FEATURE] Allow Warp to register other L2 TXs HOT 13
- [FEATURE] - warp-contracts-redis for caching contract state HOT 1
- [BUG] - unable to set custom contract cache when using custom arweave gateway HOT 2
- [BUG] - no prevention of proecessing duplicate interactions returned from GQL HOT 1
- [BUG]: Mismatching blockheight on evaluation HOT 1
- [BUG] Deploy Plugin: Super constructor null of anonymous class is not a constructor HOT 2
- [BUG] Silent errors using `arlocal@^v1.1.63` HOT 12
- [BUG] - readStateBatch returns null for contract with no interactions HOT 1
- [BUG] Error thrown on doReadState HOT 2
- [FEATURE] - support sortKey or blockHeight in `viewState` HOT 1
- [BUG] Frontend build error starting with version 1.4.30 HOT 3
- [BUG] Not getting latest state when reading DRE node HOT 2
- [BUG] - maxInteractionEvaluationTimeSeconds larger than Number.MAX_SAFE_INTEGER
- [BUG] Getting different state with and without using DRE node HOT 5
- [BUG] - `viewState` with `sortKey` not using proper block information HOT 2
- [BUG] In Rust WASM imports, the `__wbg_height` function expects a number but receives a string, causing a crash
- [FEATURE] Allow Optional Input Placement in Warp Contract Interactions (Tags vs. Data)
- [BUG] - Uncaught TypeError: Cannot read properties of undefined (reading 'AbortError') on web HOT 5
- [BUG] - absolute path breaking builds HOT 1
- [BUG] - Property 'handle' in type 'AbstractContractHandler<State>' is not assignable to the same property in base type 'HandlerApi<State>'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from warp.