The Andromeda.js repository contains two packages:
Command line interface for interactions with Andromeda contracts.
When I run ado execute then select an execute message from the list, I am prompted for the information for the message that is above the selected one. For example if I select TransferNft from the messages, I will be prompted for a mint as it is above it in the list.
The chain names are now the same as the chain id without the "-". For juno it is "junotestnet". I suggest we make all the names similar to juno's.
When adding a wallet, part of the process requires inputing a passphrase into a hidden field. The output line which appears between it and the re-prompt prints the entered value (which should be private) to the terminal.
In this example (below) the passphrase of "disclosed" is visible.
ANDR.JS CLI 0.2.5
NodeJS 18.14.0
CW20 exchange ado builder: it auto-names the token component in 2 places (in the CW20 component's name, then again under the Cw20 Exchange's Token Address. However...
When path isn't changed, an error warning appears on the Cw20 Exchange component saying "not a valid local vfs path," but perhaps it should say something like "change this to the address of the cw20 token ADO you're selling."
This command does not seem to be working. It displays :
After updating CLI, when changing chains or wallets, I now get the following error
? AndromedaTest1@galileo-3> wallet use
? Select wallet to use: AndromedaTest1
To get the block height, you would need to find an rpc and check it and for the timestamp you need to use some online unix timestamp. As ive been working in CLI, I think being able to query these from CLI would be nice to have.
On certain updates the wallets.json
config file is being removed
The Approval and Approvals queries on a CW721 are not listed with ado query.
When we run ado execute, we need to attach the funds directly or the message will error in the end as no funds were provided (Fund attachment is not prompted). When using the CLI this turned out to be a bit inconvenient, so we suggest being prompted for fund attachments in messages that require so.
If a program crash were to occur for the CLI the current information displayed (including recommended support/reporting information) is not inclusive of the current version number of the CLI. This might be critical for assistance in diagnostics if some launching conflict were to be encountered and making it more difficult for the user to determine the version which they are using.
See crash logging at:
andromeda.js/packages/cli/src/cli.ts
Line 3 in df83af0
List every CLI command and subcommand when --help is invoked. Right now, only the top level is displayed
When we run "bank balance" we are prompted for denom and address. If we kept the address empty, it used to query the balance for the connected wallet. I am getting the error invalid address when I keep the address field empty. If I specify it, it works fine. Not sure if we changed it to work this way or this is a bug.
We are asked if we want to attach funds in all messages instead of only the ones that need funds. This might be confusing for a user.
When we run " ado factory address" we get the factory address used by the chain. The command works for the first chain we query the address for, but if I change the chain, then running " ado factory address" gives the same factory address of the first chain we queried.
Example:
Run "ado factory address"
Run " chain use [another-chain]
Run again "ado factory address"
The address returned will be wrong.
If I run " wallets rm" we are prompted to chose the mnemonic of the wallet we want to remove. When chosen, it error:Could not find wallet with name/address ....
when we run ado execute and select a message, we are prompted for the message above the selected one. For example if I select TransferNFT from the CW721 messages, I am prompted for a mint since it is above it in the options.
If you input yes to include_expired for the query, then it prompts you again for the same thing.
Schema related prompts cannot be exited via the exit commands
Suggestion: create 'back' command to take you back one field. Useful if typo is put in a field (particularly a wallet address field!
...maybe add a validator to wallet fields to make sure they're formatted correctly
BUG REPORT
In ADO block builder,
click CW20 exchange template > scroll to bottom
"CW20 exchange" ADO’s “Token address” field autopopulates with ./tokens, but warns “not a valid local vfs path.”
Engaging the dropdown menu and selecting ./tokens from the list has no effect,
BUT
Inserting another autopopulated option, then erasing it, then choosing ./tokens WORKS
When opening the CLI we get a warning: secp256k1 unavailable, reverting to browser version
Andromeda Client using incorrect GasPrice value, gas fee estimate must match the broadcast cost approximately
Getting the following error when trying to upload a contract to terra testnet: Query failed with (6): rpc error: code = Unknown desc = account sequence mismatch, expected 30, got 29: incorrect account sequence [cosmos/[email protected]/x/auth/ante/sigverify.go:269] With gas wanted: '50000000' and gas used: '2346768' : unknown request
Also creating a new wallet and requesting funds from faucet do not show in CLI. It gives the error, wallet does not exist, try sending some tokens but on explorer the wallet exists and has tokens . Not sure if both problems are related.
When you run a command, we are prompted for the required inputs. If I enter a command by mistake and start getting prompted, there is no way of canceling it or going back. This does not happen to all commands as some exit the command when a wrong input is entered (eg ado execute, ado query..) but for others it does not.
Example:
"ado create"
When promted for the type, the only way to return is inputing a correct type or exiting the CLI (Ctrl+C).
Part 1: If I start the CLI (Default chain used uni3) and run "chain set name uni4", the name is changed in config but when I run chain list "uni3 still appears". Now if I change chain, it works. So running
1-" chain use elgafar1"
2- "chain use uni3"
3- "chain set name uni4"
This would work and "chain list" will show uni4.
Part 2: When the name is changed, if I exit the cli and start it again, the default names are back.
The command fails after inputing the required information ( contract address, key, value, type). Error:insufficient fees; got: 2000uandr required: 12500ujunox: insufficient fee. This is trying it with uni3 testnet.
Here is the previous Error/Bug/Feedbacks Report :
https://github.com/traintocrypto/Andromeda/discussions
From Now, I will continue in this channel!
Train To Crypto Team, 🚊 + 💪 + 💙 = 😄
Running ado query, then selecting the extension query runs for a while then crashes the CLI with error:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
If I exit the CLI using control+Z, the wallets that I had added during that session are not saved.
To delete a saved config, we should run "chain rm ". If I run "chain rm" we are prompted to chose the config to remove which works fine. If I run "chain rm I am prompted to chose the config to remove instead of removing it directly.
When querying bank balance, user has to input denom and address for the wallet he wants to know the balance. However, most of the time user wants to know his wallet balance on the current chain client is connected to. It will be better for user experience if fields for denom and address are preloaded for the current client connected so user can easily check his wallet balance.
bank->balance->denom
fieldbank->balance->address
fieldDescribe the bug
It needs to be confirmed, but it appears that there may be an encoding conflict when generating a terra wallet address in the CLI. Generated addresses do not appear to be consistent with the addresses which are seen in Keplr and TerraStation for the same key.
This is likely due to a variance in the encoding scheme used. The CLI employs bech32 for address generation, and is likely not the same as found in previously mentioned sources. A review of the encoding schema for those sources would confirm this assumption.
This can produce some interesting conflicts, as some functionality is still operable with different addresses, but likely creates conflicts in permission assignments, block explorer references, and potentially fund allocation retrievals.
Error Code
N/A
To Reproduce
Steps to reproduce the behavior:
wallet add --recover
Expected behavior
Generation of wallet addresses, no matter which source, (from those mentioned) should be consistent.
Screenshots
N/A
Environment (please complete the following information):
Additional context
Closing a previous Issue reported which is believed to be related.
Describe the bug
When trying to switch to Juno using the chain use
cmd there is a pre-loaded error which shows when config is loaded (screenshot attached). All operations seem to appear to work correctly even after the notice, but a review on the warning/error has not been performed at this time.
To Reproduce
Steps to reproduce the behavior:
chain use
juno-testnet
from selection optionsExpected behavior
No config errors reported on load
Screenshots
See error section above
Environment (please complete the following information):
Describe the bug
There is an escape override conflict with wallet add <name>
if the seed phrase were ever to include the word exit
. This is because the current prompt escape sequence uses a single instance of exit
or .exit
as an escape mechanism to terminate a current prompt sequence.
This could possibly also occur with the process found with the use of the --recover
flag.
This could be resolved by:
.exit
as the only valid escape flag (removing support for exit
)exit
(would not be able to be applied to the --recover
flag)Error Code
N/A
To Reproduce
Steps to reproduce the behavior:
wallet add
commandexit
as one of the confirmation word values when promptedExpected behavior
Being able to use the word 'exit' as a word, in the possibility that it were to be a part of generated seed phrase.
Screenshots
N/A
Environment (please complete the following information):
Additional context
Discovery credits to @daniel-wehbe
The list of chains shows 2 uni3 options instead of 1.
Run "chain list"
You will see that uni3 is listed twice instead of once.
We need to add the base executes/queries to CLI when running "ado execute" or "ado query".
Testing an integration here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.