Skip to content

Commit

Permalink
Fixed serve axon and prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
cyborgshead committed Feb 17, 2024
1 parent c9a7a04 commit 26a27e2
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 98 deletions.
92 changes: 49 additions & 43 deletions schema/cybernet.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@
],
"properties": {
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -249,9 +247,7 @@
],
"properties": {
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -1459,7 +1455,13 @@
},
"additionalProperties": false
}
]
],
"definitions": {
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
"query": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down Expand Up @@ -2361,9 +2363,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -2396,6 +2396,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down Expand Up @@ -2805,9 +2809,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -3016,9 +3018,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -3036,6 +3036,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down Expand Up @@ -3074,9 +3078,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -3243,9 +3245,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -3263,6 +3263,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down Expand Up @@ -3297,9 +3301,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -3508,9 +3510,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -3528,6 +3528,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down Expand Up @@ -3562,9 +3566,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -3731,9 +3733,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -3751,6 +3751,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down Expand Up @@ -3782,9 +3786,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -3802,6 +3804,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down Expand Up @@ -5625,9 +5631,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -5677,9 +5681,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -5697,6 +5699,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down
16 changes: 9 additions & 7 deletions schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@
],
"properties": {
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -239,9 +237,7 @@
],
"properties": {
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -1449,5 +1445,11 @@
},
"additionalProperties": false
}
]
],
"definitions": {
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
}
8 changes: 5 additions & 3 deletions schema/raw/response_to_get_axon_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -64,6 +62,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
}
12 changes: 6 additions & 6 deletions schema/raw/response_to_get_neuron.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -244,9 +242,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -264,6 +260,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
}
12 changes: 6 additions & 6 deletions schema/raw/response_to_get_neuron_lite.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand Down Expand Up @@ -202,9 +200,7 @@
"minimum": 0.0
},
"ip": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
"$ref": "#/definitions/Uint128"
},
"ip_type": {
"type": "integer",
Expand All @@ -222,6 +218,10 @@
"minimum": 0.0
}
}
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
}
Loading

0 comments on commit 26a27e2

Please sign in to comment.