Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Dec 13, 2022
1 parent 8952738 commit 4cfd391
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/agoric-cli/test/agops-oracle-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ agoric wallet send --from "$WALLET2" --offer "$PROPOSAL_OFFER"

# second round, first oracle
PROPOSAL_OFFER=$(mktemp -t agops.XXX)
bin/agops oracle pushPriceRound --price 1.02 --roundId 2 --oracleAdminAcceptOfferId "$ORACLE_OFFER_ID" >|"$PROPOSAL_OFFER"
bin/agops oracle pushPriceRound --price 11.02 --roundId 2 --oracleAdminAcceptOfferId "$ORACLE_OFFER_ID" >|"$PROPOSAL_OFFER"
agoric wallet send --from "$WALLET" --offer "$PROPOSAL_OFFER"
# second round, second oracle
PROPOSAL_OFFER=$(mktemp -t agops.XXX)
bin/agops oracle pushPriceRound --price 2.01 --roundId 2 --oracleAdminAcceptOfferId "$ORACLE2_OFFER_ID" >|"$PROPOSAL_OFFER"
bin/agops oracle pushPriceRound --price 12.02 --roundId 2 --oracleAdminAcceptOfferId "$ORACLE2_OFFER_ID" >|"$PROPOSAL_OFFER"
agoric wallet send --from "$WALLET2" --offer "$PROPOSAL_OFFER"
5 changes: 5 additions & 0 deletions packages/zoe/src/contracts/priceAggregatorChainlink.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/** @file
* Adaptation of Chainlink algorithm to the Agoric platform.
* Modeled on https://github.com/smartcontractkit/chainlink/blob/master/contracts/src/v0.6/FluxAggregator.sol (version?)
*/
import { AmountMath, AssetKind, makeIssuerKit } from '@agoric/ertp';
import { E } from '@endo/eventual-send';
import { Far } from '@endo/marshal';
Expand Down Expand Up @@ -27,6 +31,7 @@ import {

export { INVITATION_MAKERS_DESC };

// FIXME is MAX_SAFE_INTEGER sufficient? why encoded as string?
/**
* @typedef {{ roundId: number | undefined, data: string }} PriceRound
* `data` is a string encoded integer (Number.MAX_SAFE_INTEGER)
Expand Down

0 comments on commit 4cfd391

Please sign in to comment.