Grow Open Source Bounties Hackathons Grants Quests Kudos

Gitcoin is a community of 39,102 amazing open source developers working remotely to build in Web3.

• MUHAMMAD ADIL RAZA@madilrazavia Cross-Chain HackathonCallbacks Promises EventsTo help web3 integrate into all kind of projects with different standards we provide multiple ways to act on asynchronous functions.Most web3.js objects allow a callback as the last parameter, as well as returning promises to chain functions.Ethereum as a blockchain has different levels of finality and therefore needs to return multiple "stages" of an action. To cope with requirement we return a "promiEvent" for functions like web3.eth.sendTransaction or contract methods. This "promiEvent" is a promise