xiaoyong931011
2023-08-08 11f6a8c911c5ef241f42953976661a249aa8b83e
src/test/java/cc/mrbird/febs/ChainTest.java
@@ -49,16 +49,16 @@
//    @Autowired
//    private BscCoinContractEvent bscCoinContractEvent;
//
    @Test
    public void chainListener(){
        String address = "0x7BD9454852459EF0314A8631e3f6dD293a4d7044";
        BigDecimal amount = new BigDecimal("0.01");
        String hash = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL_CONTRACT.name()).transferUSDT(address, amount);
        System.out.println(hash);
    }
//    @Test
//    public void chainListener(){
//        String address = "0xA60AaC0da34C76F3f60207ee09e9F75043319ab4";
//        BigDecimal amount = new BigDecimal("0.01");
//
//        String hash = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL_CONTRACT.name()).transferUSDT(address, amount);
//
//        System.out.println(hash);
//
//    }
//
//
//    @Test
@@ -83,7 +83,7 @@
//            HttpService service = new HttpService("https://bsc-dataseed1.ninicoin.io");
//            Web3j web3j = Web3j.build(service);
//
////            EthFilter filter = getFilter(startBlock, null, "0xd9076245473060dda1a65f5f3d89a4d0598995e6");
////            EthFilter filter = getFilter(startBlock, null, "0xA60AaC0da34C76F3f60207ee09e9F75043319ab4");
////
////            Flowable<Log> eventFlowable = web3j.ethLogFlowable(filter);
////            Disposable subscribe = eventFlowable.subscribe(log -> {