Skip to content

Commit 5800eb6

Browse files
Merge remote-tracking branch 'origin/master' into Fix/regexValidateAbi
2 parents 453d52b + 7b44e87 commit 5800eb6

File tree

156 files changed

+19414
-4065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+19414
-4065
lines changed

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Docs Checklist
2+
Please ensure you have addressed documentation updates if needed as part of this PR:
3+
- [ ] I have created a separate PR on the sequence docs repository for documentation updates: [Link to docs PR](https://github.com/0xsequence/docs/pulls)
4+
- [ ] No documentation update is needed for this change.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Validate Docs PR Template
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
7+
jobs:
8+
validate-template:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check PR Template Completion
13+
run: |
14+
# Fetch the pull request body
15+
PR_BODY=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
16+
-H "Accept: application/vnd.github.v3+json" \
17+
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} \
18+
| jq -r '.body')
19+
20+
# Check if one of the required checkboxes in the 'Docs Checklist' is marked
21+
if ! echo "$PR_BODY" | grep -Eq '\[x\] I have created a separate PR on the sequence docs repository for documentation updates|\[x\] No documentation update is needed for this change'; then
22+
echo "Error: The 'Docs Checklist' section in the PR template has not been completed properly."
23+
echo "Please ensure you have checked one of the options in the 'Docs Checklist' section."
24+
exit 1
25+
fi
26+
27+
echo "Docs Checklist is complete."

Assets/Editor.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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &1
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 52
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 12323, guid: 0000000000000000e000000000000000, type: 0}
13+
m_Name: Sequence Colors
14+
m_EditorClassIdentifier:
15+
m_Presets:
16+
- m_Name:
17+
m_Color: {r: 0, g: 0, b: 0, a: 1}
18+
- m_Name:
19+
m_Color: {r: 0.101960786, g: 0.101960786, b: 0.101960786, a: 1}
20+
- m_Name:
21+
m_Color: {r: 0.19215687, g: 0.19215687, b: 0.19215687, a: 1}
22+
- m_Name:
23+
m_Color: {r: 0.6862745, g: 0.6862745, b: 0.6862745, a: 1}
24+
- m_Name:
25+
m_Color: {r: 1, g: 1, b: 1, a: 1}
26+
- m_Name:
27+
m_Color: {r: 0.5529412, g: 0.49411765, b: 1, a: 1}
28+
- m_Name:
29+
m_Color: {r: 0.26666668, g: 0.06666667, b: 0.88235295, a: 1}
30+
- m_Name:
31+
m_Color: {r: 0.45490196, g: 0.21568628, b: 0.9764706, a: 1}

Assets/Editor/Sequence Colors.colors.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.

Assets/SequenceSDK/Ethereum/Tests/ContractIntegrationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public class ContractIntegrationTests
2929
EOAWallet wallet3 = new EOAWallet("0xabc0000000000000000000000000000000000000000000000000000000000003");
3030
SequenceEthClient client = new SequenceEthClient("http://localhost:8545/");
3131

