Skip to content

Commit

Permalink
Merge pull request algorand#1685 from algorand/master
Browse files Browse the repository at this point in the history
Re-merge master
  • Loading branch information
algojohnlee authored Nov 11, 2020
2 parents a1c6f1f + bb49c49 commit ee208e1
Show file tree
Hide file tree
Showing 44 changed files with 1,235 additions and 348 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ assets

# test binaries
*.test

index.html

4 changes: 2 additions & 2 deletions cmd/goal/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func init() {
createAssetCmd.MarkFlagRequired("creator")

destroyAssetCmd.Flags().StringVar(&assetManager, "manager", "", "Manager account to issue the destroy transaction (defaults to creator)")
destroyAssetCmd.Flags().StringVar(&assetCreator, "creator", "", "Account address for asset to destroy")
destroyAssetCmd.Flags().StringVar(&assetCreator, "creator", "", "Creator account address for asset to destroy")
destroyAssetCmd.Flags().Uint64Var(&assetID, "assetid", 0, "Asset ID to destroy")
destroyAssetCmd.Flags().StringVar(&assetUnitName, "asset", "", "Unit name of asset to destroy")

Expand Down Expand Up @@ -256,7 +256,7 @@ var createAssetCmd = &cobra.Command{
var destroyAssetCmd = &cobra.Command{
Use: "destroy",
Short: "Destroy an asset",
Long: `Issue a transaction deleting an asset from the network. This transaction must be issued by the asset owner, who must hold all outstanding asset tokens.`,
Long: `Issue a transaction deleting an asset from the network. This transaction must be issued by the asset manager while the creator holds all of the asset's tokens.`,
Args: validateNoPosArgsFn,
Run: func(cmd *cobra.Command, _ []string) {
checkTxValidityPeriodCmdFlags(cmd)
Expand Down
2 changes: 1 addition & 1 deletion config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const VersionMajor = 2

// VersionMinor is the Minor semantic version number (x.#.z) - changed when backwards-compatible features are introduced.
// Not enforced until after initial public release (x > 0).
const VersionMinor = 1
const VersionMinor = 2

// Version is the type holding our full version information.
type Version struct {
Expand Down
10 changes: 8 additions & 2 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@
},
"/v2/teal/compile": {
"post": {
"description": "Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style).",
"description": "Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style). This endpoint is only enabled when a node's configureation file sets EnableDeveloperAPI to true.",
"consumes": [
"text/plain"
],
Expand Down Expand Up @@ -936,6 +936,9 @@
"$ref": "#/definitions/ErrorResponse"
}
},
"404": {
"description": "Developer API not enabled"
},
"500": {
"description": "Internal Error",
"schema": {
Expand Down Expand Up @@ -1055,7 +1058,7 @@
},
"/v2/teal/dryrun": {
"post": {
"description": "Executes TEAL program(s) in context and returns debugging information about the execution.",
"description": "Executes TEAL program(s) in context and returns debugging information about the execution. This endpoint is only enabled when a node's configureation file sets EnableDeveloperAPI to true.",
"consumes": [
"application/json",
"application/msgpack"
Expand Down Expand Up @@ -1095,6 +1098,9 @@
"$ref": "#/definitions/ErrorResponse"
}
},
"404": {
"description": "Developer API not enabled"
},
"500": {
"description": "Internal Error",
"schema": {
Expand Down
12 changes: 10 additions & 2 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@
},
"/v2/teal/compile": {
"post": {
"description": "Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style).",
"description": "Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style). This endpoint is only enabled when a node's configureation file sets EnableDeveloperAPI to true.",
"operationId": "TealCompile",
"requestBody": {
"content": {
Expand Down Expand Up @@ -2652,6 +2652,10 @@
},
"description": "Invalid API Token"
},
"404": {
"content": {},
"description": "Developer API not enabled"
},
"500": {
"content": {
"application/json": {
Expand All @@ -2673,7 +2677,7 @@
},
"/v2/teal/dryrun": {
"post": {
"description": "Executes TEAL program(s) in context and returns debugging information about the execution.",
"description": "Executes TEAL program(s) in context and returns debugging information about the execution. This endpoint is only enabled when a node's configureation file sets EnableDeveloperAPI to true.",
"operationId": "TealDryrun",
"requestBody": {
"content": {
Expand Down Expand Up @@ -2742,6 +2746,10 @@
},
"description": "Invalid API Token"
},
"404": {
"content": {},
"description": "Developer API not enabled"
},
"500": {
"content": {
"application/json": {
Expand Down
Loading

0 comments on commit ee208e1

Please sign in to comment.