Skip to content
Snippets Groups Projects

WIP: RFC 3 : GraphQL API for Duniter Client

Open nanocryk requested to merge graphql_api_rfc into master
Compare and
6 files
+ 923
0
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 60
0
@startuml
class BlockNumberAndHash {
number: Int!
hash: String!
}
class Block {
version: Int!
type: String!
currency: String!
issuer: String!
number: Int!
powMin: Int!
time: String!
mediantime: String!
membersCount: Int!
monetaryMass: Int!
unitBase: Int!
issuersCount: Int!
issuersFrame: Int!
issuersFrameVar: Int!
parameters: String
previousHash: String
dividend: Int
identities: [Identity!]!
joiners: [Membership!]!
actives: [Membership!]!
leavers: [Membership!]!
revoked: [CompactRevocation!]!
excluded: [String!]!
certifications: [CompactCertification!]!
transactions: [Transaction!]!
innerHash: String!
nonce: String!
signature: String!
hash: String!
raw: String!
}
class Transaction {
version: Int!
type: String!
currency: String!
issuers: [String!]!
blockNumberAndHash: BlockNumberAndHash!
locktime: Int!
inputs: [CoinSource!]!
unlocks: [TxUnlock!]!
outputs: [TxOuput!]!
comment: String!
signatures: [String!]!
hash: String!
raw: String!
written_on: BlockNumberAndHash
}
Block --> Transaction
@enduml
Loading