Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: WarpModule with create() #3838

Merged
merged 80 commits into from
Jun 6, 2024
Merged

feat: WarpModule with create() #3838

merged 80 commits into from
Jun 6, 2024

Commits on Apr 29, 2024

  1. Saving initial work

    ltyu committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    eb2172a View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. draft push

    paulbalaji committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8ac752b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3686051 View commit details
    Browse the repository at this point in the history
  3. Derive WarpConfig from TokenRouter address (#3671)

    ### Description
    Add Reader to derive WarpConfig from TokenRouter address
    
    ### Drive-by changes
    
    <!--
    Are there any minor or drive-by changes also included?
    -->
    
    ### Related issues
    
    - Fixes #3579 
    
    ### Backward compatibility
    Yes
    
    ### Testing
    
    Unit Tests
    ltyu committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    2c74413 View commit details
    Browse the repository at this point in the history
  4. Saving initial work

    ltyu committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    fc4a8a4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4da8778 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0ccaa38 View commit details
    Browse the repository at this point in the history
  7. fix conflicts

    ltyu committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3632eb8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2c524cc View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. Configuration menu
    Copy the full SHA
    186a185 View commit details
    Browse the repository at this point in the history
  2. Add deploy given an Ism Object

    ltyu committed May 1, 2024
    Configuration menu
    Copy the full SHA
    635ccf3 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. draft push

    paulbalaji committed May 2, 2024
    Configuration menu
    Copy the full SHA
    10bd6cb View commit details
    Browse the repository at this point in the history
  2. split deploy/update in EvmIsmCreator

    Signed-off-by: Paul Balaji <paul@hyperlane.xyz>
    paulbalaji committed May 2, 2024
    Configuration menu
    Copy the full SHA
    0378f8c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e140813 View commit details
    Browse the repository at this point in the history
  4. Fix conflicts

    ltyu committed May 2, 2024
    Configuration menu
    Copy the full SHA
    9b0a464 View commit details
    Browse the repository at this point in the history
  5. Fix conflicts

    ltyu committed May 2, 2024
    Configuration menu
    Copy the full SHA
    707967e View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Derive WarpConfig from TokenRouter address (#3671)

    ### Description
    Add Reader to derive WarpConfig from TokenRouter address
    
    ### Drive-by changes
    
    <!--
    Are there any minor or drive-by changes also included?
    -->
    
    ### Related issues
    
    - Fixes #3579 
    
    ### Backward compatibility
    Yes
    
    ### Testing
    
    Unit Tests
    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d40417f View commit details
    Browse the repository at this point in the history
  2. Saving initial work

    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    f32e5fc View commit details
    Browse the repository at this point in the history
  3. Derive WarpConfig from TokenRouter address (#3671)

    Add Reader to derive WarpConfig from TokenRouter address
    
    <!--
    Are there any minor or drive-by changes also included?
    -->
    
    - Fixes #3579
    
    Yes
    
    Unit Tests
    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    cd2e1a6 View commit details
    Browse the repository at this point in the history
  4. Saving initial work

    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    062a00b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    76eb931 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4e30f18 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d4cb141 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c3ae3bf View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fdc41f4 View commit details
    Browse the repository at this point in the history
  10. Add deploy given an Ism Object

    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    1efd295 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3d27f80 View commit details
    Browse the repository at this point in the history
  12. Ensure owners are configured correctly (#3677)

    ### Description
    
    Fixes owner config to be safes
    
    ### Backward compatibility
    
    Yes
    yorhodes authored and ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d435b76 View commit details
    Browse the repository at this point in the history
  13. Migrate SDK consts to Registry and use new registry utilities (#3615)

    - Remove most consts from SDK
    - Refactor tests that relied on chainMetadata
    - Remove JSON imports/exports in the SDK
    - Update the HelloWorld package to read metadata from the registry lib
    - Update the Infra package to read/write to a LocalRegistry
    - Update the CLI to read and write from registries
    
    - Fix typo in `EvmHypCollateralVault` token standard
    - Use consistent, newest yaml lib version
    
    Fixes hyperlane-xyz/issues#917
    Fixes #2810
    
    No:
    - Several SDK exports like `chainMetadata` have been removed
    - Common args for the CLI like `--chain` have been replaced with `--registry` and `--overrides`
    jmrossy authored and ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    8fcc2bc View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    80cc359 View commit details
    Browse the repository at this point in the history
  15. feat: Modular Tx Submission – Create Transformer + Submitter + Builde…

    …r Abstraction (#3627)
    
    ## Description
    
    - Adds modular transaction submission support for SDK clients, e.g. CLI.
    
    To-do:
    - [ ] Failing CI build due to linting Gnosis Safe package import
    - [ ] Export to `sdk/src/index.ts`
    
    Note: 
    - Built to eventually expand to [Sealevel/CW
    support](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/dc628476158672d08c766936ef4e2b150f86f566/typescript/sdk/src/providers/ProviderType.ts#L51-L85)
    
    ### Transformers
      - Input: `PopulatedTx[]`
      - Output: `HTX[]` (where `HTX extends HyperlaneTx`)
    - Purpose: Given a set of populated transactions, transform those
    transactions into a set a HyperlaneTxs (for the corresponding
    submitter), e.g.
    ```
    ...
    const somePopulatedTxs = ...
    const transformer = new InterchainAccountTxTransformer(mp,o,d,p);
    const populatedTxs = transformer.transformTxs(somePopulatedTxs);
    ```
    
    ### Submitters
      - Input: `HTX[]` (where `HTX extends HyperlaneTx`)
      - Output: `TxReceipt[] | ResponseData[]`
    - Purpose: Given a set of Hyperlane transactions, execute those
    transactions for the specified submitter (submitter of type HTX should
    enforce the transactions being passed are of type HTX), e.g.
    ```
    ...
    const submitter = new GnosisSafeTxSubmitter(mp,c,p);
    const txReceipts =  submitter.submitTxs(populatedTxs);
    ---
    Client-side example: for each gnosisTxReceipt display transactionHash
    ```
    
    ### Builder (Utilizes both Submitters & Transformer)
    - Input: `(TxTransformer<HTX> | TxTransformerType & Chain) &
    (TxSubmitter<HTX,HTR> | TxSubmitterType & Chain) & HTX[]` (where `HTX
    extends HyperlaneTx`)
      - Output: `TxReceipt[] | *response data*`
    - Purpose: Given a submitter, an optional transformer, and a set of
    PopulatedTransactions, transform and submit all transactions, e.g.
    ```
    ...
    const eV5builder = new TxSubmitterBuilder<EV5Transaction, EV5TransactionReceipt>();
    let txReceipts = eV5builder.for(
      new GnosisSafeTxSubmitter(chainA)
    ).transform(
      InterchainAccountTxTransformer(chainB)
    ).submit(
      txs
    );
    txReceipts = eV5builder.for(
      new ImpersonatedAccountTxSubmitter(chainA)
    ).submit(txs);
    txReceipts = eV5builder.for(
      new JsonRpcTxSubmitter(chainC)
    ).submit(txs);
    ---
    Client-side example: for each txReceipt display transactionHash | response data
    ```
    
    ### Drive-by changes
    
    * None
    
    ### Related issues
    
    - Fixes #3547
    
    ### Backward compatibility
    
    - Yes
    
    ### Testing
    
    - Testing through CLI unit testing
    nbayindirli authored and ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    965f8cd View commit details
    Browse the repository at this point in the history
  16. export tx provider from sdk & remove safe util from infra (#3694)

    ### Description
    
    * Exports new tx provider + Gnosis safe util from SDK
    * Removes the Gnosis safe util from infra
    
    ### Drive-by changes
    
    * Reminder to add a changeset
      * Output:
    ```
    ➜  hyperlane-monorepo-official git:(noah/move-safe) ✗ git commit -m "add changeset reminder to husky script"
      → No staged files match any configured task.
      📝 If you haven't yet, please add a changeset for your changes via 'yarn changeset'
      [noah/move-safe 3e668d0] add changeset reminder to husky script
       1 file changed, 2 insertions(+)
    ```
    
    ### Related issues
    
    * Fixes #3684
    
    ### Backward compatibility
    
    * Yes
    
    ### Testing
    
    * n/a
    nbayindirli authored and ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    3d439b3 View commit details
    Browse the repository at this point in the history
  17. do not exit if @safe-global/protocol-kit/**/Multi_send.ts dne (#3696)

    ### Description
    
    * do not exit if `@safe-global/protocol-kit/**/Multi_send.ts` dne
    * This fixes an issue where successfully building the sdk 2+ times exits
    out, when instead `tsc` should always be executed
    
    ### Drive-by changes
    
    * n/a
    
    ### Related issues
    
    * n/a
    
    ### Backward compatibility
    
    * yes
    
    ### Testing
    
    * manual
    nbayindirli authored and ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    c820d15 View commit details
    Browse the repository at this point in the history
  18. add defaultDescription to yargs --key option (#3697)

    ### Description
    
    * Adds defaultDescription to yargs --key option to avoid printing
    sensitive data
    
    ### Drive-by changes
    
    * None
    
    ### Related issues
    
    * None
    
    ### Backward compatibility
    
    * Yes
    
    ### Testing
    
    * Manual
    nbayindirli authored and ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    886b2b9 View commit details
    Browse the repository at this point in the history
  19. Fix conflicts

    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    9e4c0d2 View commit details
    Browse the repository at this point in the history
  20. Fix conflicts... again

    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    2b65365 View commit details
    Browse the repository at this point in the history
  21. Fix conflicts

    ltyu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    9ac51d3 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    7be39b7 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. Implement deployIsm(), clean up duplicate unit tests, add ismFactoryA…

    …ddresses into schema, remove createTransaction(), update typings
    ltyu committed May 6, 2024
    Configuration menu
    Copy the full SHA
    43fac78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    71849ce View commit details
    Browse the repository at this point in the history
  3. Add changeset

    ltyu committed May 6, 2024
    Configuration menu
    Copy the full SHA
    5a2a289 View commit details
    Browse the repository at this point in the history
  4. Fix test name add comments

    ltyu committed May 6, 2024
    Configuration menu
    Copy the full SHA
    d5b615d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    119e2e5 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. Fix conflicts

    ltyu committed May 9, 2024
    Configuration menu
    Copy the full SHA
    9d17eec View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    fc37f4e View commit details
    Browse the repository at this point in the history
  2. Update according to PR comments

    ltyu committed May 13, 2024
    Configuration menu
    Copy the full SHA
    988151e View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Configuration menu
    Copy the full SHA
    3bffa94 View commit details
    Browse the repository at this point in the history
  2. Remove Hyperlane from name

    ltyu committed May 14, 2024
    Configuration menu
    Copy the full SHA
    88f5a41 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c64619 View commit details
    Browse the repository at this point in the history
  4. Update updateHook()

    ltyu committed May 14, 2024
    Configuration menu
    Copy the full SHA
    3b1e502 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    497111d View commit details
    Browse the repository at this point in the history
  2. Add test4

    ltyu committed May 15, 2024
    Configuration menu
    Copy the full SHA
    b6c2ba3 View commit details
    Browse the repository at this point in the history
  3. Update tests to use chain, param

    ltyu committed May 15, 2024
    Configuration menu
    Copy the full SHA
    0f2c953 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab25db8 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. nan ism module for cherry-picking

    Signed-off-by: Paul Balaji <paul@hyperlane.xyz>
    paulbalaji authored and ltyu committed May 16, 2024
    Configuration menu
    Copy the full SHA
    2921096 View commit details
    Browse the repository at this point in the history
  2. Remove 'crud' from name. Update unit test to accomedate test4. Update…

    … with Paul's IsmModule change
    ltyu committed May 16, 2024
    Configuration menu
    Copy the full SHA
    1a66022 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa8024a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d095c35 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    67ec6b0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    72de4c5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    40344ac View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    dddd0cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50d5d80 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Rip out update logic

    ltyu committed May 22, 2024
    Configuration menu
    Copy the full SHA
    2e34aaf View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Update according to PR comments

    ltyu committed May 23, 2024
    Configuration menu
    Copy the full SHA
    bd31efe View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Add new changeset file

    ltyu committed May 24, 2024
    Configuration menu
    Copy the full SHA
    26fb6d8 View commit details
    Browse the repository at this point in the history
  2. Update typescript/sdk/src/token/EvmERC20WarpModule.ts

    Co-authored-by: Paul Balaji <paul@hyperlane.xyz>
    ltyu and paulbalaji authored May 24, 2024
    Configuration menu
    Copy the full SHA
    95b1945 View commit details
    Browse the repository at this point in the history
  3. Update typescript/sdk/src/token/EvmERC20WarpModule.ts

    Co-authored-by: Paul Balaji <paul@hyperlane.xyz>
    ltyu and paulbalaji authored May 24, 2024
    Configuration menu
    Copy the full SHA
    33957ea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e99f375 View commit details
    Browse the repository at this point in the history
  5. Clean up deploy.hardhat-test.ts

    ltyu committed May 24, 2024
    Configuration menu
    Copy the full SHA
    911da47 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a910681 View commit details
    Browse the repository at this point in the history
  7. Fix linter errors

    ltyu committed May 24, 2024
    Configuration menu
    Copy the full SHA
    07e68f1 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. yorke PR review

    ltyu committed May 28, 2024
    Configuration menu
    Copy the full SHA
    9bd4308 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. Fix conflicts

    ltyu committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    e726f08 View commit details
    Browse the repository at this point in the history
  2. Add deriveNative. Update to simplify deriveTokenType, to use TokenRou…

    …terConfig where applicable
    ltyu committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    7b40cca View commit details
    Browse the repository at this point in the history
  3. Add custom type to descriptions

    ltyu committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    526bfca View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ee18f2b View commit details
    Browse the repository at this point in the history
  5. Revert promise.any

    ltyu committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    b43bdd4 View commit details
    Browse the repository at this point in the history
  6. Remove extra deploy test

    ltyu committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    e05cd60 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. Update according to PR review

    ltyu committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    d28ab7d View commit details
    Browse the repository at this point in the history