Skip to content

Commit

Permalink
feature: basic support for compiler v4.0.0-rc4
Browse files Browse the repository at this point in the history
  • Loading branch information
randomshinichi committed Sep 17, 2019
1 parent 852dc24 commit 152bac5
Show file tree
Hide file tree
Showing 12 changed files with 307 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TAG=v5.0.0-rc.1
COMPILER_TAG=v4.0.0-rc2
COMPILER_TAG=v4.0.0-rc4
62 changes: 54 additions & 8 deletions api/compiler.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,34 @@
},
"type": "object"
},
"CompilerError": {
"properties": {
"context": {
"type": "string"
},
"message": {
"type": "string"
},
"pos": {
"$ref": "#/definitions/ErrorPos"
},
"type": {
"type": "string"
}
},
"required": [
"message",
"pos",
"type"
],
"type": "object"
},
"CompilerErrors": {
"items": {
"$ref": "#/definitions/CompilerError"
},
"type": "array"
},
"CompilerVersion": {
"example": {
"version": "version"
Expand Down Expand Up @@ -239,6 +267,24 @@
],
"type": "object"
},
"ErrorPos": {
"properties": {
"col": {
"type": "integer"
},
"file": {
"type": "string"
},
"line": {
"type": "integer"
}
},
"required": [
"col",
"line"
],
"type": "object"
},
"FunctionCallInput": {
"example": {
"arguments": [
Expand Down Expand Up @@ -364,7 +410,7 @@
"description": "This is the [Aeternity](https://www.aeternity.com/) compiler API.",
"termsOfService": "https://www.aeternity.com/terms/",
"title": "Aeternity node",
"version": "4.0.0-rc1"
"version": "4.0.0-rc4"
},
"paths": {
"/aci": {
Expand Down Expand Up @@ -402,9 +448,9 @@
}
},
"403": {
"description": "Invalid input",
"description": "Compiler errors",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "#/definitions/CompilerErrors"
}
}
}
Expand Down Expand Up @@ -495,7 +541,7 @@
"403": {
"description": "Invalid contract",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "#/definitions/CompilerErrors"
}
}
}
Expand Down Expand Up @@ -538,7 +584,7 @@
"403": {
"description": "Invalid data",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "#/definitions/CompilerErrors"
}
}
}
Expand Down Expand Up @@ -624,7 +670,7 @@
"403": {
"description": "Invalid data",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "#/definitions/CompilerErrors"
}
}
}
Expand Down Expand Up @@ -667,7 +713,7 @@
"403": {
"description": "Invalid data",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "#/definitions/CompilerErrors"
}
}
}
Expand Down Expand Up @@ -710,7 +756,7 @@
"403": {
"description": "Invalid contract",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "#/definitions/CompilerErrors"
}
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions swagguard/compiler/client/operations/decode_data_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 110 additions & 0 deletions swagguard/compiler/models/compiler_error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 152bac5

Please sign in to comment.