32-
[Test]
33-
public async Task _TestDeployComplexContract()
32+
[SetUp]
33+
public async Task DeployComplexContract()
3434
{
3535
try
3636
{

Assets/SequenceSDK/Ethereum/Tests/DecodeABITests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ public void TestDecodeNumber_throwsOnInvalidType<T>(T type)
337337
catch (ArgumentException ex)
338338
{
339339
Assert.AreEqual(
340-
$"Unable to decode to type \'{typeof(T)}\' when ABI expects to decode to type \'uint256\'. Supported types: {typeof(BigInteger)}, {typeof(int)}",
340+
$"Unable to decode to type \'{typeof(T)}\' when ABI expects to decode to type \'uint256\'. Supported types: {typeof(BigInteger)}, {typeof(int)}, {typeof(long)}, {typeof(uint)}, {typeof(ulong)}",
341+
341342
ex.Message);
342343
}
343344
catch (Exception ex)
@@ -401,7 +402,7 @@ public void TestDecodeBool_throwsOnInvalidType<T>(T type)
401402
{
402403
new object[] { "0x000000000000000000000000000000000000000000000000000000000000000e" + "53444b20627920486f72697a6f6e000000000000000000000000000000000000", Encoding.UTF8.GetBytes("SDK by Horizon") },
403404
new object[] { "0x0000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000", Encoding.UTF8.GetBytes("")},
404-
new object[] { "0x0000000000000000000000000000000000000000000000000000000000000114" + "7468697320697320610a6d756c74692d6c696e6520737472696e670a7468617420697320616c736f20726174686572206c6f6e6720616e6420706f696e746c6573730a6275742069662049206a757374206b65657020747970696e67206d617962652069742077696c6c206d616b6520666f7220616e20696e746572657374696e67207465737420636173650a616e64206d617962652c0a6a757374206d617962652c0a796f752061732061207265616465722077696c6c20646576656c6f7020616e206576657220736f20736c6967687420736d696c65206f6e20796f757220666163650a616e6420696e207468617420636173652c206d79206d697373696f6e2077696c6c20626520636f6d706c6574652e000000000000000000000000", Encoding.UTF8.GetBytes(longMultiLineString) },
405+
new object[] { "0x0000000000000000000000000000000000000000000000000000000000000114" + "7468697320697320610a6d756c74692d6c696e6520737472696e670a7468617420697320616c736f20726174686572206c6f6e6720616e6420706f696e746c6573730a6275742069662049206a757374206b65657020747970696e67206d617962652069742077696c6c206d616b6520666f7220616e20696e746572657374696e67207465737420636173650a616e64206d617962652c0a6a757374206d617962652c0a796f752061732061207265616465722077696c6c20646576656c6f7020616e206576657220736f20736c6967687420736d696c65206f6e20796f757220666163650a616e6420696e207468617420636173652c206d79206d697373696f6e2077696c6c20626520636f6d706c6574652e000000000000000000000000", Encoding.UTF8.GetBytes(longMultiLineString.Replace("\r", "")) },
405406
};
406407

407408
[TestCaseSource(nameof(DecodeBytesTests))]

Assets/SequenceSDK/Ethereum/Tests/SequenceEthClientTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Sequence.Ethereum.Tests
1717
public class SequenceEthClientTests
1818
{
1919
static readonly string testnetUrl = "http://localhost:8545/";
20-
static readonly string publicPolygonRpc = "https://polygon-bor.publicnode.com";
20+
static readonly string publicPolygonRpc = "https://polygon-rpc.com/";
2121
private static string[] urls = new string[] { testnetUrl, publicPolygonRpc };
2222
float blockTimeInSeconds = 2f;
2323
IRpcClient failingClient = new FailingRpcClient();
@@ -135,7 +135,7 @@ public async Task TestBlockRange()
135135
[TestCaseSource(nameof(chainIdCases))]
136136
public async Task TestChainId(Chain chain)
137137
{
138-
if (chain == Chain.None) return;
138+
if (!chain.IsActive()) return;
139139
try
140140
{
141141
var client = new SequenceEthClient(chain);

Assets/SequenceSDK/Indexer/Tests/ChainIndexerTests.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ChainIndexerTests
2020
[TestCaseSource(nameof(chainIdCases))]
2121
public void TestCreateChainIndexerForChain(Chain chain)
2222
{
23-
if (ChainIsInactive(chain)) return;
23+
if (!chain.IsActive()) return;
2424
try
2525
{
2626
ChainIndexer chainIndexer = new ChainIndexer(chain);
@@ -36,7 +36,7 @@ public void TestCreateChainIndexerForChain(Chain chain)
3636
[TestCaseSource(nameof(chainIdCases))]
3737
public async Task TestPingChain(Chain chain)
3838
{
39-
if (ChainIsInactive(chain)) return;
39+
if (!chain.IsActive()) return;
4040
try
4141
{
4242
IIndexer chainIndexer = new ChainIndexer(chain);
@@ -52,7 +52,7 @@ public async Task TestPingChain(Chain chain)
5252
[TestCaseSource(nameof(chainIdCases))]
5353
public async Task TestVersion(Chain chain)
5454
{
55-
if (ChainIsInactive(chain)) return;
55+
if (!chain.IsActive()) return;
5656
try
5757
{
5858
IIndexer indexer = new ChainIndexer(chain);
@@ -69,15 +69,16 @@ public async Task TestVersion(Chain chain)
6969
}
7070
}
7171

72+
7273
private bool ChainIsInactive(Chain chain)
7374
{
74-
return chain == Chain.None || chain == Chain.AstarZKEvm || chain == Chain.TestnetAstarZKyoto;
75+
return chain == Chain.None || chain == Chain.AstarZKEvm || chain == Chain.TestnetAstarZKyoto || chain == Chain.TestnetBorne;
7576
}
7677

7778
[TestCaseSource(nameof(chainIdCases))]
7879
public async Task TestRuntimeStatus(Chain chain)
7980
{
80-
if (ChainIsInactive(chain)) return;
81+
if (!chain.IsActive()) return;
8182
RuntimeStatus result = null;
8283
try
8384
{

Assets/SequenceSDK/WaaS/Tests/EndToEndTestHarness.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ public EndToEndTestHarness(SequenceLogin login = null)
1616
{
1717
if (login == null)
1818
{
19-
_login = new SequenceLogin();
19+
_login = SequenceLogin.GetInstance();
2020
}
2121
else
2222
{
2323
_login = login;
2424
}
25+
_login.ResetLoginAfterTest();
2526
}
2627

2728
public async Task Login(Action<SequenceWallet> OnLogin, ILogin.OnLoginFailedHandler OnFailedLogin)

0 commit comments

Comments
 (0)