Skip to content

Commit

Permalink
update: add chain context package links to core readme (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
anondev2323 authored Aug 11, 2023
1 parent d6592b5 commit e7a667d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions packages/sdk-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

The primary component here is the Wormhole class, which serves as a wrapper for all the sdk methods. It ensures that each chain implements certain methods with the same function signature and provides an interface for calling those methods easily.

## Usage
## Getting started

A developer would use this package in conjunction with 1 or more of the chain context packages. Why so many packages? Because most developers don't use every single chain and may only use a couple, this allows developers to import only the dependencies they actually need.
Use this package in conjunction with 1 or more of the chain context packages (links provided below). It is divided this way in order to be more modular and light-weight, allowing you to import only the dependencies you actually need.

Getting started is simple, just import and pass in the contexts to the Wormhole class.

Expand Down Expand Up @@ -32,13 +32,20 @@ const receipt = wormholeSDK.startTransfer(
)
```

## Chain Context Packages

- [EVM](https://www.npmjs.com/package/@wormhole-foundation/connect-sdk-evm) (Ethereum, Polygon, Fantom, Moonbeam, Celo, Avalanche, BSC)
- [Aptos](https://www.npmjs.com/package/@wormhole-foundation/connect-sdk-aptos)
- [Solana](https://www.npmjs.com/package/@wormhole-foundation/connect-sdk-solana)
- [SUI](https://www.npmjs.com/package/@wormhole-foundation/connect-sdk-sui)

### Note WIP

Overall structure is subject to change.

Several components will be replaced over time. Portions that will be changed:

1. `@certusone/wormhole-sdk` will be removed as a dependency from all packages
2. Contract interfaces will be imported from another package
3. Chain Config will be rewritten and imported from [1-base-layer](https://github.com/nonergodic/sdkv2/tree/main/1-base-layer)
4. Utils (`vaa`, `array`, `createNonce`, etc) will be rewritten and imported from [2-base-layer](https://github.com/nonergodic/sdkv2/tree/main/2-definition-layer)

Overall structure is subject to change

0 comments on commit e7a667d

Please sign in to comment.