You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let entity = new LendAsLimitOrder(
event.transaction.hash.concatI32(event.logIndex.toI32()))
let data = event.params.curveRelativeTime;
let decoded = ethereum.decode(
"(uint256[],int256[],uint256[])",
data
);
if (decoded) {
let decodedTuple = decoded.toTuple()
let maturities = decodedTuple[0]//.toBigIntArray();
let aprs = decodedTuple[1]//.toBigIntArray();
let marketRateMultipliers = decodedTuple[2]//.toBigIntArray();
entity.maxDueDate = event.params.maxDueDate
entity.curveRelativeTime_maturities =
maturities.toBigIntArray()
entity.curveRelativeTime_aprs = aprs.toBigIntArray();
entity.curveRelativeTime_marketRateMultipliers =
marketRateMultipliers.toBigIntArray();
event on the contract = event LendAsLimitOrder(uint256 indexed maxDueDate, YieldCurve indexed curveRelativeTime);
Error on subgraph indexer = ```Subgraph failed with non-deterministic error: failed to process trigger: block #5532840 (0x76ae…87f4), transaction 27cf537a863f1f2fe02d6ef7ad5703a24891f44322452eb35bbe141b7c8e01c5: Event with the signature "LendAsLimitOrder(indexed uint256,(indexed uint256[],int256[],uint256[]))" not found in contract "Contract" of data source "Contract", retry_delay_s: 248, attempt: 1
INFO
2024-03-22 05:29:37 p.m.
### Steps to Reproduce the Bug or Issue
when try to sync my subgraph throw this error :
Subgraph failed with non-deterministic error: failed to process trigger: block #5532840 (0x76ae…87f4), transaction 27cf537a863f1f2fe02d6ef7ad5703a24891f44322452eb35bbe141b7c8e01c5: Event with the signature "LendAsLimitOrder(indexed uint256,(indexed uint256[],int256[],uint256[]))" not found in contract "Contract" of data source "Contract", retry_delay_s: 248, attempt: 1
### Expected behavior
save the tuple
### Screenshots or Videos
_No response_
### Platform
"dependencies": {
"@graphprotocol/graph-cli": "0.64.1",
"@graphprotocol/graph-ts": "0.32.0"
### Subgraph Manifest
- event: LendAsLimitOrder(indexed uint256,(indexed uint256[],int256[],uint256[]))
handler: handleLendAsLimitOrder
### Subgraph GraphQL Schema
type LendAsLimitOrder @entity(immutable: true) {
id: Bytes!
maxDueDate: BigInt! # uint256
curveRelativeTime_maturities: [BigInt!]! # uint256[]
curveRelativeTime_aprs: [BigInt!]! # int256[]
curveRelativeTime_marketRateMultipliers: [BigInt!]! # uint256[]
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
### Additional context
_No response_
The text was updated successfully, but these errors were encountered:
Which packages are impacted by your issue?
@graphprotocol/graph-ts
Describe the issue
I try to decode the tuple with this code.
abi=
{ "type": "event", "name": "LendAsLimitOrder", "inputs": [ { "name": "maxDueDate", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "curveRelativeTime", "type": "tuple", "indexed": true, "internalType": "struct YieldCurve", "components": [ { "name": "maturities", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "aprs", "type": "int256[]", "internalType": "int256[]" }, { "name": "marketRateMultipliers", "type": "uint256[]", "internalType": "uint256[]" } ] } ], "anonymous": false }
event on the contract =
event LendAsLimitOrder(uint256 indexed maxDueDate, YieldCurve indexed curveRelativeTime);
Error on subgraph indexer = ```Subgraph failed with non-deterministic error: failed to process trigger: block #5532840 (0x76ae…87f4), transaction 27cf537a863f1f2fe02d6ef7ad5703a24891f44322452eb35bbe141b7c8e01c5: Event with the signature "LendAsLimitOrder(indexed uint256,(indexed uint256[],int256[],uint256[]))" not found in contract "Contract" of data source "Contract", retry_delay_s: 248, attempt: 1
INFO
2024-03-22 05:29:37 p.m.
The text was updated successfully, but these errors were encountered: