im.mak.paddle.actions.data.Entry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paddle Show documentation
Show all versions of paddle Show documentation
Paddle library helps developers to write tests for smart contracts on Waves blockchain
package im.mak.paddle.actions.data;
import com.wavesplatform.wavesj.ByteString;
import com.wavesplatform.wavesj.DataEntry.BinaryEntry;
import com.wavesplatform.wavesj.DataEntry.BooleanEntry;
import com.wavesplatform.wavesj.DataEntry.LongEntry;
import com.wavesplatform.wavesj.DataEntry.StringEntry;
public class Entry {
public static BinaryEntry binary(String key, byte[] value) {
return new BinaryEntry(key, new ByteString(value));
}
public static BooleanEntry bool(String key, boolean value) {
return new BooleanEntry(key, value);
}
public static LongEntry integer(String key, long value) {
return new LongEntry(key, value);
}
public static StringEntry string(String key, String value) {
return new StringEntry(key, value);
}
}