forked from PoC-Consortium/burstcoin
-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #744 from signum-network/develop
Merge for 3.7.0 release
- Loading branch information
Showing
163 changed files
with
4,536 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
####################################################################### | ||
# Mock configuration file # | ||
####################################################################### | ||
|
||
# Mock mining for junit tests, in-memory db (offline and accepting any nonce as valid) | ||
node.network = signum.net.MockNetwork | ||
|
||
DB.Url=jdbc:h2:mem:signum-mock;DB_CLOSE_ON_EXIT=FALSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
####################################################################### | ||
# Mock configuration file # | ||
####################################################################### | ||
|
||
# Mock mining (offline and accepting any nonce as valid) | ||
node.network = signum.net.MockNetwork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
####################################################################### | ||
# Testnet configuration file # | ||
####################################################################### | ||
|
||
# Testnet network | ||
node.network = signum.net.TestnetNetwork |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "tld", | ||
"in": "query", | ||
"description": "The TLD (namespace) of an alias. If not given the default TLD `signum` is applied.", | ||
"required": false, | ||
"schema": { | ||
"type": "string", | ||
"maxLength": "40", | ||
"pattern": "^[a-zA-Z0-9]{1,40}$" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "includeDetails", | ||
"in": "query", | ||
"allowEmptyValue": false, | ||
"required": false, | ||
"description": "If set `true` more details are being returned (Default: `true`). Use `false` and payload can be reduced by approx. 40%", | ||
"schema": { | ||
"type": "boolean", | ||
"example": [ | ||
true, | ||
false | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"post": { | ||
"summary": "Set Custom Alias TLD", | ||
"description": "Create a [Top Level Domain (TLD)](https://github.com/signum-network/SIPs/blob/master/SIP/sip-48.md) for aliases. A TLD is like a namespace for Aliases, such it is possible to have same Aliases in different TLDs.", | ||
"tags": [ | ||
"alias" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "tld", | ||
"in": "query", | ||
"required": true, | ||
"allowEmptyValue": false, | ||
"description": "Your custom TLD", | ||
"schema": { | ||
"type": "string", | ||
"maxLength": 40, | ||
"pattern": "^[a-zA-Z0-9]{1,40}$" | ||
} | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/feeNQT.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/secretPhrase.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/publicKey.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/deadline.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/broadcast.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/referencedTransactionFullHash.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/message.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/messageIsText.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/messageToEncrypt.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/messageToEncryptIsText.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/encryptedMessageData.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/encryptedMessageNonce.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/messageToEncryptToSelf.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/messageToEncryptToSelfIsText.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/encryptToSelfMessageData.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/transaction/encryptToSelfMessageNonce.json" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"$ref": "../../responses/transaction.json" | ||
}, | ||
"500" : { | ||
"$ref": "../../responses/error.json" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"get": { | ||
"summary": "Get Contracts ", | ||
"description": "Gets a list of smart contracts by their machin code hash", | ||
"tags": [ | ||
"contract" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "machineCodeHashId", | ||
"in": "query", | ||
"allowEmptyValue": false, | ||
"required": true, | ||
"description": "The machine code hash", | ||
"schema": { | ||
"type": "integer", | ||
"format": "int64", | ||
"example": [ | ||
"5817622329198284865", | ||
"15155055045342098571" | ||
] | ||
} | ||
}, | ||
{ | ||
"$ref": "../../parameters/contract/includeDetails.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/firstIndex.json" | ||
}, | ||
{ | ||
"$ref": "../../parameters/lastIndex.json" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Contract List Response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object", | ||
"required": [ | ||
"ats" | ||
], | ||
"properties": { | ||
"nextIndex": { | ||
"$ref": "../../schemas/nextIndex.json" | ||
}, | ||
"ats": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../../schemas/contract.json" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"500": { | ||
"$ref": "../../responses/error.json" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.