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

Feature polygon #152

Merged
merged 2 commits into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions thegraph/packages/ormpipe/subgraph-polygon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: OrmpOracle
network: matic
source:
address: "0x0000000003ebeF32D8f0ED406a5CA8805c80AFba"
abi: OrmpOracle
startBlock: 54050858
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Assigned
- ImportedMessageRoot
- OwnershipTransferred
- SetApproved
- SetFee
- Withdrawal
abis:
- name: OrmpOracle
file: ./abis/OrmpOracle.json
eventHandlers:
- event: Assigned(indexed bytes32,uint256)
handler: handleAssigned
- event: ImportedMessageRoot(indexed uint256,indexed uint256,bytes32)
handler: handleImportedMessageRoot
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: SetApproved(address,bool)
handler: handleSetApproved
- event: SetFee(indexed uint256,uint256)
handler: handleSetFee
- event: Withdrawal(indexed address,uint256)
handler: handleWithdrawal
file: ./src/ormp-oracle.ts
- kind: ethereum
name: OrmpRelayer
network: matic
source:
address: "0x0000000000808fE9bDCc1d180EfbF5C53552a6b1"
abi: OrmpRelayer
startBlock: 54050858
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- OrmpRelayerAssigned
- OrmpRelayerSetApproved
- OrmpRelayerSetDstConfig
- OrmpRelayerSetDstPrice
abis:
- name: OrmpRelayer
file: ./abis/OrmpRelayer.json
eventHandlers:
- event: Assigned(indexed bytes32,uint256,bytes,bytes32[32])
handler: handleAssigned
- event: SetApproved(address,bool)
handler: handleSetApproved
- event: SetDstConfig(indexed uint256,uint64,uint64)
handler: handleSetDstConfig
- event: SetDstPrice(indexed uint256,uint128,uint128)
handler: handleSetDstPrice
file: ./src/ormp-relayer.ts
- kind: ethereum
name: OrmpProtocol
network: matic
source:
address: "0x00000000001523057a05d6293C1e5171eE33eE0A"
abi: OrmpProtocol
startBlock: 54050856
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- OrmpProtocolAppConfigUpdated
- OrmpProtocolMessageAccepted
- OrmpProtocolMessageDispatched
- OrmpProtocolSetDefaultConfig
abis:
- name: OrmpProtocol
file: ./abis/OrmpProtocol.json
eventHandlers:
- event: AppConfigUpdated(indexed address,address,address)
handler: handleAppConfigUpdated
- event: MessageAccepted(indexed
bytes32,bytes32,(address,uint256,uint256,address,uint256,address,uint256,bytes))
handler: handleMessageAccepted
- event: MessageDispatched(indexed bytes32,bool)
handler: handleMessageDispatched
- event: SetDefaultConfig(address,address)
handler: handleSetDefaultConfig
file: ./src/ormp-protocol.ts

Loading