Skip to content

Conversation

@frenzox
Copy link

@frenzox frenzox commented May 15, 2025

No description provided.

frenzox added 30 commits May 14, 2025 14:46
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
These keys will be used in other modules as well.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Since we're here, fix the visibility of the functions.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Not sure how this is supposed to be populated yet. I believe this is
filled by Axelar since we need a chainId.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Move to utils and reuse it within `send` subcommand flow.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Just as convenience.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
We load it at run time instead of compile time. We accept a CLI argument
with the path to the directory containing the chains info files, in case
it's not provided, we use the current dir. We now also write to the file
whenever a program is initialized.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Since we can use the approve for devnet and testnet as well, let's not
generate temporary keys and instead accept the signer(s) through the CLI.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
For `execute` calls, there are several transactions that need to be sent
as to upload a message on-chain and not surpass the solana transaction
size limit. For that to be suported, a big refactoring was needed so
every instruction is now sent separately on its own transaction.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Since we 1) don't need to handle errors, just return them and 2) want to
be consistent, let's just use eyre for all the error handling and not
create custom errors.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
The first being build-axelar-message. If anyone has raw payload data and
want to send it to solana, an axelar executable payload has to be
created from the payload plus the required accounts.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
We haven't deployed the contracts yet using the scripts. The JSON should
be updated when we first deploy to a chain. Although we have already
deployed to devnet, we need a new deployment using the scripts available
in this repo.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
frenzox added 22 commits May 14, 2025 14:47
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Depending on the multisig_prover from the axelar-amplifier repo doesn't
seem to work due to an issue with ethers abigen macro when using `cargo
vendor`. Since we need `cargo vendor` when packaging for offline
signing, the workaround was to copy the types we need here.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
The Gateway Config PDA has been removed as seed in several places, we
need to adjust.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
rustfmt has a configuration for this, but it's unfortunately still nightly.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
For some examples placeholders were being used, for others fake values.
Let's be consistent.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Make the way the environment and private key are passed to the CLI
consistent with what the other chains are doing.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants