Package net.finmath.pontes.erc7573
Class PontesYamlBridges
java.lang.Object
net.finmath.pontes.erc7573.PontesYamlBridges
Composes Pontes mappings using oracle-bridge YAML selected by application configuration.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 IOExceptionCompatibility 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 IOExceptionDirect 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
-