This PR removes the @certusone/wormhole-sdk package to replace it for the new wormhole sdk @wormhole-foundation/sdk
A lot of changes were done here. Main ones to mention:
We had two ChainId types, one from old sdk and one that was ours because old sdk type wasn't giving us everything we needed. Replaced every ChainId with the new type all around the app. Now ChainId.Avalanche would be chainToChainId('Avalanche'), along other chainId changes.
RPCs were using a lot of manual buffering through payloads to get all the data needed, replaced almost all of that with the function from the new sdk deserializePayload
Removed a lot of unused code that was still on the repo: types, api definitions, etc.
Standard Relayers handling: new sdk handles a lot of stuff that old sdk didn't, so a lot of code regarding execution info and other stuff was replaced with new easier functions.
Removed the calls to the getCctpRelay endpoint because it is deprecated and was being done with no sense.
Upgraded from ethers@4 to ethers@6, main hustle with this was replacing every BigNumber and all of its included methods for BigInt with manual methods (ethers@6 doesn't support BigNumber anymore).
Description
This PR removes the
@certusone/wormhole-sdk
package to replace it for the new wormhole sdk@wormhole-foundation/sdk
A lot of changes were done here. Main ones to mention:
We had two
ChainId
types, one from old sdk and one that was ours because old sdk type wasn't giving us everything we needed. Replaced every ChainId with the new type all around the app. NowChainId.Avalanche
would bechainToChainId('Avalanche')
, along other chainId changes.RPCs were using a lot of manual buffering through payloads to get all the data needed, replaced almost all of that with the function from the new sdk
deserializePayload
Removed a lot of unused code that was still on the repo: types, api definitions, etc.
Standard Relayers handling: new sdk handles a lot of stuff that old sdk didn't, so a lot of code regarding execution info and other stuff was replaced with new easier functions.
Removed the calls to the
getCctpRelay
endpoint because it is deprecated and was being done with no sense.Upgraded from ethers@4 to ethers@6, main hustle with this was replacing every BigNumber and all of its included methods for BigInt with manual methods (ethers@6 doesn't support BigNumber anymore).