Skip to content

Commit

Permalink
Update SanR endpoint URLs (#4451)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIvanoff authored Nov 12, 2024
1 parent 2570d4b commit f3a3277
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions lib/sanbase/smart_contracts/sanr_nft.ex
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ defmodule Sanbase.SmartContracts.SanrNFT do

defp do_get_all_nft_expiration_dates() do
req =
Req.new(
base_url:
"https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all"
)
Req.new(base_url: "https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all")

result = Req.get(req, [])

Expand Down
2 changes: 1 addition & 1 deletion test/sanbase/billing/sanr_nft_subscription_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule Sanbase.Billing.SanrNFTSubscriptionTest do
"https://zksync-mainnet.g.alchemy.com" ->
Sanbase.SanrNFTMocks.get_owners_for_contract_mock(address)

"https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all" ->
"https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all" ->
Sanbase.SanrNFTMocks.sanr_nft_collections_mock(start_date, end_date)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule Sanbase.Billing.SanrNftSubscriptionsApiTest do
"https://zksync-mainnet.g.alchemy.com" ->
Sanbase.SanrNFTMocks.get_owners_for_contract_mock(context.address)

"https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all" ->
"https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all" ->
Sanbase.SanrNFTMocks.sanr_nft_collections_mock(context.start_date, context.end_date)
end
end
Expand Down Expand Up @@ -99,7 +99,7 @@ defmodule Sanbase.Billing.SanrNftSubscriptionsApiTest do
"https://zksync-mainnet.g.alchemy.com" ->
Sanbase.SanrNFTMocks.get_owners_for_contract_mock(context.address)

"https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all" ->
"https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all" ->
Sanbase.SanrNFTMocks.sanr_nft_collections_mock(context.start_date, context.end_date)
end
end
Expand Down

0 comments on commit f3a3277

Please sign in to comment.