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

[native-bridge] - add coins dynamically #16904

Merged
merged 21 commits into from
Mar 31, 2024
Merged

Conversation

patrickkuo
Copy link
Contributor

@patrickkuo patrickkuo commented Mar 27, 2024

Description

New APIs :
register_foreign_token<T>(self: &mut Bridge, tc: TreasuryCap<T>, uc: UpgradeCap, metadata: &CoinMetadata<T>)
for registering new foreign token type

New system message:
added new AddSuiToken message for validators to approve new tokens addition to the bridge

Notable changes:
added BridgeTokenMetadata to treasury which contains token information
Removed notional_values from bridge limiter, token value is now stored in the treasury in the BridgeTokenMetadata
Removed bridged token packages (BTC, ETH, USDT, and USDC) from framework
Added bridged tokens packages to bridge/move/tokens
Added new token registration to TestCluster
changed all static reference of token id and names with id_token_map obtained from BridgeSummary

Test Plan

How did you test the new or updated feature?


If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

Copy link

vercel bot commented Mar 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 11:50pm
multisig-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 11:50pm
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 11:50pm
sui-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 11:50pm
sui-kiosk ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 11:50pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 11:50pm

@patrickkuo patrickkuo changed the base branch from main to feature/native-bridge March 27, 2024 18:26
@patrickkuo patrickkuo merged commit 139bcf6 into feature/native-bridge Mar 31, 2024
45 checks passed
@patrickkuo patrickkuo deleted the pat/coins branch March 31, 2024 00:17
patrickkuo added a commit that referenced this pull request May 2, 2024
## Description

New APIs :
`register_foreign_token<T>(self: &mut Bridge, tc: TreasuryCap<T>, uc:
UpgradeCap, metadata: &CoinMetadata<T>)`
for registering new foreign token type

New system message:
added new `AddSuiToken` message for validators to approve new tokens
addition to the bridge

Notable changes:
added BridgeTokenMetadata to treasury which contains token information
Removed `notional_values` from bridge limiter, token value is now stored
in the treasury in the `BridgeTokenMetadata`
Removed bridged token packages (BTC, ETH, USDT, and USDC) from framework
Added bridged tokens packages to `bridge/move/tokens`
Added new token registration to `TestCluster`
changed all static reference of token id and names with id_token_map
obtained from `BridgeSummary`

## Test Plan

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

---------

Co-authored-by: longbowlu <[email protected]>
Co-authored-by: Dario Russi <[email protected]>
patrickkuo added a commit that referenced this pull request May 8, 2024
## Description

New APIs :
`register_foreign_token<T>(self: &mut Bridge, tc: TreasuryCap<T>, uc:
UpgradeCap, metadata: &CoinMetadata<T>)`
for registering new foreign token type

New system message:
added new `AddSuiToken` message for validators to approve new tokens
addition to the bridge

Notable changes:
added BridgeTokenMetadata to treasury which contains token information
Removed `notional_values` from bridge limiter, token value is now stored
in the treasury in the `BridgeTokenMetadata`
Removed bridged token packages (BTC, ETH, USDT, and USDC) from framework
Added bridged tokens packages to `bridge/move/tokens`
Added new token registration to `TestCluster`
changed all static reference of token id and names with id_token_map
obtained from `BridgeSummary`

## Test Plan

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

---------

Co-authored-by: longbowlu <[email protected]>
Co-authored-by: Dario Russi <[email protected]>
patrickkuo added a commit that referenced this pull request May 9, 2024
## Description

New APIs :
`register_foreign_token<T>(self: &mut Bridge, tc: TreasuryCap<T>, uc:
UpgradeCap, metadata: &CoinMetadata<T>)`
for registering new foreign token type

New system message:
added new `AddSuiToken` message for validators to approve new tokens
addition to the bridge

Notable changes:
added BridgeTokenMetadata to treasury which contains token information
Removed `notional_values` from bridge limiter, token value is now stored
in the treasury in the `BridgeTokenMetadata`
Removed bridged token packages (BTC, ETH, USDT, and USDC) from framework
Added bridged tokens packages to `bridge/move/tokens`
Added new token registration to `TestCluster`
changed all static reference of token id and names with id_token_map
obtained from `BridgeSummary`

## Test Plan

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

---------

Co-authored-by: longbowlu <[email protected]>
Co-authored-by: Dario Russi <[email protected]>
patrickkuo added a commit that referenced this pull request May 9, 2024
## Description

New APIs :
`register_foreign_token<T>(self: &mut Bridge, tc: TreasuryCap<T>, uc:
UpgradeCap, metadata: &CoinMetadata<T>)`
for registering new foreign token type

New system message:
added new `AddSuiToken` message for validators to approve new tokens
addition to the bridge

Notable changes:
added BridgeTokenMetadata to treasury which contains token information
Removed `notional_values` from bridge limiter, token value is now stored
in the treasury in the `BridgeTokenMetadata`
Removed bridged token packages (BTC, ETH, USDT, and USDC) from framework
Added bridged tokens packages to `bridge/move/tokens`
Added new token registration to `TestCluster`
changed all static reference of token id and names with id_token_map
obtained from `BridgeSummary`

## Test Plan

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

---------

Co-authored-by: longbowlu <[email protected]>
Co-authored-by: Dario Russi <[email protected]>
patrickkuo added a commit that referenced this pull request May 9, 2024
## Description

New APIs :
`register_foreign_token<T>(self: &mut Bridge, tc: TreasuryCap<T>, uc:
UpgradeCap, metadata: &CoinMetadata<T>)`
for registering new foreign token type

New system message:
added new `AddSuiToken` message for validators to approve new tokens
addition to the bridge

Notable changes:
added BridgeTokenMetadata to treasury which contains token information
Removed `notional_values` from bridge limiter, token value is now stored
in the treasury in the `BridgeTokenMetadata`
Removed bridged token packages (BTC, ETH, USDT, and USDC) from framework
Added bridged tokens packages to `bridge/move/tokens`
Added new token registration to `TestCluster`
changed all static reference of token id and names with id_token_map
obtained from `BridgeSummary`

## Test Plan

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

---------

Co-authored-by: longbowlu <[email protected]>
Co-authored-by: Dario Russi <[email protected]>
patrickkuo added a commit that referenced this pull request May 9, 2024
## Description

New APIs :
`register_foreign_token<T>(self: &mut Bridge, tc: TreasuryCap<T>, uc:
UpgradeCap, metadata: &CoinMetadata<T>)`
for registering new foreign token type

New system message:
added new `AddSuiToken` message for validators to approve new tokens
addition to the bridge

Notable changes:
added BridgeTokenMetadata to treasury which contains token information
Removed `notional_values` from bridge limiter, token value is now stored
in the treasury in the `BridgeTokenMetadata`
Removed bridged token packages (BTC, ETH, USDT, and USDC) from framework
Added bridged tokens packages to `bridge/move/tokens`
Added new token registration to `TestCluster`
changed all static reference of token id and names with id_token_map
obtained from `BridgeSummary`

## Test Plan

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

---------

Co-authored-by: longbowlu <[email protected]>
Co-authored-by: Dario Russi <[email protected]>
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.

3 participants