Skip to content

Instantly share code, notes, and snippets.

@flowersinthesand
Last active November 24, 2020 08:44
Show Gist options
  • Save flowersinthesand/c2b393191571db7dd674e0be9b2e1043 to your computer and use it in GitHub Desktop.
Save flowersinthesand/c2b393191571db7dd674e0be9b2e1043 to your computer and use it in GitHub Desktop.
TTA support
{
"version": "eosio::abi/1.1",
"types": [],
"structs": [{
"name": "creoption",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "optionId",
"type": "uint64"
},{
"name": "name",
"type": "string"
},{
"name": "pollId",
"type": "uint64"
}
]
},{
"name": "crepoll",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "pollId",
"type": "uint64"
},{
"name": "name",
"type": "string"
},{
"name": "body",
"type": "string"
},{
"name": "start",
"type": "uint64"
},{
"name": "end",
"type": "uint64"
}
]
},{
"name": "crevote",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "voteId",
"type": "uint64"
},{
"name": "point",
"type": "float64"
},{
"name": "message",
"type": "string"
},{
"name": "ownerId",
"type": "uint64"
},{
"name": "optionId",
"type": "uint64"
}
]
},{
"name": "deloption",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "optionId",
"type": "uint64"
}
]
},{
"name": "delpoll",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "pollId",
"type": "uint64"
}
]
},{
"name": "delvote",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "voteId",
"type": "uint64"
}
]
},{
"name": "hi",
"base": "",
"fields": [{
"name": "user",
"type": "name"
}
]
},{
"name": "option",
"base": "",
"fields": [{
"name": "optionId",
"type": "uint64"
},{
"name": "name",
"type": "string"
},{
"name": "pollId",
"type": "uint64"
}
]
},{
"name": "poll",
"base": "",
"fields": [{
"name": "pollId",
"type": "uint64"
},{
"name": "name",
"type": "string"
},{
"name": "body",
"type": "string"
},{
"name": "start",
"type": "uint64"
},{
"name": "end",
"type": "uint64"
}
]
},{
"name": "updoption",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "optionId",
"type": "uint64"
},{
"name": "name",
"type": "string"
},{
"name": "pollId",
"type": "uint64"
}
]
},{
"name": "updpoll",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "pollId",
"type": "uint64"
},{
"name": "name",
"type": "string"
},{
"name": "body",
"type": "string"
},{
"name": "start",
"type": "uint64"
},{
"name": "end",
"type": "uint64"
}
]
},{
"name": "updvote",
"base": "",
"fields": [{
"name": "user",
"type": "name"
},{
"name": "voteId",
"type": "uint64"
},{
"name": "point",
"type": "float64"
},{
"name": "message",
"type": "string"
},{
"name": "ownerId",
"type": "uint64"
},{
"name": "optionId",
"type": "uint64"
}
]
},{
"name": "vote",
"base": "",
"fields": [{
"name": "voteId",
"type": "uint64"
},{
"name": "point",
"type": "float64"
},{
"name": "message",
"type": "string"
},{
"name": "ownerId",
"type": "uint64"
},{
"name": "optionId",
"type": "uint64"
}
]
}
],
"actions": [{
"name": "creoption",
"type": "creoption",
"ricardian_contract": ""
},{
"name": "crepoll",
"type": "crepoll",
"ricardian_contract": ""
},{
"name": "crevote",
"type": "crevote",
"ricardian_contract": ""
},{
"name": "deloption",
"type": "deloption",
"ricardian_contract": ""
},{
"name": "delpoll",
"type": "delpoll",
"ricardian_contract": ""
},{
"name": "delvote",
"type": "delvote",
"ricardian_contract": ""
},{
"name": "hi",
"type": "hi",
"ricardian_contract": ""
},{
"name": "updoption",
"type": "updoption",
"ricardian_contract": ""
},{
"name": "updpoll",
"type": "updpoll",
"ricardian_contract": ""
},{
"name": "updvote",
"type": "updvote",
"ricardian_contract": ""
}
],
"tables": [{
"name": "option",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "option"
},{
"name": "poll",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "poll"
},{
"name": "vote",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "vote"
}
],
"ricardian_clauses": [],
"error_messages": [],
"abi_extensions": [],
"variants": []
}
entities:
- name: Poll
fields:
- name: pollId
type: uint64_t
- name: name
type: string
- name: body
type: string
- name: start
type: uint64_t
- name: end
type: uint64_t
key: pollId
- name: Option
fields:
- name: optionId
type: uint64_t
- name: name
type: string
- name: pollId
type: uint64_t
key: optionId
- name: Vote
fields:
- name: voteId
type: uint64_t
- name: point
type: number
- name: message
type: string
- name: ownerId
type: uint64_t
- name: optionId
type: uint64_t
key: voteId
entities:
- name: Poll
fields:
- name: id
type: uint64_t
- name: name
type: string
- name: body
type: string
key: id
- name: Vote
fields:
- name: id
type: uint64_t
- name: pollId
type: uint64_t
- name: ownerId
type: uint64_t
- name: point
type: number
key: id
app_blockchain_name=CAN Testnet
app_blockchain_type=eos
app_blockchain_host=testnet.canfoundation.io
app_blockchain_port=443
app_blockchain_chainId=353c0a7c6744e58778a2a334d1da2303eb12a111cc636bb494e63a84c9e7ffeb
app_blockchain_protocol=https
app_blockchain_account=aloxidejs123
app_blockchain_account_pk=5JHQ3GuzcQtEQgG3SGvtDU7v2b7ioKznYBizA1V5mBUUsLNcXdQ
app_blockchain_contract=aloxidejs123
app_blockchain_name=jungle
app_blockchain_type=eos
app_blockchain_host=jungle3.cryptolions.io
app_blockchain_path=
app_blockchain_port=443
app_blockchain_chainId=e70aaab8997e1dfce58fbfac80cbbb8fecec7b99cf982a9444273cbc64c41473
app_blockchain_protocol=https
app_blockchain_token=EOS
app_blockchain_account=aloxidejs123
app_blockchain_account_pk=5JHQ3GuzcQtEQgG3SGvtDU7v2b7ioKznYBizA1V5mBUUsLNcXdQ
app_blockchain_contract=aloxidejs123
{"data":{"queryPoll":{"edges":[{"node":{"id":1,"name":"Dynamic Configuration Agent","body":"Et odit ullam nam ut. Totam quia deleniti quia. Omnis voluptas quidem dolorum officia est harum culpa."}},{"node":{"id":2,"name":"Internal Paradigm Officer","body":"Ratione itaque nam eum tenetur architecto rerum dolore earum rerum. Explicabo eum mollitia qui beatae modi nihil et ipsa. Doloremque eveniet itaque nesciunt quo consectetur qui. Et nam saepe porro. Maxime autem nesciunt eum rerum iure. Hic accusamus unde atque veritatis reiciendis."}},{"node":{"id":3,"name":"Dynamic Brand Facilitator","body":"Possimus velit quisquam autem rerum quia. Debitis et sunt. Molestiae placeat quaerat. Et rem atque dolore totam blanditiis et dignissimos."}},{"node":{"id":4,"name":"Chief Applications Planner","body":"Sed distinctio quis voluptatum. Rerum voluptatem totam velit fugiat. Possimus voluptas tempore et."}},{"node":{"id":5,"name":"Customer Factors Engineer","body":"Est officia cupiditate impedit. Iste pariatur dolores nostrum voluptas. Dolor amet velit tempore voluptas quidem. Non cumque molestias quo alias animi optio ipsa facere accusantium."}},{"node":{"id":6,"name":"Future Group Architect","body":"Alias vitae in sed saepe dolore. Eos a unde iure enim nemo atque at est. Laudantium voluptas nesciunt voluptate non sed similique inventore vitae. Doloremque eveniet velit et aut architecto et. Delectus aut id voluptate inventore possimus iure maiores dicta."}},{"node":{"id":7,"name":"Legacy Response Administrator","body":"Saepe et vero enim praesentium ullam nulla. Temporibus dolore enim et est dolorem sit iusto at perferendis. Accusamus iste rem ipsum eligendi blanditiis sit et."}},{"node":{"id":8,"name":"Direct Marketing Technician","body":"Corrupti cupiditate dicta veniam dolorem. Dolor velit cumque. Deserunt voluptatem architecto vel inventore nobis minus labore quia et. Quaerat tenetur iure nesciunt."}},{"node":{"id":9,"name":"Senior Brand Designer","body":"Commodi autem voluptas illo voluptate id. Molestiae harum dolorem tenetur. Sed ducimus odit praesentium consequatur suscipit laboriosam voluptas quas laboriosam. Est est occaecati et sit id. Molestias dolore omnis incidunt atque sunt. Tempore quo placeat."}},{"node":{"id":10,"name":"National Branding Manager","body":"Neque enim aut assumenda repellat mollitia nihil ut ut. Recusandae distinctio nostrum numquam id consequatur quia dolorum libero tempore. Deleniti vero mollitia ipsum quisquam voluptas adipisci fugiat praesentium. Omnis est culpa et. Reiciendis quia aut sed neque nemo aut ea pariatur."}},{"node":{"id":11,"name":"National Factors Analyst","body":"Sunt quasi et omnis aliquid rerum voluptatem modi. Inventore doloremque corrupti quasi rem excepturi in itaque officia a. Voluptas aut enim voluptatibus ea. Velit consequatur hic et. Rerum et soluta animi doloremque."}},{"node":{"id":12,"name":"National Directives Analyst","body":"Autem harum corporis nihil veniam debitis. Nesciunt reiciendis molestiae. Facilis sed accusamus eum quis porro placeat nobis."}},{"node":{"id":13,"name":"Lead Infrastructure Liaison","body":"Magni doloremque eos rerum rem expedita molestias nisi omnis amet. Voluptas rerum quas iusto nisi hic est pariatur. Ea aut quis. Consectetur velit animi velit accusantium iusto voluptatem fuga. Aliquid laboriosam enim."}},{"node":{"id":14,"name":"Global Solutions Officer","body":"Alias quia omnis. Magni soluta quos neque esse fuga laboriosam ipsam praesentium incidunt. Facilis explicabo quos sequi sint. Ipsam et et amet autem."}},{"node":{"id":15,"name":"Customer Optimization Consultant","body":"Est nemo quibusdam eos amet. Autem quaerat voluptatem ea impedit consequatur rem rerum quos. Quae animi maiores velit et dolor rerum maxime aut iusto. Sit ut nesciunt quas est natus occaecati nesciunt."}},{"node":{"id":16,"name":"Central Integration Specialist","body":"Ut debitis facere voluptas aspernatur. Vitae esse et voluptas error. Amet optio dolorem repudiandae minima. Eius temporibus quas sunt consequatur voluptas tempora qui. Ipsam ipsum delectus ut."}},{"node":{"id":17,"name":"Human Research Agent","body":"Quo dolores quia quo aliquam laboriosam et ad ducimus rerum. Molestias labore explicabo provident. Delectus rerum nostrum. Iste et quis nesciunt possimus aliquam dolor facilis praesentium et."}},{"node":{"id":18,"name":"Principal Marketing Architect","body":"Velit accusantium aspernatur dolor quo quaerat est reiciendis et sunt. Est inventore molestiae eveniet ea eveniet vel. Eos alias perferendis facere modi ad cupiditate. Dolorem odit et molestiae esse beatae consequuntur blanditiis aspernatur iusto."}},{"node":{"id":19,"name":"Direct Solutions Assistant","body":"Aliquam numquam et iusto error quis voluptas ut rerum. Vel quia et animi quod debitis. Quia dolore hic harum quidem a. Et est fuga ut."}},{"node":{"id":20,"name":"Investor Communications Representative","body":"Nostrum qui molestias in error nobis eum aliquam ut. Velit dolorem at. Omnis a magnam impedit."}},{"node":{"id":21,"name":"Customer Assurance Executive","body":"Quis qui saepe. Tempora dolorem omnis vitae ipsa. Nemo at et similique debitis quo rem. Nostrum nesciunt unde et soluta nihil. Quia et laborum nihil vel esse. Earum aliquam corrupti nemo quis et natus."}},{"node":{"id":22,"name":"Forward Response Coordinator","body":"Est et voluptatem consequatur fuga. Sunt eius earum quidem. Consequatur quos placeat est harum inventore aut veritatis. Eos minus libero qui distinctio id quae. Illo fugiat voluptas ab nobis in iusto odio quia ratione."}},{"node":{"id":23,"name":"Principal Paradigm Officer","body":"Nam dolor quae mollitia maiores doloremque quas quae. Voluptates eaque odio est itaque deleniti officia rerum. Suscipit ea aliquid cumque et sed praesentium sed. Libero quasi odio ducimus. Explicabo ea minus. Ut possimus cumque iure reiciendis nesciunt tenetur."}},{"node":{"id":24,"name":"Central Metrics Developer","body":"Quaerat cum rerum. Aperiam suscipit nisi. Quas adipisci numquam quasi sint."}},{"node":{"id":25,"name":"Forward Brand Technician","body":"Sunt aut architecto aliquid et sapiente molestias nesciunt nisi consequatur. Aperiam provident laborum sit deserunt. Sint incidunt dolorem aut nesciunt officia. Suscipit necessitatibus dolorem dolorem excepturi. Voluptatem suscipit velit aspernatur molestiae inventore ut ea nemo reiciendis. Consequatur amet velit odit ipsam quisquam magnam."}}]}}}
{
"data": {
"__schema": {
"queryType": {
"name": "Query"
},
"mutationType": null,
"subscriptionType": null,
"types": [
{
"kind": "OBJECT",
"name": "Query",
"description": null,
"fields": [
{
"name": "queryPoll",
"description": null,
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "before",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "last",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "PollConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "queryVote",
"description": null,
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "before",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "last",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "VoteConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "String",
"description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Int",
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "PollConnection",
"description": "A connection to a list of items.",
"fields": [
{
"name": "pageInfo",
"description": "Information to aid in pagination.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "PageInfo",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "edges",
"description": "A list of edges.",
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "PollEdge",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "PageInfo",
"description": "Information about pagination in a connection.",
"fields": [
{
"name": "hasNextPage",
"description": "When paginating forwards, are there more items?",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "hasPreviousPage",
"description": "When paginating backwards, are there more items?",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "startCursor",
"description": "When paginating backwards, the cursor to continue.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "endCursor",
"description": "When paginating forwards, the cursor to continue.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Boolean",
"description": "The `Boolean` scalar type represents `true` or `false`.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "PollEdge",
"description": "An edge in a connection.",
"fields": [
{
"name": "node",
"description": "The item at the end of the edge",
"args": [],
"type": {
"kind": "OBJECT",
"name": "Poll",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "cursor",
"description": "A cursor for use in pagination",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Poll",
"description": null,
"fields": [
{
"name": "id",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "body",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "VoteConnection",
"description": "A connection to a list of items.",
"fields": [
{
"name": "pageInfo",
"description": "Information to aid in pagination.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "PageInfo",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "edges",
"description": "A list of edges.",
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "VoteEdge",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "VoteEdge",
"description": "An edge in a connection.",
"fields": [
{
"name": "node",
"description": "The item at the end of the edge",
"args": [],
"type": {
"kind": "OBJECT",
"name": "Vote",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "cursor",
"description": "A cursor for use in pagination",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Vote",
"description": null,
"fields": [
{
"name": "id",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "pollId",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ownerId",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "point",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Float",
"description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "__Schema",
"description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",
"fields": [
{
"name": "types",
"description": "A list of all types supported by this server.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "queryType",
"description": "The type that query operations will be rooted at.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "mutationType",
"description": "If this server supports mutation, the type that mutation operations will be rooted at.",
"args": [],
"type": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "subscriptionType",
"description": "If this server support subscription, the type that subscription operations will be rooted at.",
"args": [],
"type": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "directives",
"description": "A list of all directives supported by this server.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Directive",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "__Type",
"description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",
"fields": [
{
"name": "kind",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "__TypeKind",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "description",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "fields",
"description": null,
"args": [
{
"name": "includeDeprecated",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Field",
"ofType": null
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "interfaces",
"description": null,
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "possibleTypes",
"description": null,
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "enumValues",
"description": null,
"args": [
{
"name": "includeDeprecated",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__EnumValue",
"ofType": null
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "inputFields",
"description": null,
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__InputValue",
"ofType": null
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ofType",
"description": null,
"args": [],
"type": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "ENUM",
"name": "__TypeKind",
"description": "An enum describing what kind of type a given `__Type` is.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": [
{
"name": "SCALAR",
"description": "Indicates this type is a scalar.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "OBJECT",
"description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "INTERFACE",
"description": "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "UNION",
"description": "Indicates this type is a union. `possibleTypes` is a valid field.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ENUM",
"description": "Indicates this type is an enum. `enumValues` is a valid field.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "INPUT_OBJECT",
"description": "Indicates this type is an input object. `inputFields` is a valid field.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "LIST",
"description": "Indicates this type is a list. `ofType` is a valid field.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "NON_NULL",
"description": "Indicates this type is a non-null. `ofType` is a valid field.",
"isDeprecated": false,
"deprecationReason": null
}
],
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "__Field",
"description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",
"fields": [
{
"name": "name",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "description",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "args",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__InputValue",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "type",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "isDeprecated",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "deprecationReason",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "__InputValue",
"description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",
"fields": [
{
"name": "name",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "description",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "type",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "defaultValue",
"description": "A GraphQL-formatted string representing the default value for this input value.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "__EnumValue",
"description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",
"fields": [
{
"name": "name",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "description",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "isDeprecated",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "deprecationReason",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "__Directive",
"description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
"fields": [
{
"name": "name",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "description",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "locations",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "__DirectiveLocation",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "args",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__InputValue",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "ENUM",
"name": "__DirectiveLocation",
"description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": [
{
"name": "QUERY",
"description": "Location adjacent to a query operation.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "MUTATION",
"description": "Location adjacent to a mutation operation.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SUBSCRIPTION",
"description": "Location adjacent to a subscription operation.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "FIELD",
"description": "Location adjacent to a field.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "FRAGMENT_DEFINITION",
"description": "Location adjacent to a fragment definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "FRAGMENT_SPREAD",
"description": "Location adjacent to a fragment spread.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "INLINE_FRAGMENT",
"description": "Location adjacent to an inline fragment.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "VARIABLE_DEFINITION",
"description": "Location adjacent to a variable definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SCHEMA",
"description": "Location adjacent to a schema definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SCALAR",
"description": "Location adjacent to a scalar definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "OBJECT",
"description": "Location adjacent to an object type definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "FIELD_DEFINITION",
"description": "Location adjacent to a field definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ARGUMENT_DEFINITION",
"description": "Location adjacent to an argument definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "INTERFACE",
"description": "Location adjacent to an interface definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "UNION",
"description": "Location adjacent to a union definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ENUM",
"description": "Location adjacent to an enum definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ENUM_VALUE",
"description": "Location adjacent to an enum value definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "INPUT_OBJECT",
"description": "Location adjacent to an input object type definition.",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "INPUT_FIELD_DEFINITION",
"description": "Location adjacent to an input object field definition.",
"isDeprecated": false,
"deprecationReason": null
}
],
"possibleTypes": null
}
],
"directives": [
{
"name": "include",
"description": "Directs the executor to include this field or fragment only when the `if` argument is true.",
"locations": [
"FIELD",
"FRAGMENT_SPREAD",
"INLINE_FRAGMENT"
],
"args": [
{
"name": "if",
"description": "Included when true.",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"defaultValue": null
}
]
},
{
"name": "skip",
"description": "Directs the executor to skip this field or fragment when the `if` argument is true.",
"locations": [
"FIELD",
"FRAGMENT_SPREAD",
"INLINE_FRAGMENT"
],
"args": [
{
"name": "if",
"description": "Skipped when true.",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"defaultValue": null
}
]
},
{
"name": "deprecated",
"description": "Marks an element of a GraphQL schema as no longer supported.",
"locations": [
"FIELD_DEFINITION",
"ENUM_VALUE"
],
"args": [
{
"name": "reason",
"description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": "\"No longer supported\""
}
]
}
]
}
}
}
app_blockchain_name=ICON Testnet
app_blockchain_type=icon
app_blockchain_host=bicon.net.solidwallet.io
app_blockchain_path=/api/v3
app_blockchain_port=443
app_blockchain_chainId=353c0a7c6744e58778a2a334d1da2303eb12a111cc636bb494e63a84c9e7ffeb
app_blockchain_protocol=https
app_blockchain_token=ICX
app_blockchain_account=hxe7af5fcfd8dfc67530a01a0e403882687528dfcb
app_blockchain_account_pk=592eb276d534e2c41a2d9356c0ab262dc233d87e4dd71ce705ec130a8d27ff0c
app_blockchain_contract=cx26d2757d45ea7e559940d86761330005b0e9f2d8
query IntrospectionQuery {
__schema {
queryType {
name
}
mutationType {
name
}
subscriptionType {
name
}
types {
...FullType
}
directives {
name
description
locations
args {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
description
fields(includeDeprecated: true) {
name
description
args {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
description
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
description
type {
...TypeRef
}
defaultValue
}
fragment TypeRef on __Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
[
{
"name": "creoption",
"type": "function",
"inputs": [
{
"name": "optionId",
"type": "int"
},
{
"name": "name",
"type": "str"
},
{
"name": "pollId",
"type": "int"
}
],
"outputs": []
},
{
"name": "crepoll",
"type": "function",
"inputs": [
{
"name": "pollId",
"type": "int"
},
{
"name": "name",
"type": "str"
},
{
"name": "body",
"type": "str"
},
{
"name": "start",
"type": "int"
},
{
"name": "end",
"type": "int"
}
],
"outputs": []
},
{
"name": "crevote",
"type": "function",
"inputs": [
{
"name": "voteId",
"type": "int"
},
{
"name": "point",
"type": "int"
},
{
"name": "message",
"type": "str"
},
{
"name": "ownerId",
"type": "int"
},
{
"name": "optionId",
"type": "int"
}
],
"outputs": []
},
{
"name": "deloption",
"type": "function",
"inputs": [
{
"name": "optionId",
"type": "int"
}
],
"outputs": []
},
{
"name": "delpoll",
"type": "function",
"inputs": [
{
"name": "pollId",
"type": "int"
}
],
"outputs": []
},
{
"name": "delvote",
"type": "function",
"inputs": [
{
"name": "voteId",
"type": "int"
}
],
"outputs": []
},
{
"name": "getoption",
"type": "function",
"inputs": [
{
"name": "optionId",
"type": "int"
}
],
"outputs": [
{
"type": "str"
}
],
"readonly": "0x1"
},
{
"name": "getpoll",
"type": "function",
"inputs": [
{
"name": "pollId",
"type": "int"
}
],
"outputs": [
{
"type": "str"
}
],
"readonly": "0x1"
},
{
"name": "getvote",
"type": "function",
"inputs": [
{
"name": "voteId",
"type": "int"
}
],
"outputs": [
{
"type": "str"
}
],
"readonly": "0x1"
},
{
"name": "hi",
"type": "function",
"inputs": [],
"outputs": [
{
"type": "str"
}
],
"readonly": "0x1"
},
{
"name": "updoption",
"type": "function",
"inputs": [
{
"name": "optionId",
"type": "int"
},
{
"name": "name",
"type": "str"
},
{
"name": "pollId",
"type": "int"
}
],
"outputs": []
},
{
"name": "updpoll",
"type": "function",
"inputs": [
{
"name": "pollId",
"type": "int"
},
{
"name": "name",
"type": "str"
},
{
"name": "body",
"type": "str"
},
{
"name": "start",
"type": "int"
},
{
"name": "end",
"type": "int"
}
],
"outputs": []
},
{
"name": "updvote",
"type": "function",
"inputs": [
{
"name": "voteId",
"type": "int"
},
{
"name": "point",
"type": "int"
},
{
"name": "message",
"type": "str"
},
{
"name": "ownerId",
"type": "int"
},
{
"name": "optionId",
"type": "int"
}
],
"outputs": []
}
]
dynamodb.listTables({}, (err, d) => {
if (err) return console.error(ppJson(err));
console.log(ppJson(d));
});
docClient.scan({ TableName: 'Poll' }, (err, polls) => {
if (err) return console.error(ppJson(err));
console.log(ppJson(polls));
});
docClient.scan({ TableName: 'Option' }, (err, options) => {
if (err) return console.error(ppJson(err));
console.log(ppJson(options));
});
docClient.scan({ TableName: 'Vote' }, (err, votes) => {
if (err) return console.error(ppJson(err));
console.log(ppJson(votes));
});
#!/bin/bash
echo "%{time_total}s\\n" > curl_format.txt
echo "" > test_min_request.log
end=$((SECONDS+60))
while [ $SECONDS -lt $end ]; do
for i in {1..10}
do
curl -w "@curl_format.txt" -o /dev/null -s -X POST -H "Content-Type: application/json" -d '{"query":"{queryPoll(first: 25) {edges {node {id name body}}}}"}' http://localhost:4000/graphql >> test_min_request.log
sleep 1
done
done
#!/bin/bash
echo "%{time_total}s\\n" > curl_format.txt
for i in {1..1000}
do
curl -w "@curl_format.txt" -o /dev/null -s -X POST -H "Content-Type: application/json" -d '{"query":"{queryPoll(first: 25) {edges {node {id name body}}}}"}' http://localhost:4000/graphql >> test_response_time.log
sleep 0.001
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment