Skip to content

Add script to generate abis#12

Open
noslav wants to merge 1 commit intomainfrom
feature/gen-abi
Open

Add script to generate abis#12
noslav wants to merge 1 commit intomainfrom
feature/gen-abi

Conversation

@noslav
Copy link
Member

@noslav noslav commented Sep 16, 2024

  • ABIs should be committed to repo for easy access for future use-cases in interacting with CXT token
  • Adds script to generate build using forge and generate ABI's
  • Commit ABIs extracted from compilation
  • Run with npm run abi

FIX

npm run abi                                                                                                                                                                                                                 ─╯

> cxt@1.0.0 abi
> forge build && ./gen-abi.sh

[⠊] Compiling...
[⠔] Compiling 14 files with 0.8.21
[⠑] Solc 0.8.21 finished in 43.21s
Compiler run successful with warnings:
Warning (2072): Unused local variable.
  --> script/ChangeImpl.sol:17:9:
   |
17 |         address treasury = address(deployerAdmin);
   |         ^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/ChangeImpl.sol:18:9:
   |
18 |         address migrationProxy = 0x136FE32D4a0Bc1B4f4Ef7100A2a6ee17593b8E26;
   |         ^^^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/ChangeImpl.sol:31:9:
   |
31 |         ProxyAdmin admin = ProxyAdmin(_admin);
   |       

Signed-off-by: Pranay Valson <pranay.valson@gmail.com>
@noslav noslav requested a review from gane5h September 16, 2024 20:09
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.

1 participant