From aa9cd01031f828fc55fd7c9c517f3b4c721c6e03 Mon Sep 17 00:00:00 2001 From: Daniel Olshansky Date: Fri, 17 Jan 2025 10:58:47 -0500 Subject: [PATCH] Fix unit tests and docs --- docusaurus/docs/operate/user_guide/check-balance.md | 2 +- docusaurus/docs/operate/user_guide/create-new-wallet.md | 2 +- docusaurus/docs/operate/user_guide/recover-with-mnemonic.md | 2 +- docusaurus/docs/operate/user_guide/send-tokens.md | 2 +- x/tokenomics/keeper/token_logic_modules_test.go | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docusaurus/docs/operate/user_guide/check-balance.md b/docusaurus/docs/operate/user_guide/check-balance.md index 98557295a..60897ca22 100644 --- a/docusaurus/docs/operate/user_guide/check-balance.md +++ b/docusaurus/docs/operate/user_guide/check-balance.md @@ -26,7 +26,7 @@ balance using the `poktrolld` command-line interface (CLI). ## Pre-requisites -1. `poktrolld` is installed on your system; see the [installation guide](./install) for more details +1. `poktrolld` is installed on your system; see the [installation guide](./poktrolld_cli.md) for more details 2. You have the address of the wallet you wish to check 3. You know the token denomination you wish to check; `upokt` for POKT tokens diff --git a/docusaurus/docs/operate/user_guide/create-new-wallet.md b/docusaurus/docs/operate/user_guide/create-new-wallet.md index 8df204d14..d5444dce7 100644 --- a/docusaurus/docs/operate/user_guide/create-new-wallet.md +++ b/docusaurus/docs/operate/user_guide/create-new-wallet.md @@ -51,7 +51,7 @@ refer to the [Cosmos SDK Keyring documentation](https://docs.cosmos.network/main Ensure you have `poktrolld` installed on your system. -Follow the [installation guide](./install) specific to your operating system. +Follow the [installation guide](./poktrolld_cli.md) specific to your operating system. ## Step 2: Creating the Wallet diff --git a/docusaurus/docs/operate/user_guide/recover-with-mnemonic.md b/docusaurus/docs/operate/user_guide/recover-with-mnemonic.md index ca561ec80..6343667f9 100644 --- a/docusaurus/docs/operate/user_guide/recover-with-mnemonic.md +++ b/docusaurus/docs/operate/user_guide/recover-with-mnemonic.md @@ -24,7 +24,7 @@ seed phrase, recovering your account is straightforward! ## Pre-requisites - You have the mnemonic seed phrase of the wallet you wish to recover -- `poktrolld` is installed on your system; see the [installation guide](./install) for more details +- `poktrolld` is installed on your system; see the [installation guide](./poktrolld_cli.md) for more details ## Step 1: Prepare to Recover Your Wallet diff --git a/docusaurus/docs/operate/user_guide/send-tokens.md b/docusaurus/docs/operate/user_guide/send-tokens.md index dbff2914d..6d3c5676c 100644 --- a/docusaurus/docs/operate/user_guide/send-tokens.md +++ b/docusaurus/docs/operate/user_guide/send-tokens.md @@ -17,7 +17,7 @@ Pocket Network using the `poktrolld` command-line interface (CLI). ## Pre-requisites -1. `poktrolld` is installed on your system; see the [installation guide](./install) for more details +1. `poktrolld` is installed on your system; see the [installation guide](./poktrolld_cli.md) for more details 2. You have access to your wallet with sufficient tokens for the transaction and fees 3. You have the recipient's address diff --git a/x/tokenomics/keeper/token_logic_modules_test.go b/x/tokenomics/keeper/token_logic_modules_test.go index 6cfb1cd08..9f955e735 100644 --- a/x/tokenomics/keeper/token_logic_modules_test.go +++ b/x/tokenomics/keeper/token_logic_modules_test.go @@ -185,7 +185,7 @@ func TestProcessTokenLogicModules_TLMBurnEqualsMint_Valid_SupplierExceedsMaxClai service := prepareTestService(serviceComputeUnitsPerRelay) numRelays := uint64(1000) // By a single supplier for application in this session supplierInitialStake := cosmosmath.NewInt(1000000) - supplierRevShareRatios := []float32{12.5, 37.5, 50} + supplierRevShareRatios := []float64{12.5, 37.5, 50} // Prepare the keepers keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, @@ -338,7 +338,7 @@ func TestProcessTokenLogicModules_TLMGlobalMint_Valid_MintDistributionCorrect(t // Test Parameters appInitialStake := apptypes.DefaultMinStake.Amount.Mul(cosmosmath.NewInt(2)) supplierInitialStake := cosmosmath.NewInt(1000000) - supplierRevShareRatios := []float32{12.5, 37.5, 50} + supplierRevShareRatios := []float64{12.5, 37.5, 50} globalComputeUnitsToTokensMultiplier := uint64(1) serviceComputeUnitsPerRelay := uint64(1) service := prepareTestService(serviceComputeUnitsPerRelay)