Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Feb 16, 2024
1 parent 7e56f93 commit 31d9a9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/replacement.local.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"REPL_ACCOUNT_ID": "dataplatform.near",
"REPL_GRAPHQL_ENDPOINT": "https://near-queryapi.api.pagoda.co",
"REPL_EXTERNAL_APP_URL": "http://localhost:3000",
"REPL_EXTERNAL_APP_URL": "http://localhost:9180",
"REPL_REGISTRY_CONTRACT_ID": "queryapi.dataplatform.near"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const IndexerConfigOptions = ({ updateConfig }) => {
const [blockHeightError, setBlockHeightError] = useState(null)

useEffect(() => {
// TODO need to read this properly
console.log({indexerDetails})
if (indexerDetails.config?.startBlockHeight) {
setStartBlock(START_BLOCK.HEIGHT)
setBlockHeight(indexerDetails.config.startBlockHeight)
Expand Down
1 change: 1 addition & 0 deletions frontend/src/utils/queryIndexerFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const queryIndexerFunctionDetails = async (accountId, functionName) => {
const result = await provider.query({
request_type: "call_function",
account_id: REGISTRY_CONTRACT,
// TODO need new method for this or could just list_by_account
method_name: "read_indexer_function",
args_base64: Buffer.from(JSON.stringify(args)).toString("base64"),
finality: "optimistic",
Expand Down

0 comments on commit 31d9a9b

Please sign in to comment.