I hereby claim:
- I am 0x00000002 on github.
- I am webb3dev (https://keybase.io/webb3dev) on keybase.
- I have a public key ASBHzvK-aU3xPpsITqdms2TeOpxprLClfp60jJjHqwdskwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<h1>Employee vestings</h1> | |
<div> | |
<input id="wallet" type="text" placeholder="wallet address"/> | |
<button id="fetch">CALCULATE</button> | |
</div> | |
<section id="schedules"> | |
</section> |
<h1>Employee vestings</h1> | |
<div> | |
<input id="wallet" type="text" placeholder="wallet address"/> | |
<button id="fetch">CALCULATE</button> | |
</div> | |
<section id="schedules"> | |
</section> |
import R from 'ramda' | |
export const wrapCallback = (callback, event) => (error, response) => { | |
const truthy = (obj) => obj !== undefined | |
const hasParams = (p1, p2) => R.compose(truthy, R.both(R.prop(p1), R.prop(p2))) | |
const isLambdaProxy = hasParams('pathParameters', 'queryStringParameters')(event) | |
const isCustom = hasParams('path', 'query')(event) | |
const headers = { 'Access-Control-Allow-Origin': '*' } | |
const okStatusCode = 200 |