io.everitoken.sdk.java.abi.IssueTokenAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chain-sdk Show documentation
Show all versions of chain-sdk Show documentation
Official Java SDK for everiToken public chain. https://www.everitoken.io
package io.everitoken.sdk.java.abi;
import java.util.List;
import java.util.stream.Collectors;
import com.alibaba.fastjson.annotation.JSONField;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import io.everitoken.sdk.java.Address;
public class IssueTokenAction extends Abi {
@JSONField(deserialize = false, serialize = false)
private static final String key = ".issue";
@JSONField(deserialize = false, serialize = false)
private static final String name = "issuetoken";
private final List names;
private final List owner;
private IssueTokenAction(String domain, List names, List owner) {
super(name, key, domain);
this.names = names;
this.owner = owner;
}
@NotNull
@Contract("_, _, _ -> new")
public static IssueTokenAction of(String domain, List names, List owner) {
return new IssueTokenAction(domain, names, owner);
}
@Override
@JSONField(name = "domain")
public String getDomain() {
return super.getDomain();
}
public List getNames() {
return names;
}
public List getOwner() {
return owner.stream().map(Address::toString).collect(Collectors.toList());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy