Request form
BetGame
  • Utility
  • No-Code Deploy
Docs
Source
ChefGPT

BetGame

This contract interacts with the Chainlink network to request sports game data (creation and resolution) for betting purposes. Users can place bets on teams, and withdraw winnings if their team wins. It supports various sports and game statuses, and allows withdrawal of LINK tokens.

YourContract :
Uses @chainlink/contracts 0.4.0.
requestGamesResolveWithFilters(uint256,string,uint256,uint256,string[],string[]) :
Result format is array of encoded tuples.
Chainlink :
Uses imported CBOR library for encoding to buffer
ChainlinkClient :
ChainlinkRequestInterface :
ENSInterface :
LinkTokenInterface :
OperatorInterface :
OracleInterface :
PointerInterface :
BufferChainlink :
A library for working with mutable byte buffers in Solidity. Byte buffers are mutable and expandable, and provide a variety of primitives for writing to them. At any time you can fetch a bytes object containing the current contents of the buffer. The bytes object should not be stored between operations, as it may change due to resizing of the buffer.
CBORChainlink :
ENSResolver :
Strings :
String operations.
Math :
Standard math utilities missing in the Solidity language.
SignedMath :
Standard signed math utilities missing in the Solidity language.
YourContract.sol
Chainlink.sol
ChainlinkClient.sol
ChainlinkRequestInterface.sol
ENSInterface.sol
LinkTokenInterface.sol
OperatorInterface.sol
OracleInterface.sol
PointerInterface.sol
BufferChainlink.sol
CBORChainlink.sol
ENSResolver.sol
Strings.sol
Math.sol
SignedMath.sol

5 downloads

Solidity Version

0.8.7

Creator

BuidlGuidl
BuidlGuidl / BetGame
  • Utility
  • No-Code Deploy
Docs
Source
ChefGPT
Expand
Share

Get Cookin'
star icon5

5 downloads

Solidity Version

0.8.7

Creator

BuidlGuidl

BetGame

This contract interacts with the Chainlink network to request sports game data (creation and resolution) for betting purposes. Users can place bets on teams, and withdraw winnings if their team wins. It supports various sports and game statuses, and allows withdrawal of LINK tokens.

YourContract :
Uses @chainlink/contracts 0.4.0.
requestGamesResolveWithFilters(uint256,string,uint256,uint256,string[],string[]) :
Result format is array of encoded tuples.
Chainlink :
Uses imported CBOR library for encoding to buffer
ChainlinkClient :
ChainlinkRequestInterface :
ENSInterface :
LinkTokenInterface :
OperatorInterface :
OracleInterface :
PointerInterface :
BufferChainlink :
A library for working with mutable byte buffers in Solidity. Byte buffers are mutable and expandable, and provide a variety of primitives for writing to them. At any time you can fetch a bytes object containing the current contents of the buffer. The bytes object should not be stored between operations, as it may change due to resizing of the buffer.
CBORChainlink :
ENSResolver :
Strings :
String operations.
Math :
Standard math utilities missing in the Solidity language.
SignedMath :
Standard signed math utilities missing in the Solidity language.
YourContract.sol
Chainlink.sol
ChainlinkClient.sol
ChainlinkRequestInterface.sol
ENSInterface.sol
LinkTokenInterface.sol
OperatorInterface.sol
OracleInterface.sol
PointerInterface.sol
BufferChainlink.sol
CBORChainlink.sol
ENSResolver.sol
Strings.sol
Math.sol
SignedMath.sol