diff --git a/packages/namada/pkg/fadroma_namada.d.ts b/packages/namada/pkg/fadroma_namada.d.ts index ffdd021535..b203fb0f72 100644 --- a/packages/namada/pkg/fadroma_namada.d.ts +++ b/packages/namada/pkg/fadroma_namada.d.ts @@ -71,9 +71,9 @@ export class Decode { static pos_parameters(source: Uint8Array): object; /** * @param {Uint8Array} source -* @returns {object} +* @returns {any} */ - static pos_validator_metadata(source: Uint8Array): object; + static pos_validator_metadata(source: Uint8Array): any; /** * @param {Uint8Array} source * @returns {object} diff --git a/packages/namada/pkg/fadroma_namada.js b/packages/namada/pkg/fadroma_namada.js index 4a907f1f74..8c2c02db50 100644 --- a/packages/namada/pkg/fadroma_namada.js +++ b/packages/namada/pkg/fadroma_namada.js @@ -429,7 +429,7 @@ export class Decode { } /** * @param {Uint8Array} source - * @returns {object} + * @returns {any} */ static pos_validator_metadata(source) { try { diff --git a/packages/namada/src/decode.rs b/packages/namada/src/decode.rs index e91d3d461e..6cbbcf5ed7 100644 --- a/packages/namada/src/decode.rs +++ b/packages/namada/src/decode.rs @@ -41,32 +41,19 @@ impl Decode { #[wasm_bindgen] pub fn storage_keys () -> Result { Ok(to_object! { - "epochDuration" = - get_epoch_duration_storage_key().to_string(), - "epochsPerYear" = - get_epochs_per_year_key().to_string(), - "gasCostTable" = - get_gas_cost_key().to_string(), - "gasScale" = - get_gas_scale_key().to_string(), - "implicitVpCodeHash" = - get_implicit_vp_key().to_string(), - "maspEpochMultipler" = - get_masp_epoch_multiplier_key().to_string(), - "maspFeePaymentGasLimit" = - get_masp_fee_payment_gas_limit_key().to_string(), - "maxBlockGas" = - get_max_block_gas_key().to_string(), - "maxProposalBytes" = - get_max_proposal_bytes_key().to_string(), - "maxTxBytes" = - get_max_tx_bytes_key().to_string(), - "isNativeTokenTransferable" = - get_native_token_transferable_key().to_string(), - "txAllowlist" = - get_tx_allowlist_storage_key().to_string(), - "vpAllowlist" = - get_vp_allowlist_storage_key().to_string(), + "epochDuration" = get_epoch_duration_storage_key().to_string(), + "epochsPerYear" = get_epochs_per_year_key().to_string(), + "gasCostTable" = get_gas_cost_key().to_string(), + "gasScale" = get_gas_scale_key().to_string(), + "implicitVpCodeHash" = get_implicit_vp_key().to_string(), + "maspEpochMultipler" = get_masp_epoch_multiplier_key().to_string(), + "maspFeePaymentGasLimit" = get_masp_fee_payment_gas_limit_key().to_string(), + "maxBlockGas" = get_max_block_gas_key().to_string(), + "maxProposalBytes" = get_max_proposal_bytes_key().to_string(), + "maxTxBytes" = get_max_tx_bytes_key().to_string(), + "isNativeTokenTransferable" = get_native_token_transferable_key().to_string(), + "txAllowlist" = get_tx_allowlist_storage_key().to_string(), + "vpAllowlist" = get_vp_allowlist_storage_key().to_string(), }) } @@ -221,7 +208,7 @@ impl Decode { } #[wasm_bindgen] - pub fn pos_validator_metadata (source: Uint8Array) -> Result { + pub fn pos_validator_metadata (source: Uint8Array) -> Result { auto_decode!(to_bytes(&source) => ValidatorMetaData) }