Files
nym/nym-api/src/ephemera/client.rs
T
Mark Sinclair 3096a2307f Change mixnode, gateway, network and nym-api binary licenses to GPLv3 (#4173)
* Change mixnode, gateway, network and nym-api binary licenses to GPLv3

* Add license to cargo files

* Revert model license to match crate

* Add license to nym-node

* Revert model license to match crate

* Fix formatting

---------

Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com>
2023-11-23 15:43:26 +00:00

13 lines
457 B
Rust

// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: GPL-3.0-only
use crate::ephemera::error::Result;
use nym_ephemera_common::types::JsonPeerInfo;
use nym_validator_client::nyxd::cosmwasm_client::types::ExecuteResult;
#[async_trait]
pub trait Client {
async fn get_ephemera_peers(&self) -> Result<Vec<JsonPeerInfo>>;
async fn register_ephemera_peer(&self, peer_info: JsonPeerInfo) -> Result<ExecuteResult>;
}