Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add instagram data source to oracle script #125

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions oracle-scripts/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const DATA_SOURCE_GITHUB: i64 = 63;
const DATA_SOURCE_DISCORD: i64 = 62;
const DATA_SOURCE_TWITCH: i64 = 60;
const DATA_SOURCE_DOMAIN: i64 = 67;
const DATA_SOURCE_YOUTUBE: i64 = 101;
const DATA_SOURCE_TELEGRAM: i64 = 102;
const DATA_SOURCE_INSTAGRAM: i64 = 0;
Copy link
Contributor Author

@dadamu dadamu Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't upload the Instagram data source ID to main net since I don't have mainnet deployer key.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can wait until the data source has been deployed to merge this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated


/// CallData contains the data that must be sent when calling this script
#[derive(OBIEncode, OBIDecode, OBISchema, Debug)]
Expand Down Expand Up @@ -40,6 +43,12 @@ fn get_data_source(application: String) -> i64 {
return DATA_SOURCE_TWITCH;
} else if application == "domain" {
return DATA_SOURCE_DOMAIN;
} else if application == "youtube" {
return DATA_SOURCE_YOUTUBE
} else if application == "telegram" {
return DATA_SOURCE_TELEGRAM
} else if application == "instagram" {
return DATA_SOURCE_INSTAGRAM
}

panic!("Invalid application type")
Expand Down
Loading