From 13fca2c1002ef355f096214d5371bc18f1346f46 Mon Sep 17 00:00:00 2001 From: kwt <4344285+kwtalley@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:25:04 -0600 Subject: [PATCH] remove get/set paramset from bindings and app --- packages/provwasm-test-tube/src/runner/app.rs | 10 ---------- packages/test-tube/src/bindings.rs | 14 -------------- packages/test-tube/src/runner/app.rs | 18 +----------------- 3 files changed, 1 insertion(+), 41 deletions(-) diff --git a/packages/provwasm-test-tube/src/runner/app.rs b/packages/provwasm-test-tube/src/runner/app.rs index 4601297..9dbf61c 100644 --- a/packages/provwasm-test-tube/src/runner/app.rs +++ b/packages/provwasm-test-tube/src/runner/app.rs @@ -1,5 +1,4 @@ use cosmwasm_std::Coin; -use prost::Message; use test_tube_prov::account::SigningAccount; use test_tube_prov::runner::result::{RunnerExecuteResult, RunnerResult}; use test_tube_prov::runner::Runner; @@ -95,15 +94,6 @@ impl ProvwasmTestApp { { self.inner.simulate_tx(msgs, signer) } - - /// Get parameter set for a given subspace. - pub fn get_param_set( - &self, - subspace: &str, - type_url: &str, - ) -> RunnerResult

{ - self.inner.get_param_set(subspace, type_url) - } } impl<'a> Runner<'a> for ProvwasmTestApp { diff --git a/packages/test-tube/src/bindings.rs b/packages/test-tube/src/bindings.rs index 474504c..62c22c9 100644 --- a/packages/test-tube/src/bindings.rs +++ b/packages/test-tube/src/bindings.rs @@ -239,20 +239,6 @@ extern "C" { extern "C" { pub fn Simulate(envId: GoUint64, base64TxBytes: GoString) -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn SetParamSet( - envId: GoUint64, - subspaceName: GoString, - base64ParamSetBytes: GoString, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn GetParamSet( - envId: GoUint64, - subspaceName: GoString, - typeUrl: GoString, - ) -> *mut ::std::os::raw::c_char; -} extern "C" { pub fn GetValidatorAddress(envId: GoUint64, n: GoInt32) -> *mut ::std::os::raw::c_char; } diff --git a/packages/test-tube/src/runner/app.rs b/packages/test-tube/src/runner/app.rs index b66d696..d64d116 100644 --- a/packages/test-tube/src/runner/app.rs +++ b/packages/test-tube/src/runner/app.rs @@ -11,7 +11,7 @@ use prost::Message; use crate::account::{Account, FeeSetting, SigningAccount}; use crate::bindings::{ - AccountNumber, AccountSequence, FinalizeBlock, GetBlockHeight, GetBlockTime, GetParamSet, + AccountNumber, AccountSequence, FinalizeBlock, GetBlockHeight, GetBlockTime, GetValidatorAddress, GetValidatorPrivateKey, IncreaseTime, InitAccount, InitTestEnv, Query, Simulate, }; @@ -272,22 +272,6 @@ impl BaseApp { res } - - /// Get parameter set for a given subspace. - pub fn get_param_set( - &self, - subspace: &str, - type_url: &str, - ) -> RunnerResult

{ - unsafe { - redefine_as_go_string!(subspace); - redefine_as_go_string!(type_url); - let pset = GetParamSet(self.id, subspace, type_url); - let pset = RawResult::from_non_null_ptr(pset).into_result()?; - let pset = P::decode(pset.as_slice()).map_err(DecodeError::ProtoDecodeError)?; - Ok(pset) - } - } } impl<'a> Runner<'a> for BaseApp {