Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
dc0e5c6
feat: chain codec changes
chipshort Aug 27, 2025
a2dd895
chore: run prettier
chipshort Aug 28, 2025
c08475a
Add wasm path option
chipshort Aug 29, 2025
b3b366f
fix: add chain codec to contracts
chipshort Aug 29, 2025
5df19df
feat: implement chain-codec instantiate
chipshort Aug 29, 2025
96a4482
fix: adjust prover and verifier instantiate
chipshort Aug 29, 2025
31bf0f3
fix: artifactDir check
chipshort Sep 1, 2025
7954577
fix: chain codec instantiate msg
chipshort Sep 1, 2025
13e459d
fix: remove addressFormat check
chipshort Sep 1, 2025
6ce9654
fix: read domain separator from ChainCodec
chipshort Sep 2, 2025
add12dd
fix: calculate correct domainSeparator
chipshort Sep 3, 2025
128b404
chore: prettier
chipshort Sep 4, 2025
36dda75
remove --wasm option
chipshort Sep 10, 2025
fbc182e
fix: adjust chain-codec config layout
chipshort Sep 11, 2025
719335f
Fix passed argument
chipshort Sep 11, 2025
40293c4
Merge branch 'main' into feat/chain-codec
chipshort Sep 11, 2025
76667d4
fix: add missing import
chipshort Sep 15, 2025
a0d1e40
fix: instantiate-chain-contracts options
chipshort Sep 15, 2025
ebaf6fc
feat: query prover for chain-codec address
chipshort Sep 15, 2025
eb86a43
feat: update release template
chipshort Sep 15, 2025
ff3166d
feat: add command to prepare config for chain-codec deployment
chipshort Sep 15, 2025
d1ba3a8
fix: read domain separator from prover config again
chipshort Sep 23, 2025
395a8c3
fix: ChainCodec json format and instantiation
chipshort Sep 23, 2025
ad791d8
chore: fix lints
chipshort Sep 24, 2025
01104cc
chore: fix comment
chipshort Sep 24, 2025
042f385
docs: update command description
chipshort Sep 24, 2025
2fe7141
feat: improve error handling
chipshort Sep 24, 2025
f915698
chore: remove unused field
chipshort Sep 24, 2025
b438af6
fix: adjust contract scope
chipshort Sep 24, 2025
0d7aba7
chore: cleanup
chipshort Sep 24, 2025
a7ac1d2
Merge branch 'main' into feat/chain-codec
chipshort Sep 24, 2025
f70c43b
fix: chain-codec script
chipshort Sep 24, 2025
0a68860
cleanup: chain-codec script
chipshort Sep 24, 2025
eaaad6e
Merge branch 'main' into feat/chain-codec
chipshort Sep 26, 2025
550e0c5
chore: prettier
chipshort Sep 26, 2025
3a54f4b
fix: adjust ChainCodec instantiation
chipshort Sep 30, 2025
ef2db10
refactor: use mainQueryProcessor for chain-codec script
chipshort Sep 30, 2025
912f7a2
Merge branch 'main' into feat/chain-codec
chipshort Sep 30, 2025
8c41d9e
fix: remove incorrect param
chipshort Sep 30, 2025
1a90024
fix: removed export
chipshort Sep 30, 2025
166204a
fix: remove incorrect validation
chipshort Sep 30, 2025
b5ab542
fix: remove unused cli option
chipshort Oct 1, 2025
7a778e8
fix: remove unnecessary query
chipshort Oct 1, 2025
1edd2fe
fix: file names
chipshort Oct 1, 2025
18ace31
cleanup: remove unused chainName
chipshort Oct 1, 2025
df30774
docs: fix description
chipshort Oct 2, 2025
d003385
Merge branch 'main' into feat/chain-codec
kulikthebird Oct 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions common/cli-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,29 @@ const addStoreOptions = (program) => {
program.addOption(
new Option(
'-a, --artifact-dir <artifactDir>',
'Path to the contract artifact directory to upload (required if --version is not used)',
'Path to the contract artifact directory to upload (required if --version and --wasm are not used)',
).env('ARTIFACT_DIR'),
);

program.addOption(
new Option(
'-w, --wasm <wasm>',
'Path to the WASM file to upload (required if --artifact-dir and --version are not used)'
).env('WASM'),
);

program.addOption(
new Option(
'-v, --version <contractVersion>',
'Specify a released version (X.Y.Z) or a commit hash to upload (required if --artifact-dir is not used)',
'Specify a released version (X.Y.Z) or a commit hash to upload (required if --artifact-dir and --wasm are not used)',
).env('CONTRACT_VERSION'),
);

program.hook('preAction', async (thisCommand) => {
const opts = thisCommand.opts();

if (!opts.artifactDir && !opts.version) {
throw new Error('Either --artifact-dir or --version is required');
if (!opts.artifactDir && !opts.version && !opts.wasm) {
throw new Error('Either --artifact-dir or --version or --wasm is required');
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ const getAmplifierContractOnchainConfig = async (axelar, chain, contract = 'Mult
return JSON.parse(Buffer.from(value).toString('ascii'));
};

async function getDomainSeparator(axelar, chain, options, contract = 'MultisigProver') {
async function getDomainSeparator(axelar, chain, options, contract = 'ChainCodec') {
// Allow any domain separator for local deployments or `0x` if not provided
if (options.env === 'local') {
if (options.domainSeparator && options.domainSeparator !== 'offline') {
Expand Down
Loading
Loading