Last active
May 17, 2021 04:41
-
-
Save bluepnume/4ad4d23e4d99cac82efd1da38f03a929 to your computer and use it in GitHub Desktop.
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
type BitcoinNodeType = {| | |
mine : () => Promise<void>, | |
send : (receiver : string, amount : number, fee : number) => Promise<void> | |
|}; | |
export function BitcoinNode() : BitcoinNodeType | |
const mine = async () : Promise<void> => { | |
}; | |
const send = async (receiver : string, amount : number, fee : number) : Promise<void> => { | |
}; | |
return { | |
mine, | |
send | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment