├── .idea
├── .name
├── encodings.xml
├── vcs.xml
├── modules.xml
├── misc.xml
├── libraries
│ ├── Maven__junit_junit_4_12.xml
│ ├── Maven__org_ow2_asm_asm_5_0_4.xml
│ ├── Maven__org_yaml_snakeyaml_1_19.xml
│ ├── Maven__net_minidev_json_smart_2_3.xml
│ ├── Maven__org_objenesis_objenesis_2_6.xml
│ ├── Maven__com_alibaba_fastjson_1_2_38.xml
│ ├── Maven__org_slf4j_slf4j_api_1_7_25.xml
│ ├── Maven__com_google_code_gson_gson_2_8_2.xml
│ ├── Maven__commons_io_commons_io_1_3_2.xml
│ ├── Maven__com_fasterxml_classmate_1_3_4.xml
│ ├── Maven__com_google_guava_guava_24_0_jre.xml
│ ├── Maven__org_hamcrest_hamcrest_core_1_3.xml
│ ├── Maven__net_bytebuddy_byte_buddy_1_7_11.xml
│ ├── Maven__org_assertj_assertj_core_3_9_1.xml
│ ├── Maven__org_projectlombok_lombok_1_16_22.xml
│ ├── Maven__org_slf4j_jul_to_slf4j_1_7_25.xml
│ ├── Maven__org_xmlunit_xmlunit_core_2_5_1.xml
│ ├── Maven__io_reactivex_rxjava2_rxjava_2_1_10.xml
│ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml
│ ├── Maven__commons_codec_commons_codec_1_11.xml
│ ├── Maven__net_minidev_accessors_smart_1_2.xml
│ ├── Maven__org_mockito_mockito_core_2_15_0.xml
│ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml
│ ├── Maven__com_google_code_findbugs_jsr305_1_3_9.xml
│ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml
│ ├── Maven__org_hamcrest_hamcrest_library_1_3.xml
│ ├── Maven__org_apache_commons_commons_lang3_3_4.xml
│ ├── Maven__io_netty_netty_codec_4_1_25_Final.xml
│ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml
│ ├── Maven__io_netty_netty_buffer_4_1_25_Final.xml
│ ├── Maven__io_netty_netty_common_4_1_25_Final.xml
│ ├── Maven__org_apache_httpcomponents_httpcore_4_4_9.xml
│ ├── Maven__io_netty_netty_handler_4_1_25_Final.xml
│ ├── Maven__javax_servlet_javax_servlet_api_4_0_0.xml
│ ├── Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml
│ ├── Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml
│ ├── Maven__io_netty_netty_resolver_4_1_25_Final.xml
│ ├── Maven__org_apache_httpcomponents_httpclient_4_5_6.xml
│ ├── Maven__com_google_j2objc_j2objc_annotations_1_1.xml
│ ├── Maven__io_lettuce_lettuce_core_5_0_4_RELEASE.xml
│ ├── Maven__io_netty_netty_transport_4_1_25_Final.xml
│ ├── Maven__org_reactivestreams_reactive_streams_1_0_2.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml
│ ├── Maven__org_springframework_spring_tx_5_0_7_RELEASE.xml
│ ├── Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml
│ ├── Maven__javax_annotation_javax_annotation_api_1_3_2.xml
│ ├── Maven__javax_validation_validation_api_2_0_1_Final.xml
│ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml
│ ├── Maven__org_springframework_spring_aop_5_0_7_RELEASE.xml
│ ├── Maven__org_springframework_spring_jcl_5_0_7_RELEASE.xml
│ ├── Maven__org_springframework_spring_oxm_5_0_7_RELEASE.xml
│ ├── Maven__org_springframework_spring_web_5_0_7_RELEASE.xml
│ ├── Maven__io_projectreactor_reactor_core_3_1_8_RELEASE.xml
│ ├── Maven__org_springframework_spring_core_5_0_7_RELEASE.xml
│ ├── Maven__org_springframework_spring_test_5_0_7_RELEASE.xml
│ ├── Maven__org_checkerframework_checker_compat_qual_2_0_0.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml
│ ├── Maven__org_springframework_spring_beans_5_0_7_RELEASE.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml
│ ├── Maven__org_springframework_spring_webmvc_5_0_7_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_context_5_0_7_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
│ ├── Maven__org_codehaus_mojo_animal_sniffer_annotations_1_14.xml
│ ├── Maven__com_google_errorprone_error_prone_annotations_2_1_3.xml
│ ├── Maven__org_springframework_spring_expression_5_0_7_RELEASE.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml
│ ├── Maven__org_springframework_boot_spring_boot_test_2_0_3_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml
│ ├── Maven__org_hibernate_validator_hibernate_validator_6_0_10_Final.xml
│ ├── Maven__org_springframework_data_spring_data_redis_2_0_8_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_data_spring_data_commons_2_0_8_RELEASE.xml
│ ├── Maven__org_springframework_spring_context_support_5_0_7_RELEASE.xml
│ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
│ ├── Maven__org_springframework_data_spring_data_keyvalue_2_0_8_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_0_3_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml
│ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_data_redis_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_properties_migrator_2_0_3_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_configuration_metadata_2_0_3_RELEASE.xml
│ └── Maven__org_springframework_boot_spring_boot_configuration_processor_2_0_3_RELEASE.xml
└── compiler.xml
├── screenshots
├── get_info.png
├── shieldserver.01.png
└── shieldserver.02.png
├── src
└── main
│ ├── java
│ └── com
│ │ └── oraclechain
│ │ └── eosio
│ │ ├── utils
│ │ ├── PreferencesHelper.java
│ │ ├── MyStringUtils.java
│ │ ├── URLEncodeUtil.java
│ │ ├── JsonUtils.java
│ │ ├── EosEstimateRsc.java
│ │ ├── EosErrorUtils.java
│ │ ├── EoscGsonTypeAdapterFactory.java
│ │ └── EosTxUtils.java
│ │ ├── eosTypes
│ │ ├── TypeScopeName.java
│ │ ├── TypeExtension.java
│ │ ├── TypeSharedLock.java
│ │ ├── EosBuyRam.java
│ │ ├── TypeWaitWeight.java
│ │ ├── TypePublicKey.java
│ │ ├── EosBuyRamBytes.java
│ │ ├── TypePermissionName.java
│ │ ├── TypeActionName.java
│ │ ├── EosDelegate.java
│ │ ├── TypeKeyWeight.java
│ │ ├── TypeChainId.java
│ │ ├── TypePermissionLevelWeight.java
│ │ ├── TypeAccountName.java
│ │ ├── TypePermissionLevel.java
│ │ ├── EosType.java
│ │ ├── TypeAuthority.java
│ │ ├── TypeName.java
│ │ └── EosByteReader.java
│ │ ├── dto
│ │ ├── EosRefValue.java
│ │ ├── ReqAssetsInfo.java
│ │ ├── Sparklines.java
│ │ ├── RspAssetsInfo.java
│ │ ├── UserAsset.java
│ │ ├── NewDexTicker.java
│ │ ├── ExchangeRate.java
│ │ └── MessageResult.java
│ │ ├── eosApi
│ │ ├── GetCodeRequest.java
│ │ ├── GetCurrencyInfo.java
│ │ ├── AccountInfoRequest.java
│ │ ├── Key.java
│ │ ├── GetTableRequest.java
│ │ ├── JsonToBinResponse.java
│ │ ├── GetCodeResponse.java
│ │ ├── GetRequiredKeys.java
│ │ ├── RequiredKeysResponse.java
│ │ ├── JsonToBinRequest.java
│ │ ├── Permission.java
│ │ ├── RequiredAuth.java
│ │ ├── PushTxnResponse.java
│ │ ├── EosChainInfo.java
│ │ └── EosNewAccount.java
│ │ ├── exceptions
│ │ ├── ExceptionsFC.java
│ │ ├── ExceptionsChain.java
│ │ └── ErrorCodeEnumFC.java
│ │ ├── chain
│ │ ├── DataAccessInfo.java
│ │ ├── ActionTrace.java
│ │ ├── TransactionReceiptHeader.java
│ │ ├── TransactionTrace.java
│ │ ├── Transaction.java
│ │ ├── SignedTransaction.java
│ │ ├── TransactionHeader.java
│ │ ├── Action.java
│ │ └── PackedTransaction.java
│ │ ├── service
│ │ ├── RedisService.java
│ │ ├── BlockServiceEos.java
│ │ └── impl
│ │ │ └── RedisServiceImpl.java
│ │ ├── controller
│ │ ├── HistoryController.java
│ │ ├── AdvancedQueryController.java
│ │ └── ChainController.java
│ │ ├── crypto
│ │ ├── ec
│ │ │ ├── CurveParam.java
│ │ │ └── EcCurve.java
│ │ ├── digest
│ │ │ ├── Sha512.java
│ │ │ ├── GeneralDigest.java
│ │ │ └── Sha256.java
│ │ └── util
│ │ │ └── CryptUtil.java
│ │ ├── EosBlockchainApplication.java
│ │ └── constants
│ │ └── Variables.java
│ └── resources
│ ├── application.yml
│ └── banner.txt
├── .gitignore
└── pom.xml
/.idea/.name:
--------------------------------------------------------------------------------
1 | eos_proxy_server
--------------------------------------------------------------------------------
/screenshots/get_info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OracleChain/EosProxyServer/HEAD/screenshots/get_info.png
--------------------------------------------------------------------------------
/screenshots/shieldserver.01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OracleChain/EosProxyServer/HEAD/screenshots/shieldserver.01.png
--------------------------------------------------------------------------------
/screenshots/shieldserver.02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OracleChain/EosProxyServer/HEAD/screenshots/shieldserver.02.png
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/utils/PreferencesHelper.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.utils;
2 |
3 | public class PreferencesHelper {
4 | }
5 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosTypes/TypeScopeName.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosTypes;
2 |
3 | /**
4 | * Created by swapnibble on 2018-04-04.
5 | */
6 |
7 | public class TypeScopeName extends TypeName {
8 | public TypeScopeName(String name) {
9 | super(name);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/dto/EosRefValue.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.dto;
2 |
3 | public class EosRefValue {
4 | public T data;
5 |
6 | public EosRefValue(){
7 | data = null;
8 | }
9 |
10 | public EosRefValue(T initialVal ){
11 | data = initialVal;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosTypes/TypeExtension.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosTypes;
2 |
3 | /**
4 | * Created by swapnibble on 2018-05-16.
5 | */
6 | public class TypeExtension implements EosType.Packer{
7 |
8 |
9 |
10 | @Override
11 | public void pack(EosType.Writer writer) {
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/dto/ReqAssetsInfo.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.dto;
2 |
3 |
4 | import lombok.Data;
5 |
6 | @Data
7 | public class ReqAssetsInfo {
8 |
9 |
10 | private String account_name;
11 | private String contract_name;
12 | private String token_symbol;
13 | private String coinmarket_id;
14 |
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosTypes/TypeSharedLock.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosTypes;
2 |
3 | import com.google.gson.annotations.Expose;
4 |
5 | /**
6 | * Created by swapnibble on 2018-04-04.
7 | */
8 |
9 | public class TypeSharedLock {
10 | @Expose
11 | private TypeAccountName account;
12 |
13 | @Expose
14 | private TypeScopeName scope;
15 | }
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled class file
2 | *.class
3 | .DS_Store
4 | test
5 | target
6 | .idea
7 |
8 | # Log file
9 | *.log
10 |
11 | # BlueJ files
12 | *.ctxt
13 |
14 | # Mobile Tools for Java (J2ME)
15 | .mtj.tmp/
16 |
17 | # Package Files #
18 | *.jar
19 | *.war
20 | *.nar
21 | *.ear
22 | *.zip
23 | *.tar.gz
24 | *.rar
25 |
26 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
27 | hs_err_pid*
28 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/GetCodeRequest.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.annotations.Expose;
5 | import com.google.gson.annotations.SerializedName;
6 |
7 | public class GetCodeRequest {
8 | @SerializedName("account_name")
9 | @Expose
10 | private String name;
11 |
12 | public GetCodeRequest(String accountName){
13 | name = accountName;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__junit_junit_4_12.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/GetCurrencyInfo.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 | import lombok.Data;
4 |
5 | @Data
6 | public class GetCurrencyInfo
7 | {
8 |
9 | private String code;
10 | private String account;
11 | private String symbol;
12 |
13 |
14 | @Override
15 | public String toString() {
16 | return "GetCurrencyInfo: [code=" + code
17 | + ", account=" + account
18 | + ", symbol=" + symbol
19 | + "]";
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_alibaba_fastjson_1_2_38.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_google_code_gson_gson_2_8_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__commons_io_commons_io_1_3_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/dto/Sparklines.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.dto;
2 |
3 |
4 | import lombok.Data;
5 |
6 | @Data
7 | public class Sparklines {
8 | private String sparkline_eos_png;
9 | private String sparkline_oct_png;
10 | private String sparkline_iq_png;
11 |
12 |
13 | @Override
14 | public String toString() {
15 | return "Sparklines: [sparkline_eos_png=" + sparkline_eos_png
16 | + ", sparkline_oct_png=" + sparkline_oct_png
17 | + ", sparkline_iq_png=" + sparkline_iq_png
18 | + "]";
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/AccountInfoRequest.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 | import com.google.gson.annotations.Expose;
4 |
5 | /**
6 | * Created by swapnibble on 2017-09-14.
7 | */
8 |
9 | public class AccountInfoRequest {
10 |
11 | @Expose
12 | private String account_name;
13 |
14 | public AccountInfoRequest(String name) {
15 | setName(name);
16 | }
17 |
18 | public String getName() {
19 | return account_name;
20 | }
21 |
22 | public void setName(String name) {
23 | this.account_name = name;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8080
3 | spring:
4 | mvc:
5 | throw-exception-if-no-handler-found: true
6 | resources:
7 | add-mappings: false
8 | redis:
9 | host: xxx
10 | port: 6688
11 | database: 0
12 | password: xxx
13 | timeout: 3000
14 | jedis:
15 | pool:
16 | max-active: 10
17 | max-idle: 5
18 | min-idle: 1
19 | max-wait: 5000
20 | logging:
21 | path: /opt/java_logs/blockchain
22 | file:
23 | max-size: 100MB
24 | max-history: 365
25 | pattern:
26 | console: "%d{yyyy-MM-dd HH:mm:ss} - %msg%n"
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_google_guava_guava_24_0_jre.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_projectlombok_lombok_1_16_22.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_reactivex_rxjava2_rxjava_2_1_10.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/dto/RspAssetsInfo.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.dto;
2 |
3 |
4 | import com.google.gson.annotations.Expose;
5 | import lombok.Data;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | @Data
11 | public class RspAssetsInfo {
12 |
13 |
14 |
15 | @Expose
16 | private List user_asset_list = null;
17 |
18 | public void addUserAsset(UserAsset userAsset ){
19 | if ( null == user_asset_list) {
20 | user_asset_list = new ArrayList<>(1);
21 | }
22 | user_asset_list.add( userAsset);
23 | }
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__commons_codec_commons_codec_1_11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_google_code_findbugs_jsr305_1_3_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/Key.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.annotations.Expose;
5 |
6 | public class Key {
7 |
8 | @Expose
9 | private String key;
10 |
11 | @Expose
12 | private Integer weight;
13 |
14 | public String getKey() {
15 | return key;
16 | }
17 |
18 | public void setKey(String key) {
19 | this.key = key;
20 | }
21 |
22 | public Integer getWeight() {
23 | return weight;
24 | }
25 |
26 | public void setWeight(Integer weight) {
27 | this.weight = weight;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosTypes/EosBuyRam.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosTypes;
2 |
3 | public class EosBuyRam {
4 |
5 | private String payer;
6 |
7 | private String receiver;
8 |
9 | private String quant;
10 |
11 | public String getActionName() {
12 | return "buyram";
13 | }
14 |
15 | public EosBuyRam(String payer, String receiver, String quant ) {
16 | // this.payer = new TypeAccountName(payer);
17 | // this.receiver = new TypeAccountName(receiver);
18 | this.payer = payer;
19 | this.receiver = receiver;
20 | this.quant = quant;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_netty_netty_codec_4_1_25_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_netty_netty_buffer_4_1_25_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_netty_netty_common_4_1_25_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/GetTableRequest.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 | import com.google.gson.annotations.Expose;
4 |
5 | /**
6 | * Created by swapnibble on 2017-09-15.
7 | */
8 |
9 | public class GetTableRequest {
10 | @Expose
11 | private boolean json = true;
12 |
13 | @Expose
14 | private String scope;
15 |
16 | @Expose
17 | private String code;
18 |
19 | @Expose
20 | private String table;
21 |
22 | public GetTableRequest( String scope, String code, String table ) {
23 | this.scope = scope;
24 | this.code = code;
25 | this.table = table;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_netty_netty_handler_4_1_25_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__javax_servlet_javax_servlet_api_4_0_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_netty_netty_resolver_4_1_25_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/exceptions/ExceptionsFC.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.exceptions;
2 |
3 | public class ExceptionsFC extends RuntimeException {
4 |
5 | public ExceptionsFC(ErrorCodeEnumFC errorCode) {
6 | this.errorCode = errorCode;
7 | }
8 | public ExceptionsFC(int errorCode) {
9 | this.errorCode = ErrorCodeEnumFC.getEnumById(errorCode);
10 | }
11 |
12 | private ErrorCodeEnumFC errorCode;
13 | public ErrorCodeEnumFC getErrorCode() {
14 | return errorCode;
15 | }
16 | public void setErrorCode(ErrorCodeEnumFC errorCode) {
17 | this.errorCode = errorCode;
18 | }
19 |
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_lettuce_lettuce_core_5_0_4_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosTypes/TypeWaitWeight.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosTypes;
2 |
3 | /**
4 | * Created by swapnibble on 2018-05-17.
5 | */
6 | public class TypeWaitWeight implements EosType.Packer {
7 | private int mWaitSec; // uint32_t
8 | private short mWeight;
9 |
10 | public TypeWaitWeight( long uint32WaitSec, int uint16Weight){
11 | mWaitSec= (int)( uint32WaitSec & 0xFFFFFFFF );
12 | mWeight = (short)( uint16Weight & 0xFFFF );
13 | }
14 |
15 | @Override
16 | public void pack(EosType.Writer writer) {
17 | writer.putIntLE( mWaitSec );
18 | writer.putShortLE( mWeight);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_netty_netty_transport_4_1_25_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/chain/DataAccessInfo.java:
--------------------------------------------------------------------------------
1 |
2 | package com.oraclechain.eosio.chain;
3 |
4 | import com.google.gson.annotations.Expose;
5 | import com.oraclechain.eosio.eosTypes.TypeAccountName;
6 | import com.oraclechain.eosio.eosTypes.TypeScopeName;
7 |
8 | /**
9 | * Created by swapnibble on 2018-03-20.
10 | */
11 |
12 | public class DataAccessInfo {
13 | //public enum Type { read, write };
14 |
15 | @Expose
16 | private String type; // access type
17 |
18 | @Expose
19 | private TypeAccountName code;
20 |
21 | @Expose
22 | private TypeScopeName scope;
23 |
24 | @Expose
25 | private long sequence; // uint64_t
26 | }
27 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/chain/ActionTrace.java:
--------------------------------------------------------------------------------
1 |
2 | package com.oraclechain.eosio.chain;
3 | import com.google.gson.annotations.Expose;
4 |
5 | import java.util.List;
6 |
7 | /**
8 | * Created by swapnibble on 2018-03-20.
9 | */
10 |
11 | public class ActionTrace {
12 | @Expose
13 | public String receiver;
14 |
15 | @Expose
16 | public boolean context_free;
17 |
18 | @Expose
19 | public long cpu_usage;
20 |
21 | @Expose
22 | public Action act;
23 |
24 | @Expose
25 | public String console;
26 |
27 | @Expose
28 | public List data_access;
29 |
30 | @Expose
31 | public long auths_used; // uint32_t
32 | }
33 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_tx_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_aop_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_oxm_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_web_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/exceptions/ExceptionsChain.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.exceptions;
2 |
3 | public class ExceptionsChain extends RuntimeException {
4 |
5 |
6 | public ExceptionsChain(ErrorCodeEnumChain errorCode) {
7 | this.errorCode = errorCode;
8 | }
9 |
10 | public ExceptionsChain(int errorCode) {
11 | this.errorCode = ErrorCodeEnumChain.getEnumById(errorCode);
12 | }
13 |
14 |
15 | private ErrorCodeEnumChain errorCode;
16 | public ErrorCodeEnumChain getErrorCode() {
17 | return errorCode;
18 | }
19 | public void setErrorCode(ErrorCodeEnumChain errorCode) {
20 | this.errorCode = errorCode;
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_projectreactor_reactor_core_3_1_8_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_core_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_test_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/dto/UserAsset.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.dto;
2 |
3 | import lombok.Data;
4 |
5 | @Data
6 | public class UserAsset {
7 |
8 | private String account_name;
9 | private String contract_name;
10 | private String token_symbol;
11 |
12 | private String balance;
13 | private String balance_usd;
14 | private String balance_cny;
15 |
16 | private String coinmarket_id;
17 | private String asset_price_usd;
18 | private String asset_price_cny;
19 | private String asset_price_change_in_24h;
20 | private String asset_market_cap_usd;
21 | private String asset_market_cap_cny;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_checkerframework_checker_compat_qual_2_0_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_beans_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_context_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_14.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_1_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_expression_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/JsonToBinResponse.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 | import com.google.gson.annotations.Expose;
4 |
5 | import java.util.List;
6 |
7 | /**
8 | * Created by swapnibble on 2017-11-17.
9 | */
10 |
11 | public class JsonToBinResponse {
12 | @Expose
13 | private String binargs;
14 |
15 | @Expose
16 | private List required_scope;
17 |
18 | @Expose
19 | private List required_auth;
20 |
21 | public String getBinargs() {
22 | return binargs;
23 | }
24 |
25 | public List getRequiredScope(){
26 | return required_scope;
27 | }
28 |
29 | public List getRequiredAuth(){
30 | return required_auth;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/GetCodeResponse.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.JsonObject;
5 | import com.google.gson.annotations.Expose;
6 | import com.oraclechain.eosio.crypto.digest.Sha256;
7 | import org.apache.commons.lang3.StringUtils;
8 |
9 | public class GetCodeResponse {
10 | @Expose
11 | private String account_name;
12 |
13 | @Expose
14 | private String wast;
15 |
16 | @Expose
17 | private String code_hash;
18 |
19 | @Expose
20 | private JsonObject abi;
21 |
22 | public JsonObject getAbi() { return abi; }
23 |
24 | public boolean isValidCode() {
25 | return ! ( StringUtils.isEmpty(code_hash) || Sha256.ZERO_HASH.toString().equals( code_hash ));
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_10_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_0_8_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_0_8_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_context_support_5_0_7_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_0_8_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/service/RedisService.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.service;
2 |
3 | public interface RedisService {
4 |
5 |
6 |
7 | public String get(String key);
8 | public void delete(String key);
9 |
10 | public void set(String key,String value);
11 | public void set(String key,String value,long expireTime);
12 | public void set(String key, Object value);
13 | public void set(String key, Object value, long expireTime);
14 | public void setnx(String key, Object value, long expireTime);
15 | public boolean exists(final String key);
16 |
17 |
18 | /**
19 | * 获取key所对应的对象
20 | * @param key
21 | * @param clazz 目标对象
22 | * @param 泛型
23 | * @return
24 | */
25 | public T get(String key, Class clazz);
26 |
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/GetRequiredKeys.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.annotations.Expose;
5 | import com.oraclechain.eosio.chain.SignedTransaction;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | /**
11 | * Created by swapnibble on 2017-11-15.
12 | */
13 |
14 | public class GetRequiredKeys {
15 | @Expose
16 | private SignedTransaction transaction;
17 |
18 | @Expose
19 | private List available_keys ;
20 |
21 | public GetRequiredKeys(SignedTransaction transaction, List keys ) {
22 | this.transaction = transaction;
23 |
24 | if ( null != keys ) {
25 | available_keys = new ArrayList<>(keys);
26 | }
27 | else {
28 | available_keys = new ArrayList<>();
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/resources/banner.txt:
--------------------------------------------------------------------------------
1 |
2 | _____ ___ ____ __
3 | /\ __`\ /\_ \ /\ _`\ /\ \ __
4 | \ \ \/\ \ _ __ __ ___\//\ \ __ \ \ \/\_\\ \ \___ __ /\_\ ___
5 | \ \ \ \ \/\`'__\/'__`\ /'___\\ \ \ /'__`\ \ \ \/_/_\ \ _ `\ /'__`\ \/\ \ /' _ `\
6 | \ \ \_\ \ \ \//\ \L\.\_/\ \__/ \_\ \_/\ __/ \ \ \L\ \\ \ \ \ \/\ \L\.\_\ \ \/\ \/\ \
7 | \ \_____\ \_\\ \__/.\_\ \____\/\____\ \____\ \ \____/ \ \_\ \_\ \__/.\_\\ \_\ \_\ \_\
8 | \/_____/\/_/ \/__/\/_/\/____/\/____/\/____/ \/___/ \/_/\/_/\/__/\/_/ \/_/\/_/\/_/
9 |
10 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/RequiredKeysResponse.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.annotations.Expose;
5 | import com.oraclechain.eosio.crypto.ec.EosPublicKey;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | /**
11 | * Created by swapnibble on 2017-11-15.
12 | */
13 |
14 | public class RequiredKeysResponse {
15 |
16 | @Expose
17 | private List required_keys ;
18 |
19 | public List getKeys() {
20 | if ( null == required_keys ){
21 | return new ArrayList<>();
22 | }
23 |
24 | ArrayList retKeys = new ArrayList<>(required_keys.size());
25 | for ( String pubKey: required_keys ){
26 | retKeys.add( new EosPublicKey( pubKey));
27 | }
28 |
29 | return retKeys;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/service/BlockServiceEos.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.service;
2 |
3 | import com.oraclechain.eosio.dto.ExchangeRate;
4 | import com.oraclechain.eosio.dto.UserAsset;
5 |
6 | import java.math.BigDecimal;
7 |
8 | public interface BlockServiceEos {
9 |
10 |
11 | ExchangeRate getRate(String external_id) throws Exception;
12 |
13 | BigDecimal getBalance(String baseUrl,
14 | String contractName,
15 | String tokenSymbol,
16 | String accountName) throws Exception;
17 |
18 | UserAsset getUserAssetInfo(String baseUrl,
19 | String accountName,
20 | String contractName,
21 | String tokenSymbol,
22 | String coinmarket_id) throws Exception;
23 | }
24 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_properties_migrator_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_metadata_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/JsonToBinRequest.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.JsonElement;
5 | import com.google.gson.JsonParser;
6 | import com.google.gson.annotations.Expose;
7 |
8 | /**
9 | * Created by swapnibble on 2017-11-17.
10 | */
11 |
12 | public class JsonToBinRequest {
13 | @Expose
14 | private String code;
15 |
16 | @Expose
17 | private String action;
18 |
19 | @Expose
20 | private JsonElement args;
21 |
22 | public JsonToBinRequest( String code, String action, String args ) {
23 | this.code = code;
24 | this.action = action;
25 | this.args = new JsonParser().parse( args );
26 | }
27 |
28 | public String getArgsString() {return args.getAsString();}
29 |
30 | public void putArgs(String args) {
31 | this.args = new JsonParser().parse(args);
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_0_3_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/Permission.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.annotations.Expose;
5 |
6 | public class Permission {
7 |
8 | @Expose
9 | private String name;
10 |
11 | @Expose
12 | private String parent;
13 |
14 | @Expose
15 | private RequiredAuth required_auth;
16 |
17 |
18 | public String getName() {
19 | return name;
20 | }
21 |
22 | public void setName(String name) {
23 | this.name = name;
24 | }
25 |
26 | public String getParent() {
27 | return parent;
28 | }
29 |
30 | public void setParent(String parent) {
31 | this.parent = parent;
32 | }
33 |
34 | public RequiredAuth getRequiredAuth() {
35 | return required_auth;
36 | }
37 |
38 | public void setRequiredAuth(RequiredAuth requiredAuth) {
39 | this.required_auth = requiredAuth;
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/com/oraclechain/eosio/eosApi/RequiredAuth.java:
--------------------------------------------------------------------------------
1 | package com.oraclechain.eosio.eosApi;
2 |
3 |
4 | import com.google.gson.annotations.Expose;
5 |
6 | import java.util.List;
7 |
8 | public class RequiredAuth {
9 |
10 | @Expose
11 | private Integer threshold;
12 |
13 | @Expose
14 | private List keys = null;
15 |
16 | @Expose
17 | private List