Skip to content
Snippets Groups Projects
Commit f4f3aa3d authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Update GraphQL schema in tests

parent 746bf8ec
No related branches found
No related tags found
No related merge requests found
Pipeline #5662 failed
......@@ -69,6 +69,10 @@ type BlockType {
written_on: String
}
type ChainType {
blocks: [BlockType!]!
}
type DocumentsType {
blocks: [BlockType!]!
identities: [PendingIdentityType!]!
......@@ -81,6 +85,21 @@ type DocumentsType {
ws2pDisconnections: [WS2PDisconnectionType!]!
}
type HistoryOfMemberType {
stories: [String!]!
}
type NetworkConfAvailableType {
remoteport: Float!
remotehost: String
remoteipv4: String
remoteipv6: String
port: Float!
ipv4: String!
ipv6: String!
upnp: Boolean!
}
type P2PDataCandidateType {
reserved: Boolean
nbSuccess: Int
......@@ -201,6 +220,12 @@ type Query {
startNode: Boolean!
synchronize(url: String!): Boolean
uid(pub: String!): String
getConf: String!
testAndSaveConf(conf: String!): String!
getMainChain(end: Int!, start: Int!): ChainType!
historyOfMember(pub: String!): HistoryOfMemberType!
getForks(end: Int!, start: Int!): ChainType!
getAvailableNetworkConf: NetworkConfAvailableType!
}
type SoftVersionType {
......
......@@ -28,7 +28,7 @@ export class BlockType {
@Field(type => [String]) certifications: string[]
@Field(type => [BlockTransactionType]) transactions: BlockTransactionType[]
@Field(type => Int) medianTime: number
@Field() nonce?: number
@Field(type => String) nonce?: number
@Field({ nullable: true }) parameters?: string
@Field(type => Int) monetaryMass: number
@Field(type => Int, { nullable: true }) dividend?: number
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment