-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Developer Airdrop Claiming * Select key files with file picker * ux changes; surpress logging of private key * add back file param Co-authored-by: Chi Kei Chan <chikeichan@gmail.com>
- Loading branch information
1 parent
7a36f5d
commit 336baf1
Showing
15 changed files
with
1,610 additions
and
20 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { makeClient } from '../ipc/ipc'; | ||
|
||
export const clientStub = (ipcRendererInjector) => makeClient(ipcRendererInjector, 'Claim', [ | ||
'airdropGenerateProofs', | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { redeemStart } from "./airdrop"; | ||
import { dispatchToMainWindow } from "../../mainWindow"; | ||
import { AIRDROP_CLAIM_STATUS_UPDATE } from "../../ducks/claims"; | ||
|
||
export async function airdropGenerateProofs(options) { | ||
return redeemStart(options, (update) => { | ||
dispatchToMainWindow({ | ||
type: AIRDROP_CLAIM_STATUS_UPDATE, | ||
payload: update, | ||
}); | ||
}); | ||
} | ||
|
||
airdropGenerateProofs.suppressLogging = true; | ||
|
||
const sName = "Claim"; | ||
const methods = { | ||
airdropGenerateProofs, | ||
}; | ||
|
||
|
||
export function start(server) { | ||
server.withService(sName, methods); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.