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

add the SEED token to the x-bridge webapp config #10

Merged
merged 3 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions bridge-validators/src/bridge_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ impl BridgeNode {
{
self.chain_client
.get_events(
event.filter,
event
.filter
.address(self.chain_client.chain_gateway_address),
self.chain_client.chain_gateway_block_deployed.into(),
to_block,
)
Expand Down Expand Up @@ -138,8 +140,14 @@ impl BridgeNode {
let chain_gateway: ChainGateway<Client> = self.chain_client.get_contract();

// TODO: polling finalized events
let relayed_filter = chain_gateway.event::<RelayedFilter>().filter;
let dispatched_filter = chain_gateway.event::<DispatchedFilter>().filter;
let relayed_filter = chain_gateway
.event::<RelayedFilter>()
.filter
.address(self.chain_client.chain_gateway_address);
let dispatched_filter = chain_gateway
.event::<DispatchedFilter>()
.filter
.address(self.chain_client.chain_gateway_address);

let relayed_listener: EventListener<RelayedFilter> =
EventListener::new(self.chain_client.clone(), relayed_filter);
Expand Down
42 changes: 28 additions & 14 deletions bridge-web/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
tokenManagerType: TokenManagerType.LockAndRelease,
wagmiChain: zilliqa,
tokens: [
{
name: "SEED",
address: "0xe64cA52EF34FdD7e20C0c7fb2E392cc9b4F6D049",
blockExplorer:
"https://otterscan.zilliqa.com/address/0xe64cA52EF34FdD7e20C0c7fb2E392cc9b4F6D049",
logo: seed_token,
},
{
name: "HRSE",
address: "0x63B991C17010C21250a0eA58C6697F696a48cdf3",
Expand Down Expand Up @@ -64,6 +71,13 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
chainGatewayAddress: "0x3967f1a272Ed007e6B6471b942d655C802b42009",
tokenManagerType: TokenManagerType.MintAndBurn,
tokens: [
{
name: "SEED",
address: "0x9158dF7da69b048a296636D5DE7a3d9A7FB25E88",
blockExplorer:
"https://bscscan.com/address/0x9158dF7da69b048a296636D5DE7a3d9A7FB25E88",
logo: seed_token,
},
{
name: "HRSE",
address: "0x3BE0E5EDC58bd55AAa381Fa642688ADC289c05a3",
Expand Down Expand Up @@ -94,6 +108,13 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
chainGatewayAddress: "0x7370e69565BB2313C4dA12F9062C282513919230",
wagmiChain: zilliqaTestnet,
tokens: [
{
name: "SEED",
address: "0x28e8d39Fc68eaA27c88797Eb7D324b4B97D5b844",
blockExplorer:
"https://otterscan.testnet.zilliqa.com/address/0x28e8d39Fc68eaA27c88797Eb7D324b4B97D5b844",
logo: seed_token,
},
{
name: "TST",
address: "0x8618d39a8276D931603c6Bc7306af6A53aD2F1F3",
Expand All @@ -108,13 +129,6 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
"https://otterscan.testnet.zilliqa.com/address/0xE90Dd366D627aCc5feBEC126211191901A69f8a0",
logo: test_hrse_token,
},
{
name: "SEED",
address: "0x28e8d39Fc68eaA27c88797Eb7D324b4B97D5b844",
blockExplorer:
"https://otterscan.testnet.zilliqa.com/address/0x28e8d39Fc68eaA27c88797Eb7D324b4B97D5b844",
logo: seed_token,
},
],
chainId: 33101,
isZilliqa: true,
Expand All @@ -132,6 +146,13 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
tokenManagerType: TokenManagerType.MintAndBurn,
chainGatewayAddress: "0xa9A14C90e53EdCD89dFd201A3bF94D867f8098fE",
tokens: [
{
name: "SEED",
address: "0x486722DbA2F76aeFb9977641D11f3aC3e5bA281f",
blockExplorer:
"https://testnet.bscscan.com/address/0x486722DbA2F76aeFb9977641D11f3aC3e5bA281f",
logo: seed_token,
},
{
name: "TST",
address: "0x5190e8b4Bbe8C3a732BAdB600b57fD42ACbB9F4B",
Expand All @@ -146,13 +167,6 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
"https://testnet.bscscan.com/address/0x7Cc585de659E8938Aa7d5709BeaF34bD108bdC03",
logo: test_hrse_token,
},
{
name: "SEED",
address: "0x486722DbA2F76aeFb9977641D11f3aC3e5bA281f",
blockExplorer:
"https://testnet.bscscan.com/address/0x486722DbA2F76aeFb9977641D11f3aC3e5bA281f",
logo: seed_token,
},
],
chainId: 97,
isZilliqa: false,
Expand Down
Loading