Skip to content

Commit 4a12353

Browse files
Merge pull request #2 from wavesplatform/master
[pull] master from wavesplatform:master
2 parents dd08cda + 05fdb16 commit 4a12353

File tree

5 files changed

+32
-19
lines changed

5 files changed

+32
-19
lines changed

.github/workflows/mvn-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
publish:
14-
runs-on: ubuntu-18.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-java@v1

.github/workflows/tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3232
restore-keys: ${{ runner.os }}-m2
3333

34-
- name: Cache docker images
35-
uses: satackey/[email protected]
36-
3734
- name: Run tests
3835
run: mvn -B test -Dmaven.test.failure.ignore=true
3936

pom.xml

+14-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.wavesplatform</groupId>
88
<artifactId>wavesj</artifactId>
9-
<version>1.6.0</version>
9+
<version>1.6.1</version>
1010
<packaging>jar</packaging>
1111

1212
<properties>
@@ -185,73 +185,73 @@
185185
<dependency>
186186
<groupId>com.wavesplatform</groupId>
187187
<artifactId>waves-transactions</artifactId>
188-
<version>1.2.3</version>
188+
<version>1.2.4</version>
189189
</dependency>
190190

191191

192192
<!-- Compiler -->
193193
<dependency>
194-
<groupId>com.ridecompiler</groupId>
195-
<artifactId>compiler</artifactId>
196-
<version>1.4.12-2-g3faa9fa</version>
194+
<groupId>com.wavesplatform</groupId>
195+
<artifactId>lang</artifactId>
196+
<version>1.5.3</version>
197197
</dependency>
198198

199199
<dependency>
200200
<groupId>org.scala-lang</groupId>
201201
<artifactId>scala-library</artifactId>
202-
<version>2.13.10</version>
202+
<version>2.13.13</version>
203203
</dependency>
204204

205205
<!-- http client -->
206206
<dependency>
207207
<groupId>org.apache.httpcomponents</groupId>
208208
<artifactId>httpclient</artifactId>
209-
<version>4.5.13</version>
209+
<version>4.5.14</version>
210210
</dependency>
211211

212212
<!-- logging -->
213213
<dependency>
214214
<groupId>ch.qos.logback</groupId>
215215
<artifactId>logback-classic</artifactId>
216-
<version>1.2.3</version>
216+
<version>1.3.14</version>
217217
</dependency>
218218

219219
<!-- util -->
220220
<dependency>
221221
<groupId>org.apache.commons</groupId>
222222
<artifactId>commons-lang3</artifactId>
223-
<version>3.12.0</version>
223+
<version>3.14.0</version>
224224
</dependency>
225225

226226
<!-- testing -->
227227
<dependency>
228228
<groupId>org.junit.jupiter</groupId>
229229
<artifactId>junit-jupiter</artifactId>
230-
<version>5.7.1</version>
230+
<version>5.10.2</version>
231231
<scope>test</scope>
232232
</dependency>
233233
<dependency>
234234
<groupId>org.assertj</groupId>
235235
<artifactId>assertj-core</artifactId>
236-
<version>3.19.0</version>
236+
<version>3.25.3</version>
237237
<scope>test</scope>
238238
</dependency>
239239
<dependency>
240240
<groupId>org.testcontainers</groupId>
241241
<artifactId>testcontainers</artifactId>
242-
<version>1.16.3</version>
242+
<version>1.19.6</version>
243243
<scope>test</scope>
244244
</dependency>
245245
<dependency>
246246
<groupId>org.testcontainers</groupId>
247247
<artifactId>junit-jupiter</artifactId>
248-
<version>1.15.3</version>
248+
<version>1.19.6</version>
249249
<scope>test</scope>
250250
</dependency>
251251
<dependency>
252252
<groupId>org.mockito</groupId>
253253
<artifactId>mockito-core</artifactId>
254-
<version>4.5.1</version>
254+
<version>4.11.0</version>
255255
<scope>test</scope>
256256
</dependency>
257257
</dependencies>

src/test/java/node/AddressesTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
import com.wavesplatform.transactions.data.*;
1414
import com.wavesplatform.wavesj.*;
1515
import com.wavesplatform.wavesj.exceptions.NodeException;
16+
import org.apache.commons.lang3.StringUtils;
1617
import org.junit.jupiter.api.Test;
17-
import org.testcontainers.shaded.org.apache.commons.lang.StringUtils;
1818

1919
import java.io.IOException;
2020
import java.util.ArrayList;

src/test/java/util/CompilerTest.java

+16
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ public void compileLibrary() throws CompilationException {
4141
Assert.assertEquals(0L, scriptInfo.extraFee());
4242
}
4343

44+
@Test
45+
public void compileV8() throws CompilationException {
46+
String script = "{-# STDLIB_VERSION 8 #-}\n" +
47+
"{-# CONTENT_TYPE EXPRESSION #-}\n" +
48+
"{-# SCRIPT_TYPE ACCOUNT #-}\n" +
49+
"\n" +
50+
"let a = calculateDelay(Address(base58''), 0)\n" +
51+
"let b = [1, 2, 3].replaceByIndex(1, 0)\n" +
52+
"a == b[0]";
53+
ScriptInfo scriptInfo = CompilationUtil.compile(script);
54+
Assert.assertEquals(12, scriptInfo.complexity());
55+
Assert.assertEquals(12, scriptInfo.verifierComplexity());
56+
Assert.assertTrue(scriptInfo.callableComplexities().isEmpty());
57+
Assert.assertEquals(0, scriptInfo.extraFee());
58+
}
59+
4460
@Test(expected = CompilationException.class)
4561
public void compilationError() throws CompilationException {
4662
CompilationUtil.compile("{-# STDLIB_V 1 #-}");

0 commit comments

Comments
 (0)