* Update azimuth-watcher with latest watcher-ts version * Update all watchers for event name filter * Upgrade package version
125 lines
2.8 KiB
GraphQL
125 lines
2.8 KiB
GraphQL
directive @cacheControl(maxAge: Int, inheritMaxAge: Boolean, scope: CacheControlScope) on FIELD_DEFINITION | OBJECT | INTERFACE | UNION
|
|
|
|
enum CacheControlScope {
|
|
PUBLIC
|
|
PRIVATE
|
|
}
|
|
|
|
scalar BigInt
|
|
|
|
scalar BigDecimal
|
|
|
|
scalar Bytes
|
|
|
|
type Proof {
|
|
data: String!
|
|
}
|
|
|
|
type _Block_ {
|
|
cid: String
|
|
hash: String!
|
|
number: Int!
|
|
timestamp: Int!
|
|
parentHash: String!
|
|
}
|
|
|
|
type _Transaction_ {
|
|
hash: String!
|
|
index: Int!
|
|
from: String!
|
|
to: String!
|
|
}
|
|
|
|
type ResultEvent {
|
|
block: _Block_!
|
|
tx: _Transaction_!
|
|
contract: String!
|
|
eventIndex: Int!
|
|
event: Event!
|
|
proof: Proof
|
|
}
|
|
|
|
union Event = UpgradePollStartedEvent | DocumentPollStartedEvent | UpgradeMajorityEvent | DocumentMajorityEvent | OwnershipRenouncedEvent | OwnershipTransferredEvent
|
|
|
|
type UpgradePollStartedEvent {
|
|
proposal: String!
|
|
}
|
|
|
|
type DocumentPollStartedEvent {
|
|
proposal: String!
|
|
}
|
|
|
|
type UpgradeMajorityEvent {
|
|
proposal: String!
|
|
}
|
|
|
|
type DocumentMajorityEvent {
|
|
proposal: String!
|
|
}
|
|
|
|
type OwnershipRenouncedEvent {
|
|
previousOwner: String!
|
|
}
|
|
|
|
type OwnershipTransferredEvent {
|
|
previousOwner: String!
|
|
newOwner: String!
|
|
}
|
|
|
|
type ResultStringArray {
|
|
value: [String!]!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultBigInt {
|
|
value: BigInt!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultBoolean {
|
|
value: Boolean!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultState {
|
|
block: _Block_!
|
|
contractAddress: String!
|
|
cid: String!
|
|
kind: String!
|
|
data: String!
|
|
}
|
|
|
|
type SyncStatus {
|
|
latestIndexedBlockHash: String!
|
|
latestIndexedBlockNumber: Int!
|
|
latestCanonicalBlockHash: String!
|
|
latestCanonicalBlockNumber: Int!
|
|
initialIndexedBlockHash: String!
|
|
initialIndexedBlockNumber: Int!
|
|
latestProcessedBlockHash: String!
|
|
latestProcessedBlockNumber: Int!
|
|
}
|
|
|
|
type Query {
|
|
events(blockHash: String!, contractAddress: String!, name: String): [ResultEvent!]
|
|
eventsInRange(fromBlockNumber: Int!, toBlockNumber: Int!, name: String): [ResultEvent!]
|
|
getUpgradeProposals(blockHash: String!, contractAddress: String!): ResultStringArray!
|
|
getUpgradeProposalCount(blockHash: String!, contractAddress: String!): ResultBigInt!
|
|
getDocumentProposals(blockHash: String!, contractAddress: String!): ResultStringArray!
|
|
getDocumentProposalCount(blockHash: String!, contractAddress: String!): ResultBigInt!
|
|
getDocumentMajorities(blockHash: String!, contractAddress: String!): ResultStringArray!
|
|
hasVotedOnUpgradePoll(blockHash: String!, contractAddress: String!, _galaxy: Int!, _proposal: String!): ResultBoolean!
|
|
hasVotedOnDocumentPoll(blockHash: String!, contractAddress: String!, _galaxy: Int!, _proposal: String!): ResultBoolean!
|
|
getStateByCID(cid: String!): ResultState
|
|
getState(blockHash: String!, contractAddress: String!, kind: String): ResultState
|
|
getSyncStatus: SyncStatus
|
|
}
|
|
|
|
type Mutation {
|
|
watchContract(address: String!, kind: String!, checkpoint: Boolean!, startingBlock: Int): Boolean!
|
|
}
|
|
|
|
type Subscription {
|
|
onEvent: ResultEvent!
|
|
}
|