Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
377 changes: 176 additions & 201 deletions packages/cli/src/hbs_templating/codegen_templates.rs

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: packages/cli/src/hbs_templating/codegen_templates.rs
expression: project_template.indexer_code
expression: "project_template.indexer_code().expect(\"rescript indexer code\")"
---
/**
* This file is generated by HyperIndex codegen from config.yaml and schema.graphql.
Expand Down Expand Up @@ -182,12 +182,6 @@ type onEventOptions<'eventIdentity, 'where> = {
where?: 'where,
}

/** Options for `indexer.onInstruction` (SVM). */
type onInstructionOptions<'eventIdentity, 'where> = {
instruction: 'eventIdentity,
where?: 'where,
}

module Enums = {
module Status = {
type t =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: packages/cli/src/hbs_templating/codegen_templates.rs
expression: project_template.indexer_code
expression: "project_template.indexer_code().expect(\"rescript indexer code\")"
---
/**
* This file is generated by HyperIndex codegen from config.yaml and schema.graphql.
Expand Down Expand Up @@ -182,12 +182,6 @@ type onEventOptions<'eventIdentity, 'where> = {
where?: 'where,
}

/** Options for `indexer.onInstruction` (SVM). */
type onInstructionOptions<'eventIdentity, 'where> = {
instruction: 'eventIdentity,
where?: 'where,
}

module Enums = {

}
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/src/napi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ pub struct FromUserApiResult {
/// `with_indexer_types` was requested.
pub indexer_types: Option<String>,
/// The generated `Indexer.res`, present only when `with_indexer_types` was
/// requested. Same production codegen output, from the same parse.
/// requested and the config isn't SVM (which has no ReScript surface).
/// Same production codegen output, from the same parse.
pub indexer_code: Option<String>,
}

Expand Down Expand Up @@ -80,7 +81,7 @@ pub fn from_user_api(
})?;
(
Some(template.indexer_types_dts().to_string()),
Some(template.indexer_code().to_string()),
template.indexer_code().map(str::to_string),
)
} else {
(None, None)
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions scenarios/cross_chain_test/src/Indexer.res
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ type onEventOptions<'eventIdentity, 'where> = {
where?: 'where,
}

/** Options for `indexer.onInstruction` (SVM). */
type onInstructionOptions<'eventIdentity, 'where> = {
instruction: 'eventIdentity,
where?: 'where,
}

module Enums = {

}
Expand Down
Loading
Loading