0.0.6 • Published 3 years ago

@cryptoactions/sdk v0.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Crypto Actions SDK

A lib of helpful functions.

Get Repo Config

Read the Crypto Actions configuration from a repository's cryptoactions.json or package.json.

import { getConfig } from '@cryptoactions/sdk'

// config of repo
const { ethereum: { address }} = await getConfig('cryptoactions/oracle')
console.log(address) // 0x....

// config of user (repo: mktcode/mktcode)
const { ethereum: { address }} = await getConfig('mktcode')
console.log(address) // 0x....

Process Data Request

Trigger an oracle workflow to process a data request, stored on a smart contract implementing GithubDataReceiver.sol.

const request = await processRequest(event.args.requestId, 'cryptoactions/oracle', githubAccessToken)
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago