Skip to content

Commit

Permalink
feat: add instagram data source to oracle script (#125)
Browse files Browse the repository at this point in the history
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v                               ✰  Thanks for creating a PR! ✰    
v    Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  -->

This PR adds Instagram data source to oracle script.

## Description
<!-- Small description -->

## Checklist
- [x] Targeted PR against correct branch.
- [ ] Linked to Github issue with discussion and accepted design OR link
to spec that describes this work.
- [ ] Wrote unit tests.
- [ ] Updated the documentation. 
- [ ] Re-reviewed `Files changed` in the Github PR explorer.
  • Loading branch information
dadamu authored Aug 16, 2023
1 parent 8419af3 commit 875b9ee
Showing 1 changed file with 9 additions and 0 deletions.
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 = 111;

/// 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

0 comments on commit 875b9ee

Please sign in to comment.