Skip to content

Commit

Permalink
feat: add near source and network
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Sep 3, 2024
1 parent 1ad2e76 commit 55a9fae
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 28 deletions.
4 changes: 4 additions & 0 deletions schema/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const (
Gnosis // gnosis
Linea // linea
Mastodon // mastodon
Near // near
Optimism // optimism
Polygon // polygon
RSS // rss
Expand Down Expand Up @@ -52,6 +53,7 @@ const (
ArweaveSource Source = "arweave"
EthereumSource Source = "ethereum"
FarcasterSource Source = "farcaster"
NearSource Source = "near"
RSSSource Source = "rss"
)

Expand All @@ -65,6 +67,8 @@ func (n Network) Source() Source {
return FarcasterSource
case Mastodon:
return ActivityPubSource
case Near:
return NearSource
case RSS:
return RSSSource
default:
Expand Down
60 changes: 32 additions & 28 deletions schema/network/network_string.go

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

0 comments on commit 55a9fae

Please sign in to comment.