Comments (3)
One suggestion would just be to let the remote address & chainID to be set whenever the contract wants, so just making them internal
rather than private
, giving a bit of extra flexibility and options versus the strict 1:1 paired constructors.
from sapphire-paratime.
recommend using the Celer IM SDK
The reason it's not like that is because giving up your primary interaction surface (i.e. API) to a third party is bad for the longevity of your business.
And the reason it's "circular" is to avoid making calls to the expensive home chain. I'm also not aware of any concrete use-cases that require octopus messaging. I'd suggest making a separate or extension library for that before making the common case (additionally?) difficult.
from sapphire-paratime.
I agree that OPL can be very neat when the contracts are deployed 1:1 together, with one endpoint on Sapphire and another on a foreign chain, and we should keep it simple.
That being said, I'm sure people will come up with interesting octopus (1:N or N:1) & graph (N:M) patterns, although these can be made with the current pattern by deploying a factory on each chain, or just one pair of contracts for each chain<->chain connection.
from sapphire-paratime.
Related Issues (20)
- Error importing JS library in a react TS project HOT 1
- Fix test flake (signing & verification precompile intermittent error) HOT 1
- Makefile
- Weird: eth_getBlockByHash retrieval, same block two blockhashes HOT 1
- JS Client beta release process
- Viem JSON-RPC + encrypted transactions HOT 1
- Web3.js + encrypted transactions HOT 2
- OpenZeppelin 5.x not compatible with OPL HOT 2
- Broken `@oasisprotocol/sapphire-hardhat` installation HOT 3
- Fix hardhat integration publish
- Highlight VRF in documentation HOT 1
- Tutorial on how to encrypt events
- Deterministic deployment proxy HOT 1
- Ensure support for Tenderly HOT 2
- Update React tutorial
- Deploy CreateX on Oasis Sapphire
- Publish packages on https://jsr.io/new
- Add sourcify support to Hardhat verify HOT 1
- Wrong gas estimates for sending ether during contract create
- Why is this function returns a `bind.ContractBackend` instead of `WrappedBackend`? Transactor is not available this way. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sapphire-paratime.