From 4e9f5731f1e75dd6cdb77b2d24e4b0a1e92c0c70 Mon Sep 17 00:00:00 2001 From: Antonio Pancorbo <48168255+apancorb@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:03:20 +0000 Subject: [PATCH] feat(peg): add function constants to Bridge for proposed federation --- rskj-core/src/main/java/co/rsk/peg/Bridge.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rskj-core/src/main/java/co/rsk/peg/Bridge.java b/rskj-core/src/main/java/co/rsk/peg/Bridge.java index fda74195f2..edb00c37d8 100644 --- a/rskj-core/src/main/java/co/rsk/peg/Bridge.java +++ b/rskj-core/src/main/java/co/rsk/peg/Bridge.java @@ -156,6 +156,17 @@ public class Bridge extends PrecompiledContracts.PrecompiledContract { // Returns the block number of the creation of the retiring federation public static final CallTransaction.Function GET_RETIRING_FEDERATION_CREATION_BLOCK_NUMBER = BridgeMethods.GET_RETIRING_FEDERATION_CREATION_BLOCK_NUMBER.getFunction(); + // Returns the proposed federation bitcoin address + public static final CallTransaction.Function GET_PROPOSED_FEDERATION_ADDRESS = BridgeMethods.GET_PROPOSED_FEDERATION_ADDRESS.getFunction(); + // Returns the number of federates in the proposed federation + public static final CallTransaction.Function GET_PROPOSED_FEDERATION_SIZE = BridgeMethods.GET_PROPOSED_FEDERATION_SIZE.getFunction(); + // Returns the public key of given type the federator at the specified index for the current proposed federation + public static final CallTransaction.Function GET_PROPOSED_FEDERATOR_PUBLIC_KEY_OF_TYPE = BridgeMethods.GET_PROPOSED_FEDERATOR_PUBLIC_KEY_OF_TYPE.getFunction(); + // Returns the creation time of the proposed federation + public static final CallTransaction.Function GET_PROPOSED_FEDERATION_CREATION_TIME = BridgeMethods.GET_PROPOSED_FEDERATION_CREATION_TIME.getFunction(); + // Returns the block number of the creation of the proposed federation + public static final CallTransaction.Function GET_PROPOSED_FEDERATION_CREATION_BLOCK_NUMBER = BridgeMethods.GET_PROPOSED_FEDERATION_CREATION_BLOCK_NUMBER.getFunction(); + // Creates a new pending federation and returns its id public static final CallTransaction.Function CREATE_FEDERATION = BridgeMethods.CREATE_FEDERATION.getFunction(); // Adds the given key to the current pending federation