├── vendor ├── github.com │ ├── spf13 │ │ ├── pflag │ │ │ ├── go.sum │ │ │ ├── .gitignore │ │ │ ├── go.mod │ │ │ └── .travis.yml │ │ ├── viper │ │ │ ├── .gitignore │ │ │ ├── .editorconfig │ │ │ └── .golangci.yml │ │ ├── afero │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── .travis.yml │ │ │ └── appveyor.yml │ │ ├── cobra │ │ │ ├── command_notwin.go │ │ │ ├── fish_completions.md │ │ │ ├── .mailmap │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ └── command_win.go │ │ ├── cast │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ └── go.sum │ │ └── jwalterweatherman │ │ │ ├── go.mod │ │ │ └── .gitignore │ ├── buger │ │ └── jsonparser │ │ │ ├── go.sum │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ ├── fuzz.go │ │ │ ├── Dockerfile │ │ │ └── bytes_safe.go │ ├── ugorji │ │ └── go │ │ │ └── codec │ │ │ ├── go.sum │ │ │ ├── helper.s │ │ │ ├── go.mod │ │ │ ├── goversion_vendor_gte_go17.go │ │ │ ├── goversion_vendor_lt_go15.go │ │ │ ├── goversion_unexportedembeddedptr_gte_go110.go │ │ │ ├── goversion_unexportedembeddedptr_lt_go110.go │ │ │ ├── goversion_vendor_eq_go15.go │ │ │ ├── goversion_vendor_eq_go16.go │ │ │ ├── goversion_fmt_time_gte_go15.go │ │ │ ├── goversion_makemap_lt_go19.go │ │ │ ├── goversion_makemap_gte_go19.go │ │ │ ├── 0_importpath.go │ │ │ ├── codecgen.go │ │ │ ├── goversion_fmt_time_lt_go15.go │ │ │ ├── goversion_arrayof_gte_go15.go │ │ │ └── goversion_arrayof_lt_go15.go │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── .gitignore │ │ │ ├── go_below_17.go │ │ │ ├── go_above_17.go │ │ │ ├── .travis.yml │ │ │ ├── go_below_19.go │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ └── Gopkg.lock │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ └── log.go │ ├── GincoInc │ │ ├── zillean │ │ │ └── .travis.yml │ │ ├── jsonrpc │ │ │ ├── .gitignore │ │ │ └── go.mod │ │ └── go-crypto │ │ │ └── go.mod │ ├── subosito │ │ └── gotenv │ │ │ ├── .env │ │ │ ├── .env.invalid │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ └── appveyor.yml │ ├── rs │ │ └── cors │ │ │ ├── go.mod │ │ │ └── .travis.yml │ ├── ebfe │ │ └── keccak │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ └── shake.go │ ├── go-stack │ │ └── stack │ │ │ ├── go.mod │ │ │ └── .travis.yml │ ├── kardianos │ │ └── osext │ │ │ ├── go.mod │ │ │ ├── osext_go18.go │ │ │ └── osext_plan9.go │ ├── ethereum │ │ └── go-ethereum │ │ │ ├── crypto │ │ │ ├── secp256k1 │ │ │ │ └── libsecp256k1 │ │ │ │ │ ├── obj │ │ │ │ │ └── .gitignore │ │ │ │ │ ├── autogen.sh │ │ │ │ │ ├── TODO │ │ │ │ │ ├── src │ │ │ │ │ ├── modules │ │ │ │ │ │ ├── ecdh │ │ │ │ │ │ │ └── Makefile.am.include │ │ │ │ │ │ └── recovery │ │ │ │ │ │ │ └── Makefile.am.include │ │ │ │ │ ├── java │ │ │ │ │ │ └── org_bitcoin_Secp256k1Context.c │ │ │ │ │ └── scalar_low.h │ │ │ │ │ └── libsecp256k1.pc.in │ │ │ └── sha3 │ │ │ │ ├── keccakf_amd64.go │ │ │ │ ├── xor.go │ │ │ │ └── register.go │ │ │ ├── metrics │ │ │ ├── FORK.md │ │ │ ├── runtime_no_cgo.go │ │ │ ├── runtime_cgo.go │ │ │ ├── runtime_no_gccpufraction.go │ │ │ ├── runtime_gccpufraction.go │ │ │ └── validate.sh │ │ │ ├── log │ │ │ ├── CONTRIBUTORS │ │ │ ├── README_ETHEREUM.md │ │ │ ├── handler_go14.go │ │ │ ├── LICENSE │ │ │ └── handler_go13.go │ │ │ ├── Dockerfile.alltools │ │ │ └── Dockerfile │ ├── gorilla │ │ └── websocket │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── AUTHORS │ │ │ ├── trace_17.go │ │ │ ├── mask_safe.go │ │ │ ├── conn_write.go │ │ │ ├── client_clone.go │ │ │ ├── trace.go │ │ │ └── conn_write_legacy.go │ ├── jinzhu │ │ ├── gorm │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── test_all.sh │ │ │ ├── model.go │ │ │ └── go.mod │ │ └── inflection │ │ │ ├── go.mod │ │ │ └── wercker.yml │ ├── sirupsen │ │ └── logrus │ │ │ ├── .gitignore │ │ │ ├── terminal_check_js.go │ │ │ ├── terminal_check_appengine.go │ │ │ ├── terminal_check_no_terminal.go │ │ │ ├── go.mod │ │ │ ├── terminal_check_solaris.go │ │ │ ├── terminal_check_unix.go │ │ │ ├── appveyor.yml │ │ │ ├── terminal_check_bsd.go │ │ │ ├── terminal_check_notappengine.go │ │ │ ├── .travis.yml │ │ │ └── terminal_check_windows.go │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ ├── go.mod │ │ │ └── build.sh │ ├── pelletier │ │ └── go-toml │ │ │ ├── .gitignore │ │ │ ├── fuzz.sh │ │ │ └── fuzz.go │ ├── go-sql-driver │ │ └── mysql │ │ │ ├── go.mod │ │ │ ├── .gitignore │ │ │ └── conncheck_dummy.go │ ├── shopspring │ │ └── decimal │ │ │ ├── go.mod │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── magiconair │ │ └── properties │ │ │ ├── go.mod │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── asaskevich │ │ └── govalidator │ │ │ ├── go.mod │ │ │ ├── doc.go │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ └── wercker.yml │ ├── mattn │ │ └── go-isatty │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ ├── renovate.json │ │ │ ├── go.sum │ │ │ ├── .travis.yml │ │ │ ├── go.test.sh │ │ │ ├── isatty_others.go │ │ │ ├── isatty_tcgets.go │ │ │ ├── isatty_bsd.go │ │ │ └── isatty_plan9.go │ ├── mitchellh │ │ └── mapstructure │ │ │ ├── go.mod │ │ │ └── .travis.yml │ ├── jordan-wright │ │ └── email │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── fsnotify │ │ └── fsnotify │ │ │ ├── .editorconfig │ │ │ ├── .gitignore │ │ │ ├── open_mode_bsd.go │ │ │ ├── open_mode_darwin.go │ │ │ └── .travis.yml │ ├── hashicorp │ │ └── hcl │ │ │ ├── go.mod │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go.sum │ │ │ ├── Makefile │ │ │ ├── hcl │ │ │ └── parser │ │ │ │ └── error.go │ │ │ ├── appveyor.yml │ │ │ ├── hcl.go │ │ │ └── lex.go │ ├── lestrrat-go │ │ ├── file-rotatelogs │ │ │ ├── .travis.yml │ │ │ ├── Changes │ │ │ ├── .gitignore │ │ │ ├── event.go │ │ │ └── internal │ │ │ │ └── option │ │ │ │ └── option.go │ │ └── strftime │ │ │ ├── .golangci.yml │ │ │ ├── go.mod │ │ │ ├── .gitignore │ │ │ └── Makefile │ ├── gin-contrib │ │ └── sse │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ ├── writer.go │ │ │ └── go.sum │ ├── gin-gonic │ │ └── gin │ │ │ ├── .gitignore │ │ │ ├── codecov.yml │ │ │ ├── doc.go │ │ │ ├── version.go │ │ │ ├── context_appengine.go │ │ │ ├── go.mod │ │ │ ├── binding │ │ │ ├── uri.go │ │ │ └── query.go │ │ │ ├── test_helpers.go │ │ │ └── internal │ │ │ └── bytesconv │ │ │ └── bytesconv.go │ ├── leodido │ │ └── go-urn │ │ │ ├── .gitignore │ │ │ ├── go.mod │ │ │ └── .travis.yml │ ├── go-playground │ │ ├── locales │ │ │ ├── go.mod │ │ │ ├── logo.png │ │ │ ├── go.sum │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ │ ├── validator │ │ │ └── v10 │ │ │ │ ├── logo.png │ │ │ │ ├── go.mod │ │ │ │ ├── .gitignore │ │ │ │ ├── translations.go │ │ │ │ └── Makefile │ │ └── universal-translator │ │ │ ├── go.mod │ │ │ ├── logo.png │ │ │ ├── go.sum │ │ │ └── .gitignore │ ├── go-gomail │ │ └── gomail │ │ │ ├── .travis.yml │ │ │ ├── doc.go │ │ │ ├── mime.go │ │ │ └── mime_go14.go │ ├── philhofer │ │ └── fwd │ │ │ ├── writer_appengine.go │ │ │ └── writer_unsafe.go │ ├── google │ │ └── uuid │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTORS │ │ │ ├── CONTRIBUTING.md │ │ │ ├── doc.go │ │ │ └── node_js.go │ ├── rcrowley │ │ └── go-metrics │ │ │ ├── runtime_no_cgo.go │ │ │ ├── .gitignore │ │ │ ├── runtime_cgo.go │ │ │ ├── runtime_no_gccpufraction.go │ │ │ ├── runtime_gccpufraction.go │ │ │ ├── validate.sh │ │ │ ├── .travis.yml │ │ │ └── metrics.go │ ├── howeyc │ │ └── gopass │ │ │ ├── .travis.yml │ │ │ └── README.md │ ├── allegro │ │ └── bigcache │ │ │ ├── bytes_appengine.go │ │ │ ├── entry_not_found_error.go │ │ │ ├── clock.go │ │ │ ├── utils.go │ │ │ ├── hash.go │ │ │ ├── bytes.go │ │ │ └── stats.go │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── sevlyar │ │ └── go-daemon │ │ │ ├── os_executable.go │ │ │ ├── os_executable_pre18.go │ │ │ ├── syscall_dup.go │ │ │ ├── syscall_dup_pre17.go │ │ │ ├── lock_file_stub.go │ │ │ ├── .travis.yml │ │ │ ├── syscall_dup_arm64.go │ │ │ └── lock_file_unix.go │ ├── DataDog │ │ └── datadog-go │ │ │ └── statsd │ │ │ └── README.md │ ├── aristanetworks │ │ └── goarista │ │ │ └── monotime │ │ │ └── issue15006.s │ ├── tinylib │ │ └── msgp │ │ │ └── msgp │ │ │ ├── advise_other.go │ │ │ ├── purego.go │ │ │ └── advise_linux.go │ ├── golang │ │ └── snappy │ │ │ ├── decode_amd64.go │ │ │ └── AUTHORS │ └── inconshreveable │ │ └── mousetrap │ │ ├── trap_others.go │ │ └── LICENSE ├── google.golang.org │ └── grpc │ │ ├── AUTHORS │ │ └── install_gae.sh ├── golang.org │ └── x │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── constants.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── zsyscall_darwin_386.1_13.s │ │ │ ├── zsyscall_darwin_arm.1_13.s │ │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ │ ├── aliases.go │ │ │ ├── pagesize_unix.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── errors_freebsd_arm64.go │ │ │ ├── race0.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ └── syscall_linux_gc_386.go │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── cpu │ │ │ ├── cpu_other_arm.go │ │ │ ├── cpu_other_arm64.go │ │ │ ├── cpu_riscv64.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_linux_noinit.go │ │ │ ├── cpu_gc_arm64.go │ │ │ ├── cpu_gccgo_arm64.go │ │ │ ├── cpu_linux.go │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_ppc64x.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── cpu_wasm.go │ │ │ ├── cpu_gc_x86.go │ │ │ └── cpu_linux_mips64x.go │ │ └── windows │ │ │ ├── empty.s │ │ │ ├── registry │ │ │ └── mksyscall.go │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ └── str.go │ │ ├── xerrors │ │ ├── codereview.cfg │ │ ├── go.mod │ │ ├── README │ │ └── internal │ │ │ └── internal.go │ │ ├── net │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── text │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── time │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ └── crypto │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── ssh │ │ └── terminal │ │ │ ├── util_linux.go │ │ │ ├── util_aix.go │ │ │ └── util_bsd.go │ │ ├── sha3 │ │ ├── keccakf_amd64.go │ │ ├── register.go │ │ └── shake_generic.go │ │ └── blake2b │ │ └── blake2b_ref.go └── gopkg.in │ ├── fatih │ └── set.v0 │ │ └── .travis.yml │ ├── resty.v1 │ ├── go.mod │ ├── resty.go │ ├── .gitignore │ ├── .travis.yml │ └── WORKSPACE │ ├── yaml.v2 │ ├── go.mod │ ├── .travis.yml │ └── NOTICE │ ├── ini.v1 │ ├── .gitignore │ ├── Makefile │ └── .travis.yml │ ├── DataDog │ └── dd-trace-go.v1 │ │ ├── LICENSE-3rdparty.csv │ │ ├── NOTICE │ │ ├── ddtrace │ │ ├── ext │ │ │ └── system.go │ │ └── tracer │ │ │ ├── tracer_nongo11.go │ │ │ ├── time.go │ │ │ ├── osinfo_default.go │ │ │ ├── tracer_go11.go │ │ │ └── osinfo_darwin.go │ │ └── internal │ │ ├── version │ │ └── version.go │ │ └── env.go │ ├── natefinch │ └── npipe.v2 │ │ └── .gitignore │ └── alexcesaro │ └── quotedprintable.v3 │ ├── pool_go12.go │ ├── pool.go │ └── README.md ├── wallet-base ├── newbitx │ ├── lisc │ │ ├── README.md │ │ ├── value.go │ │ └── string.go │ ├── moneroutil │ │ ├── README.md │ │ ├── int.go │ │ └── LICENSE │ └── misclib │ │ └── crypto │ │ └── dsa.go ├── models │ └── models.go ├── util │ ├── sync_test.go │ ├── debug.go │ ├── hash.go │ ├── recover_test.go │ └── signal.go ├── service │ └── worker.go ├── main.go ├── jsonrpc │ ├── response.go │ └── request.go ├── libs │ └── bech32 │ │ └── doc.go └── monitor │ └── http.go ├── wallet-withdraw ├── build │ ├── .gitignore │ └── make │ │ ├── make.sh │ │ ├── make_import_claim.sh │ │ ├── make_gitversion.sh │ │ └── make_import.sh ├── transfer │ └── txbuilder │ │ ├── eth │ │ └── geth │ │ │ ├── const.go │ │ │ └── util.go │ │ ├── btc │ │ ├── gbtc │ │ │ ├── const.go │ │ │ ├── fee.go │ │ │ └── rpc.go │ │ └── meta.go │ │ ├── trx │ │ └── gtrx │ │ │ └── const.go │ │ └── error.go ├── cmd │ ├── broadcast │ │ └── imports │ │ │ └── import.go │ ├── transfer │ │ └── imports │ │ │ └── import.go │ ├── version.go │ └── syncd │ │ └── main.go ├── broadcast │ └── types │ │ └── types.go └── base │ └── models │ └── models.go ├── wallet-deposit ├── .circleci │ └── all_services.sh ├── build │ ├── .gitignore │ ├── Makefile │ └── make │ │ ├── make_deposit.sh │ │ └── make_gitversion.sh ├── rpc │ └── eth │ │ └── geth │ │ ├── const.go │ │ └── util.go ├── cmd │ ├── imports │ │ └── import.go │ ├── version.go │ └── deposit │ │ └── main.go ├── deposit │ └── util_test.go └── syncer │ └── bitcoin │ └── gbtc │ ├── response.go │ └── request.go ├── wallet-tools ├── build │ ├── .gitignore │ └── make.sh ├── cmd │ ├── genwallet │ │ ├── keypair │ │ │ ├── generator.go │ │ │ ├── builder │ │ │ │ └── eth.go │ │ │ └── generator │ │ │ │ └── random.go │ │ └── wallet │ │ │ └── v2 │ │ │ ├── error.go │ │ │ └── util.go │ ├── statuschecker │ │ ├── config.go │ │ └── checker │ │ │ ├── checker_test.go │ │ │ └── heightgetters │ │ │ ├── ptn.go │ │ │ ├── nem.go │ │ │ ├── xlm.go │ │ │ ├── kmd.go │ │ │ ├── etp.go │ │ │ ├── ft.go │ │ │ ├── eos.go │ │ │ ├── trx.go │ │ │ ├── algo.go │ │ │ ├── eth.go │ │ │ ├── dcar.go │ │ │ ├── zil.go │ │ │ └── nas.go │ └── rundeck │ │ ├── url.go │ │ └── cookie.go ├── base │ ├── crypto │ │ ├── hash.go │ │ ├── sha3.go │ │ ├── key │ │ │ └── key.go │ │ ├── addrprovider │ │ │ ├── addrprovider.go │ │ │ └── trx.go │ │ ├── signer │ │ │ └── signer.go │ │ ├── checksum.go │ │ ├── blake.go │ │ └── hash160.go │ ├── email │ │ └── email.go │ └── libs │ │ └── bech32 │ │ └── doc.go └── .circleci │ └── config.yml ├── wallet-config └── withdraw │ ├── signer │ └── config │ │ └── app.yml │ └── broadcast │ └── config │ └── config.go └── .gitignore /vendor/github.com/spf13/pflag/go.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/buger/jsonparser/go.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/go.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/helper.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/github.com/GincoInc/zillean/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /vendor/github.com/subosito/gotenv/.env: -------------------------------------------------------------------------------- 1 | HELLO=world 2 | -------------------------------------------------------------------------------- /vendor/github.com/subosito/gotenv/.env.invalid: -------------------------------------------------------------------------------- 1 | lol$wut 2 | -------------------------------------------------------------------------------- /vendor/github.com/GincoInc/jsonrpc/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | .idea -------------------------------------------------------------------------------- /vendor/github.com/rs/cors/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/rs/cors 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/ebfe/keccak/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.swp 3 | *.swo 4 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/gopkg.in/fatih/set.v0/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 1.3 3 | -------------------------------------------------------------------------------- /wallet-base/newbitx/lisc/README.md: -------------------------------------------------------------------------------- 1 | # Lisc 2 | 3 | A config format. 4 | -------------------------------------------------------------------------------- /vendor/github.com/go-stack/stack/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-stack/stack 2 | -------------------------------------------------------------------------------- /vendor/github.com/kardianos/osext/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/kardianos/osext 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/obj/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/gorilla/websocket 2 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/gorm/.gitignore: -------------------------------------------------------------------------------- 1 | documents 2 | coverage.txt 3 | _book 4 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/inflection/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/jinzhu/inflection 2 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | 4 | .idea/ 5 | -------------------------------------------------------------------------------- /vendor/github.com/subosito/gotenv/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | *.out 3 | annotate.json 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/xerrors 2 | 3 | go 1.11 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/pflag 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /wallet-base/models/models.go: -------------------------------------------------------------------------------- 1 | package models 2 | 3 | type M map[string]interface{} 4 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/.gitignore: -------------------------------------------------------------------------------- 1 | test_program/test_program_bin 2 | fuzz/ 3 | -------------------------------------------------------------------------------- /wallet-withdraw/build/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | * 3 | !.gitignore 4 | !Makefile 5 | !make 6 | !make/* -------------------------------------------------------------------------------- /vendor/github.com/buger/jsonparser/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/buger/jsonparser 2 | 3 | go 1.13 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/viper/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | /bin/ 3 | /build/ 4 | /var/ 5 | /vendor/ 6 | -------------------------------------------------------------------------------- /wallet-deposit/.circleci/all_services.sh: -------------------------------------------------------------------------------- 1 | declare -a all_services=( 2 | 'eth' 3 | 'btc' 4 | ) 5 | -------------------------------------------------------------------------------- /vendor/github.com/ebfe/keccak/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.4 4 | - tip 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-sql-driver/mysql 2 | 3 | go 1.10 4 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/shopspring/decimal/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/shopspring/decimal 2 | 3 | go 1.13 4 | -------------------------------------------------------------------------------- /vendor/github.com/magiconair/properties/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/magiconair/properties 2 | 3 | go 1.13 4 | -------------------------------------------------------------------------------- /vendor/github.com/shopspring/decimal/.gitignore: -------------------------------------------------------------------------------- 1 | .git 2 | *.swp 3 | 4 | # IntelliJ 5 | .idea/ 6 | *.iml 7 | -------------------------------------------------------------------------------- /wallet-deposit/build/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | * 3 | !.gitignore 4 | !Dockerfile 5 | !Makefile 6 | !make 7 | !make/* -------------------------------------------------------------------------------- /wallet-tools/build/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | * 3 | !.gitignore 4 | !Makefile 5 | !make.sh 6 | !build_monero.sh 7 | -------------------------------------------------------------------------------- /vendor/github.com/asaskevich/govalidator/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/asaskevich/govalidator 2 | 3 | go 1.13 4 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/mapstructure/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/mapstructure 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/afero 2 | 3 | require golang.org/x/text v0.3.0 4 | -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/eth/geth/const.go: -------------------------------------------------------------------------------- 1 | package geth 2 | 3 | const ( 4 | Precision = 18 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/jordan-wright/email/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.x 5 | - tip 6 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | indent_size = 4 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/hcl 2 | 3 | require github.com/davecgh/go-spew v1.1.1 4 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/file-rotatelogs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - "1.14" 5 | - tip 6 | -------------------------------------------------------------------------------- /vendor/gopkg.in/resty.v1/go.mod: -------------------------------------------------------------------------------- 1 | module gopkg.in/resty.v1 2 | 3 | require golang.org/x/net v0.0.0-20181220203305-927f97764cc3 4 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | autoreconf -if --warnings=all 4 | -------------------------------------------------------------------------------- /vendor/github.com/magiconair/properties/.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime-project 2 | *.sublime-workspace 3 | *.un~ 4 | *.swp 5 | .idea/ 6 | *.iml 7 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_notwin.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package cobra 4 | 5 | var preExecHookFn func(*Command) 6 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/ugorji/go/codec 2 | 3 | go 1.11 4 | 5 | require github.com/ugorji/go v1.1.13 6 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/metrics/FORK.md: -------------------------------------------------------------------------------- 1 | This repo has been forked from https://github.com/rcrowley/go-metrics at commit e181e09 2 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/gin-contrib/sse 2 | 3 | go 1.12 4 | 5 | require github.com/stretchr/testify v1.3.0 6 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/* 2 | !vendor/vendor.json 3 | coverage.out 4 | count.out 5 | test 6 | profile.out 7 | tmp.out 8 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | *.dll 3 | *.so 4 | *.dylib 5 | 6 | *.test 7 | 8 | *.out 9 | *.txt 10 | 11 | vendor/ -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/leodido/go-urn 2 | 3 | go 1.13 4 | 5 | require github.com/stretchr/testify v1.4.0 6 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/go.mod: -------------------------------------------------------------------------------- 1 | module "gopkg.in/yaml.v2" 2 | 3 | require ( 4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-playground/locales 2 | 3 | go 1.13 4 | 5 | require golang.org/x/text v0.3.2 6 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/gorm/README.md: -------------------------------------------------------------------------------- 1 | # GORM 2 | 3 | GORM V2 moved to https://github.com/go-gorm/gorm 4 | 5 | GORM V1 Doc https://v1.gorm.io/ 6 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/strftime/.golangci.yml: -------------------------------------------------------------------------------- 1 | issues: 2 | exclude-rules: 3 | - path: _test\.go 4 | linters: 5 | - errcheck 6 | -------------------------------------------------------------------------------- /wallet-withdraw/cmd/broadcast/imports/import.go: -------------------------------------------------------------------------------- 1 | package imports 2 | 3 | import ( 4 | _ "upex-wallet/wallet-withdraw/broadcast/handler/eth" 5 | ) 6 | -------------------------------------------------------------------------------- /wallet-withdraw/cmd/transfer/imports/import.go: -------------------------------------------------------------------------------- 1 | package imports 2 | 3 | import ( 4 | _ "upex-wallet/wallet-withdraw/transfer/txbuilder/eth" 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-gomail/gomail/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - tip 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/.gitignore: -------------------------------------------------------------------------------- 1 | y.output 2 | 3 | # ignore intellij files 4 | .idea 5 | *.iml 6 | *.ipr 7 | *.iws 8 | 9 | *.test 10 | -------------------------------------------------------------------------------- /vendor/github.com/philhofer/fwd/writer_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package fwd 4 | 5 | func unsafestr(s string) []byte { return []byte(s) } 6 | -------------------------------------------------------------------------------- /vendor/github.com/asaskevich/govalidator/doc.go: -------------------------------------------------------------------------------- 1 | package govalidator 2 | 3 | // A package of validators and sanitizers for strings, structures and collections. 4 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/.gitignore: -------------------------------------------------------------------------------- 1 | testdata/conf_out.ini 2 | ini.sublime-project 3 | ini.sublime-workspace 4 | testdata/conf_reflect.ini 5 | .idea 6 | /.vscode 7 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/go-isatty 2 | 3 | go 1.12 4 | 5 | require golang.org/x/sys v0.0.0-20200116001909-b77594299b42 6 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "postUpdateOptions": [ 6 | "gomodTidy" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_cgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo appengine 2 | 3 | package metrics 4 | 5 | func numCgoCall() int64 { 6 | return 0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/README: -------------------------------------------------------------------------------- 1 | This repository holds the transition packages for the new Go 1.13 error values. 2 | See golang.org/design/29934-error-values. 3 | -------------------------------------------------------------------------------- /wallet-config/withdraw/signer/config/app.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmao/multi-currency-blockchain-wallet/HEAD/wallet-config/withdraw/signer/config/app.yml -------------------------------------------------------------------------------- /wallet-tools/cmd/genwallet/keypair/generator.go: -------------------------------------------------------------------------------- 1 | package keypair 2 | 3 | type Generator interface { 4 | Init() error 5 | Generate(idx int) (KeyPair, error) 6 | } 7 | -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/btc/gbtc/const.go: -------------------------------------------------------------------------------- 1 | package gbtc 2 | 3 | const ( 4 | // BTC is the unit of BTC, 1 BTC = 10^8 satoshi. 5 | BTC = 100000000 6 | ) 7 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/metrics/runtime_no_cgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo appengine 2 | 3 | package metrics 4 | 5 | func numCgoCall() int64 { 6 | return 0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | notify: 3 | gitter: 4 | default: 5 | url: https://webhooks.gitter.im/e/d90dcdeeab2f1e357165 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmao/multi-currency-blockchain-wallet/HEAD/vendor/github.com/go-playground/locales/logo.png -------------------------------------------------------------------------------- /vendor/github.com/howeyc/gopass/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | os: 4 | - linux 5 | - osx 6 | 7 | go: 8 | - 1.3 9 | - 1.4 10 | - 1.5 11 | - tip 12 | -------------------------------------------------------------------------------- /vendor/github.com/rs/cors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.10" 4 | - "1.11" 5 | - "1.12" 6 | - tip 7 | matrix: 8 | allow_failures: 9 | - go: tip 10 | -------------------------------------------------------------------------------- /vendor/github.com/allegro/bigcache/bytes_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package bigcache 4 | 5 | func bytesToString(b []byte) string { 6 | return string(b) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .DS_Store? 3 | ._* 4 | .Spotlight-V100 5 | .Trashes 6 | Icon? 7 | ehthumbs.db 8 | Thumbs.db 9 | .idea 10 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/LICENSE-3rdparty.csv: -------------------------------------------------------------------------------- 1 | Component,Origin,License,Copyright 2 | import,io.opentracing,Apache-2.0,Copyright 2016-2017 The OpenTracing Authors -------------------------------------------------------------------------------- /vendor/github.com/buger/jsonparser/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.7.x 4 | - 1.8.x 5 | - 1.9.x 6 | - 1.10.x 7 | - 1.11.x 8 | script: go test -v ./. 9 | -------------------------------------------------------------------------------- /wallet-deposit/rpc/eth/geth/const.go: -------------------------------------------------------------------------------- 1 | package geth 2 | 3 | const ( 4 | PRECISION = 18 5 | HEX_PREFIX = "0x" 6 | RECEIPT_STATUS_SUCCESS = "0x1" 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/buger/jsonparser/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | *.test 3 | 4 | *.out 5 | 6 | *.mprof 7 | 8 | .idea 9 | 10 | vendor/github.com/buger/goterm/ 11 | prof.cpu 12 | prof.mem 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmao/multi-currency-blockchain-wallet/HEAD/vendor/github.com/go-playground/validator/v10/logo.png -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-playground/universal-translator 2 | 3 | go 1.13 4 | 5 | require github.com/go-playground/locales v0.13.0 6 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/mapstructure/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.11.x" 5 | - tip 6 | 7 | script: 8 | - go test 9 | - go test -bench . -benchmem 10 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/fish_completions.md: -------------------------------------------------------------------------------- 1 | ## Generating Fish Completions For Your cobra.Command 2 | 3 | Please refer to [Shell Completions](shell_completions.md) for details. 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmao/multi-currency-blockchain-wallet/HEAD/vendor/github.com/go-playground/universal-translator/logo.png -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= 2 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 3 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/gorm/test_all.sh: -------------------------------------------------------------------------------- 1 | dialects=("postgres" "mysql" "mssql" "sqlite") 2 | 3 | for dialect in "${dialects[@]}" ; do 4 | DEBUG=false GORM_DIALECT=${dialect} go test 5 | done 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.x 7 | - tip 8 | 9 | branches: 10 | only: 11 | - master 12 | 13 | script: make test 14 | -------------------------------------------------------------------------------- /vendor/github.com/kardianos/osext/osext_go18.go: -------------------------------------------------------------------------------- 1 | //+build go1.8,!openbsd 2 | 3 | package osext 4 | 5 | import "os" 6 | 7 | func executable() (string, error) { 8 | return os.Executable() 9 | } 10 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/NOTICE: -------------------------------------------------------------------------------- 1 | Datadog dd-trace-go 2 | Copyright 2016-Present Datadog, Inc. 3 | 4 | This product includes software developed at Datadog, Inc. (https://www.datadoghq.com/). 5 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /wallet-tools/cmd/genwallet/wallet/v2/error.go: -------------------------------------------------------------------------------- 1 | package v2 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // Errors 8 | var ( 9 | ErrIncorrectPassword = fmt.Errorf("incorrect wallet password") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /wallet-deposit/cmd/imports/import.go: -------------------------------------------------------------------------------- 1 | package imports 2 | 3 | import ( 4 | _ "upex-wallet/wallet-deposit/cmd/bsyncd" 5 | _ "upex-wallet/wallet-deposit/cmd/esyncd" 6 | _ "upex-wallet/wallet-deposit/rpc/eth" 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/os_executable.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package daemon 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | func osExecutable() (string, error) { 10 | return os.Executable() 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/shopspring/decimal/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.7.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | install: 10 | - go build . 11 | 12 | script: 13 | - go test -v 14 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.mailmap: -------------------------------------------------------------------------------- 1 | Steve Francia 2 | Bjørn Erik Pedersen 3 | Fabiano Franz 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/go.sum: -------------------------------------------------------------------------------- 1 | github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= 2 | github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= 3 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /wallet-deposit/cmd/version.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | const ( 4 | VersionHash = "9430040" 5 | VersionTag = "" 6 | ) 7 | 8 | func Version() string { 9 | return VersionTag + "(" + VersionHash + ")" 10 | } 11 | -------------------------------------------------------------------------------- /wallet-withdraw/cmd/version.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | const ( 4 | VersionHash = "6de988e" 5 | VersionTag = "" 6 | ) 7 | 8 | func Version() string { 9 | return VersionTag + "(" + VersionHash + ")" 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/DataDog/datadog-go/statsd/README.md: -------------------------------------------------------------------------------- 1 | ## Overview 2 | 3 | Package `statsd` provides a Go [dogstatsd](http://docs.datadoghq.com/guides/dogstatsd/) client. Dogstatsd extends Statsd, adding tags 4 | and histograms. 5 | -------------------------------------------------------------------------------- /vendor/github.com/buger/jsonparser/fuzz.go: -------------------------------------------------------------------------------- 1 | package jsonparser 2 | 3 | func FuzzParseString(data []byte) int { 4 | r, err := ParseString(data) 5 | if err != nil || r == "" { 6 | return 0 7 | } 8 | return 1 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package gin implements a HTTP web framework called gin. 3 | 4 | See https://gin-gonic.com/ for more information about gin. 5 | */ 6 | package gin // import "github.com/gin-gonic/gin" 7 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_17.go: -------------------------------------------------------------------------------- 1 | //+build !go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/.gitignore: -------------------------------------------------------------------------------- 1 | *.[68] 2 | *.a 3 | *.out 4 | *.swp 5 | _obj 6 | _testmain.go 7 | cmd/metrics-bench/metrics-bench 8 | cmd/metrics-example/metrics-example 9 | cmd/never-read/never-read 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_cgo.go: -------------------------------------------------------------------------------- 1 | // +build cgo 2 | // +build !appengine 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func numCgoCall() int64 { 9 | return runtime.NumCgoCall() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build !go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return 0 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/GincoInc/go-crypto/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/GincoInc/go-crypto 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/pkg/errors v0.8.1 7 | github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-gomail/gomail/doc.go: -------------------------------------------------------------------------------- 1 | // Package gomail provides a simple interface to compose emails and to mail them 2 | // efficiently. 3 | // 4 | // More info on Github: https://github.com/go-gomail/gomail 5 | package gomail 6 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/cast 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/pmezard/go-difflib v1.0.0 // indirect 6 | github.com/stretchr/testify v1.2.2 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/TODO: -------------------------------------------------------------------------------- 1 | * Unit tests for fieldelem/groupelem, including ones intended to 2 | trigger fieldelem's boundary cases. 3 | * Complete constant-time operations for signing/keygen 4 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/metrics/runtime_cgo.go: -------------------------------------------------------------------------------- 1 | // +build cgo 2 | // +build !appengine 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func numCgoCall() int64 { 9 | return runtime.NumCgoCall() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/metrics/runtime_no_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build !go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return 0 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return memStats.GCCPUFraction 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg= 2 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 3 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_17.go: -------------------------------------------------------------------------------- 1 | //+build go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | //go:linkname resolveTypeOff reflect.resolveTypeOff 8 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 9 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/os_executable_pre18.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package daemon 4 | 5 | import ( 6 | "github.com/kardianos/osext" 7 | ) 8 | 9 | func osExecutable() (string, error) { 10 | return osext.Executable() 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/metrics/runtime_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return memStats.GCCPUFraction 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/jwalterweatherman/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/jwalterweatherman 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/pmezard/go-difflib v1.0.0 // indirect 6 | github.com/stretchr/testify v1.2.2 7 | ) 8 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/hash.go: -------------------------------------------------------------------------------- 1 | package crypto 2 | 3 | import ( 4 | "hash" 5 | ) 6 | 7 | // Sum calculate the sum hash of hasher over buf. 8 | func Sum(buf []byte, hasher hash.Hash) []byte { 9 | hasher.Write(buf) 10 | return hasher.Sum(nil) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.gitignore: -------------------------------------------------------------------------------- 1 | # Setup a Global .gitignore for OS and editor generated files: 2 | # https://help.github.com/articles/ignoring-files 3 | # git config --global core.excludesfile ~/.gitignore_global 4 | 5 | .vagrant 6 | *.sublime-project 7 | -------------------------------------------------------------------------------- /wallet-base/newbitx/moneroutil/README.md: -------------------------------------------------------------------------------- 1 | Monero Utilities 2 | ================ 3 | 4 | These are a set of utilities for working with Monero. 5 | 6 | Bitdevs Presentation 7 | ==================== 8 | 9 | Presentation and appendices can be found in "Ring Signatures.pdf" -------------------------------------------------------------------------------- /vendor/github.com/allegro/bigcache/entry_not_found_error.go: -------------------------------------------------------------------------------- 1 | package bigcache 2 | 3 | import "errors" 4 | 5 | // ErrEntryNotFound is an error type struct which is returned when entry was not found for provided key 6 | var ErrEntryNotFound = errors.New("Entry not found") 7 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/subosito/gotenv/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.x 4 | os: 5 | - linux 6 | - osx 7 | script: 8 | - go test -test.v -coverprofile=coverage.out -covermode=count 9 | after_success: 10 | - bash <(curl -s https://codecov.io/bash) 11 | -------------------------------------------------------------------------------- /vendor/github.com/subosito/gotenv/appveyor.yml: -------------------------------------------------------------------------------- 1 | build: off 2 | clone_folder: c:\gopath\src\github.com\subosito\gotenv 3 | environment: 4 | GOPATH: c:\gopath 5 | stack: go 1.10 6 | before_test: 7 | - go get -t 8 | test_script: 9 | - go test -v -cover -race 10 | -------------------------------------------------------------------------------- /vendor/github.com/allegro/bigcache/clock.go: -------------------------------------------------------------------------------- 1 | package bigcache 2 | 3 | import "time" 4 | 5 | type clock interface { 6 | epoch() int64 7 | } 8 | 9 | type systemClock struct { 10 | } 11 | 12 | func (c systemClock) epoch() int64 { 13 | return time.Now().Unix() 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Contributors to log15: 2 | 3 | - Aaron L 4 | - Alan Shreve 5 | - Chris Hines 6 | - Ciaran Downey 7 | - Dmitry Chestnykh 8 | - Evan Shaw 9 | - Péter Szilágyi 10 | - Trevor Gattis 11 | - Vincent Vanackere 12 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/strftime/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/lestrrat-go/strftime 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc 7 | github.com/pkg/errors v0.8.1 8 | github.com/stretchr/testify v1.3.0 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | env: 3 | - GO111MODULE=on 4 | sudo: required 5 | go: 6 | - "1.11.x" 7 | - tip 8 | os: 9 | - linux 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | fast_finish: true 14 | script: 15 | - make check 16 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/sha3.go: -------------------------------------------------------------------------------- 1 | package crypto 2 | 3 | import ( 4 | "golang.org/x/crypto/sha3" 5 | ) 6 | 7 | // SumLegacyKeccak256 returns the Keccak-256 digest of the data. 8 | func SumLegacyKeccak256(data []byte) []byte { 9 | return Sum(data, sha3.NewLegacyKeccak256()) 10 | } 11 | -------------------------------------------------------------------------------- /wallet-withdraw/broadcast/types/types.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import "upex-wallet/wallet-withdraw/base/models" 4 | 5 | type QueryArgs struct { 6 | Task models.Tx `json:"task"` 7 | Signatures []string `json:"signatures"` 8 | PubKeys []string `json:"pubkeys"` 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/README_ETHEREUM.md: -------------------------------------------------------------------------------- 1 | This package is a fork of https://github.com/inconshreveable/log15, with some 2 | minor modifications required by the go-ethereum codebase: 3 | 4 | * Support for log level `trace` 5 | * Modified behavior to exit on `critical` failure 6 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/syscall_dup.go: -------------------------------------------------------------------------------- 1 | // +build !linux !arm64 2 | // +build !windows 3 | // +build go1.7 4 | 5 | package daemon 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | func syscallDup(oldfd int, newfd int) (err error) { 10 | return unix.Dup2(oldfd, newfd) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_gte_go17.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.7 5 | 6 | package codec 7 | 8 | const genCheckVendor = true 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.5 5 | 6 | package codec 7 | 8 | var genCheckVendor = false 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-stack/stack/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.7.x 5 | - 1.8.x 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | before_install: 12 | - go get github.com/mattn/goveralls 13 | 14 | script: 15 | - goveralls -service=travis-ci 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !linux,arm 6 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !linux,arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/install_gae.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TMP=$(mktemp -d /tmp/sdk.XXX) \ 4 | && curl -o $TMP.zip "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.68.zip" \ 5 | && unzip -q $TMP.zip -d $TMP \ 6 | && export PATH="$PATH:$TMP/go_appengine" 7 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/key/key.go: -------------------------------------------------------------------------------- 1 | package key 2 | 3 | type Class string 4 | 5 | type Key interface { 6 | Class() Class 7 | 8 | Random() error 9 | SetPrivateKey(privKey []byte) error 10 | 11 | PrivateKey() []byte 12 | PublicKey() []byte 13 | PublicKeyUncompressed() []byte 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/syscall_dup_pre17.go: -------------------------------------------------------------------------------- 1 | // +build !linux !arm64 2 | // +build !windows 3 | // +build !go1.7 4 | 5 | package daemon 6 | 7 | import ( 8 | "syscall" 9 | ) 10 | 11 | func syscallDup(oldfd int, newfd int) (err error) { 12 | return syscall.Dup2(oldfd, newfd) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/version.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gin 6 | 7 | // Version is the current gin framework's version. 8 | const Version = "v1.6.3" 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= 2 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 3 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 4 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Gorilla WebSocket authors for copyright 2 | # purposes. 3 | # 4 | # Please keep the list sorted. 5 | 6 | Gary Burd 7 | Google LLC (https://opensource.google.com/) 8 | Joachim Bauch 9 | 10 | -------------------------------------------------------------------------------- /vendor/github.com/asaskevich/govalidator/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | dist: xenial 3 | go: 4 | - '1.10' 5 | - '1.11' 6 | - '1.12' 7 | - '1.13' 8 | - 'tip' 9 | 10 | script: 11 | - go test -coverpkg=./... -coverprofile=coverage.info -timeout=5s 12 | - bash <(curl -s https://codecov.io/bash) 13 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/lock_file_stub.go: -------------------------------------------------------------------------------- 1 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!plan9,!solaris 2 | 3 | package daemon 4 | 5 | func lockFile(fd uintptr) error { 6 | return errNotSupported 7 | } 8 | 9 | func unlockFile(fd uintptr) error { 10 | return errNotSupported 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "tip" 15 | 16 | go_import_path: gopkg.in/yaml.v2 17 | -------------------------------------------------------------------------------- /vendor/github.com/asaskevich/govalidator/.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | .idea/ 3 | # Binaries for programs and plugins 4 | *.exe 5 | *.exe~ 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, built with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/trace_17.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package websocket 4 | 5 | import ( 6 | "crypto/tls" 7 | "net/http/httptrace" 8 | ) 9 | 10 | func doHandshakeWithTrace(trace *httptrace.ClientTrace, tlsConn *tls.Conn, cfg *tls.Config) error { 11 | return doHandshake(tlsConn, cfg) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/magiconair/properties/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.3.x 4 | - 1.4.x 5 | - 1.5.x 6 | - 1.6.x 7 | - 1.7.x 8 | - 1.8.x 9 | - 1.9.x 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "1.14.x" 15 | - "1.15.x" 16 | - tip 17 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/sirupsen/logrus 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/pmezard/go-difflib v1.0.0 // indirect 6 | github.com/stretchr/testify v1.2.2 7 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 8 | ) 9 | 10 | go 1.13 11 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/viper/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.go] 12 | indent_style = tab 13 | 14 | [{Makefile, *.mk}] 15 | indent_style = tab 16 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_gte_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.10 5 | 6 | package codec 7 | 8 | const allowSetUnexportedEmbeddedPtr = false 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_lt_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.10 5 | 6 | package codec 7 | 8 | const allowSetUnexportedEmbeddedPtr = true 9 | -------------------------------------------------------------------------------- /wallet-deposit/cmd/deposit/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | "upex-wallet/wallet-deposit/cmd" 8 | _ "upex-wallet/wallet-deposit/cmd/imports" 9 | ) 10 | 11 | func main() { 12 | if err := cmd.Execute("deposit"); err != nil { 13 | fmt.Println(err) 14 | os.Exit(1) 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /wallet-withdraw/cmd/syncd/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | "upex-wallet/wallet-deposit/cmd" 8 | _ "upex-wallet/wallet-deposit/cmd/imports" 9 | ) 10 | 11 | func main() { 12 | if err := cmd.Execute("syncd"); err != nil { 13 | fmt.Println(err) 14 | os.Exit(1) 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.3 5 | - 1.5 6 | - tip 7 | 8 | before_install: 9 | - go get -t -v ./... 10 | 11 | script: 12 | - go test -v -coverprofile=coverage.txt -covermode=atomic 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.9 6 | - "1.10" 7 | - tip 8 | 9 | os: 10 | - linux 11 | - osx 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | fast_finish: true 17 | 18 | script: 19 | - go build 20 | - go test -race -v ./... 21 | 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build riscv64 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/github.com/aristanetworks/goarista/monotime/issue15006.s: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Arista Networks, Inc. 2 | // Use of this source code is governed by the Apache License 2.0 3 | // that can be found in the COPYING file. 4 | 5 | // This file is intentionally empty. 6 | // It's a workaround for https://github.com/golang/go/issues/15006 7 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build mips mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-playground/validator/v10 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/go-playground/assert/v2 v2.0.1 7 | github.com/go-playground/locales v0.13.0 8 | github.com/go-playground/universal-translator v0.17.0 9 | github.com/leodido/go-urn v1.2.0 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/file-rotatelogs/Changes: -------------------------------------------------------------------------------- 1 | Changes 2 | ======= 3 | 4 | v2.4.0 - 8 Sep 2020 5 | * Add WithRotationSize option to specify log ration when 6 | a certain file size is reached. (NOTE: this does not guarantee 7 | that the file size is exactly the size specified, but that it 8 | *exceeds* the specified size) 9 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/validate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # check there are no formatting issues 6 | GOFMT_LINES=`gofmt -l . | wc -l | xargs` 7 | test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues" 8 | 9 | # run the tests for the root package 10 | go test -race . 11 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/addrprovider/addrprovider.go: -------------------------------------------------------------------------------- 1 | package addrprovider 2 | 3 | type Class string 4 | 5 | type Key interface { 6 | PublicKey() []byte 7 | PublicKeyUncompressed() []byte 8 | } 9 | 10 | type AddrProvider interface { 11 | Class() Class 12 | 13 | Address(k Key) []byte 14 | AddressString(k Key) string 15 | } 16 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/config.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | /* 4 | (emailpassword "123456") 5 | 6 | (receivers 7 | "name@email.com") 8 | 9 | (alives 10 | ; (name host check-interval-minute) 11 | (eth1 "127.0.0.1:8080" 20)) 12 | 13 | (stucks 14 | ; (name url check-interval-minute) 15 | (ADA "http://ip:port" 20)) 16 | */ 17 | -------------------------------------------------------------------------------- /vendor/github.com/allegro/bigcache/utils.go: -------------------------------------------------------------------------------- 1 | package bigcache 2 | 3 | func max(a, b int) int { 4 | if a > b { 5 | return a 6 | } 7 | return b 8 | } 9 | 10 | func convertMBToBytes(value int) int { 11 | return value * 1024 * 1024 12 | } 13 | 14 | func isPowerOfTwo(number int) bool { 15 | return (number & (number - 1)) == 0 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/context_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 4 | // Use of this source code is governed by a MIT style 5 | // license that can be found in the LICENSE file. 6 | 7 | package gin 8 | 9 | func init() { 10 | defaultAppEngine = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test bench vet coverage 2 | 3 | build: vet bench 4 | 5 | test: 6 | go test -v -cover -race 7 | 8 | bench: 9 | go test -v -cover -race -test.bench=. -test.benchmem 10 | 11 | vet: 12 | go vet 13 | 14 | coverage: 15 | go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out 16 | -------------------------------------------------------------------------------- /wallet-deposit/deposit/util_test.go: -------------------------------------------------------------------------------- 1 | package deposit 2 | 3 | import "testing" 4 | 5 | func TestValidUTF8MB3(t *testing.T) { 6 | for s, is := range map[string]bool{ 7 | "": true, 8 | "123": true, 9 | "abc": true, 10 | "💥🚀": false, 11 | } { 12 | 13 | if ValidUTF8MB3(s) != is { 14 | t.Fatal(s) 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/signer/signer.go: -------------------------------------------------------------------------------- 1 | package signer 2 | 3 | import ( 4 | "upex-wallet/wallet-tools/base/crypto/key" 5 | ) 6 | 7 | type Class string 8 | 9 | type Signer interface { 10 | Class() Class 11 | 12 | Sign(k key.Key, data []byte) ([]byte, error) 13 | Verify(k key.Key, sigData []byte, data []byte) (bool, error) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/metrics/validate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # check there are no formatting issues 6 | GOFMT_LINES=`gofmt -l . | wc -l | xargs` 7 | test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues" 8 | 9 | # run the tests for the root package 10 | go test -race . 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getpfr0() uint64 12 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/cobra 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/cpuguy83/go-md2man/v2 v2.0.0 7 | github.com/inconshreveable/mousetrap v1.0.0 8 | github.com/mitchellh/go-homedir v1.1.0 9 | github.com/spf13/pflag v1.0.5 10 | github.com/spf13/viper v1.7.0 11 | gopkg.in/yaml.v2 v2.2.8 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/tinylib/msgp/msgp/advise_other.go: -------------------------------------------------------------------------------- 1 | // +build !linux appengine 2 | 3 | package msgp 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | // TODO: darwin, BSD support 10 | 11 | func adviseRead(mem []byte) {} 12 | 13 | func adviseWrite(mem []byte) {} 14 | 15 | func fallocate(f *os.File, sz int64) error { 16 | return f.Truncate(sz) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/tinylib/msgp/msgp/purego.go: -------------------------------------------------------------------------------- 1 | // +build purego appengine 2 | 3 | package msgp 4 | 5 | // let's just assume appengine 6 | // uses 64-bit hardware... 7 | const smallint = false 8 | 9 | func UnsafeString(b []byte) string { 10 | return string(b) 11 | } 12 | 13 | func UnsafeBytes(s string) []byte { 14 | return []byte(s) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | // EnableTrace indicates whether stack information should be recorded in errors. 8 | var EnableTrace = true 9 | -------------------------------------------------------------------------------- /vendor/github.com/asaskevich/govalidator/wercker.yml: -------------------------------------------------------------------------------- 1 | box: golang 2 | build: 3 | steps: 4 | - setup-go-workspace 5 | 6 | - script: 7 | name: go get 8 | code: | 9 | go version 10 | go get -t ./... 11 | 12 | - script: 13 | name: go test 14 | code: | 15 | go test -race -v ./... 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/syscall_dup_arm64.go: -------------------------------------------------------------------------------- 1 | // +build linux,arm64 2 | 3 | package daemon 4 | 5 | import "syscall" 6 | 7 | func syscallDup(oldfd int, newfd int) (err error) { 8 | // linux_arm64 platform doesn't have syscall.Dup2 9 | // so use the nearly identical syscall.Dup3 instead. 10 | return syscall.Dup3(oldfd, newfd, 0) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le riscv64 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /wallet-base/util/sync_test.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestBatch(t *testing.T) { 8 | BatchDo(10, func(idx int) (interface{}, error) { 9 | t.Log("work index:", idx) 10 | return idx * idx, nil 11 | }, func(idx int, data interface{}) error { 12 | t.Log("gather:", idx, data) 13 | return nil 14 | }) 15 | } 16 | -------------------------------------------------------------------------------- /wallet-tools/cmd/genwallet/wallet/v2/util.go: -------------------------------------------------------------------------------- 1 | package v2 2 | 3 | import ( 4 | "runtime" 5 | 6 | "upex-wallet/wallet-base/util" 7 | ) 8 | 9 | func tryGC(taskIdx int) { 10 | if taskIdx%50000 == 0 { 11 | runtime.GC() 12 | } 13 | } 14 | 15 | func traceProgress(tag string, num, total int) { 16 | util.TraceProgress(tag, num, 100000, total) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.5,!go1.6 5 | 6 | package codec 7 | 8 | import "os" 9 | 10 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") == "1" 11 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.6,!go1.7 5 | 6 | package codec 7 | 8 | import "os" 9 | 10 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") != "0" 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | fmt: generate 6 | go fmt ./... 7 | 8 | test: generate 9 | go get -t ./... 10 | go test $(TEST) $(TESTARGS) 11 | 12 | generate: 13 | go generate ./... 14 | 15 | updatedeps: 16 | go get -u golang.org/x/tools/cmd/stringer 17 | 18 | .PHONY: default generate test updatedeps 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/github.com/howeyc/gopass/README.md: -------------------------------------------------------------------------------- 1 | # getpasswd in Go [![GoDoc](https://godoc.org/github.com/howeyc/gopass?status.svg)](https://godoc.org/github.com/howeyc/gopass) [![Build Status](https://secure.travis-ci.org/howeyc/gopass.png?branch=master)](http://travis-ci.org/howeyc/gopass) 2 | 3 | You should probably just use [terminal](https://golang.org/x/crypto/ssh/terminal). 4 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.9.x 5 | - 1.10.x 6 | - 1.11.x 7 | - 1.12.x 8 | - 1.13.x 9 | - tip 10 | 11 | before_install: 12 | - go get -t -v ./... 13 | 14 | script: 15 | - go test -race -coverprofile=coverage.txt -covermode=atomic 16 | 17 | after_success: 18 | - bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype, cap) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.12 6 | 7 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 8 | // and earlier (see https://golang.org/issue/23311). 9 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /wallet-base/util/debug.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "fmt" 5 | "runtime" 6 | ) 7 | 8 | func TraceMemStats() { 9 | var ms runtime.MemStats 10 | runtime.ReadMemStats(&ms) 11 | fmt.Printf("Alloc: %s, HeapIdle: %s, HeapReleased: %s\n", 12 | ByteCountBinary(int64(ms.Alloc)), ByteCountBinary(int64(ms.HeapIdle)), ByteCountBinary(int64(ms.HeapReleased))) 13 | } 14 | -------------------------------------------------------------------------------- /wallet-tools/cmd/rundeck/url.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | const ( 4 | baseURL = "https://rundeck.bitfe.co" 5 | 6 | errorPath = "/user/error" 7 | authPath = "/j_security_check" 8 | loginPath = "/user/login" 9 | listJobPath = "/api/24/project/WalletDeploy/jobs" 10 | ) 11 | 12 | func deployPath() string { 13 | return "/api/24/job/" + jobID + "/executions" 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/json-iterator/go 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/davecgh/go-spew v1.1.1 7 | github.com/google/gofuzz v1.0.0 8 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 9 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 10 | github.com/stretchr/testify v1.3.0 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package terminal 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/registry/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build generate 6 | 7 | package registry 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall.go 10 | -------------------------------------------------------------------------------- /wallet-base/newbitx/moneroutil/int.go: -------------------------------------------------------------------------------- 1 | package moneroutil 2 | 3 | import "unsafe" 4 | 5 | func bytesToUint32(buf []byte) uint32 { 6 | return *(*uint32)(unsafe.Pointer(&buf[0])) 7 | } 8 | 9 | // rename it to not mix with Uint64ToBytes! 10 | func uint32ToBytes(val uint32) []byte { 11 | bytes := make([]byte, 4) 12 | *(*uint32)(unsafe.Pointer(&bytes[0])) = val 13 | return bytes 14 | } -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/trx/gtrx/const.go: -------------------------------------------------------------------------------- 1 | package gtrx 2 | 3 | const ( 4 | // Precision is the precision of TRX. 5 | Precision = 6 6 | 7 | // TRX is the unit of TRX, 1 TRX = 10^6 SUN. 8 | TRX = 1000000 9 | 10 | // NormalTransferFee is 0.1 TRX. 11 | NormalTransferFee = 0.1 * TRX 12 | 13 | // smart contract 14 | MaxFeeLimit = 1000 15 | ParamLen = 64 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl/parser/error.go: -------------------------------------------------------------------------------- 1 | package parser 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/hcl/hcl/token" 7 | ) 8 | 9 | // PosError is a parse error that contains a position. 10 | type PosError struct { 11 | Pos token.Pos 12 | Err error 13 | } 14 | 15 | func (e *PosError) Error() string { 16 | return fmt.Sprintf("At %s: %s", e.Pos, e.Err) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getpfr0() uint64 { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/resty.v1/resty.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved. 2 | // resty source code and usage is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package resty provides Simple HTTP and REST client library for Go. 6 | package resty 7 | 8 | // Version # of resty 9 | const Version = "1.12.0" 10 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/npipe.v2/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/allegro/bigcache/hash.go: -------------------------------------------------------------------------------- 1 | package bigcache 2 | 3 | // Hasher is responsible for generating unsigned, 64 bit hash of provided string. Hasher should minimize collisions 4 | // (generating same hash for different strings) and while performance is also important fast functions are preferable (i.e. 5 | // you can use FarmHash family). 6 | type Hasher interface { 7 | Sum64(string) uint64 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build freebsd openbsd netbsd dragonfly 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY 12 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/fuzz.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -eu 3 | 4 | go get github.com/dvyukov/go-fuzz/go-fuzz 5 | go get github.com/dvyukov/go-fuzz/go-fuzz-build 6 | 7 | if [ ! -e toml-fuzz.zip ]; then 8 | go-fuzz-build github.com/pelletier/go-toml 9 | fi 10 | 11 | rm -fr fuzz 12 | mkdir -p fuzz/corpus 13 | cp *.toml fuzz/corpus 14 | 15 | go-fuzz -bin=toml-fuzz.zip -workdir=fuzz 16 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | 15 | install: 16 | - go get golang.org/x/lint/golint 17 | - export PATH=$GOPATH/bin:$PATH 18 | - go install ./... 19 | 20 | script: 21 | - verify/all.sh -v 22 | - go test ./... 23 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_fmt_time_gte_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.5 5 | 6 | package codec 7 | 8 | import "time" 9 | 10 | func fmtTime(t time.Time, b []byte) []byte { 11 | return t.AppendFormat(b, time.RFC3339Nano) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_lt_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.9 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 11 | return reflect.MakeMap(t) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_aix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TCGETS 12 | const ioctlWriteTermios = unix.TCSETS 13 | -------------------------------------------------------------------------------- /vendor/github.com/allegro/bigcache/bytes.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package bigcache 4 | 5 | import ( 6 | "reflect" 7 | "unsafe" 8 | ) 9 | 10 | func bytesToString(b []byte) string { 11 | bytesHeader := (*reflect.SliceHeader)(unsafe.Pointer(&b)) 12 | strHeader := reflect.StringHeader{Data: bytesHeader.Data, Len: bytesHeader.Len} 13 | return *(*string)(unsafe.Pointer(&strHeader)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: '{build}' 2 | clone_folder: C:\gopath\src\github.com\spf13\afero 3 | environment: 4 | GOPATH: C:\gopath 5 | build_script: 6 | - cmd: >- 7 | go version 8 | 9 | go env 10 | 11 | go get -v github.com/spf13/afero/... 12 | 13 | go build github.com/spf13/afero 14 | test_script: 15 | - cmd: go test -race -v github.com/spf13/afero/... 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | // note: this constant is not defined on BSD 12 | const openMode = unix.O_EVTONLY 13 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/file-rotatelogs/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/keccakf_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,!appengine,!gccgo 6 | 7 | package sha3 8 | 9 | // This function is implemented in keccakf_amd64.s. 10 | 11 | //go:noescape 12 | 13 | func keccakF1600(a *[25]uint64) 14 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/file-rotatelogs/event.go: -------------------------------------------------------------------------------- 1 | package rotatelogs 2 | 3 | func (h HandlerFunc) Handle(e Event) { 4 | h(e) 5 | } 6 | 7 | func (e *FileRotatedEvent) Type() EventType { 8 | return FileRotatedEventType 9 | } 10 | 11 | func (e *FileRotatedEvent) PreviousFile() string { 12 | return e.prev 13 | } 14 | 15 | func (e *FileRotatedEvent) CurrentFile() string { 16 | return e.current 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list github.com/modern-go/reflect2-tests/... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/reflect2 $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_gte_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.9 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 11 | return reflect.MakeMapWithSize(t, size) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !386,!amd64,!amd64p32,!arm64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /wallet-base/newbitx/moneroutil/LICENSE: -------------------------------------------------------------------------------- 1 | Monero Utilities 2 | Copyright (c) 2013 Go Authors 3 | Copyright (c) 2017 Paxos 4 | 5 | Portion of the code is Go Author's property, licensed under the BSD-3 license 6 | Portion of the code is Paxos's property, licensed under the MIT license 7 | 8 | const.go and edwards25519.go are licensed under BSD-3 (see LICENSE-BSD), all other files are licensed under MIT (see LICENSE-MIT). 9 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/checker_test.go: -------------------------------------------------------------------------------- 1 | package checker 2 | 3 | import ( 4 | "fmt" 5 | "testing" 6 | ) 7 | 8 | func TestUpgradeChecker(t *testing.T) { 9 | warn = func(body string) { 10 | fmt.Println(body) 11 | } 12 | 13 | c := NewUpgradeChecker(map[string]string{ 14 | "https://huobiglobal.zendesk.com/hc/zh-cn/sections/360000039481": "关于.+?[暂停,升级].+?公告", 15 | }) 16 | c.Work() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/ecdh/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_ecdh.h 2 | noinst_HEADERS += src/modules/ecdh/main_impl.h 3 | noinst_HEADERS += src/modules/ecdh/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_ecdh 6 | bench_ecdh_SOURCES = src/bench_ecdh.c 7 | bench_ecdh_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /vendor/github.com/philhofer/fwd/writer_unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package fwd 4 | 5 | import ( 6 | "reflect" 7 | "unsafe" 8 | ) 9 | 10 | // unsafe cast string as []byte 11 | func unsafestr(b string) []byte { 12 | l := len(b) 13 | return *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{ 14 | Len: l, 15 | Cap: l, 16 | Data: (*reflect.StringHeader)(unsafe.Pointer(&b)).Data, 17 | })) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | 25 | *.bench 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !amd64 appengine gccgo 6 | 7 | package blake2b 8 | 9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 10 | hashBlocksGeneric(h, c, flag, blocks) 11 | } 12 | -------------------------------------------------------------------------------- /wallet-base/util/hash.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "encoding/hex" 5 | 6 | "upex-wallet/wallet-tools/base/crypto" 7 | ) 8 | 9 | // HashString32 generates a hash160 hex string with length of 32. 10 | func HashString32(datas ...[]byte) string { 11 | var buf []byte 12 | for _, data := range datas { 13 | buf = append(buf, data...) 14 | } 15 | return hex.EncodeToString(crypto.Hash160(buf))[:32] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/strftime/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/jwalterweatherman/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.bench 24 | go.sum -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/0_importpath.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | package codec // import "github.com/ugorji/go/codec" 5 | 6 | // This establishes that this package must be imported as github.com/ugorji/go/codec. 7 | // It makes forking easier, and plays well with pre-module releases of go. 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build mips64 mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 10 | -------------------------------------------------------------------------------- /vendor/github.com/jordan-wright/email/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | # IDEs 25 | .idea 26 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/codecgen.go: -------------------------------------------------------------------------------- 1 | // +build codecgen generated 2 | 3 | package codec 4 | 5 | // this file sets the codecgen variable to true 6 | // when the build tag codecgen is set. 7 | // 8 | // some tests depend on knowing whether in the context of codecgen or not. 9 | // For example, some tests should be skipped during codecgen e.g. missing fields tests. 10 | 11 | func init() { 12 | codecgen = true 13 | } 14 | -------------------------------------------------------------------------------- /wallet-tools/build/make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | main_folder=${1} 4 | app_file=${2} 5 | 6 | DEV_TOOLS_SET_ENV=/opt/rh/devtoolset-7/enable 7 | [ -f ${DEV_TOOLS_SET_ENV} ] && source ${DEV_TOOLS_SET_ENV} 8 | 9 | if [ "${buildxmr}" = "1" ] 10 | then 11 | tags='buildxmr' 12 | fi 13 | 14 | go install -tags=${tags} ../cmd/${main_folder} 15 | go build -tags=${tags} -o ./bin/${app_file} ../cmd/${main_folder} 16 | 17 | echo 18 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/sha3/keccakf_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,!appengine,!gccgo 6 | 7 | package sha3 8 | 9 | // This function is implemented in keccakf_amd64.s. 10 | 11 | //go:noescape 12 | 13 | func keccakF1600(state *[25]uint64) 14 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/gin-gonic/gin 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/gin-contrib/sse v0.1.0 7 | github.com/go-playground/validator/v10 v10.2.0 8 | github.com/golang/protobuf v1.3.3 9 | github.com/json-iterator/go v1.1.9 10 | github.com/mattn/go-isatty v0.0.12 11 | github.com/stretchr/testify v1.4.0 12 | github.com/ugorji/go/codec v1.1.7 13 | gopkg.in/yaml.v2 v2.2.8 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/go.sum: -------------------------------------------------------------------------------- 1 | github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= 2 | github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= 3 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 4 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 5 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_fmt_time_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.5 5 | 6 | package codec 7 | 8 | import "time" 9 | 10 | func fmtTime(t time.Time, b []byte) []byte { 11 | s := t.Format(time.RFC3339Nano) 12 | b = b[:len(s)] 13 | copy(b, s) 14 | return b 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /wallet-base/service/worker.go: -------------------------------------------------------------------------------- 1 | package service 2 | 3 | type Worker interface { 4 | Name() string 5 | Init() error 6 | Work() 7 | Destroy() 8 | } 9 | 10 | type SimpleWorker struct{} 11 | 12 | func (w *SimpleWorker) Name() string { return "SimpleWorker" } 13 | 14 | func (w *SimpleWorker) Init() error { return nil } 15 | 16 | func (w *SimpleWorker) Work() { panic("not implement") } 17 | 18 | func (w *SimpleWorker) Destroy() {} 19 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/recovery/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_recovery.h 2 | noinst_HEADERS += src/modules/recovery/main_impl.h 3 | noinst_HEADERS += src/modules/recovery/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_recover 6 | bench_recover_SOURCES = src/bench_recover.c 7 | bench_recover_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go 386 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/btc/gbtc/fee.go: -------------------------------------------------------------------------------- 1 | package gbtc 2 | 3 | import ( 4 | "github.com/shopspring/decimal" 5 | ) 6 | 7 | func CalculateTxSize(nIn, nOut int) int { 8 | return nIn*148 + nOut*43 9 | } 10 | 11 | func CalculateTxFee(nByte int, feeRate float64) decimal.Decimal { 12 | if nByte == 0 { 13 | return decimal.Zero 14 | } 15 | 16 | fee := float64(nByte) * feeRate / 1000 17 | return decimal.NewFromFloat(fee) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/decode_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | // +build gc 7 | // +build !noasm 8 | 9 | package snappy 10 | 11 | // decode has the same semantics as in decode_other.go. 12 | // 13 | //go:noescape 14 | func decode(dst, src []byte) int 15 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/mask_safe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. Use of 2 | // this source code is governed by a BSD-style license that can be found in the 3 | // LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package websocket 8 | 9 | func maskBytes(key [4]byte, pos int, b []byte) int { 10 | for i := range b { 11 | b[i] ^= key[pos&3] 12 | pos++ 13 | } 14 | return pos & 3 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2015 3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl 4 | environment: 5 | GOPATH: c:\gopath 6 | init: 7 | - git config --global core.autocrlf false 8 | install: 9 | - cmd: >- 10 | echo %Path% 11 | 12 | go version 13 | 14 | go env 15 | 16 | go get -t ./... 17 | 18 | build_script: 19 | - cmd: go test -v ./... 20 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/gorm/model.go: -------------------------------------------------------------------------------- 1 | package gorm 2 | 3 | import "time" 4 | 5 | // Model base model definition, including fields `ID`, `CreatedAt`, `UpdatedAt`, `DeletedAt`, which could be embedded in your models 6 | // type User struct { 7 | // gorm.Model 8 | // } 9 | type Model struct { 10 | ID uint `gorm:"primary_key"` 11 | CreatedAt time.Time 12 | UpdatedAt time.Time 13 | DeletedAt *time.Time `sql:"index"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go amd64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/ptn.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "github.com/buger/jsonparser" 5 | ) 6 | 7 | func init() { 8 | Set("PTN", ptnGetter) 9 | } 10 | 11 | func ptnGetter(url string) (int64, error) { 12 | data, err := restyPost(url, jsonrpcRequest2("dag_getStableUnit", nil)) 13 | if err != nil { 14 | return 0, err 15 | } 16 | 17 | return jsonparser.GetInt(data, "result", "number") 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-gomail/gomail/mime.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package gomail 4 | 5 | import ( 6 | "mime" 7 | "mime/quotedprintable" 8 | "strings" 9 | ) 10 | 11 | var newQPWriter = quotedprintable.NewWriter 12 | 13 | type mimeEncoder struct { 14 | mime.WordEncoder 15 | } 16 | 17 | var ( 18 | bEncoding = mimeEncoder{mime.BEncoding} 19 | qEncoding = mimeEncoder{mime.QEncoding} 20 | lastIndexByte = strings.LastIndexByte 21 | ) 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | *.coverprofile -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/conn_write.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.8 6 | 7 | package websocket 8 | 9 | import "net" 10 | 11 | func (c *Conn) writeBufs(bufs ...[]byte) error { 12 | b := net.Buffers(bufs) 13 | _, err := b.WriteTo(c.conn) 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_gte_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.5 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | const reflectArrayOfSupported = true 11 | 12 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 13 | return reflect.ArrayOf(count, elem) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.3" 5 | - "1.4" 6 | - "1.5" 7 | - "1.6" 8 | - "1.7" 9 | - "1.8" 10 | - "1.9" 11 | - "1.10" 12 | - "1.11" 13 | - "1.12" 14 | - "1.13" 15 | - "1.14" 16 | 17 | script: 18 | - ./validate.sh 19 | 20 | # this should give us faster builds according to 21 | # http://docs.travis-ci.com/user/migrating-from-legacy/ 22 | sudo: false 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ppc64 ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/system.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | package ext 7 | 8 | // Standard system metadata names 9 | const ( 10 | // The pid of the traced process 11 | Pid = "system.pid" 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/resty.v1/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | coverage.out 27 | coverage.txt 28 | go.sum 29 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/libsecp256k1.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libsecp256k1 7 | Description: Optimized C library for EC operations on curve secp256k1 8 | URL: https://github.com/bitcoin-core/secp256k1 9 | Version: @PACKAGE_VERSION@ 10 | Cflags: -I${includedir} 11 | Libs.private: @SECP_LIBS@ 12 | Libs: -L${libdir} -lsecp256k1 13 | 14 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/client_clone.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.8 6 | 7 | package websocket 8 | 9 | import "crypto/tls" 10 | 11 | func cloneTLSConfig(cfg *tls.Config) *tls.Config { 12 | if cfg == nil { 13 | return &tls.Config{} 14 | } 15 | return cfg.Clone() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/tracer_nongo11.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | // +build !go1.11 7 | 8 | package tracer 9 | 10 | func startExecutionTracerTask(name string) func() { 11 | return func() {} 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/gopkg.in/alexcesaro/quotedprintable.v3/pool_go12.go: -------------------------------------------------------------------------------- 1 | // +build !go1.3 2 | 3 | package quotedprintable 4 | 5 | import "bytes" 6 | 7 | var ch = make(chan *bytes.Buffer, 32) 8 | 9 | func getBuffer() *bytes.Buffer { 10 | select { 11 | case buf := <-ch: 12 | return buf 13 | default: 14 | } 15 | return new(bytes.Buffer) 16 | } 17 | 18 | func putBuffer(buf *bytes.Buffer) { 19 | buf.Reset() 20 | select { 21 | case ch <- buf: 22 | default: 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /wallet-withdraw/base/models/models.go: -------------------------------------------------------------------------------- 1 | package models 2 | 3 | import ( 4 | "upex-wallet/wallet-base/models" 5 | 6 | "github.com/jinzhu/gorm" 7 | ) 8 | 9 | type M map[string]interface{} 10 | 11 | func Init(db *gorm.DB) error { 12 | return db.AutoMigrate( 13 | &Tx{}, 14 | &TxIn{}, 15 | &AddrInfo{}, 16 | &BroadcastTask{}, 17 | &SuggestFee{}, 18 | &models.Address{}, 19 | &models.Account{}, 20 | &models.UTXO{}, 21 | // &ColdInfo{}, 22 | ).Error 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/buger/jsonparser/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.6 2 | 3 | RUN go get github.com/Jeffail/gabs 4 | RUN go get github.com/bitly/go-simplejson 5 | RUN go get github.com/pquerna/ffjson 6 | RUN go get github.com/antonholmquist/jason 7 | RUN go get github.com/mreiferson/go-ujson 8 | RUN go get -tags=unsafe -u github.com/ugorji/go/codec 9 | RUN go get github.com/mailru/easyjson 10 | 11 | WORKDIR /go/src/github.com/buger/jsonparser 12 | ADD . /go/src/github.com/buger/jsonparser -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /wallet-base/util/recover_test.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "fmt" 5 | "testing" 6 | "time" 7 | ) 8 | 9 | func TestRecover(t *testing.T) { 10 | WithRecover("test-WithRecover", func() { 11 | panic("panic here!") 12 | }, func(err error) { 13 | fmt.Println("handle err:", err) 14 | }) 15 | 16 | Go("test-Go", func() { 17 | panic("and panic here!") 18 | }, func(err error) { 19 | fmt.Println("handle err:", err) 20 | }) 21 | 22 | time.Sleep(time.Second) 23 | } 24 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/nem.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import "github.com/buger/jsonparser" 4 | 5 | func init() { 6 | Set("XEM", xemGetter) 7 | } 8 | func xemGetter(url string) (int64, error) { 9 | data, err := restyGet(url + "/chain/height") 10 | if err != nil { 11 | return 0, err 12 | } 13 | 14 | height, err := jsonparser.GetInt(data, "height") 15 | if err != nil { 16 | return 0, err 17 | } 18 | 19 | return height, nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/checksum.go: -------------------------------------------------------------------------------- 1 | package crypto 2 | 3 | import ( 4 | "github.com/dchest/blake256" 5 | ) 6 | 7 | const CheckSumLen = 4 8 | 9 | func CheckSum(input []byte) (cksum [CheckSumLen]byte) { 10 | h := DoubleSha256(input) 11 | copy(cksum[:], h[:CheckSumLen]) 12 | return 13 | } 14 | 15 | func Blake256CheckSum(input []byte) (cksum [CheckSumLen]byte) { 16 | h := Sum(Sum(input, blake256.New()), blake256.New()) 17 | copy(cksum[:], h[:CheckSumLen]) 18 | return 19 | } 20 | -------------------------------------------------------------------------------- /wallet-withdraw/build/make/make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | main_folder=${1} 4 | service_name=${2} 5 | 6 | DEV_TOOLS_SET_ENV=/opt/rh/devtoolset-7/enable 7 | # shellcheck disable=SC1090 8 | [ -f ${DEV_TOOLS_SET_ENV} ] && source ${DEV_TOOLS_SET_ENV} 9 | 10 | if [ "${buildxmr}" = "1" ] 11 | then 12 | tags='buildxmr' 13 | fi 14 | 15 | set -e 16 | go install -tags=${tags} ../cmd/"${main_folder}" 17 | go build -tags=${tags} -o ./bin/"${service_name}" ../cmd/"${main_folder}" 18 | 19 | echo -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | *.test 26 | *.out 27 | *.txt 28 | cover.html 29 | README.html -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/resty.v1/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | # - 1.3 7 | # - 1.4 8 | # - 1.5 9 | # - 1.6 10 | # - 1.7 11 | # - 1.8.x 12 | # - 1.9.x 13 | - 1.10.x 14 | - 1.11.x 15 | - tip 16 | 17 | install: 18 | - go get -v -t ./... 19 | 20 | script: 21 | - go test ./... -coverprofile=coverage.txt -covermode=atomic 22 | 23 | after_success: 24 | - bash <(curl -s https://codecov.io/bash) 25 | 26 | matrix: 27 | allow_failures: 28 | - go: tip 29 | -------------------------------------------------------------------------------- /wallet-tools/cmd/rundeck/cookie.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "net/http" 5 | "net/url" 6 | ) 7 | 8 | type cookieJar struct { 9 | cookies []*http.Cookie 10 | } 11 | 12 | func newCookieJar() *cookieJar { 13 | return &cookieJar{} 14 | } 15 | 16 | func (j *cookieJar) SetCookies(u *url.URL, cookies []*http.Cookie) { 17 | if u.Path == authPath { 18 | j.cookies = cookies 19 | } 20 | } 21 | 22 | func (j *cookieJar) Cookies(u *url.URL) []*http.Cookie { 23 | return j.cookies 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/inflection/wercker.yml: -------------------------------------------------------------------------------- 1 | box: golang 2 | 3 | build: 4 | steps: 5 | - setup-go-workspace 6 | 7 | # Gets the dependencies 8 | - script: 9 | name: go get 10 | code: | 11 | go get 12 | 13 | # Build the project 14 | - script: 15 | name: go build 16 | code: | 17 | go build ./... 18 | 19 | # Test the project 20 | - script: 21 | name: go test 22 | code: | 23 | go test ./... 24 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/xlm.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "github.com/buger/jsonparser" 5 | ) 6 | 7 | func init() { 8 | Set("XLM", xlmGetter) 9 | } 10 | 11 | func xlmGetter(url string) (int64, error) { 12 | data, err := restyGet(url) 13 | if err != nil { 14 | return 0, err 15 | } 16 | 17 | height, err := jsonparser.GetInt(data, "history_latest_ledger") 18 | if err != nil { 19 | return 0, err 20 | } 21 | 22 | return height, nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/gopkg.in/alexcesaro/quotedprintable.v3/pool.go: -------------------------------------------------------------------------------- 1 | // +build go1.3 2 | 3 | package quotedprintable 4 | 5 | import ( 6 | "bytes" 7 | "sync" 8 | ) 9 | 10 | var bufPool = sync.Pool{ 11 | New: func() interface{} { 12 | return new(bytes.Buffer) 13 | }, 14 | } 15 | 16 | func getBuffer() *bytes.Buffer { 17 | return bufPool.Get().(*bytes.Buffer) 18 | } 19 | 20 | func putBuffer(buf *bytes.Buffer) { 21 | if buf.Len() > 1024 { 22 | return 23 | } 24 | buf.Reset() 25 | bufPool.Put(buf) 26 | } 27 | -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/error.go: -------------------------------------------------------------------------------- 1 | package txbuilder 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // ErrUnsupportedCurrency def. 8 | type ErrUnsupportedCurrency struct { 9 | Currency string 10 | } 11 | 12 | func NewErrUnsupportedCurrency(currency string) *ErrUnsupportedCurrency { 13 | return &ErrUnsupportedCurrency{ 14 | Currency: currency, 15 | } 16 | } 17 | 18 | func (e *ErrUnsupportedCurrency) Error() string { 19 | return fmt.Sprintf("unsupported currency of %s", e.Currency) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm,!gccgo,linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /wallet-deposit/syncer/bitcoin/gbtc/response.go: -------------------------------------------------------------------------------- 1 | package gbtc 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Response struct { 8 | Id uint64 `json:"id"` 9 | Result *json.RawMessage `json:"result"` 10 | Error interface{} `json:"error"` 11 | } 12 | 13 | func (r *Response) UnmarshalResult(x interface{}) error { 14 | switch x.(type) { 15 | case *[]byte: 16 | *(x.(*[]byte)) = *r.Result 17 | return nil 18 | default: 19 | return json.Unmarshal(*r.Result, x) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /wallet-withdraw/build/make/make_import_claim.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source_path=${1} 4 | source_package=${2} 5 | target_file=${3}/import_claim.go 6 | package_name=${4} 7 | 8 | printf 'package %s 9 | 10 | import ( 11 | ' ${package_name} > ${target_file} 12 | 13 | for folder in $(ls -d ${source_path%%/}/*/) 14 | do 15 | folder=${folder%%/} 16 | folder=${folder##*/} 17 | echo " _ \"${source_package%%/}/${folder}\"" >> ${target_file} 18 | done 19 | 20 | echo ")" >> ${target_file} 21 | 22 | echo -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.8.x 5 | - 1.9.x 6 | - 1.10.x 7 | - 1.11.x 8 | - 1.12.x 9 | - master 10 | 11 | git: 12 | depth: 10 13 | 14 | matrix: 15 | fast_finish: true 16 | include: 17 | - go: 1.11.x 18 | env: GO111MODULE=on 19 | - go: 1.12.x 20 | env: GO111MODULE=on 21 | 22 | script: 23 | - go test -v -covermode=count -coverprofile=coverage.out 24 | 25 | after_success: 26 | - bash <(curl -s https://codecov.io/bash) 27 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: [1.13.x, 1.14.x] 8 | os: [linux, osx] 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - ./travis/cross_build.sh 13 | - ./travis/lint.sh 14 | - export GOMAXPROCS=4 15 | - export GORACE=halt_on_error=1 16 | - go test -race -v ./... 17 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi 18 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/time.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | // +build !windows 7 | 8 | package tracer 9 | 10 | import "time" 11 | 12 | // now returns current UTC time in nanos. 13 | func now() int64 { 14 | return time.Now().UTC().UnixNano() 15 | } 16 | -------------------------------------------------------------------------------- /wallet-tools/cmd/genwallet/keypair/builder/eth.go: -------------------------------------------------------------------------------- 1 | package builder 2 | 3 | import ( 4 | "upex-wallet/wallet-tools/base/crypto/addrprovider" 5 | "upex-wallet/wallet-tools/base/crypto/key" 6 | "upex-wallet/wallet-tools/base/crypto/signer" 7 | ) 8 | 9 | func init() { 10 | registerETHLike("ETH", "ETC", "WAN", "DCAR", "SMT", "FT", "IONC") 11 | } 12 | 13 | func registerETHLike(classes ...string) { 14 | registerBatch(classes, key.NewSecp256k1, signer.NewSecp256k1Recoverable(false), addrprovider.NewETH()) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/trace.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package websocket 4 | 5 | import ( 6 | "crypto/tls" 7 | "net/http/httptrace" 8 | ) 9 | 10 | func doHandshakeWithTrace(trace *httptrace.ClientTrace, tlsConn *tls.Conn, cfg *tls.Config) error { 11 | if trace.TLSHandshakeStart != nil { 12 | trace.TLSHandshakeStart() 13 | } 14 | err := doHandshake(tlsConn, cfg) 15 | if trace.TLSHandshakeDone != nil { 16 | trace.TLSHandshakeDone(tlsConn.ConnectionState(), err) 17 | } 18 | return err 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/jinzhu/gorm/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/jinzhu/gorm 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/denisenkom/go-mssqldb v0.0.0-20191124224453-732737034ffd 7 | github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5 8 | github.com/go-sql-driver/mysql v1.5.0 9 | github.com/jinzhu/inflection v1.0.0 10 | github.com/jinzhu/now v1.0.1 11 | github.com/lib/pq v1.1.1 12 | github.com/mattn/go-sqlite3 v1.14.0 13 | golang.org/x/crypto v0.0.0-20191205180655-e7c4368fe9dd // indirect 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /wallet-base/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | _ "upex-wallet/wallet-base/api" 5 | _ "upex-wallet/wallet-base/cmd" 6 | _ "upex-wallet/wallet-base/currency" 7 | _ "upex-wallet/wallet-base/db" 8 | _ "upex-wallet/wallet-base/jsonrpc" 9 | _ "upex-wallet/wallet-base/models" 10 | _ "upex-wallet/wallet-base/monitor" 11 | _ "upex-wallet/wallet-base/service" 12 | _ "upex-wallet/wallet-base/util" 13 | _ "upex-wallet/wallet-base/viper" 14 | ) 15 | 16 | // Just for checking any compile error. 17 | func main() {} 18 | -------------------------------------------------------------------------------- /wallet-tools/cmd/genwallet/keypair/generator/random.go: -------------------------------------------------------------------------------- 1 | package generator 2 | 3 | import "upex-wallet/wallet-tools/cmd/genwallet/keypair" 4 | 5 | type Random struct { 6 | builderClass string 7 | } 8 | 9 | func NewRandom(builderClass string) *Random { 10 | return &Random{ 11 | builderClass: builderClass, 12 | } 13 | } 14 | 15 | func (g *Random) Init() error { return nil } 16 | 17 | // 生成随机密钥对 18 | func (g *Random) Generate(idx int) (keypair.KeyPair, error) { 19 | return keypair.Random(g.builderClass) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/translations.go: -------------------------------------------------------------------------------- 1 | package validator 2 | 3 | import ut "github.com/go-playground/universal-translator" 4 | 5 | // TranslationFunc is the function type used to register or override 6 | // custom translations 7 | type TranslationFunc func(ut ut.Translator, fe FieldError) string 8 | 9 | // RegisterTranslationsFunc allows for registering of translations 10 | // for a 'ut.Translator' for use within the 'TranslationFunc' 11 | type RegisterTranslationsFunc func(ut ut.Translator) error 12 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/kmd.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "github.com/buger/jsonparser" 5 | ) 6 | 7 | func init() { 8 | Set("KMD", kmdGetter) 9 | } 10 | 11 | func kmdGetter(url string) (int64, error) { 12 | data, err := restyPost(url, jsonrpcRequest2("getblockcount", nil)) 13 | if err != nil { 14 | return 0, err 15 | } 16 | 17 | height, err := jsonparser.GetInt(data, "result") 18 | if err != nil { 19 | return 0, err 20 | } 21 | 22 | return height, nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/ebfe/keccak/shake.go: -------------------------------------------------------------------------------- 1 | package keccak 2 | 3 | import ( 4 | "hash" 5 | ) 6 | 7 | // NewSHAKE128 returns a new hash.Hash computing SHAKE128 with a n*8 bit output as specified in the FIPS 202 draft. 8 | func NewSHAKE128(n int) hash.Hash { 9 | return newKeccak(128*2, n*8, domainSHAKE) 10 | } 11 | 12 | // NewSHAKE256 returns a new hash.Hash computing SHAKE256 with a n*8 bit output as specified in the FIPS 202 draft. 13 | func NewSHAKE256(n int) hash.Hash { 14 | return newKeccak(256*2, n*8, domainSHAKE) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/Dockerfile.alltools: -------------------------------------------------------------------------------- 1 | # Build Geth in a stock Go builder container 2 | FROM golang:1.12-alpine as builder 3 | 4 | RUN apk add --no-cache make gcc musl-dev linux-headers git 5 | 6 | ADD . /go-ethereum 7 | RUN cd /go-ethereum && make all 8 | 9 | # Pull all binaries into a second stage deploy alpine container 10 | FROM alpine:latest 11 | 12 | RUN apk add --no-cache ca-certificates 13 | COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ 14 | 15 | EXPOSE 8545 8546 30303 30303/udp 16 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/sha3/xor.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !amd64,!386,!ppc64le appengine 6 | 7 | package sha3 8 | 9 | var ( 10 | xorIn = xorInGeneric 11 | copyOut = copyOutGeneric 12 | xorInUnaligned = xorInGeneric 13 | copyOutUnaligned = copyOutGeneric 14 | ) 15 | 16 | const xorImplementationUnaligned = "generic" 17 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/uri.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | type uriBinding struct{} 8 | 9 | func (uriBinding) Name() string { 10 | return "uri" 11 | } 12 | 13 | func (uriBinding) BindUri(m map[string][]string, obj interface{}) error { 14 | if err := mapUri(obj, m); err != nil { 15 | return err 16 | } 17 | return validate(obj) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/conn_write_legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.8 6 | 7 | package websocket 8 | 9 | func (c *Conn) writeBufs(bufs ...[]byte) error { 10 | for _, buf := range bufs { 11 | if len(buf) > 0 { 12 | if _, err := c.conn.Write(buf); err != nil { 13 | return err 14 | } 15 | } 16 | } 17 | return nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/file-rotatelogs/internal/option/option.go: -------------------------------------------------------------------------------- 1 | package option 2 | 3 | type Interface interface { 4 | Name() string 5 | Value() interface{} 6 | } 7 | 8 | type Option struct { 9 | name string 10 | value interface{} 11 | } 12 | 13 | func New(name string, value interface{}) *Option { 14 | return &Option{ 15 | name: name, 16 | value: value, 17 | } 18 | } 19 | 20 | func (o *Option) Name() string { 21 | return o.name 22 | } 23 | func (o *Option) Value() interface{} { 24 | return o.value 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/strftime/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: bench realclean cover viewcover test lint 2 | 3 | bench: 4 | go test -tags bench -benchmem -bench . 5 | @git checkout go.mod 6 | @rm go.sum 7 | 8 | realclean: 9 | rm coverage.out 10 | 11 | test: 12 | go test -v -race ./... 13 | 14 | cover: 15 | go test -v -race -coverpkg=./... -coverprofile=coverage.out ./... 16 | 17 | viewcover: 18 | go tool cover -html=coverage.out 19 | 20 | lint: 21 | golangci-lint run ./... 22 | 23 | imports: 24 | goimports -w ./ 25 | 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package sha3 8 | 9 | import ( 10 | "crypto" 11 | ) 12 | 13 | func init() { 14 | crypto.RegisterHash(crypto.SHA3_224, New224) 15 | crypto.RegisterHash(crypto.SHA3_256, New256) 16 | crypto.RegisterHash(crypto.SHA3_384, New384) 17 | crypto.RegisterHash(crypto.SHA3_512, New512) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.6.x 5 | - 1.7.x 6 | - 1.8.x 7 | - 1.9.x 8 | - 1.10.x 9 | - 1.11.x 10 | - 1.12.x 11 | - 1.13.x 12 | 13 | install: skip 14 | script: 15 | - go get golang.org/x/tools/cmd/cover 16 | - go get github.com/smartystreets/goconvey 17 | - mkdir -p $HOME/gopath/src/gopkg.in 18 | - ln -s $HOME/gopath/src/github.com/go-ini/ini $HOME/gopath/src/gopkg.in/ini.v1 19 | - cd $HOME/gopath/src/gopkg.in/ini.v1 20 | - go test -v -cover -race 21 | -------------------------------------------------------------------------------- /wallet-tools/base/email/email.go: -------------------------------------------------------------------------------- 1 | package email 2 | 3 | import ( 4 | "github.com/go-gomail/gomail" 5 | ) 6 | 7 | // SimpleSend sends a simple email. 8 | func SimpleSend(host string, port int, sender, pass string, receivers []string, title, body string) error { 9 | m := gomail.NewMessage() 10 | m.SetHeader("From", sender) 11 | m.SetHeader("To", receivers...) 12 | m.SetHeader("Subject", title) 13 | m.SetBody("text/plain", body) 14 | 15 | d := gomail.NewDialer(host, port, sender, pass) 16 | return d.DialAndSend(m) 17 | } 18 | -------------------------------------------------------------------------------- /wallet-withdraw/build/make/make_gitversion.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | target_file=${1}/version.go 4 | package_name=${2} 5 | 6 | hash=$(git rev-parse --short HEAD) 7 | 8 | function joins { echo "$*"; } 9 | tag=$(joins $(git tag --points-at ${hash})) 10 | 11 | printf 'package %s 12 | 13 | const ( 14 | VersionHash = "%s" 15 | VersionTag = "%s" 16 | ) 17 | 18 | func Version() string { 19 | return VersionTag + "(" + VersionHash + ")" 20 | } 21 | ' "${package_name}" "${hash}" "${tag}" > "${target_file}" 22 | 23 | echo 24 | -------------------------------------------------------------------------------- /wallet-base/jsonrpc/response.go: -------------------------------------------------------------------------------- 1 | package jsonrpc 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Response struct { 8 | Id int64 `json:"id"` 9 | Result *json.RawMessage `json:"result"` 10 | Error interface{} `json:"error"` 11 | } 12 | 13 | func (r *Response) UnmarshalResult(x interface{}) error { 14 | switch x.(type) { 15 | case *[]byte: 16 | if r.Result != nil { 17 | *(x.(*[]byte)) = *r.Result 18 | } 19 | return nil 20 | default: 21 | return json.Unmarshal(*r.Result, x) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/etp.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "github.com/buger/jsonparser" 5 | ) 6 | 7 | func init() { 8 | Set("ETP", etpGetter) 9 | } 10 | 11 | func etpGetter(url string) (int64, error) { 12 | data, err := restyPost(url, jsonrpcRequest2("fetch-height", []interface{}{})) 13 | if err != nil { 14 | return 0, err 15 | } 16 | 17 | height, err := jsonparser.GetInt(data, "result") 18 | if err != nil { 19 | return 0, err 20 | } 21 | 22 | return height, nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/Dockerfile: -------------------------------------------------------------------------------- 1 | # Build Geth in a stock Go builder container 2 | FROM golang:1.12-alpine as builder 3 | 4 | RUN apk add --no-cache make gcc musl-dev linux-headers git 5 | 6 | ADD . /go-ethereum 7 | RUN cd /go-ethereum && make geth 8 | 9 | # Pull Geth into a second stage deploy alpine container 10 | FROM alpine:latest 11 | 12 | RUN apk add --no-cache ca-certificates 13 | COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ 14 | 15 | EXPOSE 8545 8546 30303 30303/udp 16 | ENTRYPOINT ["geth"] 17 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/test_helpers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gin 6 | 7 | import "net/http" 8 | 9 | // CreateTestContext returns a fresh engine and context for testing purposes 10 | func CreateTestContext(w http.ResponseWriter) (c *Context, r *Engine) { 11 | r = New() 12 | c = r.allocateContext() 13 | c.reset() 14 | c.writermem.reset(w) 15 | return 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/Makefile: -------------------------------------------------------------------------------- 1 | GOCMD=GO111MODULE=on go 2 | 3 | linters-install: 4 | @golangci-lint --version >/dev/null 2>&1 || { \ 5 | echo "installing linting tools..."; \ 6 | curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0; \ 7 | } 8 | 9 | lint: linters-install 10 | $(PWD)/bin/golangci-lint run 11 | 12 | test: 13 | $(GOCMD) test -cover -race ./... 14 | 15 | bench: 16 | $(GOCMD) test -bench=. -benchmem ./... 17 | 18 | .PHONY: test lint linters-install -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/writer.go: -------------------------------------------------------------------------------- 1 | package sse 2 | 3 | import "io" 4 | 5 | type stringWriter interface { 6 | io.Writer 7 | WriteString(string) (int, error) 8 | } 9 | 10 | type stringWrapper struct { 11 | io.Writer 12 | } 13 | 14 | func (w stringWrapper) WriteString(str string) (int, error) { 15 | return w.Writer.Write([]byte(str)) 16 | } 17 | 18 | func checkWriter(writer io.Writer) stringWriter { 19 | if w, ok := writer.(stringWriter); ok { 20 | return w 21 | } else { 22 | return stringWrapper{writer} 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build appengine js nacl 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on js and appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "daee8a88b3498b61c5640056665b8b9eea062006f5e596bbb6a3ed9119a11ec7" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/sha3/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package sha3 8 | 9 | import ( 10 | "crypto" 11 | ) 12 | 13 | func init() { 14 | crypto.RegisterHash(crypto.SHA3_224, New224) 15 | crypto.RegisterHash(crypto.SHA3_256, New256) 16 | crypto.RegisterHash(crypto.SHA3_384, New384) 17 | crypto.RegisterHash(crypto.SHA3_512, New512) 18 | } 19 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/ft.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "github.com/buger/jsonparser" 5 | ) 6 | 7 | func init() { 8 | Set("FT", ftGetter) 9 | } 10 | 11 | func ftGetter(url string) (int64, error) { 12 | data, err := restyPost(url, jsonrpcRequest2("ft_getCurrentBlock", []interface{}{true})) 13 | if err != nil { 14 | return 0, err 15 | } 16 | 17 | height, err := jsonparser.GetInt(data, "result", "number") 18 | if err != nil { 19 | return 0, err 20 | } 21 | 22 | return height, nil 23 | } 24 | -------------------------------------------------------------------------------- /wallet-withdraw/build/make/make_import.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source_path=${1} 4 | source_package=${2} 5 | target_file=${3}/imports/import.go 6 | package_name=${4} 7 | 8 | printf 'package %s 9 | 10 | import ( 11 | ' "${package_name}" > "${target_file}" 12 | 13 | # shellcheck disable=SC2045 14 | for folder in $(ls -d "${source_path%%/}"/*/) 15 | do 16 | folder=${folder%%/} 17 | folder=${folder##*/} 18 | echo " _ \"${source_package%%/}/${folder}\"" >> "${target_file}" 19 | done 20 | 21 | echo ")" >> "${target_file}" 22 | 23 | echo -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | stages: 4 | - diff 5 | - test 6 | - build 7 | 8 | go: 9 | - 1.12.x 10 | - 1.13.x 11 | - tip 12 | 13 | before_install: 14 | - go get -u github.com/kyoh86/richgo 15 | - go get -u github.com/mitchellh/gox 16 | 17 | matrix: 18 | allow_failures: 19 | - go: tip 20 | include: 21 | - stage: diff 22 | go: 1.13.x 23 | script: make fmt 24 | - stage: build 25 | go: 1.13.x 26 | script: make cobra_generator 27 | 28 | script: 29 | - make test 30 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/internal/version/version.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | package version 7 | 8 | // Tag specifies the current release tag. It needs to be manually 9 | // updated. A test checks that the value of Tag never points to a 10 | // git tag that is older than HEAD. 11 | const Tag = "v1.27.0" 12 | -------------------------------------------------------------------------------- /wallet-base/util/signal.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "os" 5 | "os/signal" 6 | 7 | "upex-wallet/wallet-base/newbitx/misclib/log" 8 | ) 9 | 10 | // RegisterSignalHandler registers a global system signal handler. 11 | func RegisterSignalHandler(h func(os.Signal), sigs ...os.Signal) { 12 | Go("signal-handler", func() { 13 | c := make(chan os.Signal, 1) 14 | signal.Notify(c, sigs...) 15 | 16 | for { 17 | s := <-c 18 | log.Warnf("receive signal: %s", s) 19 | if h != nil { 20 | h(s) 21 | } 22 | } 23 | }, nil) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl.go: -------------------------------------------------------------------------------- 1 | // Package hcl decodes HCL into usable Go structures. 2 | // 3 | // hcl input can come in either pure HCL format or JSON format. 4 | // It can be parsed into an AST, and then decoded into a structure, 5 | // or it can be decoded directly from a string into a structure. 6 | // 7 | // If you choose to parse HCL into a raw AST, the benefit is that you 8 | // can write custom visitor implementations to implement custom 9 | // semantic checks. By default, HCL does not perform any semantic 10 | // checks. 11 | package hcl 12 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/metrics.go: -------------------------------------------------------------------------------- 1 | // Go port of Coda Hale's Metrics library 2 | // 3 | // 4 | // 5 | // Coda Hale's original work: 6 | package metrics 7 | 8 | // UseNilMetrics is checked by the constructor functions for all of the 9 | // standard metrics. If it is true, the metric returned is a stub. 10 | // 11 | // This global kill-switch helps quantify the observer effect and makes 12 | // for less cluttered pprof profiles. 13 | var UseNilMetrics bool = false 14 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cast/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 4 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 5 | github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= 6 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/osinfo_default.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | // +build !windows,!linux,!darwin 7 | 8 | package tracer 9 | 10 | import ( 11 | "runtime" 12 | ) 13 | 14 | func osName() string { 15 | return runtime.GOOS 16 | } 17 | 18 | func osVersion() string { 19 | return unknown 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/java/org_bitcoin_Secp256k1Context.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "org_bitcoin_Secp256k1Context.h" 4 | #include "include/secp256k1.h" 5 | 6 | SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context 7 | (JNIEnv* env, jclass classObject) 8 | { 9 | secp256k1_context *ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY); 10 | 11 | (void)classObject;(void)env; 12 | 13 | return (uintptr_t)ctx; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/kardianos/osext/osext_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //+build !go1.8 6 | 7 | package osext 8 | 9 | import ( 10 | "os" 11 | "strconv" 12 | "syscall" 13 | ) 14 | 15 | func executable() (string, error) { 16 | f, err := os.Open("/proc/" + strconv.Itoa(os.Getpid()) + "/text") 17 | if err != nil { 18 | return "", err 19 | } 20 | defer f.Close() 21 | return syscall.Fd2path(int(f.Fd())) 22 | } 23 | -------------------------------------------------------------------------------- /wallet-config/withdraw/broadcast/config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "fmt" 5 | 6 | bviper "upex-wallet/wallet-base/viper" 7 | 8 | "github.com/spf13/viper" 9 | ) 10 | 11 | func Init(cfgFile string) error { 12 | viper.SetConfigFile(cfgFile) 13 | viper.AddConfigPath(".") 14 | err := viper.ReadInConfig() 15 | if err != nil { 16 | return fmt.Errorf("read config failed, %v", err) 17 | } 18 | 19 | err = bviper.MergeExtIfNecessary() 20 | if err != nil { 21 | return fmt.Errorf("merge config failed, %v", err) 22 | } 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/tinylib/msgp/msgp/advise_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux,!appengine 2 | 3 | package msgp 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | func adviseRead(mem []byte) { 11 | syscall.Madvise(mem, syscall.MADV_SEQUENTIAL|syscall.MADV_WILLNEED) 12 | } 13 | 14 | func adviseWrite(mem []byte) { 15 | syscall.Madvise(mem, syscall.MADV_SEQUENTIAL) 16 | } 17 | 18 | func fallocate(f *os.File, sz int64) error { 19 | err := syscall.Fallocate(int(f.Fd()), 0, 0, sz) 20 | if err == syscall.ENOTSUP { 21 | return f.Truncate(sz) 22 | } 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/eos.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "strings" 5 | 6 | "github.com/buger/jsonparser" 7 | ) 8 | 9 | func init() { 10 | Set("EOS", eosGetter) 11 | } 12 | 13 | func eosGetter(url string) (int64, error) { 14 | data, err := restyGet(strings.TrimRight(url, "/") + "/v1/chain/get_info") 15 | if err != nil { 16 | return 0, err 17 | } 18 | 19 | height, err := jsonparser.GetInt(data, "last_irreversible_block_num") 20 | if err != nil { 21 | return 0, err 22 | } 23 | 24 | return height, nil 25 | } 26 | -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/btc/gbtc/rpc.go: -------------------------------------------------------------------------------- 1 | package gbtc 2 | 3 | type RPC interface { 4 | GetBestblockhash() (string, error) 5 | GetBlockByHash(hash string) ([]byte, error) 6 | GetBlockByHeight(height uint64) ([]byte, error) 7 | GetRawTransaction(txhash string) (*Transaction, error) 8 | GetTransactionDetail(txhash string) ([]byte, error) 9 | CreateRawTransaction(version uint32, preOuts []*OutputPoint, outs []*Output) (*Transaction, error) 10 | SendRawTransaction(tx *Transaction) (string, error) 11 | EstimateSmartFee(confirmNum int) (float64, error) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/sevlyar/go-daemon/lock_file_unix.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd linux netbsd openbsd plan9 2 | 3 | package daemon 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | func lockFile(fd uintptr) error { 10 | err := syscall.Flock(int(fd), syscall.LOCK_EX|syscall.LOCK_NB) 11 | if err == syscall.EWOULDBLOCK { 12 | err = ErrWouldBlock 13 | } 14 | return err 15 | } 16 | 17 | func unlockFile(fd uintptr) error { 18 | err := syscall.Flock(int(fd), syscall.LOCK_UN) 19 | if err == syscall.EWOULDBLOCK { 20 | err = ErrWouldBlock 21 | } 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Snappy-Go authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Damian Gryski 12 | Google Inc. 13 | Jan Mercl <0xjnml@gmail.com> 14 | Rodolfo Carvalho 15 | Sebastien Binet 16 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.5 5 | 6 | package codec 7 | 8 | import ( 9 | "errors" 10 | "reflect" 11 | ) 12 | 13 | const reflectArrayOfSupported = false 14 | 15 | var errNoReflectArrayOf = errors.New("codec: reflect.ArrayOf unsupported by this go version") 16 | 17 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 18 | panic(errNoReflectArrayOf) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/gopkg.in/alexcesaro/quotedprintable.v3/README.md: -------------------------------------------------------------------------------- 1 | # quotedprintable 2 | 3 | ## Introduction 4 | 5 | Package quotedprintable implements quoted-printable and message header encoding 6 | as specified by RFC 2045 and RFC 2047. 7 | 8 | It is a copy of the Go 1.5 package `mime/quotedprintable`. It also includes 9 | the new functions of package `mime` concerning RFC 2047. 10 | 11 | This code has minor changes with the standard library code in order to work 12 | with Go 1.0 and newer. 13 | 14 | ## Documentation 15 | 16 | https://godoc.org/gopkg.in/alexcesaro/quotedprintable.v3 17 | -------------------------------------------------------------------------------- /wallet-deposit/syncer/bitcoin/gbtc/request.go: -------------------------------------------------------------------------------- 1 | package gbtc 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Request struct { 8 | ID int `json:"id"` 9 | JsonRPC string `json:"jsonrpc"` 10 | Method string `json:"method"` 11 | Params json.RawMessage `json:"params"` 12 | } 13 | 14 | func NewRequest(method string, params Params) *Request { 15 | pb, _ := json.Marshal(params) 16 | return &Request{ 17 | ID: 1, 18 | JsonRPC: "1.0", 19 | Method: method, 20 | Params: pb, 21 | } 22 | } 23 | 24 | type Params []interface{} 25 | -------------------------------------------------------------------------------- /vendor/github.com/allegro/bigcache/stats.go: -------------------------------------------------------------------------------- 1 | package bigcache 2 | 3 | // Stats stores cache statistics 4 | type Stats struct { 5 | // Hits is a number of successfully found keys 6 | Hits int64 `json:"hits"` 7 | // Misses is a number of not found keys 8 | Misses int64 `json:"misses"` 9 | // DelHits is a number of successfully deleted keys 10 | DelHits int64 `json:"delete_hits"` 11 | // DelMisses is a number of not deleted keys 12 | DelMisses int64 `json:"delete_misses"` 13 | // Collisions is a number of happened key-collisions 14 | Collisions int64 `json:"collisions"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.8.x 6 | - 1.9.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | fast_finish: true 13 | 14 | before_script: 15 | - go get -u github.com/golang/lint/golint 16 | 17 | script: 18 | - go test -v --race ./... 19 | 20 | after_script: 21 | - test -z "$(gofmt -s -l -w . | tee /dev/stderr)" 22 | - test -z "$(golint ./... | tee /dev/stderr)" 23 | - go vet ./... 24 | 25 | os: 26 | - linux 27 | - osx 28 | 29 | notifications: 30 | email: false 31 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_win.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package cobra 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "time" 9 | 10 | "github.com/inconshreveable/mousetrap" 11 | ) 12 | 13 | var preExecHookFn = preExecHook 14 | 15 | func preExecHook(c *Command) { 16 | if MousetrapHelpText != "" && mousetrap.StartedByExplorer() { 17 | c.Print(MousetrapHelpText) 18 | if MousetrapDisplayDuration > 0 { 19 | time.Sleep(MousetrapDisplayDuration) 20 | } else { 21 | c.Println("Press return to continue...") 22 | fmt.Scanln() 23 | } 24 | os.Exit(1) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /wallet-base/newbitx/misclib/crypto/dsa.go: -------------------------------------------------------------------------------- 1 | package crypto 2 | 3 | // PrivateKey defines the interface of privatekey. 4 | type PrivateKey interface { 5 | Public() PublicKey 6 | Sign([]byte) (Signature, error) 7 | SecretBytes() []byte 8 | } 9 | 10 | // PublicKey defines the interface of publickey. 11 | type PublicKey interface { 12 | Bytes() []byte 13 | CompressedBytes() []byte 14 | } 15 | 16 | // Signature defines the interface of signature. 17 | type Signature interface { 18 | Verify([]byte, PublicKey) bool 19 | SetBytes([]byte) 20 | Bytes() []byte 21 | Validate() bool 22 | } 23 | -------------------------------------------------------------------------------- /wallet-deposit/build/Makefile: -------------------------------------------------------------------------------- 1 | 2 | MK := ./make/make.sh 3 | MK_GIT_VERSION := ./make/make_gitversion.sh 4 | MK_DEPOSIT := ./make/make_deposit.sh 5 | MK_IMPORT := ./make/make_import.sh 6 | ServicesFile := ../.circleci/all_services.sh 7 | 8 | all: 9 | @$(MAKE) build 10 | 11 | version: 12 | $(MK_GIT_VERSION) ../cmd cmd 13 | 14 | prebuild: version 15 | $(MK_IMPORT) ../rpc upex-wallet/wallet-deposit/rpc ../cmd imports 16 | 17 | build: prebuild 18 | @go install ../cmd/deposit 19 | go build -o ./bin/deposit ../cmd/deposit 20 | @echo 21 | 22 | 23 | .PHONY: all version prebuild build 24 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/blake.go: -------------------------------------------------------------------------------- 1 | package crypto 2 | 3 | import ( 4 | "github.com/dchest/blake256" 5 | "golang.org/x/crypto/blake2b" 6 | ) 7 | 8 | // Blake2b224 calculates and returns the blake2b hash of the input data. 9 | // with 28 digest size. 10 | func Blake2b224(data ...[]byte) []byte { 11 | h, _ := blake2b.New(28, nil) 12 | for _, b := range data { 13 | h.Write(b) 14 | } 15 | return h.Sum(nil) 16 | } 17 | 18 | // Blake256 calculates and returns the blake256 hash of the input data. 19 | func Blake256(data []byte) []byte { 20 | return Sum(data, blake256.New()) 21 | } 22 | -------------------------------------------------------------------------------- /wallet-deposit/rpc/eth/geth/util.go: -------------------------------------------------------------------------------- 1 | package geth 2 | 3 | import ( 4 | "github.com/buger/jsonparser" 5 | "github.com/ethereum/go-ethereum/common/hexutil" 6 | "github.com/shopspring/decimal" 7 | ) 8 | 9 | func JSONHexToDecimal(data []byte, path ...string) (decimal.Decimal, error) { 10 | value, err := jsonparser.GetString(data, path...) 11 | if err != nil { 12 | return decimal.Zero, err 13 | } 14 | 15 | bigInt, err := hexutil.DecodeBig(value) 16 | if err != nil || bigInt == nil { 17 | return decimal.Zero, err 18 | } 19 | 20 | return decimal.NewFromBigInt(bigInt, 0), nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-gomail/gomail/mime_go14.go: -------------------------------------------------------------------------------- 1 | // +build !go1.5 2 | 3 | package gomail 4 | 5 | import "gopkg.in/alexcesaro/quotedprintable.v3" 6 | 7 | var newQPWriter = quotedprintable.NewWriter 8 | 9 | type mimeEncoder struct { 10 | quotedprintable.WordEncoder 11 | } 12 | 13 | var ( 14 | bEncoding = mimeEncoder{quotedprintable.BEncoding} 15 | qEncoding = mimeEncoder{quotedprintable.QEncoding} 16 | lastIndexByte = func(s string, c byte) int { 17 | for i := len(s) - 1; i >= 0; i-- { 18 | 19 | if s[i] == c { 20 | return i 21 | } 22 | } 23 | return -1 24 | } 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/trap_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package mousetrap 4 | 5 | // StartedByExplorer returns true if the program was invoked by the user 6 | // double-clicking on the executable from explorer.exe 7 | // 8 | // It is conservative and returns false if any of the internal calls fail. 9 | // It does not guarantee that the program was run from a terminal. It only can tell you 10 | // whether it was launched from explorer.exe 11 | // 12 | // On non-Windows platforms, it always returns false. 13 | func StartedByExplorer() bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /wallet-base/libs/bech32/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package bech32 provides a Go implementation of the bech32 format specified in 7 | BIP 173. 8 | 9 | Bech32 strings consist of a human-readable part (hrp), followed by the 10 | separator 1, then a checksummed data part encoded using the 32 characters 11 | "qpzry9x8gf2tvdw0s3jn54khce6mua7l". 12 | 13 | More info: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki 14 | */ 15 | package bech32 16 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/query.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | import "net/http" 8 | 9 | type queryBinding struct{} 10 | 11 | func (queryBinding) Name() string { 12 | return "query" 13 | } 14 | 15 | func (queryBinding) Bind(req *http.Request, obj interface{}) error { 16 | values := req.URL.Query() 17 | if err := mapForm(obj, values); err != nil { 18 | return err 19 | } 20 | return validate(obj) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build 386 amd64 amd64p32 6 | // +build !gccgo 7 | 8 | package cpu 9 | 10 | // cpuid is implemented in cpu_x86.s for gc compiler 11 | // and in cpu_gccgo.c for gccgo. 12 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 13 | 14 | // xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler 15 | // and in cpu_gccgo.c for gccgo. 16 | func xgetbv() (eax, edx uint32) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep 6 | // them here for backwards compatibility. 7 | 8 | package unix 9 | 10 | const ( 11 | DLT_HHDLC = 0x79 12 | IPV6_MIN_MEMBERSHIPS = 0x1f 13 | IP_MAX_SOURCE_FILTER = 0x400 14 | IP_MIN_MEMBERSHIPS = 0x1f 15 | RT_CACHING_CONTEXT = 0x1 16 | RT_NORTREF = 0x2 17 | ) 18 | -------------------------------------------------------------------------------- /wallet-deposit/build/make/make_deposit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | service_name=${1} 4 | app_file=${service_name} 5 | 6 | mkdir -p ../services/"${service_name}"/bin/ 7 | cp ./bin/deposit ../services/"${service_name}"/bin/"${app_file}" 8 | 9 | printf '{ 10 | "service_name": "wallet-deposit-%s", 11 | "type": "go", 12 | "app_file": "%s", 13 | "log_file_name": "wallet-deposit-%s.log", 14 | "bootstrap_args": "" 15 | } 16 | ' "${service_name}" "${app_file}" "${service_name}" > ../services/"${service_name}"/service_spec.json 17 | 18 | echo "'${service_name}'" >> ../.circleci/all_services.sh 19 | 20 | echo -------------------------------------------------------------------------------- /wallet-tools/base/libs/bech32/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package bech32 provides a Go implementation of the bech32 format specified in 7 | BIP 173. 8 | 9 | Bech32 strings consist of a human-readable part (hrp), followed by the 10 | separator 1, then a checksummed data part encoded using the 32 characters 11 | "qpzry9x8gf2tvdw0s3jn54khce6mua7l". 12 | 13 | More info: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki 14 | */ 15 | package bech32 16 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/trx.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "strings" 5 | 6 | "github.com/buger/jsonparser" 7 | ) 8 | 9 | func init() { 10 | Set("TRX", trxGetter) 11 | } 12 | 13 | func trxGetter(url string) (int64, error) { 14 | url = strings.TrimRight(url, "/") + "/wallet/getnowblock" 15 | data, err := restyPost(url, nil) 16 | if err != nil { 17 | return 0, err 18 | } 19 | 20 | height, err := jsonparser.GetInt(data, "block_header", "raw_data", "number") 21 | if err != nil { 22 | return 0, err 23 | } 24 | 25 | return height, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /wallet-deposit/build/make/make_gitversion.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | target_file=${1}/version.go 4 | package_name=${2} 5 | 6 | # 获取最新代码库版本hash 7 | hash=$(git rev-parse --short HEAD) 8 | 9 | function joins { echo "$*"; } 10 | # shellcheck disable=SC2046 11 | tag=$(joins $(git tag --points-at "${hash}")) 12 | 13 | # 修改代码 version.go 文件 14 | printf 'package %s 15 | 16 | const ( 17 | VersionHash = "%s" 18 | VersionTag = "%s" 19 | ) 20 | 21 | func Version() string { 22 | return VersionTag + "(" + VersionHash + ")" 23 | } 24 | ' "${package_name}" "${hash}" "${tag}" > "${target_file}" 25 | 26 | echo 27 | -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/eth/geth/util.go: -------------------------------------------------------------------------------- 1 | package geth 2 | 3 | import ( 4 | "github.com/buger/jsonparser" 5 | "github.com/ethereum/go-ethereum/common/hexutil" 6 | "github.com/shopspring/decimal" 7 | ) 8 | 9 | func JSONHexToDecimal(data []byte, path ...string) (decimal.Decimal, error) { 10 | value, err := jsonparser.GetString(data, path...) 11 | if err != nil { 12 | return decimal.Zero, err 13 | } 14 | 15 | bigInt, err := hexutil.DecodeBig(value) 16 | if err != nil || bigInt == nil { 17 | return decimal.Zero, err 18 | } 19 | 20 | return decimal.NewFromBigInt(bigInt, 0), nil 21 | } 22 | -------------------------------------------------------------------------------- /wallet-base/monitor/http.go: -------------------------------------------------------------------------------- 1 | package monitor 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | 7 | "upex-wallet/wallet-base/newbitx/misclib/log" 8 | ) 9 | 10 | // Info defines simple api response with 200. 11 | func Info(w http.ResponseWriter, r *http.Request) { 12 | w.Header().Set("Content-Type", "application/json") 13 | fmt.Fprintf(w, "{}") 14 | } 15 | 16 | // ListenAndServe starts a http server for keep alive. 17 | func ListenAndServe(addr string) { 18 | http.HandleFunc("/", Info) 19 | err := http.ListenAndServe(addr, nil) 20 | if err != nil { 21 | log.Errorf("ListenAndServe: %v", err) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/handler_go14.go: -------------------------------------------------------------------------------- 1 | // +build go1.4 2 | 3 | package log 4 | 5 | import "sync/atomic" 6 | 7 | // swapHandler wraps another handler that may be swapped out 8 | // dynamically at runtime in a thread-safe fashion. 9 | type swapHandler struct { 10 | handler atomic.Value 11 | } 12 | 13 | func (h *swapHandler) Log(r *Record) error { 14 | return (*h.handler.Load().(*Handler)).Log(r) 15 | } 16 | 17 | func (h *swapHandler) Swap(newHandler Handler) { 18 | h.handler.Store(&newHandler) 19 | } 20 | 21 | func (h *swapHandler) Get() Handler { 22 | return *h.handler.Load().(*Handler) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/conncheck_dummy.go: -------------------------------------------------------------------------------- 1 | // Go MySQL Driver - A MySQL-Driver for Go's database/sql package 2 | // 3 | // Copyright 2019 The Go-MySQL-Driver Authors. All rights reserved. 4 | // 5 | // This Source Code Form is subject to the terms of the Mozilla Public 6 | // License, v. 2.0. If a copy of the MPL was not distributed with this file, 7 | // You can obtain one at http://mozilla.org/MPL/2.0/. 8 | 9 | // +build !linux,!darwin,!dragonfly,!freebsd,!netbsd,!openbsd,!solaris,!illumos 10 | 11 | package mysql 12 | 13 | import "net" 14 | 15 | func connCheck(conn net.Conn) error { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build mips64 mips64le 7 | 8 | package cpu 9 | 10 | // HWCAP bits. These are exposed by the Linux kernel 5.4. 11 | const ( 12 | // CPU features 13 | hwcap_MIPS_MSA = 1 << 1 14 | ) 15 | 16 | func doinit() { 17 | // HWCAP feature bits 18 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) 19 | } 20 | 21 | func isSet(hwc uint, value uint) bool { 22 | return hwc&value != 0 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/buger/jsonparser/bytes_safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine appenginevm 2 | 3 | package jsonparser 4 | 5 | import ( 6 | "strconv" 7 | ) 8 | 9 | // See fastbytes_unsafe.go for explanation on why *[]byte is used (signatures must be consistent with those in that file) 10 | 11 | func equalStr(b *[]byte, s string) bool { 12 | return string(*b) == s 13 | } 14 | 15 | func parseFloat(b *[]byte) (float64, error) { 16 | return strconv.ParseFloat(string(*b), 64) 17 | } 18 | 19 | func bytesToString(b *[]byte) string { 20 | return string(*b) 21 | } 22 | 23 | func StringToBytes(s string) []byte { 24 | return []byte(s) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/internal/bytesconv/bytesconv.go: -------------------------------------------------------------------------------- 1 | package bytesconv 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | // StringToBytes converts string to byte slice without a memory allocation. 9 | func StringToBytes(s string) (b []byte) { 10 | sh := *(*reflect.StringHeader)(unsafe.Pointer(&s)) 11 | bh := (*reflect.SliceHeader)(unsafe.Pointer(&b)) 12 | bh.Data, bh.Len, bh.Cap = sh.Data, sh.Len, sh.Len 13 | return b 14 | } 15 | 16 | // BytesToString converts byte slice to string without a memory allocation. 17 | func BytesToString(b []byte) string { 18 | return *(*string)(unsafe.Pointer(&b)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | // +build plan9 2 | 3 | package isatty 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // IsTerminal returns true if the given file descriptor is a terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | path, err := syscall.Fd2path(int(fd)) 12 | if err != nil { 13 | return false 14 | } 15 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/tracer_go11.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | // +build go1.11 7 | 8 | package tracer 9 | 10 | import ( 11 | "context" 12 | t "runtime/trace" 13 | ) 14 | 15 | func startExecutionTracerTask(name string) func() { 16 | if !t.IsEnabled() { 17 | return func() {} 18 | } 19 | _, task := t.NewTask(context.TODO(), name) 20 | return task.End 21 | } 22 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/hash160.go: -------------------------------------------------------------------------------- 1 | package crypto 2 | 3 | import ( 4 | "crypto/sha256" 5 | 6 | "golang.org/x/crypto/ripemd160" 7 | ) 8 | 9 | // Hash160 calculates the hash ripemd160(sha256(b)). 10 | func Hash160(buf []byte) []byte { 11 | return Sum(Sum(buf, sha256.New()), ripemd160.New()) 12 | } 13 | 14 | // DoubleSha256 calculates the hash sha256(sha256(b)). 15 | func DoubleSha256(buf []byte) []byte { 16 | return Sum(Sum(buf, sha256.New()), sha256.New()) 17 | } 18 | 19 | // SumRipemd160 returns the RIPEMD-160 digest of the data. 20 | func SumRipemd160(data []byte) []byte { 21 | return Sum(data, ripemd160.New()) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/viper/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters-settings: 2 | golint: 3 | min-confidence: 0.1 4 | goimports: 5 | local-prefixes: github.com/spf13/viper 6 | 7 | linters: 8 | enable-all: true 9 | disable: 10 | - funlen 11 | - maligned 12 | 13 | # TODO: fix me 14 | - wsl 15 | - gochecknoinits 16 | - gosimple 17 | - gochecknoglobals 18 | - errcheck 19 | - lll 20 | - godox 21 | - scopelint 22 | - gocyclo 23 | - gocognit 24 | - gocritic 25 | 26 | service: 27 | golangci-lint-version: 1.21.x 28 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/algo.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | 7 | "github.com/buger/jsonparser" 8 | ) 9 | 10 | func init() { 11 | Set("ALGO", algoGetter) 12 | } 13 | 14 | func algoGetter(url string) (int64, error) { 15 | urls := strings.Split(url, "#") 16 | if len(urls) != 2 { 17 | return 0, fmt.Errorf("invalid url format") 18 | } 19 | 20 | data, err := restyGet(strings.TrimRight(urls[0], "/")+"/v1/status", &httpHeader{"X-Algo-API-Token", urls[1]}) 21 | if err != nil { 22 | return 0, err 23 | } 24 | 25 | return jsonparser.GetInt(data, "lastRound") 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Alan Shreve 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Alan Shreve 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/shake_generic.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo appengine !s390x 6 | 7 | package sha3 8 | 9 | // newShake128Asm returns an assembly implementation of SHAKE-128 if available, 10 | // otherwise it returns nil. 11 | func newShake128Asm() ShakeHash { 12 | return nil 13 | } 14 | 15 | // newShake256Asm returns an assembly implementation of SHAKE-256 if available, 16 | // otherwise it returns nil. 17 | func newShake256Asm() ShakeHash { 18 | return nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package toml 4 | 5 | func Fuzz(data []byte) int { 6 | tree, err := LoadBytes(data) 7 | if err != nil { 8 | if tree != nil { 9 | panic("tree must be nil if there is an error") 10 | } 11 | return 0 12 | } 13 | 14 | str, err := tree.ToTomlString() 15 | if err != nil { 16 | if str != "" { 17 | panic(`str must be "" if there is an error`) 18 | } 19 | panic(err) 20 | } 21 | 22 | tree, err = Load(str) 23 | if err != nil { 24 | if tree != nil { 25 | panic("tree must be nil if there is an error") 26 | } 27 | return 0 28 | } 29 | 30 | return 1 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/eth.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "strconv" 5 | 6 | "github.com/buger/jsonparser" 7 | ) 8 | 9 | func init() { 10 | Set("ETH", ethGetter) 11 | } 12 | 13 | func ethGetter(url string) (int64, error) { 14 | data, err := restyPost(url, jsonrpcRequest2("eth_blockNumber", nil)) 15 | if err != nil { 16 | return 0, err 17 | } 18 | 19 | str, err := jsonparser.GetString(data, "result") 20 | if err != nil { 21 | return 0, err 22 | } 23 | 24 | height, err := strconv.ParseInt(str, 0, 64) 25 | if err != nil { 26 | return 0, err 27 | } 28 | 29 | return height, nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= 2 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 4 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 5 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 6 | github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= 7 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.13.1 4 | - tip 5 | matrix: 6 | allow_failures: 7 | - go: tip 8 | 9 | notifications: 10 | email: 11 | recipients: dean.karn@gmail.com 12 | on_success: change 13 | on_failure: always 14 | 15 | before_install: 16 | - go install github.com/mattn/goveralls 17 | 18 | # Only clone the most recent commit. 19 | git: 20 | depth: 1 21 | 22 | script: 23 | - go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./... 24 | 25 | after_success: | 26 | goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/internal/env.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | package internal 7 | 8 | import ( 9 | "os" 10 | "strconv" 11 | ) 12 | 13 | // BoolEnv returns the parsed boolean value of an environment variable, or 14 | // def otherwise. 15 | func BoolEnv(key string, def bool) bool { 16 | v, err := strconv.ParseBool(os.Getenv(key)) 17 | if err != nil { 18 | return def 19 | } 20 | return v 21 | } 22 | -------------------------------------------------------------------------------- /wallet-base/jsonrpc/request.go: -------------------------------------------------------------------------------- 1 | package jsonrpc 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Request struct { 8 | ID int `json:"id"` 9 | JsonRPC JsonRPCVersion `json:"jsonrpc"` 10 | Method string `json:"method"` 11 | Params json.RawMessage `json:"params"` 12 | } 13 | 14 | func NewRequest(method string, params Params, version JsonRPCVersion) *Request { 15 | if params == nil { 16 | params = Params{} 17 | } 18 | 19 | pb, _ := json.Marshal(params) 20 | return &Request{ 21 | ID: 1, 22 | JsonRPC: version, 23 | Method: method, 24 | Params: pb, 25 | } 26 | } 27 | 28 | type Params []interface{} 29 | -------------------------------------------------------------------------------- /wallet-base/newbitx/lisc/value.go: -------------------------------------------------------------------------------- 1 | package lisc 2 | 3 | type ValueType int 4 | 5 | func (t ValueType) String() string { 6 | switch t { 7 | case NumberType: 8 | return "NumberType" 9 | case StringType: 10 | return "StringType" 11 | case BoolType: 12 | return "BoolType" 13 | case PairType: 14 | return "PairType" 15 | default: 16 | return "UnknownType" 17 | } 18 | } 19 | 20 | // Value types 21 | const ( 22 | NumberType ValueType = 0 23 | StringType ValueType = 1 24 | BoolType ValueType = 2 25 | PairType ValueType = 10 26 | ) 27 | 28 | type Value interface { 29 | Type() ValueType 30 | Format(deep int) string 31 | Reset() 32 | } 33 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/dcar.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "strconv" 5 | 6 | "github.com/buger/jsonparser" 7 | ) 8 | 9 | func init() { 10 | Set("DCAR", dcarGetter) 11 | } 12 | 13 | func dcarGetter(url string) (int64, error) { 14 | data, err := restyPost(url, jsonrpcRequest2("dcar_blockNumber", nil)) 15 | if err != nil { 16 | return 0, err 17 | } 18 | 19 | str, err := jsonparser.GetString(data, "result") 20 | if err != nil { 21 | return 0, err 22 | } 23 | 24 | height, err := strconv.ParseInt(str, 0, 64) 25 | if err != nil { 26 | return 0, err 27 | } 28 | 29 | return height, nil 30 | } 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | GYABH# Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | 17 | 18 | .DS_Store 19 | .idea 20 | cmd/version.go 21 | cmd/broadcast/import.go 22 | cmd/transfer/import.go 23 | cmd/transfer/import_claim.go 24 | build/bin/* 25 | .idea/ 26 | .vscode/ 27 | debug 28 | .circleci/all_services.sh 29 | services/**/bin/* 30 | cmd/nodeapi/import.go 31 | cmd/deposit/import.go 32 | 33 | 34 | -------------------------------------------------------------------------------- /wallet-tools/.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | jobs: 3 | build: 4 | working_directory: /go/src/github.com/fb996de/wallet-tools 5 | docker: 6 | - image: circleci/golang:1.10.3 7 | 8 | steps: 9 | - checkout 10 | - run: 11 | name: Update apt 12 | command: sudo apt update 13 | - run: 14 | name: Add awscli 15 | command: sudo apt install awscli 16 | - run: 17 | name: Library 18 | command: sudo apt install build-essential cmake libboost-all-dev 19 | - run: 20 | name: Build 21 | command: | 22 | cd build 23 | make 24 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_windows.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,windows 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | func checkIfTerminal(w io.Writer) bool { 13 | switch v := w.(type) { 14 | case *os.File: 15 | handle := windows.Handle(v.Fd()) 16 | var mode uint32 17 | if err := windows.GetConsoleMode(handle, &mode); err != nil { 18 | return false 19 | } 20 | mode |= windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 21 | if err := windows.SetConsoleMode(handle, mode); err != nil { 22 | return false 23 | } 24 | return true 25 | } 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /wallet-tools/base/crypto/addrprovider/trx.go: -------------------------------------------------------------------------------- 1 | package addrprovider 2 | 3 | import ( 4 | "upex-wallet/wallet-tools/base/crypto" 5 | ) 6 | 7 | const ( 8 | TRXClass Class = "trx" 9 | ) 10 | 11 | type TRX struct{} 12 | 13 | func NewTRX() AddrProvider { 14 | return &TRX{} 15 | } 16 | 17 | func (*TRX) Class() Class { 18 | return TRXClass 19 | } 20 | 21 | func (*TRX) Address(k Key) []byte { 22 | uncompressedPubKey := k.PublicKeyUncompressed() 23 | hash := crypto.SumLegacyKeccak256(uncompressedPubKey[1:]) 24 | return hash[12:] 25 | } 26 | 27 | func (p *TRX) AddressString(k Key) string { 28 | return crypto.Base58Check(p.Address(k), []byte{0x41}, false) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/gopkg.in/resty.v1/WORKSPACE: -------------------------------------------------------------------------------- 1 | workspace(name = "resty") 2 | 3 | git_repository( 4 | name = "io_bazel_rules_go", 5 | remote = "https://github.com/bazelbuild/rules_go.git", 6 | tag = "0.13.0", 7 | ) 8 | 9 | git_repository( 10 | name = "bazel_gazelle", 11 | remote = "https://github.com/bazelbuild/bazel-gazelle.git", 12 | tag = "0.13.0", 13 | ) 14 | 15 | load( 16 | "@io_bazel_rules_go//go:def.bzl", 17 | "go_rules_dependencies", 18 | "go_register_toolchains", 19 | ) 20 | 21 | go_rules_dependencies() 22 | 23 | go_register_toolchains() 24 | 25 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") 26 | 27 | gazelle_dependencies() 28 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/zil.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "strconv" 5 | 6 | "github.com/buger/jsonparser" 7 | ) 8 | 9 | func init() { 10 | Set("ZIL", zilGetter) 11 | } 12 | 13 | func zilGetter(url string) (int64, error) { 14 | data, err := restyPost(url, jsonrpcRequest2("GetLatestTxBlock", nil)) 15 | if err != nil { 16 | return 0, err 17 | } 18 | 19 | height, err := jsonparser.GetString(data, "result", "header", "BlockNum") 20 | if err != nil { 21 | return 0, err 22 | } 23 | 24 | heightN, err := strconv.Atoi(height) 25 | if err != nil { 26 | return 0, err 27 | } 28 | 29 | return int64(heightN), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/handler_go13.go: -------------------------------------------------------------------------------- 1 | // +build !go1.4 2 | 3 | package log 4 | 5 | import ( 6 | "sync/atomic" 7 | "unsafe" 8 | ) 9 | 10 | // swapHandler wraps another handler that may be swapped out 11 | // dynamically at runtime in a thread-safe fashion. 12 | type swapHandler struct { 13 | handler unsafe.Pointer 14 | } 15 | 16 | func (h *swapHandler) Log(r *Record) error { 17 | return h.Get().Log(r) 18 | } 19 | 20 | func (h *swapHandler) Get() Handler { 21 | return *(*Handler)(atomic.LoadPointer(&h.handler)) 22 | } 23 | 24 | func (h *swapHandler) Swap(newHandler Handler) { 25 | atomic.StorePointer(&h.handler, unsafe.Pointer(&newHandler)) 26 | } 27 | -------------------------------------------------------------------------------- /wallet-base/newbitx/lisc/string.go: -------------------------------------------------------------------------------- 1 | package lisc 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | type String string 9 | 10 | func NewString(v string) *String { 11 | s := String(v) 12 | return &s 13 | } 14 | 15 | func (s *String) Type() ValueType { 16 | return StringType 17 | } 18 | 19 | func (s *String) String() string { 20 | return string(*s) 21 | } 22 | 23 | func (s *String) Set(v string) { 24 | *s = String(v) 25 | } 26 | 27 | func (s *String) Format(deep int) string { 28 | temp := strings.Replace(s.String(), `"`, `\"`, -1) 29 | return strings.Repeat(" ", deep*4) + fmt.Sprintf(`"%s"`, temp) 30 | } 31 | 32 | func (s *String) Reset() { 33 | s.Set("") 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/GincoInc/jsonrpc/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/GincoInc/jsonrpc 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/golang/protobuf v1.3.1 // indirect 7 | github.com/onsi/ginkgo v1.8.0 // indirect 8 | github.com/onsi/gomega v1.5.0 9 | golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f // indirect 10 | golang.org/x/net v0.0.0-20190522155817-f3200d17e092 // indirect 11 | golang.org/x/sys v0.0.0-20190528012530-adf421d2caf4 // indirect 12 | golang.org/x/text v0.3.2 // indirect 13 | golang.org/x/tools v0.0.0-20190525145741-7be61e1b0e51 // indirect 14 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect 15 | gopkg.in/yaml.v2 v2.2.2 // indirect 16 | ) 17 | -------------------------------------------------------------------------------- /wallet-tools/cmd/statuschecker/checker/heightgetters/nas.go: -------------------------------------------------------------------------------- 1 | package heightgetters 2 | 3 | import ( 4 | "strconv" 5 | "strings" 6 | 7 | "github.com/buger/jsonparser" 8 | ) 9 | 10 | func init() { 11 | Set("NAS", nasGetter) 12 | } 13 | 14 | func nasGetter(url string) (int64, error) { 15 | data, err := restyGet(strings.TrimRight(url, "/") + "/v1/user/nebstate") 16 | if err != nil { 17 | return 0, err 18 | } 19 | 20 | height, err := jsonparser.GetString(data, "result", "height") 21 | if err != nil { 22 | return 0, err 23 | } 24 | 25 | heightN, err := strconv.Atoi(height) 26 | if err != nil { 27 | return 0, err 28 | } 29 | 30 | return int64(heightN), nil 31 | } 32 | -------------------------------------------------------------------------------- /vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/osinfo_darwin.go: -------------------------------------------------------------------------------- 1 | // Unless explicitly stated otherwise all files in this repository are licensed 2 | // under the Apache License Version 2.0. 3 | // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | // Copyright 2016-2020 Datadog, Inc. 5 | 6 | package tracer 7 | 8 | import ( 9 | "os/exec" 10 | "runtime" 11 | "strings" 12 | ) 13 | 14 | func osName() string { 15 | return runtime.GOOS 16 | } 17 | 18 | func osVersion() string { 19 | out, err := exec.Command("sw_vers", "-productVersion").Output() 20 | if err != nil { 21 | return unknown 22 | } 23 | return strings.Trim(string(out), "\n") 24 | } 25 | -------------------------------------------------------------------------------- /wallet-withdraw/transfer/txbuilder/btc/meta.go: -------------------------------------------------------------------------------- 1 | package btc 2 | 3 | import ( 4 | "upex-wallet/wallet-withdraw/transfer/txbuilder" 5 | 6 | "github.com/shopspring/decimal" 7 | ) 8 | 9 | func init() { 10 | txbuilder.AddMeta("BTC", 8, decimal.NewFromFloat(0.0005), 2, 0) 11 | txbuilder.AddMeta("ETP", 8, decimal.NewFromFloat(0.0002), 4, 0) 12 | txbuilder.AddMeta("ABBC", 8, decimal.NewFromFloat(0.0005), 1, 0) 13 | txbuilder.AddMeta("QTUM", 8, decimal.NewFromFloat(0.005), 2, 0) 14 | txbuilder.AddMeta("FAB", 8, decimal.NewFromFloat(0.004), 2, 0) 15 | txbuilder.AddMeta("MONA", 8, decimal.NewFromFloat(0.001), 2, 0) 16 | txbuilder.AddMeta("LTC", 8, decimal.NewFromFloat(0.00005), 2, 0) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/scalar_low.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef uint32_t secp256k1_scalar; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo,386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/lex.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | import ( 4 | "unicode" 5 | "unicode/utf8" 6 | ) 7 | 8 | type lexModeValue byte 9 | 10 | const ( 11 | lexModeUnknown lexModeValue = iota 12 | lexModeHcl 13 | lexModeJson 14 | ) 15 | 16 | // lexMode returns whether we're going to be parsing in JSON 17 | // mode or HCL mode. 18 | func lexMode(v []byte) lexModeValue { 19 | var ( 20 | r rune 21 | w int 22 | offset int 23 | ) 24 | 25 | for { 26 | r, w = utf8.DecodeRune(v[offset:]) 27 | offset += w 28 | if unicode.IsSpace(r) { 29 | continue 30 | } 31 | if r == '{' { 32 | return lexModeJson 33 | } 34 | break 35 | } 36 | 37 | return lexModeHcl 38 | } 39 | --------------------------------------------------------------------------------