-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e77fdf5
commit df250dc
Showing
7 changed files
with
1,106 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Check tokens list | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- development | ||
- staging | ||
- production | ||
- mainnet | ||
|
||
jobs: | ||
check-token-list: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build -w sdk | ||
- run: cd core/tokenRegistry && npx ts-node src/scripts/checkForeignAssetsConfig.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,3 @@ | ||
# Definitions SDK | ||
# Tokens Registry | ||
|
||
Replaces these files from old sdk: | ||
* vaa/parser | ||
* mock | ||
|
||
## VAA | ||
|
||
### Deserialization | ||
|
||
```ts | ||
// decode VAA | ||
const vaaBytes = Buffer.from(testCase.vaa, "base64"); | ||
// deserializes the base VAA details (emitterChain, emitterAddress, sequence, signatures, payload, hash, etc) | ||
const parsed = deserialize("Uint8Array", new Uint8Array(vaaBytes)); | ||
// deserialize the payload, first argument denotes the type of payload | ||
const deserialized = deserializePayload("BAMessage", parsed.payload); | ||
``` | ||
|
||
#### Available payload types | ||
|
||
Token Bridge: | ||
- "AttestMeta" | ||
- "Transfer" | ||
- "TransferWithPayload | ||
|
||
Generic Relayer: | ||
- "DeliveryInstruction" | ||
- "RedeliveryInstruction" | ||
- "DeliveryOverride" | ||
|
||
Governance | ||
- "CoreBridgeUpgradeContract" | ||
- "CoreBridgeGuardianSetUpgrade" | ||
- "CoreBridgeSetMessageFee" | ||
- "CoreBridgeTransferFees" | ||
- "CoreBridgeRecoverChainId" | ||
- "TokenBridgeRegisterChain" | ||
- "TokenBridgeUpgradeContract" | ||
- "TokenBridgeRecoverChainId" | ||
- "NftBridgeRegisterChain" | ||
- "NftBridgeUpgradeContract" | ||
- "NftBridgeRecoverChainId" | ||
- "RelayerRegisterChain" | ||
- "RelayerUpgradeContract" | ||
- "RelayerUpdateDefaultProvider" | ||
|
||
Circle | ||
- "CircleTransferRelay" | ||
|
||
BAM | ||
- "BAMessage" | ||
Cache of token details and foreign asset addresses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.