Giter Club home page Giter Club logo

zklinkprotocol / recover_state_server Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 9.0 2.09 MB

If the zkLink sequencer is abnormally closed or the dApp cannot work properly, this program can help users recover their funds by themselves without relying on any external services.

Home Page: https://zk.link/dunkirk

Rust 91.10% PLpgSQL 0.10% GAP 1.03% HTML 0.17% TypeScript 7.04% CSS 0.02% Shell 0.16% JavaScript 0.38%
multi-chain midware blockchain dunkirk

recover_state_server's People

Contributors

garymrepublic avatar jashspark avatar kevinfitzroy avatar requiemofsoul avatar zkcarter avatar zklinklabs avatar zktyral avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

recover_state_server's Issues

impl updating token event for starknet #2

Implementing an updating token event for StarkNet involves incorporating functionality that triggers an event when a token update occurs. You should try to follow this Guide Steps:

Define Event Structure:
Begin by defining the structure of your updating token event. Decide what information needs to be included, such as the token's new details or any relevant changes.

Smart Contract Logic:
Integrate the updating event logic within your smart contract. This might involve creating a function that updates the token details and emits the event. For example:

python
Copy code
@public
def updateTokenDetails(newName: string, newSymbol: string):
# Update token details logic here

# Emit the updating token event
self.tokenUpdated(newName, newSymbol)

Declare Event in Contract:
Declare the updating token event in your smart contract. This involves specifying the parameters that the event will take.

python
Copy code
event tokenUpdated(newName: string, newSymbol: string)
Handle Events Off-Chain:
Off-chain systems can listen for this event and react accordingly. This allows you to keep external systems synchronized with the on-chain updates.

Testing:
Thoroughly test the implementation to ensure that the updating token event is triggered correctly and contains the accurate information.
These are steps you should Follow if you want To update tokene event for Starknet, I hope this guide will be Helpful for you and have a nice day ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.