2021-12-24 21:06:01 +00:00
|
|
|
import { getFunctions, httpsCallable } from 'firebase/functions'
|
|
|
|
|
|
|
|
const functions = getFunctions()
|
|
|
|
|
|
|
|
export const cloudFunction = (name: string) => httpsCallable(functions, name)
|
|
|
|
|
2022-01-05 18:23:58 +00:00
|
|
|
export const createContract = cloudFunction('createContract')
|
|
|
|
|
|
|
|
export const placeBet = cloudFunction('placeBet')
|
|
|
|
|
|
|
|
export const resolveMarket = cloudFunction('resolveMarket')
|
|
|
|
|
|
|
|
export const sellBet = cloudFunction('sellBet')
|