I want to create a local bridge for a specific token between BSC and Tron Chain
What are the best routes to take in achieving this please?

Aug 15, 2023, 2:15 PM
@karola96
Aug 15, 2023, 2:17 PM
if you want to create a centralized bridge, it all comes down to a script sending a transaction on another chain initialized by a transaction on another chain
Aug 15, 2023, 2:19 PM
What about an oracle?
Will that be an overkill?
Aug 15, 2023, 2:20 PM
the script can be the oracle itself
Aug 15, 2023, 2:21 PM
Hm. Okay
Thanks
Aug 15, 2023, 2:21 PM
a basic bridge can be built by doing
1) the contract to handle the core logic and emit events
2) a listener script or scripts that listen for events and wait for confirmation blocks to avoid reorgs
3) a script that handle the action to do on the other chain
of course before using it on mainnet with real assets it's better to audit all the files involved.
If the contract is audited and safe but the script has a sort of bad logic, it can be exploited.
Same opposite, you can audit the bridge but not the contract and then get exploited there
decentralized bridges instead are far too complex (as they require strong and in-depth security) and not in my interests for now so i can't help on those
Aug 15, 2023, 2:26 PM
It's really hard to understand how those works tbh
Thanks for this
You've given me my guideline
Aug 15, 2023, 2:27 PM
the best decentralized oracle service is Chainlink, i doubt anything will ever beat their tech
so you want to study chainLink if that's your interest
also look up for centralized bridges hacks so you understand some risks involved in bridging in general (like nonce/signature reuse, transfers based on LP amount, etc)
Aug 15, 2023, 2:28 PM
Still trying to wrap my head around Aave πŸ˜…
Adding Chainlink this early will make my head explode
Aug 15, 2023, 2:29 PM
https://mixbytes.io/blog/bridge-bugs-overview
Aug 15, 2023, 2:29 PM
This is a bridge between BSC and Tron Chain
Tron Chain isn't EVM compatible so I don't think I should worry about nonce/signature reuse?
Thank you πŸ™
Aug 15, 2023, 2:30 PM
Absolutely, Chainlink has truly set a high standard in the realm of decentralized oracle services!
Aug 15, 2023, 2:30 PM
Ohhhhh πŸ€” no idea. never developed on Tron, yet
Hope more devs can join them so they can decrease the overall prices and make it more used everywhere.
Fractionalizing the market with more similar tools (at that complexity) is kinda waste of magic imho
Aug 15, 2023, 2:33 PM
Hi Krakovia
In building the script for my bridge to Tron Chain, I discovered that the sdk doesn't have an event listener
How else do you think I can circumvent that?
Aug 17, 2023, 11:39 AM
which sdk?
event listener would make sense only with websocket
so if you are refering to contrat events, just use a websocket rpc
Aug 17, 2023, 11:42 AM
tronweb
Not sure I understand but I'll research with this wildcard at hand. Thanks
Okay, so I'll have to do the heavy lifting then right?
The chain is so impregnable
Aug 17, 2023, 11:46 AM
what do you mean
Aug 17, 2023, 11:57 AM
There's no wss RPC I can use
On the chain
Aug 17, 2023, 12:44 PM
https://www.ankr.com/rpc/tron/
Aug 17, 2023, 12:45 PM
Thank you
I see only rest API and JSON RPC
Aug 17, 2023, 12:46 PM
check better
Aug 17, 2023, 12:46 PM
Aug 17, 2023, 12:47 PM
brother
go down
Aug 17, 2023, 12:47 PM
I'll have to upgrade it seems
Aug 17, 2023, 12:49 PM
yes
it is not expensive
btw seems that tron has watch() method
@Steffqing check this too
https://tronprotocol.github.io/documentation-en/architecture/event/
Aug 17, 2023, 12:57 PM
I don't know any Java πŸ˜‘
Aug 17, 2023, 8:23 PM
you should read everything firstπŸ₯²
https://tronprotocol.github.io/documentation-en/architecture/event/#prepare-event-subscription-script
btw
go on with ankr
easiest choice
or check this
Aug 17, 2023, 8:31 PM
I got lost here
sock.connect("tcp://127.0.0.1:5555")
Is that tcp address meant to be the wss url?
Tronweb you mean?
Let me check it ASAP
Aug 17, 2023, 8:33 PM

Β© 2024 Draquery.com All rights reserved.