Skip to content

Commit

Permalink
regen schemas + fix hashFile
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Aug 17, 2023
1 parent c6cce19 commit d699d11
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gauntlet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
cache-name: cache-wasmd-artifacts
with:
path: artifacts
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('artifacts') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('contracts') }}

- if: ${{ steps.cache-wasmd-artifacts.outputs.cache-hit != 'true' }}
name: Build Wasmd Artifacts
Expand Down
15 changes: 5 additions & 10 deletions contracts/access-controller/schema/access-controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"type": "object",
"additionalProperties": false
"type": "object"
},
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand All @@ -33,8 +32,7 @@
"address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -54,8 +52,7 @@
"address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -75,8 +72,7 @@
"to": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -108,8 +104,7 @@
"address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down
9 changes: 3 additions & 6 deletions contracts/access-controller/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -44,8 +43,7 @@
"address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -65,8 +63,7 @@
"to": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down
3 changes: 1 addition & 2 deletions contracts/access-controller/schema/raw/instantiate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"type": "object",
"additionalProperties": false
"type": "object"
}
3 changes: 1 addition & 2 deletions contracts/access-controller/schema/raw/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"description": "The address of the flags contract",
"type": "string"
}
},
"additionalProperties": false
}
},
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand All @@ -45,8 +44,7 @@
"description": "Address to transfer ownership to",
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -76,8 +74,7 @@
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -98,8 +95,7 @@
"flags": {
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -140,8 +136,7 @@
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -180,8 +175,7 @@
"description": "Previous answer, used as the median of difference with the current answer to determine if the deviation threshold has been exceeded",
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -218,8 +212,7 @@
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"is_valid": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
12 changes: 4 additions & 8 deletions contracts/deviation-flagging-validator/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"description": "Address to transfer ownership to",
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -50,8 +49,7 @@
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -72,8 +70,7 @@
"flags": {
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -114,8 +111,7 @@
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
"description": "The address of the flags contract",
"type": "string"
}
},
"additionalProperties": false
}
}
3 changes: 1 addition & 2 deletions contracts/deviation-flagging-validator/schema/raw/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"description": "Previous answer, used as the median of difference with the current answer to determine if the deviation threshold has been exceeded",
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
36 changes: 14 additions & 22 deletions contracts/flags/schema/flags.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"raising_access_controller": {
"type": "string"
}
},
"additionalProperties": false
}
},
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand All @@ -41,8 +40,7 @@
"description": "Address to transfer ownership to",
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -69,8 +67,7 @@
"subject": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -93,8 +90,7 @@
"type": "string"
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -117,8 +113,7 @@
"type": "string"
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -138,8 +133,7 @@
"rac_address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand All @@ -153,17 +147,17 @@
{
"type": "string",
"enum": [
"owner",
"raising_access_controller"
"Owner",
"RaisingAccessController"
]
},
{
"type": "object",
"required": [
"flag"
"Flag"
],
"properties": {
"flag": {
"Flag": {
"type": "object",
"required": [
"subject"
Expand All @@ -172,19 +166,18 @@
"subject": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"flags"
"Flags"
],
"properties": {
"flags": {
"Flags": {
"type": "object",
"required": [
"subjects"
Expand All @@ -196,8 +189,7 @@
"type": "string"
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
Expand Down
Loading

0 comments on commit d699d11

Please sign in to comment.