Skip to content

Commit 4331b88

Browse files
Feature/transak support (#128)
* Added support for transak onramp. Created a new assembly, Integrations (SequenceIntegrations), where this Transak integration (and future integrations) will live * Increment package version * Added a note that the transak on ramp api key can be hardcoded
1 parent affb32a commit 4331b88

24 files changed

+344
-1
lines changed

Assets/Sequence/SequenceSDK/Integrations.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "SequenceIntegrations",
3+
"rootNamespace": "",
4+
"references": [
5+
"GUID:f7fd4ba36aabd1d499450c174865e70b",
6+
"GUID:b4f9c0f8f363f439b9e337f79050f189"
7+
],
8+
"includePlatforms": [],
9+
"excludePlatforms": [],
10+
"allowUnsafeCode": false,
11+
"overrideReferences": false,
12+
"precompiledReferences": [],
13+
"autoReferenced": true,
14+
"defineConstraints": [],
15+
"versionDefines": [],
16+
"noEngineReferences": false
17+
}

Assets/Sequence/SequenceSDK/Integrations/SequenceIntegrations.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Sequence/SequenceSDK/Integrations/Tests.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "SequenceIntegrationsTests",
3+
"rootNamespace": "",
4+
"references": [
5+
"GUID:a67bc3d548bec4971b914c7b64c9e959",
6+
"GUID:27619889b8ba8c24980f49ee34dbb44a",
7+
"GUID:0acc523941302664db1f4e527237feb3",
8+
"GUID:f7fd4ba36aabd1d499450c174865e70b"
9+
],
10+
"includePlatforms": [
11+
"Editor"
12+
],
13+
"excludePlatforms": [],
14+
"allowUnsafeCode": false,
15+
"overrideReferences": false,
16+
"precompiledReferences": [],
17+
"autoReferenced": true,
18+
"defineConstraints": [
19+
"UNITY_INCLUDE_TESTS"
20+
],
21+
"versionDefines": [],
22+
"noEngineReferences": false
23+
}

Assets/Sequence/SequenceSDK/Integrations/Tests/SequenceIntegrationsTests.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Sequence/SequenceSDK/Integrations/Tests/Transak.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using NUnit.Framework;
4+
using Sequence.Integrations.Transak;
5+
6+
namespace Sequence.Integrations.Tests.Transak
7+
{
8+
public class TransakOnRampTests
9+
{
10+
[Test]
11+
public async Task TestGetSupportedCountries()
12+
{
13+
try
14+
{
15+
SupportedCountry[] supportedCountries = await TransakOnRamp.GetSupportedCountries();
16+
Assert.IsNotNull(supportedCountries);
17+
Assert.Greater(supportedCountries.Length, 0);
18+
}
19+
catch (Exception e)
20+
{
21+
Assert.Fail("Expected no exception, but got: " + e.Message);
22+
}
23+
}
24+
25+
[Test]
26+
public void TestGetTransakLink()
27+
{
28+
TransakOnRamp onRamp = new TransakOnRamp("0xc683a014955b75F5ECF991d4502427c8fa1Aa249");
29+
string transakOnRampLink = onRamp.GetTransakLink();
30+
Assert.IsNotNull(transakOnRampLink);
31+
}
32+
}
33+
}

Assets/Sequence/SequenceSDK/Integrations/Tests/Transak/TransakOnRampTests.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Sequence/SequenceSDK/Integrations/Transak.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)