GnosisSafe { public String getAddOwnerWithThresholdExecutableData(String ownerAddress, String threshHold) { Function function = new Function( ADD_OWNER_WITH_THRESHHOLD, Arrays.asList(new Address(ownerAddress), new Uint256(new BigInteger(threshHold))), Collections.emptyList()); return FunctionEncoder.encode(function); } GnosisSafe(); String getAuthorizeSessionExecutableData(String sessionAddress, String spendingLimit, String expirationHeight); String getAuthorizeSessionData(String sessionAddress, String spendingLimit, String expirationHeight); String getAddOwnerWithThresholdExecutableData(String ownerAddress, String threshHold); String transactionHash(String deviceManagerAddress, String data, String nonce); JSONObject getSafeTxData(String to, String verifyingContract ,String value, String data, String operation, String safeTxGas, String dataGas, String gasPrice, String gasToken, String refundReceiver, String nonce); String getRemoveOwnerWithThresholdExecutableData(String prevOwner, String ownerToRemove); String getRemoveOwnerWithThresholdCallData(String prevOwner, String ownerToRemove); String getAddOwnerWithThresholdCallData(String ownerAddress); String getAddOwnerWithThresholdCallData(String ownerAddress, String threshHold); String getAddOwnerWithThresholdExecutableData(String ownerAddress);  }
@Test public void testAddOwnerWithThreshold() { String expectedOutput = "0x0d582f1300000000000000000000000098443ba43e5a55ff9c0ebeddfd1db32d7b1a" + "949a0000000000000000000000000000000000000000000000000000000000000001"; String encodeMessage = new GnosisSafe().getAddOwnerWithThresholdExecutableData( "0x98443bA43e5a55fF9c0EbeDdfd1db32d7b1A949A", "1"); assertEquals(expectedOutput, encodeMessage); }