Class PontesYamlBridges

java.lang.Object
net.finmath.pontes.erc7573.PontesYamlBridges

public final class PontesYamlBridges extends Object
Composes Pontes mappings using oracle-bridge YAML selected by application configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>>
    direct(net.finmath.chainoracle.bridge.config.BridgeComponents components, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml)
     
    static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>>
    direct(net.finmath.chainoracle.bridge.OracleBridge<?,?> mapping, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks)
    Direct payment has its own source contract, finality, cursor and listener lease.
    static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>>
    direct(net.finmath.chainoracle.bridge.OracleBridge<?,?> mapping, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml)
     
    static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>>
    participant(List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> mappings, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks)
    Compatibility entry point for handwritten-vs-YAML behavioral tests.
    static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>>
    participant(List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> mappings, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml)
     
    static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>>
    participant(net.finmath.chainoracle.bridge.config.BridgeComponents components, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml)
    Application entry point: local protocol functions are registered before YAML is loaded.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • participant

      public static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> participant(List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> mappings, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks) throws IOException
      Compatibility entry point for handwritten-vs-YAML behavioral tests.
      Throws:
      IOException
    • participant

      public static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> participant(List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> mappings, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml) throws IOException
      Throws:
      IOException
    • participant

      public static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> participant(net.finmath.chainoracle.bridge.config.BridgeComponents components, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml) throws IOException
      Application entry point: local protocol functions are registered before YAML is loaded.
      Throws:
      IOException
    • direct

      public static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> direct(net.finmath.chainoracle.bridge.OracleBridge<?,?> mapping, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks) throws IOException
      Direct payment has its own source contract, finality, cursor and listener lease.
      Throws:
      IOException
    • direct

      public static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> direct(net.finmath.chainoracle.bridge.OracleBridge<?,?> mapping, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml) throws IOException
      Throws:
      IOException
    • direct

      public static List<net.finmath.chainoracle.bridge.OracleBridge<?,?>> direct(net.finmath.chainoracle.bridge.config.BridgeComponents components, org.web3j.protocol.Web3j rpc, String contract, long finalityBlocks, InputStream yaml) throws IOException
      Throws:
      IOException