// TODO: alternatively we can just take a json string here and pass that directly to the ffi for librgb
@ReactMethod
    public void issue( // TODO: alternatively we can just take a json string here and pass that directly to the ffi for librgb
            int alloc_coins,
            String alloc_outpoint,
            String network,
            String ticker,
            String name,
            String description,
            int precision,
            Promise promise) {
        try {
            final Runtime runtime = ((MainApplication) getCurrentActivity().getApplication()).getRuntime();
            final OutpointCoins allocation = new OutpointCoins((long) alloc_coins, alloc_outpoint);
            runtime.issue(network, ticker, name, description, precision, Arrays.asList(allocation), new HashSet<OutpointCoins>(), null, null);
            WritableMap map = Arguments.createMap();
            promise.resolve(map);
        } catch (Exception e) {
            promise.reject(e);
        }
    }
@ReactMethod
public void issue( // TODO: alternatively we can just take a json string here and pass that directly to the ffi for librgb
int alloc_coins,
String alloc_outpoint,
@ReactMethod
public void issue( // TODO: alternatively we can just take a json string here and pass that directly to the ffi for librgb
int alloc_coins,
String alloc_outpoint,
String network,
String ticker,
String name,
String description,
int precision,
Promise promise) {
try {
final Runtime runtime = ((MainApplication) getCurrentActivity().getApplication()).getRuntime();
@ReactMethod
public void issue( // TODO: alternatively we can just take a json string here and pass that directly to the ffi for librgb
int alloc_coins,
String alloc_outpoint,
String network,
String ticker,
String name,
String description,
int precision,
Promise promise) {
try {
final Runtime runtime = ((MainApplication) getCurrentActivity().getApplication()).getRuntime();
final OutpointCoins allocation = new OutpointCoins((long) alloc_coins, alloc_outpoint);
runtime.issue(network, ticker, name, description, precision, Arrays.asList(allocation), new HashSet<OutpointCoins>(), null, null);
WritableMap map = Arguments.createMap();
promise.resolve(map);
} catch (Exception e) {
promise.reject(e);
}
}