All Downloads are FREE. Search and download functionalities are using the official Maven repository.

im.mak.paddle.actions.data.Entry Maven / Gradle / Ivy

Go to download

Paddle library helps developers to write tests for smart contracts on Waves blockchain

There is a newer version: 1.0.0-rc12
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy