236 lines
8.1 KiB
GraphQL
236 lines
8.1 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 = OwnerChangedEvent | ActivatedEvent | SpawnedEvent | EscapeRequestedEvent | EscapeCanceledEvent | EscapeAcceptedEvent | LostSponsorEvent | ChangedKeysEvent | BrokeContinuityEvent | ChangedSpawnProxyEvent | ChangedTransferProxyEvent | ChangedManagementProxyEvent | ChangedVotingProxyEvent | ChangedDnsEvent | OwnershipRenouncedEvent | OwnershipTransferredEvent
|
|
|
|
type OwnerChangedEvent {
|
|
point: BigInt!
|
|
owner: String!
|
|
}
|
|
|
|
type ActivatedEvent {
|
|
point: BigInt!
|
|
}
|
|
|
|
type SpawnedEvent {
|
|
prefix: BigInt!
|
|
child: BigInt!
|
|
}
|
|
|
|
type EscapeRequestedEvent {
|
|
point: BigInt!
|
|
sponsor: BigInt!
|
|
}
|
|
|
|
type EscapeCanceledEvent {
|
|
point: BigInt!
|
|
sponsor: BigInt!
|
|
}
|
|
|
|
type EscapeAcceptedEvent {
|
|
point: BigInt!
|
|
sponsor: BigInt!
|
|
}
|
|
|
|
type LostSponsorEvent {
|
|
point: BigInt!
|
|
sponsor: BigInt!
|
|
}
|
|
|
|
type ChangedKeysEvent {
|
|
point: BigInt!
|
|
encryptionKey: String!
|
|
authenticationKey: String!
|
|
cryptoSuiteVersion: BigInt!
|
|
keyRevisionNumber: BigInt!
|
|
}
|
|
|
|
type BrokeContinuityEvent {
|
|
point: BigInt!
|
|
number: BigInt!
|
|
}
|
|
|
|
type ChangedSpawnProxyEvent {
|
|
point: BigInt!
|
|
spawnProxy: String!
|
|
}
|
|
|
|
type ChangedTransferProxyEvent {
|
|
point: BigInt!
|
|
transferProxy: String!
|
|
}
|
|
|
|
type ChangedManagementProxyEvent {
|
|
point: BigInt!
|
|
managementProxy: String!
|
|
}
|
|
|
|
type ChangedVotingProxyEvent {
|
|
point: BigInt!
|
|
votingProxy: String!
|
|
}
|
|
|
|
type ChangedDnsEvent {
|
|
primary: String!
|
|
secondary: String!
|
|
tertiary: String!
|
|
}
|
|
|
|
type OwnershipRenouncedEvent {
|
|
previousOwner: String!
|
|
}
|
|
|
|
type OwnershipTransferredEvent {
|
|
previousOwner: String!
|
|
newOwner: String!
|
|
}
|
|
|
|
type ResultBoolean {
|
|
value: Boolean!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultGetKeysType {
|
|
value: GetKeysType!
|
|
proof: Proof
|
|
}
|
|
|
|
type GetKeysType {
|
|
value0: String!
|
|
value1: String!
|
|
value2: BigInt!
|
|
value3: BigInt!
|
|
}
|
|
|
|
type ResultBigInt {
|
|
value: BigInt!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultBigIntArray {
|
|
value: [BigInt!]!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultString {
|
|
value: String!
|
|
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 {
|
|
azimuthEvents(blockHash: String!, contractAddress: String!, name: String): [ResultEvent!]
|
|
azimuthEventsInRange(fromBlockNumber: Int!, toBlockNumber: Int!, name: String): [ResultEvent!]
|
|
azimuthIsActive(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
|
azimuthGetKeys(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultGetKeysType!
|
|
azimuthGetKeyRevisionNumber(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
|
azimuthHasBeenLinked(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
|
azimuthIsLive(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
|
azimuthGetContinuityNumber(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
|
azimuthGetSpawnCount(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
|
azimuthGetSpawned(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigIntArray!
|
|
azimuthHasSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
|
azimuthGetSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
|
azimuthIsSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!, _sponsor: BigInt!): ResultBoolean!
|
|
azimuthGetSponsoringCount(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigInt!
|
|
azimuthGetSponsoring(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigIntArray!
|
|
azimuthIsEscaping(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
|
azimuthGetEscapeRequest(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
|
azimuthIsRequestingEscapeTo(blockHash: String!, contractAddress: String!, _point: BigInt!, _sponsor: BigInt!): ResultBoolean!
|
|
azimuthGetEscapeRequestsCount(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigInt!
|
|
azimuthGetEscapeRequests(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigIntArray!
|
|
azimuthGetOwner(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
|
azimuthIsOwner(blockHash: String!, contractAddress: String!, _point: BigInt!, _address: String!): ResultBoolean!
|
|
azimuthGetOwnedPointCount(blockHash: String!, contractAddress: String!, _whose: String!): ResultBigInt!
|
|
azimuthGetOwnedPoints(blockHash: String!, contractAddress: String!, _whose: String!): ResultBigIntArray!
|
|
azimuthGetOwnedPointAtIndex(blockHash: String!, contractAddress: String!, _whose: String!, _index: BigInt!): ResultBigInt!
|
|
azimuthGetManagementProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
|
azimuthIsManagementProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
|
azimuthCanManage(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
|
azimuthGetManagerForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
|
azimuthGetManagerFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
|
azimuthGetSpawnProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
|
azimuthIsSpawnProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
|
azimuthCanSpawnAs(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
|
azimuthGetSpawningForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
|
azimuthGetSpawningFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
|
azimuthGetVotingProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
|
azimuthIsVotingProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
|
azimuthCanVoteAs(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
|
azimuthGetVotingForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
|
azimuthGetVotingFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
|
azimuthGetTransferProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
|
azimuthIsTransferProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
|
azimuthCanTransfer(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
|
azimuthGetTransferringForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
|
azimuthGetTransferringFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
|
azimuthIsOperator(blockHash: String!, contractAddress: String!, _owner: String!, _operator: String!): ResultBoolean!
|
|
azimuthGetStateByCID(cid: String!): ResultState
|
|
azimuthGetState(blockHash: String!, contractAddress: String!, kind: String): ResultState
|
|
azimuthGetSyncStatus: SyncStatus
|
|
}
|
|
|
|
type Mutation {
|
|
watchContract(address: String!, kind: String!, checkpoint: Boolean!, startingBlock: Int): Boolean!
|
|
}
|
|
|
|
type Subscription {
|
|
onEvent: ResultEvent!
|
|
}
|