| | |
| | | |
| | | @PostMapping("/update") |
| | | public Result<?> list(@RequestBody UpdateAddressModel model) { |
| | | String name = model.getCoin()+"_"+model.getChain(); |
| | | String name = model.getCoin().toLowerCase()+"_"+model.getChain().toLowerCase(); |
| | | try { |
| | | if(model.getCoin().equals("eth") || model.getCoin().equals("btc")){ |
| | | name = model.getCoin(); |
| | |
| | | ETH("eth", "ETH","eth"), |
| | | BTC("btc", "BTC","btc"), |
| | | USDC_TRC20("usdc", "TRC20","usdc_trc20"), |
| | | USDC_ERC20("usdc", "ERC20","usdc_erc20"); |
| | | USDC_ERC20("usdc", "ERC20(1)","usdc_erc20(1)"), |
| | | USDC_ERC202("usdc", "ERC20(2)","usdc_erc20(2)"); |
| | | |
| | | private final String coin; |
| | | private final String chain; |
| | |
| | | String USDT_ERC20 = "usdt_erc20"; |
| | | String ETH = "eth"; |
| | | String BTC = "btc"; |
| | | String USDC_TRC20 = "usdc_trc20"; |
| | | String USDC_ERC20 = "usdc_erc20"; |
| | | // String USDC_TRC20 = "usdc_trc20"; |
| | | // String USDC_ERC20 = "usdc_erc20"; |
| | | String USDC_ERC20 = "usdc_erc20(1)"; |
| | | // 加密并保存 |
| | | // encryptAndStore(password, "1111111111", USDT_TRC20); |
| | | // encryptAndStore(password,"222222222",USDT_ERC20); |
| | | encryptAndStore(password,"3333333333",ETH); |
| | | encryptAndStore(password,"3333333333",USDC_ERC20); |
| | | // encryptAndStore(password,"我是BTC",BTC); |
| | | // encryptAndStore(password,"44444444444444",USDC_TRC20); |
| | | // encryptAndStore(password,"55555555555555",USDC_ERC20); |