@spaceandtime/contracts
v1.0.1
Published
SxT Smart Contracts to be used via Chainlink Functions and Direct Request for the smart contracts that work on the chainlink contracts
Downloads
4
Readme
spaceandtime/contracts
SxT Contracts | Public Chainlink Contracts
This repository has all the public contracts available via npm module.
If you wish to use the Space and Time smart contracts to send data to your smart contracts that uses Chainlink for fulfilling the requests submitted. These smart contracts would be helpful to create your own contracts inheriting these contracts.
# via npm
$ npm install @spaceandtime/contracts --save
Directory Structure
@spaceandtime/contracts
├── direct-request # Direct Request smart contracts
│ ├── interfaces
│ ├── UserRequest.sol
└── functions # Function smart contracts
├── interfaces
├── vendor
├── Functions.sol
└── FunctionsClient.sol
Usage
The solidity smart contracts themselves can be imported via the direct-request
and functions
directory of @spaceandtime/contracts
:
import '@spaceandtime/contracts/direct-request/UserRequest.sol';
import '@spaceandtime/contracts/functions/FunctionsClient.sol';