-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to latest stable commit 562d33a (#422)
- Loading branch information
Showing
13 changed files
with
154 additions
and
9 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
modules/block/src/test/kotlin/jp/co/soramitsu/iroha2/DeserializerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+17.7 KB
(100%)
modules/block/src/test/resources/executor.wasm
100755 → 100644
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+18.4 KB
(100%)
modules/client/src/test/resources/create_nft_for_alice_smartcontract.wasm
Binary file not shown.
Binary file modified
BIN
+4.64 KB
(100%)
modules/client/src/test/resources/executor.wasm
100755 → 100644
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
modules/model/src/main/kotlin/jp/co/soramitsu/iroha2/generated/FilterOptOfAccountId.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
// | ||
// Auto-generated file. DO NOT EDIT! | ||
// | ||
package jp.co.soramitsu.iroha2.generated | ||
|
||
import jp.co.soramitsu.iroha2.ModelEnum | ||
import jp.co.soramitsu.iroha2.codec.ScaleCodecReader | ||
import jp.co.soramitsu.iroha2.codec.ScaleCodecWriter | ||
import jp.co.soramitsu.iroha2.codec.ScaleReader | ||
import jp.co.soramitsu.iroha2.codec.ScaleWriter | ||
import jp.co.soramitsu.iroha2.wrapException | ||
import kotlin.Any | ||
import kotlin.Boolean | ||
import kotlin.Int | ||
import kotlin.Unit | ||
|
||
/** | ||
* FilterOptOfAccountId | ||
* | ||
* Generated from 'FilterOptOfAccountId' enum | ||
*/ | ||
public sealed class FilterOptOfAccountId : ModelEnum { | ||
/** | ||
* @return Discriminator of variant in enum | ||
*/ | ||
public abstract fun discriminant(): Int | ||
|
||
override fun equals(other: Any?): Boolean = when (this) { | ||
is AcceptAll -> AcceptAll.equals(this, other) | ||
else -> super.equals(other) } | ||
|
||
override fun hashCode(): Int = when (this) { | ||
is AcceptAll -> AcceptAll.hashCode() | ||
else -> super.hashCode() } | ||
|
||
/** | ||
* 'AcceptAll' variant | ||
*/ | ||
public class AcceptAll : FilterOptOfAccountId() { | ||
override fun discriminant(): Int = DISCRIMINANT | ||
|
||
public companion object : | ||
ScaleReader<jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.AcceptAll>, | ||
ScaleWriter<jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.AcceptAll> { | ||
public const val DISCRIMINANT: Int = 0 | ||
|
||
override fun read(reader: ScaleCodecReader): jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.AcceptAll = try { | ||
AcceptAll() | ||
} catch (ex: Exception) { | ||
throw wrapException(ex) | ||
} | ||
|
||
override fun write( | ||
writer: ScaleCodecWriter, | ||
instance: jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.AcceptAll, | ||
): Unit = try { | ||
} catch (ex: Exception) { | ||
throw wrapException(ex) | ||
} | ||
|
||
public fun equals( | ||
o1: jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.AcceptAll, | ||
o2: Any?, | ||
): Boolean = when (o2) { | ||
null -> false | ||
else -> o2::class == o1::class | ||
} | ||
|
||
override fun hashCode(): Int = ".FilterOptOfAccountId.AcceptAll".hashCode() | ||
} | ||
} | ||
|
||
/** | ||
* 'BySome' variant | ||
*/ | ||
public data class BySome( | ||
public val accountId: AccountId, | ||
) : FilterOptOfAccountId() { | ||
override fun discriminant(): Int = DISCRIMINANT | ||
|
||
public companion object : | ||
ScaleReader<jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.BySome>, | ||
ScaleWriter<jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.BySome> { | ||
public const val DISCRIMINANT: Int = 1 | ||
|
||
override fun read(reader: ScaleCodecReader): jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.BySome = try { | ||
BySome( | ||
AccountId.read(reader), | ||
) | ||
} catch (ex: Exception) { | ||
throw wrapException(ex) | ||
} | ||
|
||
override fun write( | ||
writer: ScaleCodecWriter, | ||
instance: jp.co.soramitsu.iroha2.generated.FilterOptOfAccountId.BySome, | ||
): Unit = try { | ||
AccountId.write(writer, instance.accountId) | ||
} catch (ex: Exception) { | ||
throw wrapException(ex) | ||
} | ||
} | ||
} | ||
|
||
public companion object : ScaleReader<FilterOptOfAccountId>, ScaleWriter<FilterOptOfAccountId> { | ||
override fun read(reader: ScaleCodecReader): FilterOptOfAccountId = when ( | ||
val discriminant = | ||
reader.readUByte() | ||
) { | ||
0 -> AcceptAll.read(reader) | ||
1 -> BySome.read(reader) | ||
else -> throw RuntimeException("Unresolved discriminant of the enum variant: $discriminant") } | ||
|
||
override fun write(writer: ScaleCodecWriter, instance: FilterOptOfAccountId) { | ||
writer.directWrite(instance.discriminant()) | ||
when (val discriminant = instance.discriminant()) { | ||
0 -> AcceptAll.write(writer, instance as AcceptAll) | ||
1 -> BySome.write(writer, instance as BySome) | ||
else -> throw RuntimeException("Unresolved discriminant of the enum variant: $discriminant") } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+17.7 KB
(100%)
modules/test-tools/src/main/resources/executor.wasm
100755 → 100644
Binary file not shown.