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

Revert "Update default url" #180

Merged
merged 1 commit into from
Dec 22, 2023
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zesty-billboard

The Zesty Billboard SDK allows developers to integrate their app into the Zesty Network. More docs: https://zestyxyz.notion.site/Zesty-Market-Documentation-346d6f9aa8544cf9a5484c3ccf61523a
The Zesty Billboard SDK allows developers to integrate their app into the Zesty Network. More docs: https://docs.zesty.market

Currently, we support the following platforms:

Expand Down
2 changes: 1 addition & 1 deletion cryptovoxels/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const DEFAULT_URI_CONTENT = {
"name": "Default banner",
"description": "This is the default banner that would be displayed ipsum",
"image": "https://ipfs.zesty.market/ipfs/QmWBNfP8roDrwz3XQo4qpu9fMxvUSTn8LB7d4JK7ybrfZ2/assets/zesty-ad-square.png",
"url": "https://www.zesty.xyz"
"url": "https://www.zesty.market"
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/networking.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const MOCK_IFRAME_SETUP2 = {
test.describe('fetchCampaignAd', () => {
test('fetchCampaignAd should return a default banner if no URI is given', () => {
return expect(fetchCampaignAd()).resolves.toMatchObject(
{ Ads: [{ asset_url: DEFAULT_BANNER, cta_url: 'https://www.zesty.xyz' }], CampaignId: 'TestCampaign'}
{ Ads: [{ asset_url: DEFAULT_BANNER, cta_url: 'https://www.zesty.market' }], CampaignId: 'TestCampaign'}
)
});

Expand Down
2 changes: 1 addition & 1 deletion tests/wonderland/deploy/wonderland-test-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -15277,7 +15277,7 @@ var Wt = async (t, e = "tall", r = "standard") => {
let i = encodeURI(window.top.location.href).replace(/\/$/, "");
return (await W.default.get(`${un}/ad?ad_unit_id=${t}&url=${i}`)).data;
} catch {
return console.warn("No active campaign banner could be located. Displaying default banner."), { Ads: [{ asset_url: B[e].style[r], cta_url: "https://www.zesty.xyz" }], CampaignId: "TestCampaign" };
return console.warn("No active campaign banner could be located. Displaying default banner."), { Ads: [{ asset_url: B[e].style[r], cta_url: "https://www.zesty.market" }], CampaignId: "TestCampaign" };
}
};
var Jt = async (t, e = null) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/wonderland/deploy/wonderland-test-bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion unity/Assets/ZestySDK/Scripts/Internal/API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static IEnumerator GetRequest(string url, string[] elmsKey, Action<Banner
if (isConnectionOrProtocolError(request)) {
Debug.Log("GET request error: " + request.error);
Debug.Log("Tried to retrieve: " + url);
List<Ad> Ads = new List<Ad> { new Ad() { asset_url = Formats.Square.Images[0], cta_url = "www.zesty.xyz" } };
List<Ad> Ads = new List<Ad> { new Ad() { asset_url = Formats.Square.Images[0], cta_url = "www.zesty.market" } };
string CampaignId = "TestCampaign";
callback(new BannerInfo { Ads = Ads, CampaignId = CampaignId });
} else {
Expand Down
2 changes: 1 addition & 1 deletion unity/Assets/ZestySDK/Scripts/Internal/Banner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void SetBannerInfo(BannerInfo bannerInfo)
StartCoroutine(API.GetTexture(Formats.Square.Images[(int)style], SetTexture));
break;
}
SetURL($"https://www.zesty.xyz/");
SetURL($"https://www.zesty.market/");
}
else if (bannerInfo.Ads.Count > 0)
{
Expand Down
4 changes: 2 additions & 2 deletions utils/networking.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const fetchCampaignAd = async (adUnitId, format = 'tall', style = 'standard') =>
return res.data;
else {
// No active campaign, just display default banner
return { Ads: [{ asset_url: formats[format].style[style], cta_url: 'https://www.zesty.xyz' }], CampaignId: 'TestCampaign'};
return { Ads: [{ asset_url: formats[format].style[style], cta_url: 'https://www.zesty.market' }], CampaignId: 'TestCampaign'};
}
} catch {
console.warn('Could not retrieve an active campaign banner. Retrieving default banner.')
return { Ads: [{ asset_url: formats[format].style[style], cta_url: 'https://www.zesty.xyz' }], CampaignId: 'TestCampaign'};
return { Ads: [{ asset_url: formats[format].style[style], cta_url: 'https://www.zesty.market' }], CampaignId: 'TestCampaign'};
}
}

Expand Down