424230c3bb
commitcddd9e8e4cMerge:40fbdff0976dd7aaAuthor: Drazen Urch <durch@users.noreply.guthub.com> Date: Thu Sep 16 17:27:27 2021 +0200 Merge branch 'develop' into tauri-wallet commit976dd7aae2Author: Drazen Urch <drazen@urch.eu> Date: Wed Sep 15 17:28:49 2021 +0200 Add block_height method to Delegation (#778) Co-authored-by: Drazen Urch <durch@users.noreply.guthub.com> commit0d21f4e937Merge:e84af4f61403449aAuthor: Fouad <fmtabbara@hotmail.co.uk> Date: Wed Sep 15 12:41:29 2021 +0100 Merge pull request #776 from nymtech/update/re-enable-bonding re-enable bonding commit1403449ad5Author: fmtabbara <fmtabbara@hotmail.co.uk> Date: Tue Sep 14 16:00:21 2021 +0100 enable bonding commite84af4f601Author: Drazen Urch <drazen@urch.eu> Date: Tue Sep 14 15:15:26 2021 +0200 Migrate legacy delegation data (#771) * Skip ReadOnlyBucket deserialization errors * empty migration * clippy * cargo schema * Drop invalid delegation data * Dont drop old data * Add todo * Unify on type param * gateways are different * cargo fmt Co-authored-by: Drazen Urch <durch@users.noreply.guthub.com> commit26b032c15cMerge:e1ddaff0cba36253Author: Mark Sinclair <mmsinclair@gmail.com> Date: Tue Sep 14 10:09:14 2021 +0100 Merge pull request #774 from nymtech/feature/explorer-api-delegations Explorer-api: add API resource to show the delegations for each mix node commitcba3625394Author: Mark Sinclair <mmsinclair@gmail.com> Date: Mon Sep 13 10:33:41 2021 +0100 explorer-api: add API resource to show the delegations for each mix node commite1ddaff04dMerge:0b9c03ca66ab5de4Author: Fouad <fmtabbara@hotmail.co.uk> Date: Fri Sep 10 17:17:14 2021 +0100 Merge pull request #772 from nymtech/update/disable-bonding add app alert commit66ab5de442Author: fmtabbara <fmtabbara@hotmail.co.uk> Date: Fri Sep 10 16:16:58 2021 +0100 add app alert commit0b9c03ca90Author: Dave Hrycyszyn <futurechimp@users.noreply.github.com> Date: Fri Sep 10 11:23:21 2021 +0300 Adding deps for building the Tauri wallet under Ubuntu (#770) commitc9dce0c1daAuthor: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Thu Sep 9 11:21:45 2021 +0200 Feature/consumable bandwidth (#766) * Set actual value for bandwidth Also put it as a public attribute, such that it can be actively used by the credential consumer * Switch from sending Attribute structs to sending the actual attribute bytes over the wire * Add atomic bandwidth value to gateway * Consume bandwidth based on the mix packet size * Use Bandwidth struct for specific functionality * Move bandwidth code outside the dependency path of wasm client * Use u64 instead of AtomicU64, as the handling is not parallel commite00e77db15Author: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Wed Sep 8 15:07:24 2021 +0200 Feature/bond blockstamp (#760) * Add block_height to MixNode/GatewayBond * Reward based on blockstamp of bonded node or of delegation * Add specific tests * Add migration code * Apply doc nit commit1074449f91Merge:08276e6e9a3d824aAuthor: Fouad <fmtabbara@hotmail.co.uk> Date: Tue Sep 7 23:45:10 2021 +0100 Merge pull request #767 from nymtech/update/remove-app-alert remove alert commit08276e6e42Author: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Tue Sep 7 16:33:30 2021 +0200 Remove migration code (#759) commit9a3d824a4aAuthor: fmtabbara <fmtabbara@hotmail.co.uk> Date: Mon Sep 6 20:39:24 2021 +0100 remove alert commit2789ee8f18Author: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Fri Sep 3 15:30:45 2021 +0300 Update coconut-rs and use hash_to_scalar from there (#765) Failed tests are due to some nightly issue, not related to this PR commita7ba643c35Merge:28be53eec42f3c68Author: Fouad <fmtabbara@hotmail.co.uk> Date: Fri Sep 3 09:14:50 2021 +0100 Merge pull request #762 from nymtech/feature/app-alert add app alert banner commit28be53eefbAuthor: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Thu Sep 2 18:26:40 2021 +0300 Add block_height in the Delegation structure as well (#757) commit219c45a352Author: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com> Date: Thu Sep 2 15:48:29 2021 +0100 Updated cosmos-sdk (#761) * Updated cosmos-sdk * Re-exposing more things commit1a3b83752eAuthor: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Sep 2 15:45:56 2021 +0100 Bump next from 11.1.0 to 11.1.1 in /wallet-web (#758) Bumps [next](https://github.com/vercel/next.js) from 11.1.0 to 11.1.1. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v11.1.0...v11.1.1) --- updated-dependencies: - dependency-name: next dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commitc42f3c6844Author: fmtabbara <fmtabbara@hotmail.co.uk> Date: Thu Sep 2 12:29:47 2021 +0100 add app alert banner commita5d3ba3900Merge:92e13a5dcdf0d443Author: Mark Sinclair <mmsinclair@gmail.com> Date: Tue Aug 31 15:59:11 2021 +0100 Merge pull request #755 from nymtech/bugfix/explorer-api-ping Explorer API: port test now split out address resolution and add units tests commitcdf0d44341Author: Mark Sinclair <mmsinclair@gmail.com> Date: Tue Aug 31 14:37:28 2021 +0100 explorer-api: turned down logging from `error` to `warn` commit92f976a45dAuthor: Mark Sinclair <mmsinclair@gmail.com> Date: Fri Aug 27 11:34:21 2021 +0100 explorer-api: sanitize hostname before running checks to avoid leading or trailing spaces that are known to exist in the current test net commit2bc858cde3Author: Mark Sinclair <mmsinclair@gmail.com> Date: Fri Aug 27 09:32:26 2021 +0100 explorer-api: port test: split out address resolution and add units tests commit92e13a5d00Author: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Tue Aug 31 14:51:15 2021 +0300 Feature/add blockstamp (#756) * Add RawDelegationData * Fix current tests for the new stored data * Added migration commit. Will be reverted after doing the migration * New tests for block height * Use current blockstamp instead of 24h old one * Put _alot_ of migration stuff in the migrate function scope commit122f5d9f2eAuthor: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Mon Aug 30 10:27:20 2021 +0300 Feature/cred after handshake (#745) * Call perform_initial_authentication instead of register in clients * Refactor the register/authenticate functions a bit * Introduce Bandwidth request type * Add encryption layer to cred * Remove cred pass and check from handshake * Replaced unreachable! with error * Changed decrypt_tagged signature to not take mutable ownership of data * Put handle_bandwidth work inside a function * Add check before unwrap * Remove unnecessary async * Decouple bandwidth credential from authentication * Use new_error for ServerResponse:Error * Send a fresh IV each time the BandwidthCredential request is sent * Remove unwrap of bincode::serialize * Add comment regarding Bandwidth response * Remove _mut from naming * Leave Debug trait alone, as the initial error doesn't reproduce anymore * Pass iv as Vec<u8> instead of base58 string * Renamed AuthenticationIV to IV, as it is now used for more the just authentication * Did some IV refactorization commit982ee0266cAuthor: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Fri Aug 27 16:02:34 2021 +0300 Feature/get own delegations (#748) * Introduce reverse delegation bucket * Add client command * Fix clippy error * Added tests in queries * Add tests in transactions * Migration code. Will be reverted after it's called on testnet * Replace unwrap with expect * Move some test code in the right file... ... to remove unnecessary auxiliary function. * Reduce the scope to migration auxiliary functions * Rename everything from [node]reverse to reverse[node] * Fix fmt commit5f42a9bd05Author: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com> Date: Fri Aug 27 13:52:18 2021 +0100 NetworkMonitorBuilder - starting the monitor after rocket has launched (#754) * NetworkMonitorBuilder - starting the monitor after rocket has launched * Removed unused import commit1811df9ddbAuthor: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com> Date: Fri Aug 27 13:52:10 2021 +0100 Enabled validators api argument (#753) commit6bdfe7f895Author: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com> Date: Thu Aug 26 11:21:01 2021 +0100 Correctly bounding nominator of uptime calculation (#752) commitc6b286a1dbAuthor: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com> Date: Wed Aug 25 14:50:57 2021 +0100 Fixed argument parsing for ipv6 'good' topology (#751) commitb3568a26f5Author: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Tue Aug 24 11:25:05 2021 +0300 Revert "Migration commit, will be reverted after the testnet contract is updated" (#749) This reverts commit38d868bcce. commit15ae0f521eAuthor: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com> Date: Mon Aug 23 10:26:51 2021 +0100 Feature/more reliable uptime calculation (#747) * New database table holding monitor run info * SQL interface for new table * Updated uptime calculation to instead rely on number of monitor test runs commit2923d4b872Author: Bogdan-Ștefan Neacşu <bogdan@nymtech.net> Date: Thu Aug 19 22:03:07 2021 +0300 Update template toml key (#746)
350 lines
8.1 KiB
JSON
350 lines
8.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "ExecuteMsg",
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"bond_mixnode"
|
|
],
|
|
"properties": {
|
|
"bond_mixnode": {
|
|
"type": "object",
|
|
"required": [
|
|
"mix_node"
|
|
],
|
|
"properties": {
|
|
"mix_node": {
|
|
"$ref": "#/definitions/MixNode"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"unbond_mixnode"
|
|
],
|
|
"properties": {
|
|
"unbond_mixnode": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"bond_gateway"
|
|
],
|
|
"properties": {
|
|
"bond_gateway": {
|
|
"type": "object",
|
|
"required": [
|
|
"gateway"
|
|
],
|
|
"properties": {
|
|
"gateway": {
|
|
"$ref": "#/definitions/Gateway"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"unbond_gateway"
|
|
],
|
|
"properties": {
|
|
"unbond_gateway": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"update_state_params"
|
|
],
|
|
"properties": {
|
|
"update_state_params": {
|
|
"$ref": "#/definitions/StateParams"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"delegate_to_mixnode"
|
|
],
|
|
"properties": {
|
|
"delegate_to_mixnode": {
|
|
"type": "object",
|
|
"required": [
|
|
"mix_identity"
|
|
],
|
|
"properties": {
|
|
"mix_identity": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"undelegate_from_mixnode"
|
|
],
|
|
"properties": {
|
|
"undelegate_from_mixnode": {
|
|
"type": "object",
|
|
"required": [
|
|
"mix_identity"
|
|
],
|
|
"properties": {
|
|
"mix_identity": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"delegate_to_gateway"
|
|
],
|
|
"properties": {
|
|
"delegate_to_gateway": {
|
|
"type": "object",
|
|
"required": [
|
|
"gateway_identity"
|
|
],
|
|
"properties": {
|
|
"gateway_identity": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"undelegate_from_gateway"
|
|
],
|
|
"properties": {
|
|
"undelegate_from_gateway": {
|
|
"type": "object",
|
|
"required": [
|
|
"gateway_identity"
|
|
],
|
|
"properties": {
|
|
"gateway_identity": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"reward_mixnode"
|
|
],
|
|
"properties": {
|
|
"reward_mixnode": {
|
|
"type": "object",
|
|
"required": [
|
|
"identity",
|
|
"uptime"
|
|
],
|
|
"properties": {
|
|
"identity": {
|
|
"type": "string"
|
|
},
|
|
"uptime": {
|
|
"type": "integer",
|
|
"format": "uint32",
|
|
"minimum": 0.0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"reward_gateway"
|
|
],
|
|
"properties": {
|
|
"reward_gateway": {
|
|
"type": "object",
|
|
"required": [
|
|
"identity",
|
|
"uptime"
|
|
],
|
|
"properties": {
|
|
"identity": {
|
|
"type": "string"
|
|
},
|
|
"uptime": {
|
|
"type": "integer",
|
|
"format": "uint32",
|
|
"minimum": 0.0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
],
|
|
"definitions": {
|
|
"Decimal": {
|
|
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
|
|
"type": "string"
|
|
},
|
|
"Gateway": {
|
|
"type": "object",
|
|
"required": [
|
|
"clients_port",
|
|
"host",
|
|
"identity_key",
|
|
"location",
|
|
"mix_port",
|
|
"sphinx_key",
|
|
"version"
|
|
],
|
|
"properties": {
|
|
"clients_port": {
|
|
"type": "integer",
|
|
"format": "uint16",
|
|
"minimum": 0.0
|
|
},
|
|
"host": {
|
|
"type": "string"
|
|
},
|
|
"identity_key": {
|
|
"description": "Base58 encoded ed25519 EdDSA public key of the gateway used to derive shared keys with clients",
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"type": "string"
|
|
},
|
|
"mix_port": {
|
|
"type": "integer",
|
|
"format": "uint16",
|
|
"minimum": 0.0
|
|
},
|
|
"sphinx_key": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"MixNode": {
|
|
"type": "object",
|
|
"required": [
|
|
"host",
|
|
"http_api_port",
|
|
"identity_key",
|
|
"mix_port",
|
|
"sphinx_key",
|
|
"verloc_port",
|
|
"version"
|
|
],
|
|
"properties": {
|
|
"host": {
|
|
"type": "string"
|
|
},
|
|
"http_api_port": {
|
|
"type": "integer",
|
|
"format": "uint16",
|
|
"minimum": 0.0
|
|
},
|
|
"identity_key": {
|
|
"description": "Base58 encoded ed25519 EdDSA public key.",
|
|
"type": "string"
|
|
},
|
|
"mix_port": {
|
|
"type": "integer",
|
|
"format": "uint16",
|
|
"minimum": 0.0
|
|
},
|
|
"sphinx_key": {
|
|
"type": "string"
|
|
},
|
|
"verloc_port": {
|
|
"type": "integer",
|
|
"format": "uint16",
|
|
"minimum": 0.0
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"StateParams": {
|
|
"type": "object",
|
|
"required": [
|
|
"epoch_length",
|
|
"gateway_bond_reward_rate",
|
|
"gateway_delegation_reward_rate",
|
|
"minimum_gateway_bond",
|
|
"minimum_mixnode_bond",
|
|
"mixnode_active_set_size",
|
|
"mixnode_bond_reward_rate",
|
|
"mixnode_delegation_reward_rate"
|
|
],
|
|
"properties": {
|
|
"epoch_length": {
|
|
"type": "integer",
|
|
"format": "uint32",
|
|
"minimum": 0.0
|
|
},
|
|
"gateway_bond_reward_rate": {
|
|
"$ref": "#/definitions/Decimal"
|
|
},
|
|
"gateway_delegation_reward_rate": {
|
|
"$ref": "#/definitions/Decimal"
|
|
},
|
|
"minimum_gateway_bond": {
|
|
"$ref": "#/definitions/Uint128"
|
|
},
|
|
"minimum_mixnode_bond": {
|
|
"$ref": "#/definitions/Uint128"
|
|
},
|
|
"mixnode_active_set_size": {
|
|
"type": "integer",
|
|
"format": "uint32",
|
|
"minimum": 0.0
|
|
},
|
|
"mixnode_bond_reward_rate": {
|
|
"$ref": "#/definitions/Decimal"
|
|
},
|
|
"mixnode_delegation_reward_rate": {
|
|
"$ref": "#/definitions/Decimal"
|
|
}
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|