Skip to content

Instantly share code, notes, and snippets.

View enlight's full-sized avatar

Vadim Macagon enlight

View GitHub Profile
@enlight
enlight / events.sol
Created February 26, 2020 07:04
Loom Ethereum-side Transfer Gateway events
/// @notice Event to log the withdrawal of a token from the Gateway.
/// @param owner Address of the entity that made the withdrawal.
/// @param kind The type of token withdrawn (ERC20/ERC721/ETH).
/// @param contractAddress Address of token contract the token belong to.
/// @param value For ERC721 this is the uid of the token, for ETH/ERC20 this is the amount.
event TokenWithdrawn(address indexed owner, TokenKind kind, address contractAddress, uint256 value);
/// @notice Event to log the deposit of a LOOM to the Gateway.
/// @param from Address of the entity that made the withdrawal.
/// @param amount The LOOM token amount that was deposited
@enlight
enlight / launch.json
Last active August 15, 2018 01:21
Debugging electron-forge project with VSCode
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Electron",
@enlight
enlight / electron-squirell.windows.txt
Last active March 10, 2016 16:35
Using Electron auto-updater with Squirrel.Windows
From #electron Slack
weiway:
Hi guys, I'm really confused by autoUpdater API on windows. On one hand, I believe windows autoUpdater
has an uniform API with OSX, but on the other hand, I know squirrel handles OSX and Windows quite differently.
So my question is do I need to handle to squirrel events? Or I ONLY need to use the autoUpdater events to
handle update logic?
On windows
And also I'm confused when squirrel handles install and when squirrel handles update. If write install logic
into main.js, does that mean every time my app starts squirrel will try to re-install?