Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ed9223d
Merge branch 'develop' into release/2024.7-doubledecker
tommyv1987 Jul 10, 2024
0905593
[DOCs/operators]: Test WSS for exit-gateway, write a tutorial & updat…
serinko Jul 10, 2024
93a1088
add node description and release changelog (#4701)
serinko Jul 10, 2024
39e2473
Merge pull request #4702 from nymtech/release/2024.7-doubledecker
tommyv1987 Jul 10, 2024
44cf9b0
Max/dev portal update (#4696)
mfahampshire Jul 10, 2024
65a1d6d
switch to new vanity link (#4705)
pwnfoo Jul 11, 2024
66f3a3e
removed mixnode/gateway config migration code and disabled commands w…
jstuczyn Jul 11, 2024
c253b22
fixed the positional argument
jstuczyn Jul 11, 2024
3155728
fix explorer mui deps (#4708)
fmtabbara Jul 12, 2024
99864cb
Bump braces from 3.0.2 to 3.0.3 in /nym-wallet/webdriver
dependabot[bot] Jul 12, 2024
eec1895
Merge pull request #4709 from nymtech/dependabot/npm_and_yarn/nym-wal…
tommyv1987 Jul 12, 2024
1f14469
Add upgrades to nym-node for authenticator changes (#4703) (#4710)
neacsu Jul 12, 2024
3a053b8
fix links (#4712)
pwnfoo Jul 15, 2024
4d745e3
[DOCs/operators]: Correct ports for bonding (#4707)
serinko Jul 16, 2024
3ad3837
done: fix wrong URL and picture formatting (#4714)
serinko Jul 17, 2024
6215996
add ssl cert to WSS server block
serinko Jul 19, 2024
a2fc1bb
Merge pull request #4719 from nymtech/serinko/bug-fix/wss-guide
tommyv1987 Jul 19, 2024
22eb199
Update isp-sheet.csv (#4718)
JohnSmith-PrivacyRebels Jul 22, 2024
4e51188
[DOCs/operators]: Guide to back up and restore nym-node (#4720)
serinko Jul 22, 2024
f86050d
Default construct NodeRole for backwards compatibility (#4722)
octol Jul 22, 2024
6478736
Merge pull request #4706 from nymtech/chore/remove-old-migration-code
jstuczyn Jul 23, 2024
fd1d437
Add 1GB/day/user bandwidth cap (#4717)
neacsu Jul 23, 2024
36c74f3
[DOCs/operators]: Syntax fix in setup.md (#4682)
stefanopier Jul 24, 2024
08042c6
[DOCs/operators]: Update troubleshooting/vps-isp.md with manual IPv6 …
JohnSmith-PrivacyRebels Jul 24, 2024
9eeb61e
Merge branch 'develop' into release/2024.8-wispa
benedettadavico Jul 24, 2024
96a9eb6
[DOCs/docs]: Commnet out extra stubs (#4727)
serinko Jul 24, 2024
c971e48
Merge pull request #4726 from nymtech/release/2024.8-wispa
benedettadavico Jul 24, 2024
cc25fc1
[DOCs/operators]: Changelog for v2024.8 wispa & guide syntax edits (#…
serinko Jul 24, 2024
02fde4e
Handle clients with different versions in IPR (#4723)
octol Jul 24, 2024
2c6e5eb
cherry-pick: fix build issues
jstuczyn Jul 25, 2024
7b10d92
Merge pull request #4731 from nymtech/chore/1.80-lints
jstuczyn Jul 26, 2024
e2ead6d
bumping binaries versions
benedettadavico Jul 26, 2024
de0fb74
update changelog
benedettadavico Jul 26, 2024
3d5ac0b
Fix version 1 not having template correspondent initially (#4733)
neacsu Jul 29, 2024
f8523dc
Update publish-nym-binaries.yml
tommyv1987 Aug 5, 2024
b45eb16
Update ci-build-upload-binaries.yml
tommyv1987 Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions .github/workflows/ci-build-upload-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ on:
required: true
default: false
type: boolean
enable_wireguard:
description: "Add --features wireguard"
required: true
default: false
type: boolean
enable_deb:
description: "True to enable cargo-deb installation and .deb package building"
required: false
Expand Down Expand Up @@ -42,7 +37,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-20.04]
platform: [ ubuntu-20.04 ]

runs-on: ${{ matrix.platform }}
env:
Expand Down Expand Up @@ -70,9 +65,6 @@ jobs:
- name: Set CARGO_FEATURES
run: |
echo 'CARGO_FEATURES=--features wireguard' >> $GITHUB_ENV
if: >
github.event_name == 'schedule' ||
(github.event_name == 'workflow_dispatch' && inputs.enable_wireguard == true)

- name: Install Rust stable
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -104,8 +96,6 @@ jobs:
name: nym-binaries-artifacts
path: |
target/release/nym-client
target/release/nym-gateway
target/release/nym-mixnode
target/release/nym-socks5-client
target/release/nym-api
target/release/nym-network-requester
Expand All @@ -123,8 +113,6 @@ jobs:
OUTPUT_DIR: ci-builds/${{ github.ref_name }}
run: |
cp target/release/nym-client $OUTPUT_DIR
cp target/release/nym-gateway $OUTPUT_DIR
cp target/release/nym-mixnode $OUTPUT_DIR
cp target/release/nym-socks5-client $OUTPUT_DIR
cp target/release/nym-api $OUTPUT_DIR
cp target/release/nym-network-requester $OUTPUT_DIR
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish-nym-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
echo 'RUSTFLAGS="--cfg tokio_unstable"' >> $GITHUB_ENV
if: github.event_name == 'workflow_dispatch' && inputs.add_tokio_unstable == true

- name: Set CARGO_FEATURES
run: |
echo 'CARGO_FEATURES=--features wireguard' >> $GITHUB_ENV

- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
Expand All @@ -60,8 +64,8 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --release

args: --workspace --release ${{ env.CARGO_FEATURES }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand Down
47 changes: 46 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ Post 1.0.0 release, the changelog format is based on [Keep a Changelog](https://

## [Unreleased]

## [2024.9-topdeck] (2024-07-26)

- chore: fix 1.80 lint issues ([#4731])
- Handle clients with different versions in IPR ([#4723])
- Add 1GB/day/user bandwidth cap ([#4717])
- Feature/merge back ([#4710])
- removed mixnode/gateway config migration code and disabled cli without explicit flag ([#4706])

[#4731]: https://github.com/nymtech/nym/pull/4731
[#4723]: https://github.com/nymtech/nym/pull/4723
[#4717]: https://github.com/nymtech/nym/pull/4717
[#4710]: https://github.com/nymtech/nym/pull/4710
[#4706]: https://github.com/nymtech/nym/pull/4706

## [2024.8-wispa] (2024-07-10)

- add event parsing to support cosmos_sdk > 0.50 ([#4697])
Expand All @@ -28,6 +42,38 @@ Post 1.0.0 release, the changelog format is based on [Keep a Changelog](https://
[#4677]: https://github.com/nymtech/nym/pull/4677
[#4667]: https://github.com/nymtech/nym/pull/4667

## [2024.7-doubledecker] (2024-07-04)

- Add an early return in `parse_raw_str_logs` for empty raw log strings. ([#4686])
- Bump braces from 3.0.2 to 3.0.3 in /wasm/mix-fetch/internal-dev ([#4672])
- add expiry returned on import ([#4670])
- [bugfix] missing rustls feature ([#4666])
- Bump ws from 8.13.0 to 8.17.1 in /wasm/client/internal-dev-node ([#4665])
- Bump braces from 3.0.2 to 3.0.3 in /clients/native/examples/js-examples/websocket ([#4663])
- Bump ws from 8.14.2 to 8.17.1 in /sdk/typescript/packages/nodejs-client ([#4662])
- Update setup.md ([#4661])
- New clippy lints ([#4660])
- Bump braces from 3.0.2 to 3.0.3 in /nym-api/tests ([#4659])
- Bump braces from 3.0.2 to 3.0.3 in /docker/typescript_client/upload_contract ([#4658])
- Update vps-setup.md ([#4656])
- Update configuration.md ([#4655])
- Remove old PR template ([#4639])

[#4686]: https://github.com/nymtech/nym/pull/4686
[#4672]: https://github.com/nymtech/nym/pull/4672
[#4670]: https://github.com/nymtech/nym/pull/4670
[#4666]: https://github.com/nymtech/nym/pull/4666
[#4665]: https://github.com/nymtech/nym/pull/4665
[#4663]: https://github.com/nymtech/nym/pull/4663
[#4662]: https://github.com/nymtech/nym/pull/4662
[#4661]: https://github.com/nymtech/nym/pull/4661
[#4660]: https://github.com/nymtech/nym/pull/4660
[#4659]: https://github.com/nymtech/nym/pull/4659
[#4658]: https://github.com/nymtech/nym/pull/4658
[#4656]: https://github.com/nymtech/nym/pull/4656
[#4655]: https://github.com/nymtech/nym/pull/4655
[#4639]: https://github.com/nymtech/nym/pull/4639

## [2024.6-chomp] (2024-06-25)

- Remove additional code as part of Ephemera Purge and SP and contracts ([#4650])
Expand Down Expand Up @@ -505,7 +551,6 @@ Post 1.0.0 release, the changelog format is based on [Keep a Changelog](https://
[#3187]: https://github.com/nymtech/nym/issues/3187
[#3203]: https://github.com/nymtech/nym/pull/3203
[#3199]: https://github.com/nymtech/nym/pull/3199
>>>>>>> master

## [v1.1.13] (2023-03-15)

Expand Down
19 changes: 11 additions & 8 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ References for developers:

You can chat to us in two places:
* The #dev channel on [Matrix](https://matrix.to/#/#dev:nymtech.chat)
* The various developer channels on [Discord](https://discord.gg/FaTJb8q8)
* The various developer channels on [Discord](https://nymtech.net/go/discord)

### Tokenomics & Rewards

Expand Down
2 changes: 1 addition & 1 deletion clients/native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nym-client"
version = "1.1.38"
version = "1.1.39"
authors = ["Dave Hrycyszyn <[email protected]>", "Jędrzej Stuczyński <[email protected]>"]
description = "Implementation of the Nym Client"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion clients/socks5/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nym-socks5-client"
version = "1.1.38"
version = "1.1.39"
authors = ["Dave Hrycyszyn <[email protected]>"]
description = "A SOCKS5 localhost proxy that converts incoming messages to Sphinx and sends them to a Nym address"
edition = "2021"
Expand Down
16 changes: 15 additions & 1 deletion common/authenticator-requests/src/v1/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

use nym_sphinx::addressing::Recipient;
use nym_wireguard_types::{GatewayClient, InitMessage};
use nym_wireguard_types::{GatewayClient, InitMessage, PeerPublicKey};
use serde::{Deserialize, Serialize};

use crate::make_bincode_serializer;
Expand Down Expand Up @@ -57,6 +57,19 @@ impl AuthenticatorRequest {
)
}

pub fn new_query_request(peer_public_key: PeerPublicKey, reply_to: Recipient) -> (Self, u64) {
let request_id = generate_random();
(
Self {
version: VERSION,
data: AuthenticatorRequestData::QueryBandwidth(peer_public_key),
reply_to,
request_id,
},
request_id,
)
}

pub fn to_bytes(&self) -> Result<Vec<u8>, bincode::Error> {
use bincode::Options;
make_bincode_serializer().serialize(self)
Expand All @@ -67,4 +80,5 @@ impl AuthenticatorRequest {
pub enum AuthenticatorRequestData {
Initial(InitMessage),
Final(GatewayClient),
QueryBandwidth(PeerPublicKey),
}
35 changes: 33 additions & 2 deletions common/authenticator-requests/src/v1/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

use nym_sphinx::addressing::Recipient;
use nym_wireguard_types::registration::RegistrationData;
use nym_wireguard_types::registration::{RegistrationData, RegistredData, RemainingBandwidthData};
use serde::{Deserialize, Serialize};

use crate::make_bincode_serializer;
Expand Down Expand Up @@ -33,10 +33,31 @@ impl AuthenticatorResponse {
}
}

pub fn new_registered(reply_to: Recipient, request_id: u64) -> Self {
pub fn new_registered(
registred_data: RegistredData,
reply_to: Recipient,
request_id: u64,
) -> Self {
Self {
version: VERSION,
data: AuthenticatorResponseData::Registered(RegisteredResponse {
reply: registred_data,
reply_to,
request_id,
}),
reply_to,
}
}

pub fn new_remaining_bandwidth(
remaining_bandwidth_data: Option<RemainingBandwidthData>,
reply_to: Recipient,
request_id: u64,
) -> Self {
Self {
version: VERSION,
data: AuthenticatorResponseData::RemainingBandwidth(RemainingBandwidthResponse {
reply: remaining_bandwidth_data,
reply_to,
request_id,
}),
Expand Down Expand Up @@ -64,6 +85,7 @@ impl AuthenticatorResponse {
match &self.data {
AuthenticatorResponseData::PendingRegistration(response) => Some(response.request_id),
AuthenticatorResponseData::Registered(response) => Some(response.request_id),
AuthenticatorResponseData::RemainingBandwidth(response) => Some(response.request_id),
}
}
}
Expand All @@ -72,6 +94,7 @@ impl AuthenticatorResponse {
pub enum AuthenticatorResponseData {
PendingRegistration(PendingRegistrationResponse),
Registered(RegisteredResponse),
RemainingBandwidth(RemainingBandwidthResponse),
}

#[derive(Clone, Debug, Serialize, Deserialize)]
Expand All @@ -85,4 +108,12 @@ pub struct PendingRegistrationResponse {
pub struct RegisteredResponse {
pub request_id: u64,
pub reply_to: Recipient,
pub reply: RegistredData,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct RemainingBandwidthResponse {
pub request_id: u64,
pub reply_to: Recipient,
pub reply: Option<RemainingBandwidthData>,
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright 2021 - Nym Technologies SA <[email protected]>
// SPDX-License-Identifier: Apache-2.0

// TEMPORARY WORKAROUND:
// those features are expected as the below should only get activated whenever
// the corresponding features in tendermint-rpc are enabled transitively
#![allow(unexpected_cfgs)]

use crate::nyxd::cosmwasm_client::client_traits::SigningCosmWasmClient;
use crate::nyxd::error::NyxdError;
use crate::nyxd::{Config, GasPrice, Hash, Height};
Expand Down
5 changes: 5 additions & 0 deletions common/client-libs/validator-client/src/nyxd/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright 2021 - Nym Technologies SA <[email protected]>
// SPDX-License-Identifier: Apache-2.0

// TEMPORARY WORKAROUND:
// those features are expected as the below should only get activated whenever
// the corresponding features in tendermint-rpc are enabled transitively
#![allow(unexpected_cfgs)]

use crate::nyxd::contract_traits::{NymContractsProvider, TypedNymContracts};
use crate::nyxd::cosmwasm_client::types::{
ChangeAdminResult, ContractCodeId, ExecuteResult, InstantiateOptions, InstantiateResult,
Expand Down
Loading