Skip to content

Commit 6340f6c

Browse files
Serhii Yolkinenlight
authored andcommitted
Added Loom build 375 support (loomnetwork#40)
In recent loom builds some JSON-RPC messages started representing some numbers as strings, these changes convert those strings back to numbers.
1 parent fa83ec3 commit 6340f6c

28 files changed

Lines changed: 8578 additions & 1138 deletions

BuildScripts/proto-gen.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
set -e
3+
4+
ROOT=../UnityProject/Assets/LoomSDK/Source/Protobuf
5+
pushd ${ROOT}/ > /dev/null
6+
7+
protoFiles=("address_mapper.proto" "evm.proto" "loom.proto" "plasma_cash.proto" "transfer_gateway.proto")
8+
protoFilesWithPath=()
9+
for Path in "${protoFiles[@]}"
10+
do
11+
protoFilesWithPath+=("proto/${Path}")
12+
done
13+
14+
protoFilesWithPathConcat=$(printf -- "%s " ${protoFilesWithPath[*]})
15+
protoc -I. --csharp_out=internal_access:. ${protoFilesWithPathConcat}
16+
sed -i 's/global::Google.Protobuf/global::Loom.Google.Protobuf/' *.cs
17+
18+
popd > /dev/null

UnityProject/.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ Assets/Plugins/AsyncAwaitUtil/Documentation/*
5050
/webgl-build/
5151

5252
# JetBrains Rider
53-
.idea
53+
.idea
54+
Assets/Plugins.meta
55+
Assets/Plugins/Editor.meta
56+
Assets/Plugins/Editor/JetBrains
57+
Assets/Plugins/Editor/JetBrains.meta

0 commit comments

Comments
 (0)