Comments (4)
That could work in the short run, but it is not ideal IMO. I think we should upgrade the contract
from link.
We should add the author to the even that gets emitted in shorten()
. Then we can query for all events and filter by the author. (I'm not sure if this is convenient in PolkadotJS. In EVM this is quite easy). If it is not easy, then I think we should focus on this as a new feature set for ink!
Have you done much with querying all events from a contract from the beginning of time? I know you can do it for a particular block. @statictype
from link.
I do not see any user account data stored in the contract so we cannot currently get the user's stored links. We can support this feature if we do an upgrade. I would lean towards relying on events over storage. Plus it will force us to really fine tune that feature in both the front end and contract level
from link.
We could also store them in local storage, i think this is how it was meant initially
from link.
Related Issues (20)
- Resolver webapp should sanitize URL and make sure it's no malicious
- Display how much the `shortener` function would cost
- Page immediately blanks after entering URL in textbox HOT 1
- False error message shown
- Events arguments no longer shown
- Wallet connection is flaky HOT 1
- Form is disabled after connecting wallet HOT 1
- Error shown briefly before redirect
- Handle non-existing slugs
- Cannot connect if no accounts are present
- Waiting time too long HOT 1
- Check if a signer extension is available HOT 1
- Integrated Rococo faucet HOT 1
- Persist the selected account HOT 1
- Account Select Dropdown pushing down layout HOT 1
- Add input labels
- Empty account dropdown when not having an extension HOT 1
- Remember the selected address in the wallet HOT 1
- Use the currently selected address from the wallet in the faucet example 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 link.