Compare commits

...

3 Commits

Author SHA1 Message Date
Tommy Verrall 595345255c lock req 2023-12-12 12:21:09 +01:00
Tommy Verrall 333c24c946 fix value 2023-12-12 09:16:29 +01:00
Tommy Verrall bf0ffcbdab upload testing gas prices 2023-12-11 19:06:11 +01:00
+14 -3
View File
@@ -31,6 +31,7 @@ use nym_name_service_common::msg::QueryMsg as NameServiceQueryMsg;
use nym_service_provider_directory_common::msg::QueryMsg as SpQueryMsg;
use nym_validator_client::nyxd::contract_traits::{NameServiceQueryClient, PagedDkgQueryClient};
use nym_validator_client::nyxd::error::NyxdError;
use nym_validator_client::nyxd::GasPrice;
use nym_validator_client::nyxd::{
contract_traits::{
CoconutBandwidthQueryClient, DkgQueryClient, DkgSigningClient, EphemeraQueryClient,
@@ -375,7 +376,7 @@ impl crate::coconut::client::Client for Client {
fee: Option<Fee>,
) -> Result<(), CoconutError> {
self.0
.read()
.write()
.await
.vote_proposal(proposal_id, vote_yes, fee)
.await?;
@@ -384,7 +385,7 @@ impl crate::coconut::client::Client for Client {
async fn execute_proposal(&self, proposal_id: u64) -> crate::coconut::error::Result<()> {
self.0
.read()
.write()
.await
.execute_proposal(proposal_id, None)
.await?;
@@ -415,11 +416,21 @@ impl crate::coconut::client::Client for Client {
dealing_bytes: ContractSafeBytes,
resharing: bool,
) -> Result<ExecuteResult, CoconutError> {
/* testing values solely */
let amount = 10_000_000;
let denom = "unym";
let fee_coin = Coin::new(amount, denom);
let gas_price = GasPrice::new_with_default_price(denom)?;
let manual_fee = Fee::manual_with_gas_price(fee_coin, gas_price);
Ok(self
.0
.write()
.await
.submit_dealing_bytes(dealing_bytes, resharing, None)
.submit_dealing_bytes(dealing_bytes, resharing, Some(manual_fee))
.await?)
}