├── VERSION ├── cmd ├── gvnt │ └── testdata │ │ ├── empty.js │ │ ├── passwords.txt │ │ ├── wrong-passwords.txt │ │ └── guswallet.json └── clef │ ├── sign_flow.png │ └── docs │ └── qubes │ ├── qrexec-example.png │ ├── clef_qubes_http.png │ ├── clef_qubes_qrexec.png │ ├── qubes_newaccount-1.png │ ├── qubes_newaccount-2.png │ └── qubes.Clefsign ├── accounts └── keystore │ └── testdata │ ├── keystore │ ├── empty │ ├── garbage │ ├── no-address │ ├── aaa │ ├── zero │ ├── zzz │ ├── .hiddenfile │ ├── foo │ │ └── fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e │ └── UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8 │ ├── dupes │ ├── 1 │ ├── 2 │ └── foo │ └── very-light-scrypt.json ├── crypto ├── secp256k1 │ ├── libsecp256k1 │ │ ├── obj │ │ │ └── .gitignore │ │ ├── autogen.sh │ │ ├── TODO │ │ ├── src │ │ │ ├── modules │ │ │ │ ├── ecdh │ │ │ │ │ └── Makefile.am.include │ │ │ │ └── recovery │ │ │ │ │ └── Makefile.am.include │ │ │ └── java │ │ │ │ └── org_bitcoin_Secp256k1Context.c │ │ └── libsecp256k1.pc.in │ └── .gitignore ├── sha3 │ ├── testdata │ │ └── keccakKats.json.deflate │ ├── keccakf_amd64.go │ ├── xor.go │ └── register.go ├── ecies │ └── .gitignore └── bn256 │ └── cloudflare │ └── gfp_decl.go ├── swarm ├── dev │ ├── .dockerignore │ ├── .gitignore │ └── Makefile └── api │ └── testdata │ └── test0 │ ├── img │ └── logo.png │ ├── index.css │ └── index.html ├── containers └── docker │ ├── vnt-ubuntu │ └── password │ ├── develop-alpine │ └── Dockerfile │ └── master-alpine │ └── Dockerfile ├── vendor ├── bazil.org │ └── fuse │ │ ├── fuse_kernel_std.go │ │ ├── unmount.go │ │ ├── fuse_freebsd.go │ │ ├── error_freebsd.go │ │ ├── fuse_linux.go │ │ ├── error_darwin.go │ │ ├── error_linux.go │ │ ├── unmount_std.go │ │ ├── fuse.iml │ │ ├── fuse_darwin.go │ │ ├── unmount_linux.go │ │ ├── options_linux.go │ │ └── debug.go ├── github.com │ ├── vntchain │ │ └── vnt-wasm │ │ │ ├── .gitignore │ │ │ ├── wasm │ │ │ ├── testdata │ │ │ │ ├── empty.wasm │ │ │ │ ├── empty.wast │ │ │ │ ├── f64.wasm │ │ │ │ ├── i64.wasm │ │ │ │ ├── globals.wasm │ │ │ │ └── int_exprs.wasm │ │ │ ├── doc.go │ │ │ ├── operators │ │ │ │ ├── parametric.go │ │ │ │ ├── call.go │ │ │ │ └── var.go │ │ │ └── log.go │ │ │ ├── go.mod │ │ │ ├── cmd │ │ │ └── wasm-run │ │ │ │ └── testdata │ │ │ │ └── basic.wasm.txt │ │ │ ├── exec │ │ │ ├── testdata │ │ │ │ ├── basic.wasm │ │ │ │ ├── add-ex.wasm │ │ │ │ ├── expr-block.wasm │ │ │ │ ├── nested-if.wasm │ │ │ │ ├── start.wasm │ │ │ │ ├── call-zero-args.wasm │ │ │ │ ├── loop.wasm │ │ │ │ ├── brif.wasm │ │ │ │ ├── expr-if.wasm │ │ │ │ ├── expr-br.wasm │ │ │ │ ├── expr-brif.wasm │ │ │ │ ├── spec │ │ │ │ │ ├── forward.wasm │ │ │ │ │ ├── break-drop.wasm │ │ │ │ │ ├── br.wasm │ │ │ │ │ ├── fac.wasm │ │ │ │ │ ├── i32.wasm │ │ │ │ │ ├── if.wasm │ │ │ │ │ ├── nop.wasm │ │ │ │ │ ├── block.wasm │ │ │ │ │ ├── br_if.wasm │ │ │ │ │ ├── loop.wasm │ │ │ │ │ ├── names.wasm │ │ │ │ │ ├── return.wasm │ │ │ │ │ ├── switch.wasm │ │ │ │ │ ├── unwind.wasm │ │ │ │ │ ├── address.wasm │ │ │ │ │ ├── br_table.wasm │ │ │ │ │ ├── globals.wasm │ │ │ │ │ ├── resizing.wasm │ │ │ │ │ ├── endianness.wasm │ │ │ │ │ ├── get_local.wasm │ │ │ │ │ ├── tee_local.wasm │ │ │ │ │ ├── traps_mem.wasm │ │ │ │ │ ├── unreachable.wasm │ │ │ │ │ ├── call_indirect.wasm │ │ │ │ │ ├── traps_int_div.wasm │ │ │ │ │ ├── traps_int_rem.wasm │ │ │ │ │ ├── memory_redundancy.wasm │ │ │ │ │ ├── break-drop.wast │ │ │ │ │ ├── select.wasm │ │ │ │ │ ├── forward.wast │ │ │ │ │ └── traps_int_rem.wast │ │ │ │ ├── brif-loop.wasm │ │ │ │ ├── br.wasm │ │ │ │ ├── add-ex-main.wasm │ │ │ │ ├── binary.wasm │ │ │ │ ├── bug-49.wasm │ │ │ │ ├── call.wasm │ │ │ │ ├── cast.wasm │ │ │ │ ├── load.wasm │ │ │ │ ├── select.wasm │ │ │ │ ├── store.wasm │ │ │ │ ├── unary.wasm │ │ │ │ ├── compare.wasm │ │ │ │ ├── convert.wasm │ │ │ │ ├── if.wasm │ │ │ │ ├── return.wasm │ │ │ │ ├── brtable.wasm │ │ │ │ ├── return-void.wasm │ │ │ │ ├── callindirect.wasm │ │ │ │ └── add-ex.wast │ │ │ ├── parametric.go │ │ │ ├── const.go │ │ │ └── control.go │ │ │ ├── doc.go │ │ │ ├── validate │ │ │ ├── operand.go │ │ │ └── log.go │ │ │ ├── .travis.yml │ │ │ └── .ci │ │ │ └── code-coverage.sh │ ├── pborman │ │ └── uuid │ │ │ ├── CONTRIBUTORS │ │ │ ├── doc.go │ │ │ └── CONTRIBUTING.md │ ├── karalabe │ │ └── hid │ │ │ ├── libusb │ │ │ └── libusb │ │ │ │ ├── version_nano.h │ │ │ │ ├── config.h │ │ │ │ ├── os │ │ │ │ └── poll_posix.h │ │ │ │ └── version.h │ │ │ └── hidapi │ │ │ ├── LICENSE-orig.txt │ │ │ └── AUTHORS.txt │ ├── ipfs │ │ ├── go-cid │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-log │ │ │ └── entry.go │ │ ├── go-datastore │ │ │ └── Makefile │ │ ├── go-todocounter │ │ │ ├── Makefile │ │ │ └── package.json │ │ └── go-ipfs-util │ │ │ └── file.go │ ├── robertkrimen │ │ └── otto │ │ │ ├── parser │ │ │ ├── Makefile │ │ │ └── dbg.go │ │ │ ├── token │ │ │ └── Makefile │ │ │ ├── DESIGN.markdown │ │ │ ├── type_number.go │ │ │ ├── dbg.go │ │ │ ├── type_boolean.go │ │ │ └── cmpl.go │ ├── libp2p │ │ ├── go-libp2p │ │ │ ├── codecov.yml │ │ │ ├── p2p │ │ │ │ └── protocol │ │ │ │ │ └── identify │ │ │ │ │ └── pb │ │ │ │ │ └── Makefile │ │ │ ├── error_util.go │ │ │ └── Makefile │ │ ├── go-msgio │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ └── package.json │ │ ├── go-addr-util │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-host │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-nat │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-net │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-peer │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-record │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ ├── record.go │ │ │ └── util.go │ │ ├── go-libp2p-secio │ │ │ ├── codecov.yml │ │ │ ├── pb │ │ │ │ ├── Makefile │ │ │ │ └── spipe.proto │ │ │ └── Makefile │ │ ├── go-libp2p-swarm │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-maddr-filter │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-reuseport │ │ │ ├── codecov.yml │ │ │ ├── poll │ │ │ │ ├── platform_uint32.go │ │ │ │ ├── platform_uint64.go │ │ │ │ ├── poll_unsupported.go │ │ │ │ └── error.go │ │ │ └── singlepoll │ │ │ │ └── ctx.go │ │ ├── go-stream-muxer │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ └── package.json │ │ ├── go-tcp-transport │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-ws-transport │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-circuit │ │ │ ├── codecov.yml │ │ │ ├── pb │ │ │ │ └── Makefile │ │ │ └── Makefile │ │ ├── go-libp2p-kad-dht │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ └── pb │ │ │ │ └── Makefile │ │ ├── go-libp2p-kbucket │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-loggables │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-metrics │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ └── interface.go │ │ ├── go-libp2p-peerstore │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-protocol │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ ├── protocol.go │ │ │ └── package.json │ │ ├── go-libp2p-routing │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-transport │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-libp2p-interface-pnet │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-reuseport-transport │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ └── singledialer.go │ │ ├── go-libp2p-interface-connmgr │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ └── interface.go │ │ ├── go-libp2p-transport-upgrader │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ └── go-flow-metrics │ │ │ ├── Makefile │ │ │ └── package.json │ ├── fjl │ │ └── memsize │ │ │ ├── runtimefunc.s │ │ │ └── runtimefunc.go │ ├── mattn │ │ ├── go-isatty │ │ │ ├── doc.go │ │ │ ├── isatty_appengine.go │ │ │ ├── isatty_not_windows.go │ │ │ ├── isatty_linux.go │ │ │ ├── isatty_solaris.go │ │ │ └── isatty_bsd.go │ │ └── go-runewidth │ │ │ ├── runewidth_js.go │ │ │ └── runewidth_windows.go │ ├── multiformats │ │ ├── go-multihash │ │ │ ├── codecov.yml │ │ │ └── Makefile │ │ ├── go-multiaddr-net │ │ │ ├── Makefile │ │ │ └── doc.go │ │ ├── go-multistream │ │ │ ├── Makefile │ │ │ └── package.json │ │ ├── go-multiaddr │ │ │ └── Makefile │ │ └── go-multibase │ │ │ └── base16.go │ ├── whyrusleeping │ │ ├── go-multiplex │ │ │ ├── codecov.yml │ │ │ ├── Makefile │ │ │ └── README.md │ │ ├── go-keyspace │ │ │ ├── README.md │ │ │ └── package.json │ │ ├── go-logging │ │ │ └── CONTRIBUTORS │ │ ├── multiaddr-filter │ │ │ └── package.json │ │ ├── base32 │ │ │ └── package.json │ │ ├── go-smux-yamux │ │ │ └── Makefile │ │ ├── go-smux-multiplex │ │ │ └── Makefile │ │ ├── go-smux-multistream │ │ │ └── Makefile │ │ └── yamux │ │ │ └── package.json │ ├── Azure │ │ ├── azure-storage-go │ │ │ ├── version.go │ │ │ ├── glide.yaml │ │ │ └── glide.lock │ │ ├── go-autorest │ │ │ └── autorest │ │ │ │ ├── date │ │ │ │ └── utility.go │ │ │ │ ├── azure │ │ │ │ └── config.go │ │ │ │ └── version.go │ │ └── azure-sdk-for-go │ │ │ └── glide.yaml │ ├── elastic │ │ └── gosigar │ │ │ ├── sys │ │ │ └── windows │ │ │ │ └── doc.go │ │ │ ├── sigar_util.go │ │ │ ├── NOTICE │ │ │ └── codecov.yml │ ├── olekukonko │ │ └── tablewriter │ │ │ ├── test.csv │ │ │ └── test_info.csv │ ├── rjeczalik │ │ └── notify │ │ │ ├── go.mod │ │ │ ├── debug_debug.go │ │ │ ├── debug_nodebug.go │ │ │ ├── AUTHORS │ │ │ └── watcher_notimplemented.go │ ├── nsf │ │ └── termbox-go │ │ │ └── AUTHORS │ ├── influxdata │ │ └── influxdb │ │ │ └── models │ │ │ └── uint_support.go │ ├── coreos │ │ └── go-semver │ │ │ └── NOTICE │ ├── go-ole │ │ └── go-ole │ │ │ ├── error_func.go │ │ │ ├── itypeinfo_func.go │ │ │ ├── oleutil │ │ │ ├── go-get.go │ │ │ └── connection_func.go │ │ │ ├── iprovideclassinfo_func.go │ │ │ ├── variant_386.go │ │ │ ├── variant_amd64.go │ │ │ ├── variant_s390x.go │ │ │ ├── iconnectionpointcontainer_func.go │ │ │ ├── ienumvariant.go │ │ │ ├── iinspectable_func.go │ │ │ ├── iinspectable.go │ │ │ ├── itypeinfo_windows.go │ │ │ ├── variables.go │ │ │ ├── iprovideclassinfo_windows.go │ │ │ ├── iconnectionpointcontainer.go │ │ │ ├── iunknown_func.go │ │ │ ├── iprovideclassinfo.go │ │ │ ├── ienumvariant_func.go │ │ │ ├── iconnectionpoint.go │ │ │ ├── iconnectionpoint_func.go │ │ │ └── idispatch_func.go │ ├── stretchr │ │ └── testify │ │ │ ├── require │ │ │ ├── require_forward.go.tmpl │ │ │ ├── require.go.tmpl │ │ │ ├── requirements.go │ │ │ └── forward_requirements.go │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ └── forward_assertions.go │ ├── StackExchange │ │ └── wmi │ │ │ └── README.md │ ├── dgrijalva │ │ └── jwt-go │ │ │ └── doc.go │ ├── jbenet │ │ └── goprocess │ │ │ ├── periodic │ │ │ └── README.md │ │ │ ├── ratelimit │ │ │ └── README.md │ │ │ └── package.json │ ├── bluele │ │ └── gcache │ │ │ └── utils.go │ ├── gorilla │ │ └── websocket │ │ │ ├── AUTHORS │ │ │ ├── mask_safe.go │ │ │ ├── client_clone.go │ │ │ ├── conn_read.go │ │ │ └── conn_read_legacy.go │ ├── edsrzf │ │ └── mmap-go │ │ │ ├── msync_netbsd.go │ │ │ └── msync_unix.go │ ├── fd │ │ └── go-nat │ │ │ └── README.md │ ├── aristanetworks │ │ └── goarista │ │ │ ├── monotime │ │ │ └── issue15006.s │ │ │ ├── iptables.sh │ │ │ ├── Dockerfile │ │ │ └── check_line_len.awk │ ├── gizak │ │ └── termui │ │ │ ├── glide.yaml │ │ │ ├── linechart_others.go │ │ │ ├── linechart_windows.go │ │ │ └── block_windows.go │ ├── docker │ │ └── docker │ │ │ └── pkg │ │ │ └── reexec │ │ │ ├── README.md │ │ │ └── command_unsupported.go │ ├── jackpal │ │ ├── gateway │ │ │ ├── gateway_unimplemented.go │ │ │ ├── gateway_freebsd.go │ │ │ ├── gateway_solaris.go │ │ │ ├── gateway_darwin.go │ │ │ ├── gateway_windows.go │ │ │ └── README.md │ │ └── go-nat-pmp │ │ │ └── recorder.go │ ├── opentracing │ │ └── opentracing-go │ │ │ └── CHANGELOG.md │ ├── davecgh │ │ └── go-spew │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── gxed │ │ ├── hashland │ │ │ └── keccakpg │ │ │ │ └── package.json │ │ ├── GoEndian │ │ │ └── package.json │ │ └── eventfd │ │ │ └── package.json │ ├── naoina │ │ └── go-stringutil │ │ │ └── README.md │ ├── maruel │ │ └── panicparse │ │ │ └── .travis.yml │ ├── cespare │ │ └── cp │ │ │ └── README.md │ ├── golang │ │ └── snappy │ │ │ ├── decode_amd64.go │ │ │ └── AUTHORS │ └── peterh │ │ └── liner │ │ └── input_linux.go ├── golang.org │ └── x │ │ ├── net │ │ ├── codereview.cfg │ │ ├── .gitignore │ │ ├── README │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ └── .gitattributes │ │ ├── sys │ │ ├── codereview.cfg │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── README │ │ ├── cpu │ │ │ ├── cpu_arm.go │ │ │ ├── cpu_arm64.go │ │ │ ├── cpu_s390x.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_mips64x.go │ │ │ └── cpu_ppc64x.go │ │ ├── unix │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── constants.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── aliases.go │ │ │ ├── pagesize_unix.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_solaris_amd64.s │ │ │ └── gccgo_linux_amd64.go │ │ ├── windows │ │ │ ├── mksyscall.go │ │ │ ├── env_unset.go │ │ │ ├── asm_windows_386.s │ │ │ └── asm_windows_amd64.s │ │ └── .gitattributes │ │ ├── crypto │ │ ├── codereview.cfg │ │ ├── .gitignore │ │ ├── README │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── ssh │ │ │ └── terminal │ │ │ │ ├── util_linux.go │ │ │ │ └── util_bsd.go │ │ ├── sha3 │ │ │ ├── keccakf_amd64.go │ │ │ ├── xor.go │ │ │ └── register.go │ │ ├── curve25519 │ │ │ └── const_amd64.h │ │ ├── .gitattributes │ │ └── blake2s │ │ │ ├── register.go │ │ │ └── blake2s_ref.go │ │ ├── text │ │ ├── codereview.cfg │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── language │ │ │ ├── go1_2.go │ │ │ ├── common.go │ │ │ ├── Makefile │ │ │ └── gen_common.go │ │ ├── .gitattributes │ │ ├── secure │ │ │ └── bidirule │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ └── bidirule9.0.0.go │ │ ├── encoding │ │ │ ├── japanese │ │ │ │ └── all.go │ │ │ └── simplifiedchinese │ │ │ │ └── all.go │ │ └── internal │ │ │ └── language │ │ │ ├── common.go │ │ │ └── gen_common.go │ │ └── tools │ │ ├── codereview.cfg │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── go │ │ └── ast │ │ │ └── astutil │ │ │ └── util.go │ │ ├── imports │ │ ├── fastwalk_dirent_ino.go │ │ └── fastwalk_dirent_fileno.go │ │ ├── .gitattributes │ │ └── README └── gopkg.in │ ├── check.v1 │ ├── TODO │ └── README.md │ ├── sourcemap.v1 │ └── Makefile │ └── olebedev │ └── go-duktape.v3 │ ├── Gopkg.toml │ ├── duk_print_alert.h │ ├── duk_module_node.h │ ├── wercker.yml │ ├── utils.go │ ├── duk_console.h │ └── duk_module_duktape.h ├── console └── testdata │ ├── exec.js │ └── preload.js ├── metrics ├── init_test.go ├── FORK.md ├── runtime_no_cgo.go ├── runtime_cgo.go ├── runtime_no_gccpufraction.go ├── runtime_gccpufraction.go ├── validate.sh ├── writer_test.go └── opentsdb_test.go ├── core ├── wavm │ └── tests │ │ ├── event │ │ ├── init.wasm │ │ ├── init.compress │ │ └── program.wasm │ │ ├── qlang │ │ ├── test.wasm │ │ ├── PERC20.wasm │ │ ├── demo.1.wasm │ │ └── demo.1.abi │ │ ├── env │ │ ├── testEnv.wasm │ │ └── testEnv.compress │ │ ├── bounds │ │ ├── Bounds.wasm │ │ └── Bounds.compress │ │ ├── call │ │ ├── $TestCall.wasm │ │ └── $TestCall.compress │ │ ├── convert │ │ ├── Convert.wasm │ │ └── Convert.compress │ │ ├── debug │ │ └── program.wasm │ │ ├── gas │ │ └── TestGas.compress │ │ ├── system │ │ ├── system.wasm │ │ └── System.compress │ │ ├── concat │ │ ├── testConcat.wasm │ │ ├── testConcat.compress │ │ └── abi.json │ │ ├── erc20 │ │ ├── TokenERC20.wasm │ │ └── TokenERC20.compress │ │ ├── mapping │ │ ├── MappingTest.wasm │ │ └── MappingTest.compress │ │ ├── uint256 │ │ ├── testUint256.wasm │ │ └── testUint256.compress │ │ ├── precompile │ │ ├── wasm │ │ │ ├── main3.wasm │ │ │ ├── main5.wasm │ │ │ └── main7.wasm │ │ └── gascost │ │ │ └── main7.wasm │ │ ├── register │ │ └── wasm │ │ │ └── program.wasm │ │ ├── safemath │ │ ├── TestSafeMath.wasm │ │ └── TestSafeMath.compress │ │ ├── mutable │ │ └── $TestMutable.compress │ │ ├── mutableCall │ │ └── $TestMutableCall.compress │ │ ├── initializeVariables │ │ ├── initializeVariables.wasm │ │ └── initializeVariables.compress │ │ ├── gas_test.go │ │ ├── concat_test.go │ │ ├── system_test.go │ │ ├── bounds_test.go │ │ ├── mapping_test.go │ │ ├── mutable_test.go │ │ ├── convert_test.go │ │ ├── safemath_test.go │ │ └── initializeVariables_test.go └── .gitignore ├── .gitattributes ├── .github ├── pull_request_template.md └── ISSUE_TEMPLATE.md ├── .dockerignore ├── log ├── term │ ├── terminal_netbsd.go │ ├── terminal_openbsd.go │ ├── terminal_solaris.go │ ├── terminal_appengine.go │ ├── terminal_darwin.go │ ├── terminal_linux.go │ └── terminal_freebsd.go ├── CONTRIBUTORS └── handler_go14.go ├── contracts └── vns │ └── README.md ├── vntdb └── .gitignore ├── Dockerfile.alltools ├── Dockerfile └── AUTHORS /VERSION: -------------------------------------------------------------------------------- 1 | 0.6.0 2 | -------------------------------------------------------------------------------- /cmd/gvnt/testdata/empty.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/obj/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /swarm/dev/.dockerignore: -------------------------------------------------------------------------------- 1 | bin/* 2 | cluster/* 3 | -------------------------------------------------------------------------------- /swarm/dev/.gitignore: -------------------------------------------------------------------------------- 1 | bin/* 2 | cluster/* 3 | -------------------------------------------------------------------------------- /containers/docker/vnt-ubuntu/password: -------------------------------------------------------------------------------- 1 | 12345678 2 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/fuse_kernel_std.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /cmd/gvnt/testdata/passwords.txt: -------------------------------------------------------------------------------- 1 | foobar 2 | foobar 3 | foobar 4 | -------------------------------------------------------------------------------- /cmd/gvnt/testdata/wrong-passwords.txt: -------------------------------------------------------------------------------- 1 | wrong 2 | wrong 3 | wrong 4 | -------------------------------------------------------------------------------- /console/testdata/exec.js: -------------------------------------------------------------------------------- 1 | var execed = "some-executed-string"; 2 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/testdata/empty.wasm: -------------------------------------------------------------------------------- 1 | asm -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /console/testdata/preload.js: -------------------------------------------------------------------------------- 1 | var preloaded = "some-preloaded-string"; 2 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/testdata/empty.wast: -------------------------------------------------------------------------------- 1 | (module 2 | ) 3 | -------------------------------------------------------------------------------- /vendor/github.com/pborman/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/vntchain/vnt-wasm 2 | -------------------------------------------------------------------------------- /metrics/init_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | func init() { 4 | Enabled = true 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/karalabe/hid/libusb/libusb/version_nano.h: -------------------------------------------------------------------------------- 1 | #define LIBUSB_NANO 11182 2 | -------------------------------------------------------------------------------- /vendor/gopkg.in/check.v1/TODO: -------------------------------------------------------------------------------- 1 | - Assert(slice, Contains, item) 2 | - Parallel test support 3 | -------------------------------------------------------------------------------- /cmd/clef/sign_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/cmd/clef/sign_flow.png -------------------------------------------------------------------------------- /vendor/github.com/ipfs/go-cid/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/robertkrimen/otto/parser/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | test: 4 | go test 5 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | autoreconf -if --warnings=all 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-msgio/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/robertkrimen/otto/token/Makefile: -------------------------------------------------------------------------------- 1 | token_const.go: tokenfmt 2 | ./$^ | gofmt > $@ 3 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/cmd/wasm-run/testdata/basic.wasm.txt: -------------------------------------------------------------------------------- 1 | main() i32 => 42 (uint32) 2 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/basic.wasm: -------------------------------------------------------------------------------- 1 | asm`main 2 | A* -------------------------------------------------------------------------------- /metrics/FORK.md: -------------------------------------------------------------------------------- 1 | This repo has been forked from https://github.com/rcrowley/go-metrics at commit e181e09 2 | -------------------------------------------------------------------------------- /vendor/github.com/karalabe/hid/libusb/libusb/config.h: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG_H 2 | #define CONFIG_H 3 | #endif 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-addr-util/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-host/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-nat/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-net/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-peer/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-record/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-secio/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-swarm/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-maddr-filter/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-stream-muxer/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-tcp-transport/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-ws-transport/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/add-ex.wasm: -------------------------------------------------------------------------------- 1 | asm`iadd 2 |  j -------------------------------------------------------------------------------- /core/wavm/tests/event/init.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/event/init.wasm -------------------------------------------------------------------------------- /core/wavm/tests/qlang/test.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/qlang/test.wasm -------------------------------------------------------------------------------- /vendor/github.com/fjl/memsize/runtimefunc.s: -------------------------------------------------------------------------------- 1 | // This file is required to make stub function declarations work. 2 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-circuit/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-kad-dht/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-kbucket/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-loggables/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-metrics/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-peerstore/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-protocol/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-routing/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-transport/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multihash/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-multiplex/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/gopkg.in/sourcemap.v1/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go test ./... 3 | go test ./... -short -race 4 | go vet 5 | -------------------------------------------------------------------------------- /core/wavm/tests/env/testEnv.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/env/testEnv.wasm -------------------------------------------------------------------------------- /core/wavm/tests/qlang/PERC20.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/qlang/PERC20.wasm -------------------------------------------------------------------------------- /core/wavm/tests/qlang/demo.1.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/qlang/demo.1.wasm -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-storage-go/version.go: -------------------------------------------------------------------------------- 1 | package storage 2 | 3 | var ( 4 | sdkVersion = "0.1.0" 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-interface-pnet/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport-transport/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/gopkg.in/olebedev/go-duktape.v3/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | branch = "v1" 3 | name = "gopkg.in/check.v1" -------------------------------------------------------------------------------- /core/wavm/tests/bounds/Bounds.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/bounds/Bounds.wasm -------------------------------------------------------------------------------- /core/wavm/tests/call/$TestCall.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/call/$TestCall.wasm -------------------------------------------------------------------------------- /core/wavm/tests/convert/Convert.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/convert/Convert.wasm -------------------------------------------------------------------------------- /core/wavm/tests/debug/program.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/debug/program.wasm -------------------------------------------------------------------------------- /core/wavm/tests/env/testEnv.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/env/testEnv.compress -------------------------------------------------------------------------------- /core/wavm/tests/event/init.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/event/init.compress -------------------------------------------------------------------------------- /core/wavm/tests/event/program.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/event/program.wasm -------------------------------------------------------------------------------- /core/wavm/tests/gas/TestGas.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/gas/TestGas.compress -------------------------------------------------------------------------------- /core/wavm/tests/system/system.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/system/system.wasm -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-interface-connmgr/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-transport-upgrader/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "50...100" 3 | comment: off 4 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/expr-block.wasm: -------------------------------------------------------------------------------- 1 | asm`test 2 |  3 | A 4 | A -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/nested-if.wasm: -------------------------------------------------------------------------------- 1 | asm`f 2 | @A@AA@  A -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | *.sol linguist-language=Solidity 4 | -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qrexec-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/cmd/clef/docs/qubes/qrexec-example.png -------------------------------------------------------------------------------- /core/wavm/tests/bounds/Bounds.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/bounds/Bounds.compress -------------------------------------------------------------------------------- /core/wavm/tests/concat/testConcat.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/concat/testConcat.wasm -------------------------------------------------------------------------------- /core/wavm/tests/erc20/TokenERC20.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/erc20/TokenERC20.wasm -------------------------------------------------------------------------------- /core/wavm/tests/system/System.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/system/System.compress -------------------------------------------------------------------------------- /swarm/api/testdata/test0/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/swarm/api/testdata/test0/img/logo.png -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/start.wasm: -------------------------------------------------------------------------------- 1 | asm``get 2 |  AA*6 A( -------------------------------------------------------------------------------- /vendor/golang.org/x/net/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .hgignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .hgignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Fixes # . 2 | 3 | Changes proposed in this pull request: 4 | - 5 | - 6 | - 7 | 8 | @somebody 9 | -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/clef_qubes_http.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/cmd/clef/docs/qubes/clef_qubes_http.png -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/clef_qubes_qrexec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/cmd/clef/docs/qubes/clef_qubes_qrexec.png -------------------------------------------------------------------------------- /core/wavm/tests/call/$TestCall.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/call/$TestCall.compress -------------------------------------------------------------------------------- /core/wavm/tests/convert/Convert.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/convert/Convert.compress -------------------------------------------------------------------------------- /core/wavm/tests/erc20/TokenERC20.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/erc20/TokenERC20.compress -------------------------------------------------------------------------------- /core/wavm/tests/mapping/MappingTest.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/mapping/MappingTest.wasm -------------------------------------------------------------------------------- /core/wavm/tests/uint256/testUint256.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/uint256/testUint256.wasm -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/sys/windows/doc.go: -------------------------------------------------------------------------------- 1 | // Package windows contains various Windows system call. 2 | package windows 3 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/call-zero-args.wasm: -------------------------------------------------------------------------------- 1 | asm ``h 2 | A*  j A -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/loop.wasm: -------------------------------------------------------------------------------- 1 | asm`loop 2 | #!@  j! Aj! AH@   -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .hgignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .gitignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/garbage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/accounts/keystore/testdata/keystore/garbage -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qubes_newaccount-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/cmd/clef/docs/qubes/qubes_newaccount-1.png -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qubes_newaccount-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/cmd/clef/docs/qubes/qubes_newaccount-2.png -------------------------------------------------------------------------------- /core/wavm/tests/concat/testConcat.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/concat/testConcat.compress -------------------------------------------------------------------------------- /core/wavm/tests/precompile/wasm/main3.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/precompile/wasm/main3.wasm -------------------------------------------------------------------------------- /core/wavm/tests/precompile/wasm/main5.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/precompile/wasm/main5.wasm -------------------------------------------------------------------------------- /core/wavm/tests/precompile/wasm/main7.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/precompile/wasm/main7.wasm -------------------------------------------------------------------------------- /core/wavm/tests/register/wasm/program.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/register/wasm/program.wasm -------------------------------------------------------------------------------- /core/wavm/tests/safemath/TestSafeMath.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/safemath/TestSafeMath.wasm -------------------------------------------------------------------------------- /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/robertkrimen/otto/DESIGN.markdown: -------------------------------------------------------------------------------- 1 | * Designate the filename of "anonymous" source code by the hash (md5/sha1, etc.) 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .gitignore except for files generated by the build. 2 | last-change 3 | /DATA 4 | -------------------------------------------------------------------------------- /core/wavm/tests/mapping/MappingTest.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/mapping/MappingTest.compress -------------------------------------------------------------------------------- /core/wavm/tests/mutable/$TestMutable.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/mutable/$TestMutable.compress -------------------------------------------------------------------------------- /core/wavm/tests/precompile/gascost/main7.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/precompile/gascost/main7.wasm -------------------------------------------------------------------------------- /core/wavm/tests/safemath/TestSafeMath.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/safemath/TestSafeMath.compress -------------------------------------------------------------------------------- /core/wavm/tests/uint256/testUint256.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/uint256/testUint256.compress -------------------------------------------------------------------------------- /crypto/sha3/testdata/keccakKats.json.deflate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/crypto/sha3/testdata/keccakKats.json.deflate -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport/poll/platform_uint32.go: -------------------------------------------------------------------------------- 1 | // +build amd64p32 386 arm 2 | 3 | package poll 4 | 5 | type uintp = uint32 6 | -------------------------------------------------------------------------------- /vendor/github.com/olekukonko/tablewriter/test.csv: -------------------------------------------------------------------------------- 1 | first_name,last_name,ssn 2 | John,Barry,123456 3 | Kathy,Smith,687987 4 | Bob,McCornick,3979870 -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/brif.wasm: -------------------------------------------------------------------------------- 1 | asm 2 | ``test1test2 3 | @ A A A A -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/expr-if.wasm: -------------------------------------------------------------------------------- 1 | asm 2 | ``test1test2 3 |  AFAA A A -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport/poll/platform_uint64.go: -------------------------------------------------------------------------------- 1 | // +build amd64 arm64 ppc64 ppc64le 2 | 3 | package poll 4 | 5 | type uintp = uint64 6 | -------------------------------------------------------------------------------- /vendor/github.com/rjeczalik/notify/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/rjeczalik/notify 2 | 3 | require golang.org/x/sys v0.0.0-20180926160741-c2ed4eda69e7 4 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/expr-br.wasm: -------------------------------------------------------------------------------- 1 | asm 2 | ``test1test2 3 | # AF@A  A A A -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/expr-brif.wasm: -------------------------------------------------------------------------------- 1 | asm 2 | ``test1test2 3 | A* A k A A -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/forward.wasm: -------------------------------------------------------------------------------- 1 | asm`evenodd 2 | + AFA Ak  AFA Ak -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | **/.git 2 | .git 3 | !.git/HEAD 4 | !.git/refs/heads 5 | **/*_test.go 6 | 7 | build/_workspace 8 | build/_bin 9 | tests/testdata 10 | -------------------------------------------------------------------------------- /core/wavm/tests/mutableCall/$TestMutableCall.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/mutableCall/$TestMutableCall.compress -------------------------------------------------------------------------------- /vendor/github.com/nsf/termbox-go/AUTHORS: -------------------------------------------------------------------------------- 1 | # Please keep this file sorted. 2 | 3 | Georg Reinke 4 | nsf 5 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/break-drop.wasm: -------------------------------------------------------------------------------- 1 | asm`brbr_ifbr_table 2 | @ @A 3 | @A -------------------------------------------------------------------------------- /log/term/terminal_netbsd.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import "syscall" 4 | 5 | const ioctlReadTermios = syscall.TIOCGETA 6 | 7 | type Termios syscall.Termios 8 | -------------------------------------------------------------------------------- /log/term/terminal_openbsd.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import "syscall" 4 | 5 | const ioctlReadTermios = syscall.TIOCGETA 6 | 7 | type Termios syscall.Termios 8 | -------------------------------------------------------------------------------- /vendor/github.com/ipfs/go-log/entry.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | type entry struct { 4 | loggables []Loggable 5 | system string 6 | event string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/brif-loop.wasm: -------------------------------------------------------------------------------- 1 | asm 2 | ``test1test2 3 | (@ Aj!  H  A A 4 |  -------------------------------------------------------------------------------- /vendor/github.com/influxdata/influxdb/models/uint_support.go: -------------------------------------------------------------------------------- 1 | // +build uint uint64 2 | 3 | package models 4 | 5 | func init() { 6 | EnableUintSupport() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/br.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/br.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/testdata/f64.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/wasm/testdata/f64.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/testdata/i64.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/wasm/testdata/i64.wasm -------------------------------------------------------------------------------- /core/wavm/tests/initializeVariables/initializeVariables.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/initializeVariables/initializeVariables.wasm -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-storage-go/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/Azure/azure-sdk-for-go-storage 2 | import: [] 3 | testImport: 4 | - package: gopkg.in/check.v1 5 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/add-ex-main.wasm: -------------------------------------------------------------------------------- 1 | asm````addiaddgoprint 2 |  AA(  3 |  -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/binary.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/binary.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/bug-49.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/bug-49.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/call.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/call.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/cast.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/cast.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/load.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/load.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/select.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/select.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/store.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/store.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/unary.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/unary.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/compare.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/compare.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/convert.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/convert.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/if.wasm: -------------------------------------------------------------------------------- 1 | asm` if1if2 2 | L#A!A@ Aj! A@ Aj!  &A@A!A! A@A!A! j -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/return.wasm: -------------------------------------------------------------------------------- 1 | asm 2 | ``test1test2test3 3 | 2 AF@A AF@A A A A A -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/br.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/br.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/fac.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/fac.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/i32.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/i32.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/if.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/if.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/nop.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/nop.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/testdata/globals.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/wasm/testdata/globals.wasm -------------------------------------------------------------------------------- /core/wavm/tests/initializeVariables/initializeVariables.compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/core/wavm/tests/initializeVariables/initializeVariables.compress -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/block.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/block.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/br_if.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/br_if.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/loop.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/loop.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/names.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/names.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/return.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/return.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/switch.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/switch.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/unwind.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/unwind.wasm -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/unmount.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | // Unmount tries to unmount the filesystem mounted at dir. 4 | func Unmount(dir string) error { 5 | return unmount(dir) 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/go-semver/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2018 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/address.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/address.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/br_table.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/br_table.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/globals.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/globals.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/resizing.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/resizing.wasm -------------------------------------------------------------------------------- /vendor/golang.org/x/net/README: -------------------------------------------------------------------------------- 1 | This repository holds supplementary Go networking libraries. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/endianness.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/endianness.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/get_local.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/get_local.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/tee_local.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/tee_local.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/traps_mem.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/traps_mem.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/unreachable.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/unreachable.wasm -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/README: -------------------------------------------------------------------------------- 1 | This repository holds supplementary Go cryptography libraries. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/error_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | // errstr converts error code to string. 6 | func errstr(errno int) string { 7 | return "" 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/brtable.wasm: -------------------------------------------------------------------------------- 1 | asm 2 | ``!test0test1test2test3 3 | =@@@@  A A A A A A A -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/return-void.wasm: -------------------------------------------------------------------------------- 1 | asm ```#test1check1test2check2 2 | 2 AF@ AA6 A A( A A( -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/call_indirect.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/call_indirect.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/traps_int_div.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/traps_int_div.wasm -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/traps_int_rem.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/traps_int_rem.wasm -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/go-ole/go-ole/itypeinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *ITypeInfo) GetTypeAttr() (*TYPEATTR, error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /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/vntchain/vnt-wasm/exec/testdata/spec/memory_redundancy.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vntchain/go-vnt/HEAD/vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/memory_redundancy.wasm -------------------------------------------------------------------------------- /swarm/api/testdata/test0/index.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: black; 3 | font-size: 12px; 4 | background-color: orange; 5 | border: 4px solid black; 6 | } 7 | body { 8 | background-color: orange 9 | } 10 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/fuse_freebsd.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | // Maximum file write size we are prepared to receive from the kernel. 4 | // 5 | // This number is just a guess. 6 | const maxWrite = 128 * 1024 7 | -------------------------------------------------------------------------------- /vendor/github.com/olekukonko/tablewriter/test_info.csv: -------------------------------------------------------------------------------- 1 | Field,Type,Null,Key,Default,Extra 2 | user_id,smallint(5),NO,PRI,NULL,auto_increment 3 | username,varchar(10),NO,,NULL, 4 | password,varchar(100),NO,,NULL, -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/StackExchange/wmi/README.md: -------------------------------------------------------------------------------- 1 | wmi 2 | === 3 | 4 | Package wmi provides a WQL interface to Windows WMI. 5 | 6 | Note: It interfaces with WMI on the local machine, therefore it only runs on Windows. 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/go-get.go: -------------------------------------------------------------------------------- 1 | // This file is here so go get succeeds as without it errors with: 2 | // no buildable Go source files in ... 3 | // 4 | // +build !windows 5 | 6 | package oleutil 7 | -------------------------------------------------------------------------------- /vendor/github.com/robertkrimen/otto/type_number.go: -------------------------------------------------------------------------------- 1 | package otto 2 | 3 | func (runtime *_runtime) newNumberObject(value Value) *_object { 4 | return runtime.newPrimitiveObject("Number", value.numberValue()) 5 | } 6 | -------------------------------------------------------------------------------- /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/tools/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 | -------------------------------------------------------------------------------- /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/dgrijalva/jwt-go/doc.go: -------------------------------------------------------------------------------- 1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html 2 | // 3 | // See README.md for more info. 4 | package jwt 5 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { 4 | t.FailNow() 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /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 http://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 http://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/tools/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/go-ole/go-ole/iprovideclassinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/README: -------------------------------------------------------------------------------- 1 | This repository holds supplemental Go packages for low-level interactions with the operating system. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /vendor/github.com/jbenet/goprocess/periodic/README.md: -------------------------------------------------------------------------------- 1 | # goprocess/periodic - periodic process creation 2 | 3 | - goprocess: https://github.com/jbenet/goprocess 4 | - Godoc: https://godoc.org/github.com/jbenet/goprocess/periodic 5 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-circuit/pb/Makefile: -------------------------------------------------------------------------------- 1 | PB = $(wildcard *.proto) 2 | GO = $(PB:.proto=.pb.go) 3 | 4 | all: $(GO) 5 | 6 | %.pb.go: %.proto 7 | protoc --gogo_out=. $< 8 | 9 | clean: 10 | rm *.pb.go 11 | -------------------------------------------------------------------------------- /vendor/github.com/jbenet/goprocess/ratelimit/README.md: -------------------------------------------------------------------------------- 1 | # goprocess/ratelimit - ratelimit children creation 2 | 3 | - goprocess: https://github.com/jbenet/goprocess 4 | - Godoc: https://godoc.org/github.com/jbenet/goprocess/ratelimit 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /core/wavm/tests/gas_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var gasJsonPath = filepath.Join("", "gas.json") 9 | 10 | func TestGas(t *testing.T) { 11 | run(t, gasJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /core/wavm/tests/qlang/demo.1.abi: -------------------------------------------------------------------------------- 1 | [{"name":"first_api","inputs":[{"name":"aa","type":"int32"},{"name":"bb","type":"int64"}],"outputs":[{"name":"return","type":"int64"}]},{"name":"second_api","inputs":[{"name":"ff","type":"float64"}],"outputs":[]}] 2 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package runewidth 4 | 5 | func IsEastAsian() bool { 6 | // TODO: Implement this for the web. Detect east asian in a compatible way, and return true. 7 | return false 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-kad-dht/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-kbucket/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-record/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-routing/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport/poll/poll_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build windows plan9 2 | 3 | package poll 4 | 5 | import ( 6 | "errors" 7 | ) 8 | 9 | func WaitWrite(fd int) error { 10 | return errors.New("platform not supported") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/break-drop.wast: -------------------------------------------------------------------------------- 1 | (module 2 | (func (export "br") (block (br 0))) 3 | (func (export "br_if") (block (br_if 0 (i32.const 1)))) 4 | (func (export "br_table") (block (br_table 0 (i32.const 0)))) 5 | ) -------------------------------------------------------------------------------- /contracts/vns/README.md: -------------------------------------------------------------------------------- 1 | # Swarm VNS interface 2 | 3 | ## Usage 4 | 5 | Full documentation for the VNT Name Service. 6 | This package offers a simple binding that streamlines the registration of arbitrary UTF8 domain names to swarm content hashes. 7 | 8 | 9 | -------------------------------------------------------------------------------- /core/wavm/tests/concat_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var concatJsonPath = filepath.Join("", "concat.json") 9 | 10 | func TestConcat(t *testing.T) { 11 | run(t, concatJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /core/wavm/tests/system_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var systemJsonPath = filepath.Join("", "system.json") 9 | 10 | func TestSystem(t *testing.T) { 11 | run(t, systemJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-keyspace/README.md: -------------------------------------------------------------------------------- 1 | # go-keyspace 2 | This is a package extracted from go-ipfs. 3 | 4 | Its purpose it to be used to compare a set of keys based on a given 5 | metric. The primary metric used is XOR, as in kademlia. 6 | 7 | -------------------------------------------------------------------------------- /core/wavm/tests/bounds_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var boundsVarJsonPath = filepath.Join("", "bounds.json") 9 | 10 | func TestBounds(t *testing.T) { 11 | run(t, boundsVarJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /core/wavm/tests/mapping_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var mappingJsonPath = filepath.Join("", "mapping.json") 9 | 10 | func TestMAPPING(t *testing.T) { 11 | run(t, mappingJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /core/wavm/tests/mutable_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var mutableJsonPath = filepath.Join("", "mutable.json") 9 | 10 | func TestMutable(t *testing.T) { 11 | run(t, mutableJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/bluele/gcache/utils.go: -------------------------------------------------------------------------------- 1 | package gcache 2 | 3 | func minInt(x, y int) int { 4 | if x < y { 5 | return x 6 | } 7 | return y 8 | } 9 | 10 | func maxInt(x, y int) int { 11 | if x > y { 12 | return x 13 | } 14 | return y 15 | } 16 | -------------------------------------------------------------------------------- /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 | Joachim Bauch 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/ipfs/go-datastore/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-msgio/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-ws-transport/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/testdata/int_exprs.wasm: -------------------------------------------------------------------------------- 1 | asm ``~~mi32.no_fold_cmp_s_offseti32.no_fold_cmp_u_offseti64.no_fold_cmp_s_offseti64.no_fold_cmp_u_offset 2 | 9 Aj AjH Aj AjI B| B|S B| B|T -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_arm.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 cpu 6 | 7 | const cacheLineSize = 32 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_arm64.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 cpu 6 | 7 | const cacheLineSize = 64 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_s390x.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 cpu 6 | 7 | const cacheLineSize = 256 8 | -------------------------------------------------------------------------------- /core/wavm/tests/convert_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var convertVarJsonPath = filepath.Join("", "convert.json") 9 | 10 | func TestConvert(t *testing.T) { 11 | run(t, convertVarJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /core/wavm/tests/safemath_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var safemathJsonPath = filepath.Join("", "safemath.json") 9 | 10 | func TestSafeMath(t *testing.T) { 11 | run(t, safemathJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-addr-util/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-flow-metrics/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-circuit/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-nat/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-peer/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-maddr-filter/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-keyspace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "go-keyspace", 3 | "author": "whyrusleeping", 4 | "version": "1.0.0", 5 | "language": "go", 6 | "gx": { 7 | "dvcsimport": "github.com/whyrusleeping/go-keyspace" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-logging/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Alec Thomas 2 | Guilhem Lettron 3 | Ivan Daniluk 4 | Nimi Wariboko Jr 5 | Róbert Selvek 6 | -------------------------------------------------------------------------------- /swarm/api/testdata/test0/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Swarm Test

8 | VNT logo 9 | 10 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/error_freebsd.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | import "syscall" 4 | 5 | const ( 6 | ENOATTR = Errno(syscall.ENOATTR) 7 | ) 8 | 9 | const ( 10 | errNoXattr = ENOATTR 11 | ) 12 | 13 | func init() { 14 | errnoNames[errNoXattr] = "ENOATTR" 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-metrics/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-protocol/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-transport/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport-transport/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport/singlepoll/ctx.go: -------------------------------------------------------------------------------- 1 | package singlepoll 2 | 3 | import "context" 4 | 5 | var backgroundctx, backgroundcancel = context.WithCancel(context.Background()) 6 | 7 | func CloseBackgroundProcesses() { 8 | backgroundcancel() 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-tcp-transport/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multiaddr-net/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multihash/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/robertkrimen/otto/dbg.go: -------------------------------------------------------------------------------- 1 | // This file was AUTOMATICALLY GENERATED by dbg-import (smuggol) for github.com/robertkrimen/dbg 2 | 3 | package otto 4 | 5 | import ( 6 | Dbg "github.com/robertkrimen/otto/dbg" 7 | ) 8 | 9 | var dbg, dbgf = Dbg.New() 10 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/fuse_linux.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | // Maximum file write size we are prepared to receive from the kernel. 4 | // 5 | // Linux 4.2.0 has been observed to cap this value at 128kB 6 | // (FUSE_MAX_PAGES_PER_REQ=32, 4kB pages). 7 | const maxWrite = 128 * 1024 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_386.go: -------------------------------------------------------------------------------- 1 | // +build 386 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/ipfs/go-todocounter/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get -u github.com/whyrusleeping/gx 5 | go get -u github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | go get ./... -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-interface-pnet/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-protocol/protocol.go: -------------------------------------------------------------------------------- 1 | package protocol 2 | 3 | // ID is an identifier used to write protocol headers in streams. 4 | type ID string 5 | 6 | // These are reserved protocol.IDs. 7 | const ( 8 | TestingID ID = "/p2p/_testing" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-transport-upgrader/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps: gx 6 | gx --verbose install --global 7 | gx-go rewrite 8 | 9 | publish: 10 | gx-go rewrite --undo 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/robertkrimen/otto/parser/dbg.go: -------------------------------------------------------------------------------- 1 | // This file was AUTOMATICALLY GENERATED by dbg-import (smuggol) for github.com/robertkrimen/dbg 2 | 3 | package parser 4 | 5 | import ( 6 | Dbg "github.com/robertkrimen/otto/dbg" 7 | ) 8 | 9 | var dbg, dbgf = Dbg.New() 10 | -------------------------------------------------------------------------------- /log/term/terminal_solaris.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import "golang.org/x/sys/unix" 4 | 5 | // IsTty returns true if the given file descriptor is a terminal. 6 | func IsTty(fd uintptr) bool { 7 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETA) 8 | return err == nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/error_darwin.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | const ( 8 | ENOATTR = Errno(syscall.ENOATTR) 9 | ) 10 | 11 | const ( 12 | errNoXattr = ENOATTR 13 | ) 14 | 15 | func init() { 16 | errnoNames[errNoXattr] = "ENOATTR" 17 | } 18 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/error_linux.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | const ( 8 | ENODATA = Errno(syscall.ENODATA) 9 | ) 10 | 11 | const ( 12 | errNoXattr = ENODATA 13 | ) 14 | 15 | func init() { 16 | errnoNames[errNoXattr] = "ENODATA" 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-net/Makefile: -------------------------------------------------------------------------------- 1 | all: deps 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | 11 | publish: 12 | gx-go rewrite --undo 13 | 14 | -------------------------------------------------------------------------------- /vendor/github.com/edsrzf/mmap-go/msync_netbsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Evan Shaw. 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 mmap 6 | 7 | const _SYS_MSYNC = 277 8 | const _MS_SYNC = 0x04 9 | -------------------------------------------------------------------------------- /vendor/github.com/fd/go-nat/README.md: -------------------------------------------------------------------------------- 1 | # go-nat 2 | 3 | [![GoDoc](https://godoc.org/github.com/fd/go-nat?status.svg)](https://godoc.org/github.com/fd/go-nat) [![status](https://sourcegraph.com/api/repos/github.com/fd/go-nat/.badges/status.png)](https://sourcegraph.com/github.com/fd/go-nat) 4 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-secio/pb/Makefile: -------------------------------------------------------------------------------- 1 | PB = $(wildcard *.proto) 2 | GO = $(PB:.proto=.pb.go) 3 | 4 | all: $(GO) 5 | 6 | %.pb.go: %.proto 7 | protoc --gogo_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $< 8 | 9 | clean: 10 | rm *.pb.go 11 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-stream-muxer/Makefile: -------------------------------------------------------------------------------- 1 | all: deps 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | 11 | publish: 12 | gx-go rewrite --undo 13 | 14 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-multiplex/Makefile: -------------------------------------------------------------------------------- 1 | all: deps 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | 11 | publish: 12 | gx-go rewrite --undo 13 | 14 | -------------------------------------------------------------------------------- /core/wavm/tests/initializeVariables_test.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | ) 7 | 8 | var initVarJsonPath = filepath.Join("", "initializeVariables.json") 9 | 10 | func TestInitializeVariables(t *testing.T) { 11 | run(t, initVarJsonPath) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-interface-connmgr/Makefile: -------------------------------------------------------------------------------- 1 | all: deps 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | 11 | publish: 12 | gx-go rewrite --undo 13 | 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multiaddr-net/doc.go: -------------------------------------------------------------------------------- 1 | // Package manet provides Multiaddr specific versions of common 2 | // functions in stdlib's net package. This means wrappers of 3 | // standard net symbols like net.Dial and net.Listen, as well 4 | // as conversion to/from net.Addr. 5 | package manet 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.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 ppc64 ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | -------------------------------------------------------------------------------- /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/github.com/libp2p/go-libp2p-host/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | 11 | publish: 12 | gx-go rewrite --undo 13 | 14 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-kad-dht/pb/Makefile: -------------------------------------------------------------------------------- 1 | PB = $(wildcard *.proto) 2 | GO = $(PB:.proto=.pb.go) 3 | 4 | all: $(GO) 5 | 6 | %.pb.go: %.proto 7 | protoc --gogo_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $< 8 | 9 | clean: 10 | rm -f *.pb.go 11 | rm -f *.go 12 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-swarm/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | 11 | publish: 12 | gx-go rewrite --undo 13 | 14 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p/p2p/protocol/identify/pb/Makefile: -------------------------------------------------------------------------------- 1 | 2 | PB = $(wildcard *.proto) 3 | GO = $(PB:.proto=.pb.go) 4 | 5 | all: $(GO) 6 | 7 | %.pb.go: %.proto 8 | protoc --gogo_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $< 9 | 10 | clean: 11 | rm *.pb.go 12 | -------------------------------------------------------------------------------- /vendor/github.com/rjeczalik/notify/debug_debug.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014-2018 The Notify Authors. All rights reserved. 2 | // Use of this source code is governed by the MIT license that can be 3 | // found in the LICENSE file. 4 | 5 | // +build debug 6 | 7 | package notify 8 | 9 | var debugTag = true 10 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_amd64.go: -------------------------------------------------------------------------------- 1 | // +build amd64 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_s390x.go: -------------------------------------------------------------------------------- 1 | // +build s390x 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multistream/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | deps: gx 8 | gx --verbose install --global 9 | gx-go rewrite 10 | 11 | publish: 12 | gx-go rewrite --undo 13 | 14 | -------------------------------------------------------------------------------- /vendor/github.com/rjeczalik/notify/debug_nodebug.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014-2018 The Notify Authors. All rights reserved. 2 | // Use of this source code is governed by the MIT license that can be 3 | // found in the LICENSE file. 4 | 5 | // +build !debug 6 | 7 | package notify 8 | 9 | var debugTag = false 10 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 wagon is a WebAssembly-based interpreter in Go, for Go. 6 | package wagon 7 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /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/github.com/Azure/go-autorest/autorest/date/utility.go: -------------------------------------------------------------------------------- 1 | package date 2 | 3 | import ( 4 | "strings" 5 | "time" 6 | ) 7 | 8 | // ParseTime to parse Time string to specified format. 9 | func ParseTime(format string, t string) (d time.Time, err error) { 10 | return time.Parse(format, strings.ToUpper(t)) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ast/astutil/util.go: -------------------------------------------------------------------------------- 1 | package astutil 2 | 3 | import "go/ast" 4 | 5 | // Unparen returns e with any enclosing parentheses stripped. 6 | func Unparen(e ast.Expr) ast.Expr { 7 | for { 8 | p, ok := e.(*ast.ParenExpr) 9 | if !ok { 10 | return e 11 | } 12 | e = p.X 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/karalabe/hid/libusb/libusb/os/poll_posix.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBUSB_POLL_POSIX_H 2 | #define LIBUSB_POLL_POSIX_H 3 | 4 | #define usbi_write write 5 | #define usbi_read read 6 | #define usbi_close close 7 | #define usbi_poll poll 8 | 9 | int usbi_pipe(int pipefd[2]); 10 | 11 | #endif /* LIBUSB_POLL_POSIX_H */ 12 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/select.wasm: -------------------------------------------------------------------------------- 1 | asm%``~~~`}}}`|||``h 2 | select_i32 3 | select_i64 4 | select_f32 5 | select_f64 select_trap_l select_trap_rselect_unreached 6 | T         A  A  AAACA -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 wasm provides functions for reading and parsing WebAssembly modules. 6 | package wasm 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/go1_2.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 go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_not_windows.go: -------------------------------------------------------------------------------- 1 | // +build !windows appengine 2 | 3 | package isatty 4 | 5 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 6 | // terminal. This is also always false on this environment. 7 | func IsCygwinTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-autorest/autorest/azure/config.go: -------------------------------------------------------------------------------- 1 | package azure 2 | 3 | import ( 4 | "net/url" 5 | ) 6 | 7 | // OAuthConfig represents the endpoints needed 8 | // in OAuth operations 9 | type OAuthConfig struct { 10 | AuthorizeEndpoint url.URL 11 | TokenEndpoint url.URL 12 | DeviceCodeEndpoint url.URL 13 | } 14 | -------------------------------------------------------------------------------- /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/gizak/termui/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/gizak/termui 2 | import: 3 | - package: github.com/mattn/go-runewidth 4 | - package: github.com/mitchellh/go-wordwrap 5 | - package: github.com/nsf/termbox-go 6 | - package: golang.org/x/net 7 | subpackages: 8 | - websocket 9 | - package: github.com/maruel/panicparse 10 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-secio/Makefile: -------------------------------------------------------------------------------- 1 | test: deps 2 | go test -race -v ./... 3 | 4 | export IPFS_API ?= v04x.ipfs.io 5 | 6 | gx: 7 | go get -u github.com/whyrusleeping/gx 8 | go get -u github.com/whyrusleeping/gx-go 9 | 10 | deps: gx 11 | gx --verbose install --global 12 | gx-go rewrite 13 | go get -t ./... 14 | 15 | -------------------------------------------------------------------------------- /vendor/gopkg.in/olebedev/go-duktape.v3/duk_print_alert.h: -------------------------------------------------------------------------------- 1 | #if !defined(DUK_PRINT_ALERT_H_INCLUDED) 2 | #define DUK_PRINT_ALERT_H_INCLUDED 3 | 4 | #include "duktape.h" 5 | 6 | /* No flags at the moment. */ 7 | 8 | extern void duk_print_alert_init(duk_context *ctx, duk_uint_t flags); 9 | 10 | #endif /* DUK_PRINT_ALERT_H_INCLUDED */ 11 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/unmount_std.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package fuse 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | func unmount(dir string) error { 11 | err := syscall.Unmount(dir, 0) 12 | if err != nil { 13 | err = &os.PathError{Op: "unmount", Path: dir, Err: err} 14 | return err 15 | } 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/ipfs/go-ipfs-util/file.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "os" 4 | 5 | // FileExists check if the file with the given path exits. 6 | func FileExists(filename string) bool { 7 | fi, err := os.Lstat(filename) 8 | if fi != nil || (err != nil && !os.IsNotExist(err)) { 9 | return true 10 | } 11 | return false 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-loggables/Makefile: -------------------------------------------------------------------------------- 1 | test: deps 2 | go test -race -v ./... 3 | 4 | export IPFS_API ?= v04x.ipfs.io 5 | 6 | gx: 7 | go get -u github.com/whyrusleeping/gx 8 | go get -u github.com/whyrusleeping/gx-go 9 | 10 | deps: gx 11 | gx --verbose install --global 12 | gx-go rewrite 13 | go get -t ./... 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport/poll/error.go: -------------------------------------------------------------------------------- 1 | package poll 2 | 3 | var errTimeout = &timeoutError{} 4 | 5 | type timeoutError struct{} 6 | 7 | func (e *timeoutError) Error() string { return "i/o timeout" } 8 | func (e *timeoutError) Timeout() bool { return true } 9 | func (e *timeoutError) Temporary() bool { return true } 10 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multiaddr/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | covertools: 6 | go get golang.org/x/tools/cmd/cover 7 | 8 | deps: gx covertools 9 | gx --verbose install --global 10 | gx-go rewrite 11 | 12 | publish: 13 | gx-go rewrite --undo 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/multiaddr-filter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": {}, 4 | "gx": { 5 | "dvcsimport": "github.com/whyrusleeping/multiaddr-filter" 6 | }, 7 | "gxVersion": "0.7.0", 8 | "language": "go", 9 | "license": "", 10 | "name": "multiaddr-filter", 11 | "version": "1.0.2" 12 | } 13 | -------------------------------------------------------------------------------- /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 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/reexec/README.md: -------------------------------------------------------------------------------- 1 | # reexec 2 | 3 | The `reexec` package facilitates the busybox style reexec of the docker binary that we require because 4 | of the forking limitations of using Go. Handlers can be registered with a name and the argv 0 of 5 | the exec of the binary will be used to find and execute custom init paths. 6 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/Azure/azure-sdk-for-go 2 | import: 3 | - package: github.com/Azure/go-autorest 4 | subpackages: 5 | - /autorest 6 | - autorest/azure 7 | - autorest/date 8 | - autorest/to 9 | - package: golang.org/x/crypto 10 | subpackages: 11 | - /pkcs12 12 | - package: gopkg.in/check.v1 -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/reexec/command_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows,!freebsd,!solaris,!darwin 2 | 3 | package reexec 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | // Command is unsupported on operating systems apart from Linux, Windows, Solaris and Darwin. 10 | func Command(args ...string) *exec.Cmd { 11 | return nil 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/gizak/termui/linechart_others.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Zack Guo . All rights reserved. 2 | // Use of this source code is governed by a MIT license that can 3 | // be found in the LICENSE file. 4 | 5 | // +build !windows 6 | 7 | package termui 8 | 9 | const VDASH = '┊' 10 | const HDASH = '┈' 11 | const ORIGIN = '└' 12 | -------------------------------------------------------------------------------- /vendor/github.com/gizak/termui/linechart_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Zack Guo . All rights reserved. 2 | // Use of this source code is governed by a MIT license that can 3 | // be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package termui 8 | 9 | const VDASH = '|' 10 | const HDASH = '-' 11 | const ORIGIN = '+' 12 | -------------------------------------------------------------------------------- /vendor/github.com/karalabe/hid/hidapi/LICENSE-orig.txt: -------------------------------------------------------------------------------- 1 | HIDAPI - Multi-Platform library for 2 | communication with HID devices. 3 | 4 | Copyright 2009, Alan Ott, Signal 11 Software. 5 | All Rights Reserved. 6 | 7 | This software may be used by anyone for any reason so 8 | long as the copyright notice in the source files 9 | remains intact. 10 | -------------------------------------------------------------------------------- /vendor/github.com/jackpal/gateway/gateway_unimplemented.go: -------------------------------------------------------------------------------- 1 | // +build !darwin,!linux,!windows,!solaris,!freebsd 2 | 3 | package gateway 4 | 5 | import ( 6 | "fmt" 7 | "net" 8 | "runtime" 9 | ) 10 | 11 | func DiscoverGateway() (ip net.IP, err error) { 12 | err = fmt.Errorf("DiscoverGateway not implemented for OS %s", runtime.GOOS) 13 | return 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // TestingT is an interface wrapper around *testing.T 4 | type TestingT interface { 5 | Errorf(format string, args ...interface{}) 6 | FailNow() 7 | } 8 | 9 | //go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl -include-format-funcs 10 | -------------------------------------------------------------------------------- /vendor/github.com/pborman/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 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 | // The uuid package generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security Services. 8 | package uuid 9 | -------------------------------------------------------------------------------- /vendor/github.com/robertkrimen/otto/type_boolean.go: -------------------------------------------------------------------------------- 1 | package otto 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | func (runtime *_runtime) newBooleanObject(value Value) *_object { 8 | return runtime.newPrimitiveObject("Boolean", toValue_bool(value.bool())) 9 | } 10 | 11 | func booleanToString(value bool) string { 12 | return strconv.FormatBool(value) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/callindirect.wasm: -------------------------------------------------------------------------------- 1 | asm```` pM test_zerotest_onetest_addtest_sub trap_oob 2 | trap_sig_mismatch 3 | A  4 | i A A    j  k   A A 5 | A 6 | AA 7 | A 8 | AA 9 | A 10 | AA 11 | A 12 | AA -------------------------------------------------------------------------------- /vendor/gopkg.in/olebedev/go-duktape.v3/duk_module_node.h: -------------------------------------------------------------------------------- 1 | #if !defined(DUK_MODULE_NODE_H_INCLUDED) 2 | #define DUK_MODULE_NODE_H_INCLUDED 3 | 4 | #include "duktape.h" 5 | 6 | extern duk_ret_t duk_module_node_peval_main(duk_context *ctx, const char *path); 7 | extern void duk_module_node_init(duk_context *ctx); 8 | 9 | #endif /* DUK_MODULE_NODE_H_INCLUDED */ 10 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p/error_util.go: -------------------------------------------------------------------------------- 1 | package libp2p 2 | 3 | import ( 4 | "fmt" 5 | "runtime" 6 | ) 7 | 8 | func traceError(err error, skip int) error { 9 | if err == nil { 10 | return nil 11 | } 12 | _, file, line, ok := runtime.Caller(skip + 1) 13 | if !ok { 14 | return err 15 | } 16 | return fmt.Errorf("%s:%d: %s", file, line, err) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/jbenet/goprocess/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/jbenet/goprocess" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/jbenet/goprocess" 8 | }, 9 | "gxVersion": "0.8.0", 10 | "language": "go", 11 | "license": "", 12 | "name": "goprocess", 13 | "version": "1.0.0" 14 | } 15 | -------------------------------------------------------------------------------- /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/ipfs/go-cid/Makefile: -------------------------------------------------------------------------------- 1 | all: deps 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | covertools: 8 | go get github.com/mattn/goveralls 9 | go get golang.org/x/tools/cmd/cover 10 | 11 | deps: gx covertools 12 | gx --verbose install --global 13 | gx-go rewrite 14 | 15 | publish: 16 | gx-go rewrite --undo 17 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-secio/pb/spipe.proto: -------------------------------------------------------------------------------- 1 | package spipe.pb; 2 | 3 | message Propose { 4 | optional bytes rand = 1; 5 | optional bytes pubkey = 2; 6 | optional string exchanges = 3; 7 | optional string ciphers = 4; 8 | optional string hashes = 5; 9 | } 10 | 11 | message Exchange { 12 | optional bytes epubkey = 1; 13 | optional bytes signature = 2; 14 | } 15 | -------------------------------------------------------------------------------- /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/gopkg.in/olebedev/go-duktape.v3/wercker.yml: -------------------------------------------------------------------------------- 1 | box: golang 2 | build: 3 | steps: 4 | - setup-go-workspace 5 | - script: 6 | name: go get 7 | code: | 8 | cd $WERCKER_SOURCE_DIR 9 | go version 10 | go get gopkg.in/check.v1 11 | - script: 12 | name: go test 13 | code: | 14 | go test . -v 15 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/fuse.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/jackpal/gateway/gateway_freebsd.go: -------------------------------------------------------------------------------- 1 | package gateway 2 | 3 | import ( 4 | "net" 5 | "os/exec" 6 | ) 7 | 8 | func DiscoverGateway() (ip net.IP, err error) { 9 | routeCmd := exec.Command("netstat", "-rn") 10 | output, err := routeCmd.CombinedOutput() 11 | if err != nil { 12 | return nil, err 13 | } 14 | 15 | return parseBSDSolarisNetstat(output) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/jackpal/gateway/gateway_solaris.go: -------------------------------------------------------------------------------- 1 | package gateway 2 | 3 | import ( 4 | "net" 5 | "os/exec" 6 | ) 7 | 8 | func DiscoverGateway() (ip net.IP, err error) { 9 | routeCmd := exec.Command("netstat", "-rn") 10 | output, err := routeCmd.CombinedOutput() 11 | if err != nil { 12 | return nil, err 13 | } 14 | 15 | return parseBSDSolarisNetstat(output) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p/Makefile: -------------------------------------------------------------------------------- 1 | gx: 2 | go get github.com/whyrusleeping/gx 3 | go get github.com/whyrusleeping/gx-go 4 | 5 | deps-protocol-muxing: deps 6 | go get -u github.com/multiformats/go-multicodec 7 | go get -u github.com/libp2p/go-msgio 8 | 9 | deps: gx 10 | gx --verbose install --global 11 | gx-go rewrite 12 | 13 | publish: 14 | gx-go rewrite --undo 15 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Changes by Version 2 | ================== 3 | 4 | 1.1.0 (unreleased) 5 | ------------------- 6 | 7 | - Deprecate InitGlobalTracer() in favor of SetGlobalTracer() 8 | 9 | 10 | 1.0.0 (2016-09-26) 11 | ------------------- 12 | 13 | - This release implements OpenTracing Specification 1.0 (http://opentracing.io/spec) 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/rjeczalik/notify/AUTHORS: -------------------------------------------------------------------------------- 1 | # List of individuals who contributed to the Notify package. 2 | # 3 | # The up-to-date list of the authors one may obtain with: 4 | # 5 | # ~ $ git shortlog -es | cut -f2 | rev | uniq -f1 | rev 6 | # 7 | 8 | Pawel Blaszczyk 9 | Pawel Knap 10 | Rafal Jeczalik 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /crypto/ecies/.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 | *~ 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IConnectionPointContainer) EnumConnectionPoints(points interface{}) error { 6 | return NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IConnectionPointContainer) FindConnectionPoint(iid *GUID, point **IConnectionPoint) error { 10 | return NewError(E_NOTIMPL) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/connection_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package oleutil 4 | 5 | import ole "github.com/go-ole/go-ole" 6 | 7 | // ConnectObject creates a connection point between two services for communication. 8 | func ConnectObject(disp *ole.IDispatch, iid *ole.GUID, idisp interface{}) (uint32, error) { 9 | return 0, ole.NewError(ole.E_NOTIMPL) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/operators/parametric.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 operators 6 | 7 | var ( 8 | Drop = newPolymorphicOp(0x1a, "drop") 9 | Select = newPolymorphicOp(0x1b, "select") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/base32/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/whyrusleeping/base32" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/whyrusleeping/base32" 8 | }, 9 | "gxVersion": "0.7.0", 10 | "language": "go", 11 | "license": "", 12 | "name": "base32", 13 | "version": "0.0.2" 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 | package windows 6 | 7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 8 | -------------------------------------------------------------------------------- /crypto/secp256k1/.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 | *~ 25 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /log/term/terminal_appengine.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build appengine 7 | 8 | package term 9 | 10 | // IsTty always returns false on AppEngine. 11 | func IsTty(fd uintptr) bool { 12 | return false 13 | } 14 | -------------------------------------------------------------------------------- /log/term/terminal_darwin.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | // +build !appengine 6 | 7 | package term 8 | 9 | import "syscall" 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | type Termios syscall.Termios 14 | -------------------------------------------------------------------------------- /log/term/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build !appengine 7 | 8 | package term 9 | 10 | import "syscall" 11 | 12 | const ioctlReadTermios = syscall.TCGETS 13 | 14 | type Termios syscall.Termios 15 | -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/.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/gxed/hashland/keccakpg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": {}, 4 | "gx": { 5 | "dvcsimport": "github.com/gxed/hashland/keccakpg" 6 | }, 7 | "gxVersion": "0.10.0", 8 | "language": "go", 9 | "license": "", 10 | "name": "keccakpg", 11 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 12 | "version": "0.0.1" 13 | } 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/jackpal/gateway/gateway_darwin.go: -------------------------------------------------------------------------------- 1 | package gateway 2 | 3 | import ( 4 | "net" 5 | "os/exec" 6 | ) 7 | 8 | func DiscoverGateway() (net.IP, error) { 9 | routeCmd := exec.Command("/sbin/route", "-n", "get", "0.0.0.0") 10 | output, err := routeCmd.CombinedOutput() 11 | if err != nil { 12 | return nil, err 13 | } 14 | 15 | return parseDarwinRouteGet(output) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/naoina/go-stringutil/README.md: -------------------------------------------------------------------------------- 1 | # stringutil [![Build Status](https://travis-ci.org/naoina/go-stringutil.svg?branch=master)](https://travis-ci.org/naoina/go-stringutil) 2 | 3 | ## Installation 4 | 5 | go get -u github.com/naoina/go-stringutil 6 | 7 | ## Documentation 8 | 9 | See https://godoc.org/github.com/naoina/go-stringutil 10 | 11 | ## License 12 | 13 | MIT 14 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/validate/operand.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 validate 6 | 7 | import ( 8 | "github.com/vntchain/vnt-wasm/wasm" 9 | ) 10 | 11 | type operand struct { 12 | Type wasm.ValueType 13 | } 14 | -------------------------------------------------------------------------------- /core/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile ~/.gitignore_global 6 | 7 | /tmp 8 | */**/*un~ 9 | *un~ 10 | .DS_Store 11 | */**/.DS_Store 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/ipfs/go-todocounter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/ipfs/go-todocounter/issues" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/ipfs/go-todocounter" 8 | }, 9 | "gxVersion": "0.8.0", 10 | "language": "go", 11 | "license": "MIT", 12 | "name": "go-todocounter", 13 | "version": "1.0.1" 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/pborman/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/vntchain/vnt-wasm/wasm/operators/call.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 operators 6 | 7 | var ( 8 | Call = newPolymorphicOp(0x10, "call") 9 | CallIndirect = newPolymorphicOp(0x11, "call_indirect") 10 | ) 11 | -------------------------------------------------------------------------------- /vntdb/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile ~/.gitignore_global 6 | 7 | /tmp 8 | */**/*un~ 9 | *un~ 10 | .DS_Store 11 | */**/.DS_Store 12 | 13 | -------------------------------------------------------------------------------- /cmd/gvnt/testdata/guswallet.json: -------------------------------------------------------------------------------- 1 | { 2 | "encseed": "26d87f5f2bf9835f9a47eefae571bc09f9107bb13d54ff12a4ec095d01f83897494cf34f7bed2ed34126ecba9db7b62de56c9d7cd136520a0427bfb11b8954ba7ac39b90d4650d3448e31185affcd74226a68f1e94b1108e6e0a4a91cdd83eba", 3 | "vntaddr": "d4584b5f6229b7be90727b0fc8c6b91bb427821f", 4 | "email": "gustav.simonsson@gmail.com", 5 | "btcaddr": "1EVknXyFC68kKNLkh6YnKzW41svSRoaAcx" 6 | } 7 | -------------------------------------------------------------------------------- /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/github.com/libp2p/go-stream-muxer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/libp2p/go-stream-muxer" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/libp2p/go-stream-muxer" 8 | }, 9 | "gxVersion": "0.7.0", 10 | "language": "go", 11 | "license": "", 12 | "name": "go-stream-muxer", 13 | "version": "3.0.1" 14 | } 15 | 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/gopkg.in/olebedev/go-duktape.v3/utils.go: -------------------------------------------------------------------------------- 1 | package duktape 2 | 3 | // Must returns existing *Context or throw panic. 4 | // It is highly recommended to use Must all the time. 5 | func (d *Context) Must() *Context { 6 | if d.duk_context == nil { 7 | panic("[duktape] Context does not exists!\nYou cannot call any contexts methods after `DestroyHeap()` was called.") 8 | } 9 | return d 10 | } 11 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/fuse_darwin.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | // Maximum file write size we are prepared to receive from the kernel. 4 | // 5 | // This value has to be >=16MB or OSXFUSE (3.4.0 observed) will 6 | // forcibly close the /dev/fuse file descriptor on a Setxattr with a 7 | // 16MB value. See TestSetxattr16MB and 8 | // https://github.com/bazil/fuse/issues/42 9 | const maxWrite = 16 * 1024 * 1024 10 | -------------------------------------------------------------------------------- /vendor/github.com/maruel/panicparse/.travis.yml: -------------------------------------------------------------------------------- 1 | # Copyright 2014 Marc-Antoine Ruel. All rights reserved. 2 | # Use of this source code is governed under the Apache License, Version 2.0 3 | # that can be found in the LICENSE file. 4 | 5 | sudo: false 6 | language: go 7 | 8 | go: 9 | - tip 10 | 11 | before_install: 12 | - go get github.com/maruel/pre-commit-go/cmd/pcg 13 | 14 | script: 15 | - pcg 16 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.9.x 4 | - 1.10.x 5 | - master 6 | 7 | matrix: 8 | fast_finish: true 9 | allow_failures: 10 | - go: master 11 | 12 | sudo: false 13 | 14 | script: 15 | - go get -d -t -v ./... 16 | - go install -v $TAGS ./... 17 | - ./.ci/code-coverage.sh 18 | 19 | after_success: 20 | - bash <(curl -s https://codecov.io/bash) 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /swarm/dev/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build cluster test 2 | 3 | default: build 4 | 5 | build: 6 | go build -o bin/swarm github.com/vntchain/go-vnt/cmd/swarm 7 | go build -o bin/gvnt github.com/vntchain/go-vnt/cmd/gvnt 8 | go build -o bin/bootnode github.com/vntchain/go-vnt/cmd/bootnode 9 | 10 | cluster: build 11 | scripts/boot-cluster.sh 12 | 13 | test: 14 | go test -v github.com/vntchain/go-vnt/swarm/... 15 | -------------------------------------------------------------------------------- /vendor/github.com/fjl/memsize/runtimefunc.go: -------------------------------------------------------------------------------- 1 | package memsize 2 | 3 | import "unsafe" 4 | 5 | var _ = unsafe.Pointer(nil) 6 | 7 | //go:linkname stopTheWorld runtime.stopTheWorld 8 | func stopTheWorld(reason string) 9 | 10 | //go:linkname startTheWorld runtime.startTheWorld 11 | func startTheWorld() 12 | 13 | //go:linkname chanbuf runtime.chanbuf 14 | func chanbuf(ch unsafe.Pointer, i uint) unsafe.Pointer 15 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-protocol/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/libp2p/go-libp2p-protocol" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/libp2p/go-libp2p-protocol" 8 | }, 9 | "gxVersion": "0.9.1", 10 | "language": "go", 11 | "license": "", 12 | "name": "go-libp2p-protocol", 13 | "version": "1.0.0" 14 | } 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-smux-yamux/Makefile: -------------------------------------------------------------------------------- 1 | build: deps 2 | go build ./... 3 | 4 | test: deps 5 | go test ./... 6 | 7 | test_race: deps 8 | go test -race ./... 9 | 10 | gx-bins: 11 | go get github.com/whyrusleeping/gx 12 | go get github.com/whyrusleeping/gx-go 13 | 14 | deps: gx-bins 15 | gx --verbose install --global 16 | gx-go rewrite 17 | 18 | clean: gx-bins 19 | gx-go rewrite --undo 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/const_amd64.h: -------------------------------------------------------------------------------- 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 | // This code was translated into a form compatible with 6a from the public 6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html 7 | 8 | #define REDMASK51 0x0007FFFFFFFFFFFF 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/ienumvariant.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IEnumVARIANT struct { 6 | IUnknown 7 | } 8 | 9 | type IEnumVARIANTVtbl struct { 10 | IUnknownVtbl 11 | Next uintptr 12 | Skip uintptr 13 | Reset uintptr 14 | Clone uintptr 15 | } 16 | 17 | func (v *IEnumVARIANT) VTable() *IEnumVARIANTVtbl { 18 | return (*IEnumVARIANTVtbl)(unsafe.Pointer(v.RawVTable)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/gxed/GoEndian/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "gxed", 3 | "bugs": { 4 | "URL": "https://github.com/gxed/GoEndian/issues", 5 | "url": "https://github.com/gxed/GoEndian/issues" 6 | }, 7 | "gx": { 8 | "dvcsimport": "github.com/gxed/GoEndian" 9 | }, 10 | "gxVersion": "0.9.0", 11 | "language": "go", 12 | "license": "", 13 | "name": "GoEndian", 14 | "version": "1.0.0" 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-smux-multiplex/Makefile: -------------------------------------------------------------------------------- 1 | build: deps 2 | go build ./... 3 | 4 | test: deps 5 | go test ./... 6 | 7 | test_race: deps 8 | go test -race ./... 9 | 10 | gx-bins: 11 | go get github.com/whyrusleeping/gx 12 | go get github.com/whyrusleeping/gx-go 13 | 14 | deps: gx-bins 15 | gx --verbose install --global 16 | gx-go rewrite 17 | 18 | clean: gx-bins 19 | gx-go rewrite --undo 20 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-smux-multistream/Makefile: -------------------------------------------------------------------------------- 1 | build: deps 2 | go build ./... 3 | 4 | test: deps 5 | go test ./... 6 | 7 | test_race: deps 8 | go test -race ./... 9 | 10 | gx-bins: 11 | go get github.com/whyrusleeping/gx 12 | go get github.com/whyrusleeping/gx-go 13 | 14 | deps: gx-bins 15 | gx --verbose install --global 16 | gx-go rewrite 17 | 18 | clean: gx-bins 19 | gx-go rewrite --undo 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/imports/fastwalk_dirent_ino.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 linux,!appengine darwin 6 | 7 | package imports 8 | 9 | import "syscall" 10 | 11 | func direntInode(dirent *syscall.Dirent) uint64 { 12 | return uint64(dirent.Ino) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/edsrzf/mmap-go/msync_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Evan Shaw. 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 linux openbsd solaris 6 | 7 | package mmap 8 | 9 | import ( 10 | "syscall" 11 | ) 12 | 13 | const _SYS_MSYNC = syscall.SYS_MSYNC 14 | const _MS_SYNC = syscall.MS_SYNC 15 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-peerstore/Makefile: -------------------------------------------------------------------------------- 1 | export IPFS_API ?= v04x.ipfs.io 2 | 3 | gx: 4 | go get github.com/whyrusleeping/gx 5 | go get github.com/whyrusleeping/gx-go 6 | 7 | covertools: 8 | go get github.com/mattn/goveralls 9 | go get golang.org/x/tools/cmd/cover 10 | 11 | deps: gx covertools 12 | gx --verbose install --global 13 | gx-go rewrite 14 | 15 | publish: 16 | gx-go rewrite --undo 17 | 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.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 go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/imports/fastwalk_dirent_fileno.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 freebsd openbsd netbsd 6 | 7 | package imports 8 | 9 | import "syscall" 10 | 11 | func direntInode(dirent *syscall.Dirent) uint64 { 12 | return uint64(dirent.Fileno) 13 | } 14 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/windows/env_unset.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 windows 6 | // +build go1.4 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | func Unsetenv(key string) error { 13 | // This was added in Go 1.4. 14 | return syscall.Unsetenv(key) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.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 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /log/term/terminal_freebsd.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | const ioctlReadTermios = syscall.TIOCGETA 8 | 9 | // Go 1.2 doesn't include Termios for FreeBSD. This should be added in 1.3 and this could be merged with terminal_darwin. 10 | type Termios struct { 11 | Iflag uint32 12 | Oflag uint32 13 | Cflag uint32 14 | Lflag uint32 15 | Cc [20]uint8 16 | Ispeed uint32 17 | Ospeed uint32 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/sigar_util.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 VMware, Inc. 2 | 3 | package gosigar 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | func bytePtrToString(ptr *int8) string { 10 | bytes := (*[10000]byte)(unsafe.Pointer(ptr)) 11 | 12 | n := 0 13 | for bytes[n] != 0 { 14 | n++ 15 | } 16 | 17 | return string(bytes[0:n]) 18 | } 19 | 20 | func chop(buf []byte) []byte { 21 | return buf[0 : len(buf)-1] 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iinspectable_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IInspectable) GetIids() ([]*GUID, error) { 6 | return []*GUID{}, NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IInspectable) GetRuntimeClassName() (string, error) { 10 | return "", NewError(E_NOTIMPL) 11 | } 12 | 13 | func (v *IInspectable) GetTrustLevel() (uint32, error) { 14 | return uint32(0), NewError(E_NOTIMPL) 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 | -------------------------------------------------------------------------------- /vendor/gopkg.in/check.v1/README.md: -------------------------------------------------------------------------------- 1 | Instructions 2 | ============ 3 | 4 | Install the package with: 5 | 6 | go get gopkg.in/check.v1 7 | 8 | Import it with: 9 | 10 | import "gopkg.in/check.v1" 11 | 12 | and use _check_ as the package name inside the code. 13 | 14 | For more details, visit the project page: 15 | 16 | * http://labix.org/gocheck 17 | 18 | and the API documentation: 19 | 20 | * https://gopkg.in/check.v1 21 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/cp/README.md: -------------------------------------------------------------------------------- 1 | # cp 2 | 3 | [![GoDoc](https://godoc.org/github.com/cespare/cp?status.svg)](https://godoc.org/github.com/cespare/cp) 4 | 5 | cp is a small Go package for copying files and directories. 6 | 7 | The API may change because I want to add some options in the future (for merging with existing dirs). 8 | 9 | It does not currently handle Windows specifically (I think it may require some special treatment). 10 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iinspectable.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IInspectable struct { 6 | IUnknown 7 | } 8 | 9 | type IInspectableVtbl struct { 10 | IUnknownVtbl 11 | GetIIds uintptr 12 | GetRuntimeClassName uintptr 13 | GetTrustLevel uintptr 14 | } 15 | 16 | func (v *IInspectable) VTable() *IInspectableVtbl { 17 | return (*IInspectableVtbl)(unsafe.Pointer(v.RawVTable)) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/whyrusleeping/go-multiplex/README.md: -------------------------------------------------------------------------------- 1 | # go-multiplex 2 | 3 | A super simple stream muxing library implementing [mplex](https://github.com/libp2p/mplex/). 4 | 5 | ## Usage 6 | 7 | ```go 8 | mplex := multiplex.NewMultiplex(mysocket) 9 | 10 | s, _ := mplex.NewStream() 11 | s.Write([]byte("Hello World!")) 12 | s.Close() 13 | 14 | os, _ := mplex.Accept() 15 | // echo back everything received 16 | io.Copy(os, os) 17 | ``` 18 | -------------------------------------------------------------------------------- /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/whyrusleeping/yamux/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/whyrusleeping/yamux" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/whyrusleeping/yamux" 8 | }, 9 | "gxVersion": "0.10.0", 10 | "language": "go", 11 | "license": "", 12 | "name": "yamux", 13 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 14 | "version": "1.0.6" 15 | } 16 | 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.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 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-record/record.go: -------------------------------------------------------------------------------- 1 | package record 2 | 3 | import ( 4 | proto "github.com/gogo/protobuf/proto" 5 | pb "github.com/libp2p/go-libp2p-record/pb" 6 | ) 7 | 8 | // MakePutRecord creates a dht record for the given key/value pair 9 | func MakePutRecord(key string, value []byte) *pb.Record { 10 | record := new(pb.Record) 11 | record.Key = proto.String(string(key)) 12 | record.Value = value 13 | return record 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/gizak/termui/block_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Zack Guo . All rights reserved. 2 | // Use of this source code is governed by a MIT license that can 3 | // be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package termui 8 | 9 | const TOP_RIGHT = '+' 10 | const VERTICAL_LINE = '|' 11 | const HORIZONTAL_LINE = '-' 12 | const TOP_LEFT = '+' 13 | const BOTTOM_RIGHT = '+' 14 | const BOTTOM_LEFT = '+' 15 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-flow-metrics/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Stebalien", 3 | "bugs": { 4 | "url": "github.com/libp2p/go-flow-metrics" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/libp2p/go-flow-metrics" 8 | }, 9 | "gxVersion": "0.12.1", 10 | "language": "go", 11 | "license": "", 12 | "name": "go-flow-metrics", 13 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 14 | "version": "0.2.0" 15 | } 16 | 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/common.go: -------------------------------------------------------------------------------- 1 | // This file was generated by go generate; DO NOT EDIT 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // langAliasType is the type of an alias in langAliasMap. 8 | type langAliasType int8 9 | 10 | const ( 11 | langDeprecated langAliasType = iota 12 | langMacro 13 | langLegacy 14 | 15 | langAliasTypeUnknown langAliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /metrics/writer_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "sort" 5 | "testing" 6 | ) 7 | 8 | func TestMetricsSorting(t *testing.T) { 9 | var namedMetrics = namedMetricSlice{ 10 | {name: "zzz"}, 11 | {name: "bbb"}, 12 | {name: "fff"}, 13 | {name: "ggg"}, 14 | } 15 | 16 | sort.Sort(namedMetrics) 17 | for i, name := range []string{"bbb", "fff", "ggg", "zzz"} { 18 | if namedMetrics[i].name != name { 19 | t.Fail() 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/itypeinfo_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | func (v *ITypeInfo) GetTypeAttr() (tattr *TYPEATTR, err error) { 11 | hr, _, _ := syscall.Syscall( 12 | uintptr(v.VTable().GetTypeAttr), 13 | 2, 14 | uintptr(unsafe.Pointer(v)), 15 | uintptr(unsafe.Pointer(&tattr)), 16 | 0) 17 | if hr != 0 { 18 | err = NewError(hr) 19 | } 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/no-address: -------------------------------------------------------------------------------- 1 | {"crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variables.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | var ( 10 | modcombase = syscall.NewLazyDLL("combase.dll") 11 | modkernel32, _ = syscall.LoadDLL("kernel32.dll") 12 | modole32, _ = syscall.LoadDLL("ole32.dll") 13 | modoleaut32, _ = syscall.LoadDLL("oleaut32.dll") 14 | modmsvcrt, _ = syscall.LoadDLL("msvcrt.dll") 15 | moduser32, _ = syscall.LoadDLL("user32.dll") 16 | ) 17 | -------------------------------------------------------------------------------- /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/github.com/vntchain/vnt-wasm/exec/testdata/add-ex.wast: -------------------------------------------------------------------------------- 1 | ;; a simple module with one exported function "iadd". 2 | ;; 3 | ;; see https://github.com/WebAssembly/spec/tree/master/interpreter/#s-expression-syntax 4 | ;; for a reference about the syntax. 5 | (module 6 | (type (;0;) (func (param i32 i32) (result i32))) 7 | (func (;0;) (type 0) (param i32 i32) (result i32) 8 | get_local 0 9 | get_local 1 10 | i32.add) 11 | (export "iadd" (func 0))) 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Dockerfile.alltools: -------------------------------------------------------------------------------- 1 | # Build Gvnt in a stock Go builder container 2 | FROM golang:1.10-alpine as builder 3 | 4 | RUN apk add --no-cache make gcc musl-dev linux-headers 5 | 6 | ADD . /go-vnt 7 | RUN cd /go-vnt && 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-vnt/build/bin/* /usr/local/bin/ 14 | 15 | EXPOSE 8545 8546 30303 30303/udp 16 | -------------------------------------------------------------------------------- /vendor/github.com/karalabe/hid/hidapi/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | 2 | HIDAPI Authors: 3 | 4 | Alan Ott : 5 | Original Author and Maintainer 6 | Linux, Windows, and Mac implementations 7 | 8 | Ludovic Rousseau : 9 | Formatting for Doxygen documentation 10 | Bug fixes 11 | Correctness fixes 12 | 13 | 14 | For a comprehensive list of contributions, see the commit list at github: 15 | http://github.com/signal11/hidapi/commits/master 16 | 17 | -------------------------------------------------------------------------------- /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/golang.org/x/text/secure/bidirule/bidirule9.0.0.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 !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) { 11 | hr, _, _ := syscall.Syscall( 12 | disp.VTable().GetClassInfo, 13 | 2, 14 | uintptr(unsafe.Pointer(disp)), 15 | uintptr(unsafe.Pointer(&tinfo)), 16 | 0) 17 | if hr != 0 { 18 | err = NewError(hr) 19 | } 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/jackpal/gateway/gateway_windows.go: -------------------------------------------------------------------------------- 1 | package gateway 2 | 3 | import ( 4 | "net" 5 | "os/exec" 6 | "syscall" 7 | ) 8 | 9 | func DiscoverGateway() (ip net.IP, err error) { 10 | routeCmd := exec.Command("route", "print", "0.0.0.0") 11 | routeCmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} 12 | output, err := routeCmd.CombinedOutput() 13 | if err != nil { 14 | return nil, err 15 | } 16 | 17 | return parseWindowsRoutePrint(output) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_386.s: -------------------------------------------------------------------------------- 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 | // 6 | // System calls for 386, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-8 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-4 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /containers/docker/develop-alpine/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.7 2 | 3 | RUN \ 4 | apk add --update go git make gcc musl-dev linux-headers ca-certificates && \ 5 | git clone --depth 1 https://github.com/vntchain/go-vnt && \ 6 | (cd go-vnt && make gvnt) && \ 7 | cp go-vnt/build/bin/gvnt /gvnt && \ 8 | apk del go git make gcc musl-dev linux-headers && \ 9 | rm -rf /go-vnt && rm -rf /var/cache/apk/* 10 | 11 | EXPOSE 8545 12 | EXPOSE 30303 13 | 14 | ENTRYPOINT ["/gvnt"] 15 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multistream/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/multiformats/go-multistream" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/multiformats/go-multistream" 8 | }, 9 | "gxVersion": "0.7.0", 10 | "language": "go", 11 | "license": "", 12 | "name": "go-multistream", 13 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 14 | "version": "0.3.6" 15 | } 16 | 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_amd64.s: -------------------------------------------------------------------------------- 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 | // 6 | // System calls for amd64, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-32 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-8 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Build Gvnt in a stock Go builder container 2 | FROM golang:1.10-alpine as builder 3 | 4 | RUN apk add --no-cache make gcc musl-dev linux-headers 5 | 6 | ADD . /go-vnt 7 | RUN cd /go-vnt && make gvnt 8 | 9 | # Pull Gvnt 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-vnt/build/bin/gvnt /usr/local/bin/ 14 | 15 | EXPOSE 8545 8546 30303 30303/udp 16 | ENTRYPOINT ["gvnt"] 17 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/unmount_linux.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | import ( 4 | "bytes" 5 | "errors" 6 | "os/exec" 7 | ) 8 | 9 | func unmount(dir string) error { 10 | cmd := exec.Command("fusermount", "-u", dir) 11 | output, err := cmd.CombinedOutput() 12 | if err != nil { 13 | if len(output) > 0 { 14 | output = bytes.TrimRight(output, "\n") 15 | msg := err.Error() + ": " + string(output) 16 | err = errors.New(msg) 17 | } 18 | return err 19 | } 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IConnectionPointContainer struct { 6 | IUnknown 7 | } 8 | 9 | type IConnectionPointContainerVtbl struct { 10 | IUnknownVtbl 11 | EnumConnectionPoints uintptr 12 | FindConnectionPoint uintptr 13 | } 14 | 15 | func (v *IConnectionPointContainer) VTable() *IConnectionPointContainerVtbl { 16 | return (*IConnectionPointContainerVtbl)(unsafe.Pointer(v.RawVTable)) 17 | } 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/davecgh/go-spew/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.5.4 4 | - 1.6.3 5 | - 1.7 6 | install: 7 | - go get -v golang.org/x/tools/cmd/cover 8 | script: 9 | - go test -v -tags=safe ./spew 10 | - go test -v -tags=testcgo ./spew -covermode=count -coverprofile=profile.cov 11 | after_success: 12 | - go get -v github.com/mattn/goveralls 13 | - export PATH=$PATH:$HOME/gopath/bin 14 | - goveralls -coverprofile=profile.cov -service=travis-ci 15 | -------------------------------------------------------------------------------- /containers/docker/master-alpine/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.7 2 | 3 | RUN \ 4 | apk add --update go git make gcc musl-dev linux-headers ca-certificates && \ 5 | git clone --depth 1 --branch release/1.8 https://github.com/vntchain/go-vnt && \ 6 | (cd go-vnt && make gvnt) && \ 7 | cp go-vnt/build/bin/gvnt /gvnt && \ 8 | apk del go git make gcc musl-dev linux-headers && \ 9 | rm -rf /go-vnt && rm -rf /var/cache/apk/* 10 | 11 | EXPOSE 8545 12 | EXPOSE 30303 13 | 14 | ENTRYPOINT ["/gvnt"] 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2s/register.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 go1.9 6 | 7 | package blake2s 8 | 9 | import ( 10 | "crypto" 11 | "hash" 12 | ) 13 | 14 | func init() { 15 | newHash256 := func() hash.Hash { 16 | h, _ := New256(nil) 17 | return h 18 | } 19 | 20 | crypto.RegisterHash(crypto.BLAKE2s_256, newHash256) 21 | } 22 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/dupes/1: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/dupes/2: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/dupes/foo: -------------------------------------------------------------------------------- 1 | {"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3} -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/conn_read.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.5 6 | 7 | package websocket 8 | 9 | import "io" 10 | 11 | func (c *Conn) read(n int) ([]byte, error) { 12 | p, err := c.br.Peek(n) 13 | if err == io.EOF { 14 | err = errUnexpectedEOF 15 | } 16 | c.br.Discard(len(p)) 17 | return p, err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/jackpal/gateway/README.md: -------------------------------------------------------------------------------- 1 | # gateway 2 | 3 | A simple library for discovering the IP address of the default gateway. 4 | 5 | 6 | [![Build Status](https://travis-ci.org/jackpal/gateway.svg)](https://travis-ci.org/jackpal/gateway) 7 | 8 | Provides implementations for: 9 | 10 | + FreeBSD 11 | + Linux 12 | + OS X (Darwin) 13 | + Solaris 14 | + Windows 15 | 16 | Other platforms use an implementation that always returns an error. 17 | 18 | Pull requests for other OSs happily considered! 19 | -------------------------------------------------------------------------------- /vendor/gopkg.in/olebedev/go-duktape.v3/duk_console.h: -------------------------------------------------------------------------------- 1 | #if !defined(DUK_CONSOLE_H_INCLUDED) 2 | #define DUK_CONSOLE_H_INCLUDED 3 | 4 | #include "duktape.h" 5 | 6 | /* Use a proxy wrapper to make undefined methods (console.foo()) no-ops. */ 7 | #define DUK_CONSOLE_PROXY_WRAPPER (1 << 0) 8 | 9 | /* Flush output after every call. */ 10 | #define DUK_CONSOLE_FLUSH (1 << 1) 11 | 12 | extern void duk_console_init(duk_context *ctx, duk_uint_t flags); 13 | 14 | #endif /* DUK_CONSOLE_H_INCLUDED */ 15 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/aaa: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/zero: -------------------------------------------------------------------------------- 1 | {"address":"0000000000000000000000000000000000000000","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/zzz: -------------------------------------------------------------------------------- 1 | {"address":"289d485d9771714cce91d3393d764e1311907acc","crypto":{"cipher":"aes-128-ctr","ciphertext":"faf32ca89d286b107f5e6d842802e05263c49b78d46eac74e6109e9a963378ab","cipherparams":{"iv":"558833eec4a665a8c55608d7d503407d"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"d571fff447ffb24314f9513f5160246f09997b857ac71348b73e785aab40dc04"},"mac":"21edb85ff7d0dab1767b9bf498f2c3cb7be7609490756bd32300bb213b59effe"},"id":"3279afcf-55ba-43ff-8997-02dcc46a6525","version":3} -------------------------------------------------------------------------------- /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/github.com/aristanetworks/goarista/iptables.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DEFAULT_PORT=6042 4 | 5 | set -e 6 | 7 | if [ "$#" -lt 1 ] 8 | then 9 | echo "usage: $0 []" 10 | exit 1 11 | fi 12 | 13 | host=$1 14 | port=$DEFAULT_PORT 15 | if [ "$#" -gt 1 ] 16 | then 17 | port=$2 18 | fi 19 | iptables="bash sudo iptables -A INPUT -p tcp --dport $port -j ACCEPT" 20 | ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $host "$iptables" 21 | echo "opened TCP port $port on $host" 22 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) [2009-2011] VMware, Inc. All Rights Reserved. 2 | 3 | This product is licensed to you under the Apache License, Version 2.0 (the "License"). 4 | You may not use this product except in compliance with the License. 5 | 6 | This product includes a number of subcomponents with 7 | separate copyright notices and license terms. Your use of these 8 | subcomponents is subject to the terms and conditions of the 9 | subcomponent's license, as noted in the LICENSE file. -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iunknown_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func reflectQueryInterface(self interface{}, method uintptr, interfaceID *GUID, obj interface{}) (err error) { 6 | return NewError(E_NOTIMPL) 7 | } 8 | 9 | func queryInterface(unk *IUnknown, iid *GUID) (disp *IDispatch, err error) { 10 | return nil, NewError(E_NOTIMPL) 11 | } 12 | 13 | func addRef(unk *IUnknown) int32 { 14 | return 0 15 | } 16 | 17 | func release(unk *IUnknown) int32 { 18 | return 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-reuseport-transport/singledialer.go: -------------------------------------------------------------------------------- 1 | package tcpreuse 2 | 3 | import ( 4 | "context" 5 | "net" 6 | ) 7 | 8 | type singleDialer net.TCPAddr 9 | 10 | func (d *singleDialer) Dial(network, address string) (net.Conn, error) { 11 | return d.DialContext(context.Background(), network, address) 12 | } 13 | 14 | func (d *singleDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) { 15 | return reuseDial(ctx, (*net.TCPAddr)(d), network, address) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/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/golang.org/x/text/language/Makefile: -------------------------------------------------------------------------------- 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 | CLEANFILES+=maketables 6 | 7 | maketables: maketables.go 8 | go build $^ 9 | 10 | tables: maketables 11 | ./maketables > tables.go 12 | gofmt -w -s tables.go 13 | 14 | # Build (but do not run) maketables during testing, 15 | # just to make sure it still compiles. 16 | testshort: maketables 17 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2s/blake2s_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,!386 gccgo appengine 6 | 7 | package blake2s 8 | 9 | var ( 10 | useSSE4 = false 11 | useSSSE3 = false 12 | useSSE2 = false 13 | ) 14 | 15 | func hashBlocks(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte) { 16 | hashBlocksGeneric(h, c, flag, blocks) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl -include-format-funcs 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/.hiddenfile: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} 2 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/very-light-scrypt.json: -------------------------------------------------------------------------------- 1 | {"address":"45dea0fb0bba44f4fcf290bba71fd57d7117cbb8","crypto":{"cipher":"aes-128-ctr","ciphertext":"b87781948a1befd247bff51ef4063f716cf6c2d3481163e9a8f42e1f9bb74145","cipherparams":{"iv":"dc4926b48a105133d2f16b96833abf1e"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":2,"p":1,"r":8,"salt":"004244bbdc51cadda545b1cfa43cff9ed2ae88e08c61f1479dbb45410722f8f0"},"mac":"39990c1684557447940d4c69e06b1b82b2aceacb43f284df65c956daf3046b85"},"id":"ce541d8d-c79b-40f8-9f8c-20f59616faba","version":3} 2 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-autorest/autorest/version.go: -------------------------------------------------------------------------------- 1 | package autorest 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | const ( 8 | major = "7" 9 | minor = "3" 10 | patch = "0" 11 | tag = "" 12 | semVerFormat = "%s.%s.%s%s" 13 | ) 14 | 15 | var version string 16 | 17 | // Version returns the semantic version (see http://semver.org). 18 | func Version() string { 19 | if version == "" { 20 | version = fmt.Sprintf(semVerFormat, major, minor, patch, tag) 21 | } 22 | return version 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-metrics/interface.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | peer "github.com/libp2p/go-libp2p-peer" 5 | protocol "github.com/libp2p/go-libp2p-protocol" 6 | ) 7 | 8 | type Reporter interface { 9 | LogSentMessage(int64) 10 | LogRecvMessage(int64) 11 | LogSentMessageStream(int64, protocol.ID, peer.ID) 12 | LogRecvMessageStream(int64, protocol.ID, peer.ID) 13 | GetBandwidthForPeer(peer.ID) Stats 14 | GetBandwidthForProtocol(protocol.ID) Stats 15 | GetBandwidthTotals() Stats 16 | } 17 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of go-vnt authors for copyright purposes. 2 | 3 | Feng Xi Yan 4 | Shitaibin 5 | Shitaibin 6 | StarFlyMe <34654655+StarFlyMe@users.noreply.github.com> 7 | YuanZhenxia 8 | Zws 9 | runningbar 10 | shitaibin 11 | yuan1028 12 | yuan1028 13 | zhangws 14 | 闫凤喜 15 | -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qubes.Clefsign: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SIGNER_BIN="/home/user/tools/clef/clef" 4 | SIGNER_CMD="/home/user/tools/gtksigner/gtkui.py -s $SIGNER_BIN" 5 | 6 | # Start clef if not already started 7 | if [ ! -S /home/user/.clef/clef.ipc ]; then 8 | $SIGNER_CMD & 9 | sleep 1 10 | fi 11 | 12 | # Should be started by now 13 | if [ -S /home/user/.clef/clef.ipc ]; then 14 | # Post incoming request to HTTP channel 15 | curl -H "Content-Type: application/json" -X POST -d @- http://localhost:8550 2>/dev/null 16 | fi 17 | -------------------------------------------------------------------------------- /vendor/github.com/jackpal/go-nat-pmp/recorder.go: -------------------------------------------------------------------------------- 1 | package natpmp 2 | 3 | import "time" 4 | 5 | type callObserver interface { 6 | observeCall(msg []byte, result []byte, err error) 7 | } 8 | 9 | // A caller that records the RPC call. 10 | type recorder struct { 11 | child caller 12 | observer callObserver 13 | } 14 | 15 | func (n *recorder) call(msg []byte, timeout time.Duration) (result []byte, err error) { 16 | result, err = n.child.call(msg, timeout) 17 | n.observer.observeCall(msg, result, err) 18 | return 19 | } 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/bazil.org/fuse/options_linux.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | func localVolume(conf *mountConfig) error { 4 | return nil 5 | } 6 | 7 | func volumeName(name string) MountOption { 8 | return dummyOption 9 | } 10 | 11 | func daemonTimeout(name string) MountOption { 12 | return dummyOption 13 | } 14 | 15 | func noAppleXattr(conf *mountConfig) error { 16 | return nil 17 | } 18 | 19 | func noAppleDouble(conf *mountConfig) error { 20 | return nil 21 | } 22 | 23 | func exclCreate(conf *mountConfig) error { 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IProvideClassInfo struct { 6 | IUnknown 7 | } 8 | 9 | type IProvideClassInfoVtbl struct { 10 | IUnknownVtbl 11 | GetClassInfo uintptr 12 | } 13 | 14 | func (v *IProvideClassInfo) VTable() *IProvideClassInfoVtbl { 15 | return (*IProvideClassInfoVtbl)(unsafe.Pointer(v.RawVTable)) 16 | } 17 | 18 | func (v *IProvideClassInfo) GetClassInfo() (cinfo *ITypeInfo, err error) { 19 | cinfo, err = getClassInfo(v) 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /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/gopkg.in/olebedev/go-duktape.v3/duk_module_duktape.h: -------------------------------------------------------------------------------- 1 | #if !defined(DUK_MODULE_DUKTAPE_H_INCLUDED) 2 | #define DUK_MODULE_DUKTAPE_H_INCLUDED 3 | 4 | #include "duktape.h" 5 | 6 | /* Maximum length of CommonJS module identifier to resolve. Length includes 7 | * both current module ID, requested (possibly relative) module ID, and a 8 | * slash in between. 9 | */ 10 | #define DUK_COMMONJS_MODULE_ID_LIMIT 256 11 | 12 | extern void duk_module_duktape_init(duk_context *ctx); 13 | 14 | #endif /* DUK_MODULE_DUKTAPE_H_INCLUDED */ 15 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/ienumvariant_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (enum *IEnumVARIANT) Clone() (*IEnumVARIANT, error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | 9 | func (enum *IEnumVARIANT) Reset() error { 10 | return NewError(E_NOTIMPL) 11 | } 12 | 13 | func (enum *IEnumVARIANT) Skip(celt uint) error { 14 | return NewError(E_NOTIMPL) 15 | } 16 | 17 | func (enum *IEnumVARIANT) Next(celt uint) (VARIANT, uint, error) { 18 | return NewVariant(VT_NULL, int64(0)), 0, NewError(E_NOTIMPL) 19 | } 20 | -------------------------------------------------------------------------------- /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 ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/rjeczalik/notify/watcher_notimplemented.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014-2018 The Notify Authors. All rights reserved. 2 | // Use of this source code is governed by the MIT license that can be 3 | // found in the LICENSE file. 4 | 5 | // +build !darwin,!linux,!freebsd,!dragonfly,!netbsd,!openbsd,!windows 6 | // +build !kqueue,!solaris 7 | 8 | package notify 9 | 10 | import "errors" 11 | 12 | // newWatcher stub. 13 | func newWatcher(chan<- EventInfo) watcher { 14 | return watcherStub{errors.New("notify: not implemented")} 15 | } 16 | -------------------------------------------------------------------------------- /core/wavm/tests/concat/abi.json: -------------------------------------------------------------------------------- 1 | [{"name":"testConcat","constant":false,"inputs":[],"outputs":[],"type":"constructor"},{"name":"Test_Concat","constant":false,"inputs":[{"name":"str1","type":"string","indexed":false},{"name":"str2","type":"string","indexed":false}],"outputs":[{"name":"output","type":"string","indexed":false}],"type":"function"},{"name":"Test_Equal","constant":false,"inputs":[{"name":"str1","type":"string","indexed":false},{"name":"str2","type":"string","indexed":false}],"outputs":[{"name":"output","type":"bool","indexed":false}],"type":"function"}] -------------------------------------------------------------------------------- /metrics/opentsdb_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "net" 5 | "time" 6 | ) 7 | 8 | func ExampleOpenTSDB() { 9 | addr, _ := net.ResolveTCPAddr("net", ":2003") 10 | go OpenTSDB(DefaultRegistry, 1*time.Second, "some.prefix", addr) 11 | } 12 | 13 | func ExampleOpenTSDBWithConfig() { 14 | addr, _ := net.ResolveTCPAddr("net", ":2003") 15 | go OpenTSDBWithConfig(OpenTSDBConfig{ 16 | Addr: addr, 17 | Registry: DefaultRegistry, 18 | FlushInterval: 1 * time.Second, 19 | DurationUnit: time.Millisecond, 20 | }) 21 | } 22 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/foo/fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e: -------------------------------------------------------------------------------- 1 | {"address":"fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e","crypto":{"cipher":"aes-128-ctr","ciphertext":"8124d5134aa4a927c79fd852989e4b5419397566f04b0936a1eb1d168c7c68a5","cipherparams":{"iv":"e2febe17176414dd2cda28287947eb2f"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":4096,"p":6,"r":8,"salt":"44b415ede89f3bdd6830390a21b78965f571b347a589d1d943029f016c5e8bd5"},"mac":"5e149ff25bfd9dd45746a84bb2bcd2f015f2cbca2b6d25c5de8c29617f71fe5b"},"id":"d6ac5452-2b2c-4d3c-ad80-4bf0327d971c","version":3} -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-record/util.go: -------------------------------------------------------------------------------- 1 | package record 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | // SplitKey takes a key in the form `/$namespace/$path` and splits it into 8 | // `$namespace` and `$path`. 9 | func SplitKey(key string) (string, string, error) { 10 | if len(key) == 0 || key[0] != '/' { 11 | return "", "", ErrInvalidRecordType 12 | } 13 | 14 | key = key[1:] 15 | 16 | i := strings.IndexByte(key, '/') 17 | if i <= 0 { 18 | return "", "", ErrInvalidRecordType 19 | } 20 | 21 | return key[:i], key[i+1:], nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/robertkrimen/otto/cmpl.go: -------------------------------------------------------------------------------- 1 | package otto 2 | 3 | import ( 4 | "github.com/robertkrimen/otto/ast" 5 | "github.com/robertkrimen/otto/file" 6 | ) 7 | 8 | type _file struct { 9 | name string 10 | src string 11 | base int // This will always be 1 or greater 12 | } 13 | 14 | type _compiler struct { 15 | file *file.File 16 | program *ast.Program 17 | } 18 | 19 | func (cmpl *_compiler) parse() *_nodeProgram { 20 | if cmpl.program != nil { 21 | cmpl.file = cmpl.program.File 22 | } 23 | return cmpl._parse(cmpl.program) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/operators/var.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 operators 6 | 7 | var ( 8 | GetLocal = newPolymorphicOp(0x20, "get_local") 9 | SetLocal = newPolymorphicOp(0x21, "set_local") 10 | TeeLocal = newPolymorphicOp(0x22, "tee_local") 11 | GetGlobal = newPolymorphicOp(0x23, "get_global") 12 | SetGlobal = newPolymorphicOp(0x24, "set_global") 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-storage-go/glide.lock: -------------------------------------------------------------------------------- 1 | hash: a97c0c90fe4d23bbd8e5745431f633e75530bb611131b786d76b8e1763bce85e 2 | updated: 2017-02-23T09:58:57.3701584-08:00 3 | imports: 4 | - name: github.com/Azure/go-autorest 5 | version: ec5f4903f77ed9927ac95b19ab8e44ada64c1356 6 | subpackages: 7 | - autorest/azure 8 | - autorest 9 | - autorest/date 10 | - name: github.com/dgrijalva/jwt-go 11 | version: 2268707a8f0843315e2004ee4f1d021dc08baedf 12 | testImports: 13 | - name: gopkg.in/check.v1 14 | version: 20d25e2804050c1cd24a7eea1e7a6447dd0e74ec 15 | -------------------------------------------------------------------------------- /vendor/github.com/karalabe/hid/libusb/libusb/version.h: -------------------------------------------------------------------------------- 1 | /* This file is parsed by m4 and windres and RC.EXE so please keep it simple. */ 2 | #include "version_nano.h" 3 | #ifndef LIBUSB_MAJOR 4 | #define LIBUSB_MAJOR 1 5 | #endif 6 | #ifndef LIBUSB_MINOR 7 | #define LIBUSB_MINOR 0 8 | #endif 9 | #ifndef LIBUSB_MICRO 10 | #define LIBUSB_MICRO 21 11 | #endif 12 | #ifndef LIBUSB_NANO 13 | #define LIBUSB_NANO 0 14 | #endif 15 | /* LIBUSB_RC is the release candidate suffix. Should normally be empty. */ 16 | #ifndef LIBUSB_RC 17 | #define LIBUSB_RC "" 18 | #endif 19 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-msgio/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "jbenet", 3 | "bugs": {}, 4 | "gx": { 5 | "dvcsimport": "github.com/libp2p/go-msgio" 6 | }, 7 | "gxDependencies": [ 8 | { 9 | "hash": "QmYNGtJHgaGZkpzq8yG6Wxqm6EQTKqgpBfnyyGBKbZeDUi", 10 | "name": "go-randbuf", 11 | "version": "0.0.0" 12 | } 13 | ], 14 | "gxVersion": "0.11.0", 15 | "language": "go", 16 | "license": "", 17 | "name": "go-msgio", 18 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 19 | "version": "0.0.3" 20 | } 21 | 22 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/forward.wast: -------------------------------------------------------------------------------- 1 | (module 2 | (func $even (export "even") (param $n i32) (result i32) 3 | (if (result i32) (i32.eq (get_local $n) (i32.const 0)) 4 | (then (i32.const 1)) 5 | (else (call $odd (i32.sub (get_local $n) (i32.const 1)))) 6 | ) 7 | ) 8 | 9 | (func $odd (export "odd") (param $n i32) (result i32) 10 | (if (result i32) (i32.eq (get_local $n) (i32.const 0)) 11 | (then (i32.const 0)) 12 | (else (call $even (i32.sub (get_local $n) (i32.const 1)))) 13 | ) 14 | ) 15 | ) -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/wasm/log.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 wasm 6 | 7 | import ( 8 | "io/ioutil" 9 | "log" 10 | "os" 11 | ) 12 | 13 | var logger *log.Logger 14 | 15 | func init() { 16 | SetDebugMode(false) 17 | } 18 | 19 | func SetDebugMode(dbg bool) { 20 | w := ioutil.Discard 21 | if dbg { 22 | w = os.Stderr 23 | } 24 | logger = log.New(w, "", log.Lshortfile) 25 | } 26 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /crypto/bn256/cloudflare/gfp_decl.go: -------------------------------------------------------------------------------- 1 | // +build amd64,!generic arm64,!generic 2 | 3 | package bn256 4 | 5 | // This file contains forward declarations for the architecture-specific 6 | // assembly implementations of these functions, provided that they exist. 7 | 8 | import ( 9 | "golang.org/x/sys/cpu" 10 | ) 11 | 12 | var hasBMI2 = cpu.X86.HasBMI2 13 | 14 | // go:noescape 15 | func gfpNeg(c, a *gfP) 16 | 17 | //go:noescape 18 | func gfpAdd(c, a, b *gfP) 19 | 20 | //go:noescape 21 | func gfpSub(c, a, b *gfP) 22 | 23 | //go:noescape 24 | func gfpMul(c, a, b *gfP) 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpoint.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IConnectionPoint struct { 6 | IUnknown 7 | } 8 | 9 | type IConnectionPointVtbl struct { 10 | IUnknownVtbl 11 | GetConnectionInterface uintptr 12 | GetConnectionPointContainer uintptr 13 | Advise uintptr 14 | Unadvise uintptr 15 | EnumConnections uintptr 16 | } 17 | 18 | func (v *IConnectionPoint) VTable() *IConnectionPointVtbl { 19 | return (*IConnectionPointVtbl)(unsafe.Pointer(v.RawVTable)) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/gen_common.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 ignore 6 | 7 | package main 8 | 9 | // This file contains code common to the maketables.go and the package code. 10 | 11 | // AliasType is the type of an alias in AliasMap. 12 | type AliasType int8 13 | 14 | const ( 15 | Deprecated AliasType = iota 16 | Macro 17 | Legacy 18 | 19 | AliasTypeUnknown AliasType = -1 20 | ) 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/README: -------------------------------------------------------------------------------- 1 | This subrepository holds the source for various packages and tools that support 2 | the Go programming language. 3 | 4 | Some of the tools, godoc and vet for example, are included in binary Go distributions. 5 | Others, including the Go guru and the test coverage tool, can be fetched with "go get". 6 | 7 | Packages include a type-checker for Go and an implementation of the 8 | Static Single Assignment form (SSA) representation for Go programs. 9 | 10 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 11 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Hi there, 2 | 3 | please note that this is an issue tracker reserved for bug reports and feature requests. 4 | 5 | For general questions please use the gitter channel: https://gitter.im/vntchain/community. 6 | 7 | #### System information 8 | 9 | Gvnt version: `gvnt version` 10 | OS & Version: Windows/Linux/OSX 11 | Commit hash : (if `develop`) 12 | 13 | #### Expected behaviour 14 | 15 | 16 | #### Actual behaviour 17 | 18 | 19 | #### Steps to reproduce the behaviour 20 | 21 | 22 | #### Backtrace 23 | 24 | ```` 25 | [backtrace] 26 | ```` 27 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/codecov.yml: -------------------------------------------------------------------------------- 1 | # Enable coverage report message for diff on commit 2 | coverage: 3 | status: 4 | project: off 5 | patch: 6 | default: 7 | # basic 8 | target: auto 9 | threshold: null 10 | base: auto 11 | # advanced 12 | branches: null 13 | if_no_uploads: error 14 | if_not_found: success 15 | if_ci_failed: error 16 | only_pulls: false 17 | flags: null 18 | paths: null 19 | 20 | # Disable comments on Pull Requests 21 | comment: false 22 | -------------------------------------------------------------------------------- /vendor/github.com/gxed/eventfd/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "whyrusleeping", 3 | "bugs": { 4 | "url": "https://github.com/gxed/eventfd" 5 | }, 6 | "gx": { 7 | "dvcsimport": "github.com/gxed/eventfd" 8 | }, 9 | "gxDependencies": [ 10 | { 11 | "author": "gxed", 12 | "hash": "QmeFPvhFJGXGiXAc9zunNxZjCaWgYQpcsdwip2NWLcccyw", 13 | "name": "GoEndian", 14 | "version": "1.0.0" 15 | } 16 | ], 17 | "gxVersion": "0.9.0", 18 | "language": "go", 19 | "license": "", 20 | "name": "eventfd", 21 | "version": "0.1.0" 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/multiformats/go-multibase/base16.go: -------------------------------------------------------------------------------- 1 | package multibase 2 | 3 | func hexEncodeToStringUpper(src []byte) string { 4 | dst := make([]byte, len(src)*2) 5 | hexEncodeUpper(dst, src) 6 | return string(dst) 7 | } 8 | 9 | var hextableUpper = [16]byte{ 10 | '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 11 | 'A', 'B', 'C', 'D', 'E', 'F', 12 | } 13 | 14 | func hexEncodeUpper(dst, src []byte) int { 15 | for i, v := range src { 16 | dst[i*2] = hextableUpper[v>>4] 17 | dst[i*2+1] = hextableUpper[v&0x0f] 18 | } 19 | 20 | return len(src) * 2 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/parametric.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 exec 6 | 7 | func (vm *VM) drop() { 8 | vm.ctx.stack = vm.ctx.stack[:len(vm.ctx.stack)-1] 9 | } 10 | 11 | func (vm *VM) selectOp() { 12 | c := vm.popUint32() 13 | val2 := vm.popUint64() 14 | val1 := vm.popUint64() 15 | 16 | if c != 0 { 17 | vm.pushUint64(val1) 18 | } else { 19 | vm.pushUint64(val2) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/bazil.org/fuse/debug.go: -------------------------------------------------------------------------------- 1 | package fuse 2 | 3 | import ( 4 | "runtime" 5 | ) 6 | 7 | func stack() string { 8 | buf := make([]byte, 1024) 9 | return string(buf[:runtime.Stack(buf, false)]) 10 | } 11 | 12 | func nop(msg interface{}) {} 13 | 14 | // Debug is called to output debug messages, including protocol 15 | // traces. The default behavior is to do nothing. 16 | // 17 | // The messages have human-friendly string representations and are 18 | // safe to marshal to JSON. 19 | // 20 | // Implementations must not retain msg. 21 | var Debug func(msg interface{}) = nop 22 | -------------------------------------------------------------------------------- /vendor/github.com/aristanetworks/goarista/Dockerfile: -------------------------------------------------------------------------------- 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 | # TODO: move this to cmd/ockafka (https://github.com/docker/hub-feedback/issues/292) 6 | FROM golang:1.7.3 7 | 8 | RUN mkdir -p /go/src/github.com/aristanetworks/goarista/cmd 9 | WORKDIR /go/src/github.com/aristanetworks/goarista 10 | COPY ./ . 11 | RUN go get -d ./cmd/ockafka/... \ 12 | && go install ./cmd/ockafka 13 | 14 | ENTRYPOINT ["/go/bin/ockafka"] 15 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/.ci/code-coverage.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Copyright 2018 The go-interpreter 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 | 8 | set -e 9 | 10 | echo "" > coverage.txt 11 | 12 | for d in $(go list ./... | grep -v vendor); do 13 | go test $TAGS -race -coverprofile=profile.out -covermode=atomic $d 14 | if [ -f profile.out ]; then 15 | cat profile.out >> coverage.txt 16 | rm profile.out 17 | fi 18 | done 19 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/const.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 exec 6 | 7 | func (vm *VM) i32Const() { 8 | vm.pushUint32(vm.fetchUint32()) 9 | } 10 | 11 | func (vm *VM) i64Const() { 12 | vm.pushUint64(vm.fetchUint64()) 13 | } 14 | 15 | func (vm *VM) f32Const() { 16 | vm.pushFloat32(vm.fetchFloat32()) 17 | } 18 | 19 | func (vm *VM) f64Const() { 20 | vm.pushFloat64(vm.fetchFloat64()) 21 | } 22 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8: -------------------------------------------------------------------------------- 1 | {"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3} -------------------------------------------------------------------------------- /vendor/github.com/aristanetworks/goarista/check_line_len.awk: -------------------------------------------------------------------------------- 1 | #!/usr/bin/awk -f 2 | # Copyright (C) 2015 Arista Networks, Inc. 3 | # Use of this source code is governed by the Apache License 2.0 4 | # that can be found in the COPYING file. 5 | 6 | BEGIN { 7 | max = 100; 8 | } 9 | 10 | # Expand tabs to 4 spaces. 11 | { 12 | gsub(/\t/, " "); 13 | } 14 | 15 | length() > max { 16 | errors++; 17 | print FILENAME ":" FNR ": Line too long (" length() "/" max ")"; 18 | } 19 | 20 | END { 21 | if (errors >= 125) { 22 | errors = 125; 23 | } 24 | exit errors; 25 | } 26 | -------------------------------------------------------------------------------- /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/gorilla/websocket/conn_read_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.5 6 | 7 | package websocket 8 | 9 | import "io" 10 | 11 | func (c *Conn) read(n int) ([]byte, error) { 12 | p, err := c.br.Peek(n) 13 | if err == io.EOF { 14 | err = errUnexpectedEOF 15 | } 16 | if len(p) > 0 { 17 | // advance over the bytes just read 18 | io.ReadFull(c.br, p) 19 | } 20 | return p, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_windows.go: -------------------------------------------------------------------------------- 1 | package runewidth 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | var ( 8 | kernel32 = syscall.NewLazyDLL("kernel32") 9 | procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP") 10 | ) 11 | 12 | // IsEastAsian return true if the current locale is CJK 13 | func IsEastAsian() bool { 14 | r1, _, _ := procGetConsoleOutputCP.Call() 15 | if r1 == 0 { 16 | return false 17 | } 18 | 19 | switch int(r1) { 20 | case 932, 51932, 936, 949, 950: 21 | return true 22 | } 23 | 24 | return false 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/peterh/liner/input_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | 3 | package liner 4 | 5 | import "syscall" 6 | 7 | const ( 8 | getTermios = syscall.TCGETS 9 | setTermios = syscall.TCSETS 10 | ) 11 | 12 | const ( 13 | icrnl = syscall.ICRNL 14 | inpck = syscall.INPCK 15 | istrip = syscall.ISTRIP 16 | ixon = syscall.IXON 17 | opost = syscall.OPOST 18 | cs8 = syscall.CS8 19 | isig = syscall.ISIG 20 | icanon = syscall.ICANON 21 | iexten = syscall.IEXTEN 22 | ) 23 | 24 | type termios struct { 25 | syscall.Termios 26 | } 27 | 28 | const cursorColumn = false 29 | -------------------------------------------------------------------------------- /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/vntchain/vnt-wasm/exec/control.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 exec 6 | 7 | import "errors" 8 | 9 | // ErrUnreachable is the error value used while trapping the VM when 10 | // an unreachable operator is reached during execution. 11 | var ErrUnreachable = errors.New("exec: reached unreachable") 12 | 13 | func (vm *VM) unreachable() { 14 | panic(ErrUnreachable) 15 | } 16 | 17 | func (vm *VM) nop() {} 18 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/exec/testdata/spec/traps_int_rem.wast: -------------------------------------------------------------------------------- 1 | (module 2 | (func (export "no_dce.i32.rem_s") (param $x i32) (param $y i32) 3 | (drop (i32.rem_s (get_local $x) (get_local $y)))) 4 | (func (export "no_dce.i32.rem_u") (param $x i32) (param $y i32) 5 | (drop (i32.rem_u (get_local $x) (get_local $y)))) 6 | (func (export "no_dce.i64.rem_s") (param $x i64) (param $y i64) 7 | (drop (i64.rem_s (get_local $x) (get_local $y)))) 8 | (func (export "no_dce.i64.rem_u") (param $x i64) (param $y i64) 9 | (drop (i64.rem_u (get_local $x) (get_local $y)))) 10 | ) -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpoint_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | import "unsafe" 6 | 7 | func (v *IConnectionPoint) GetConnectionInterface(piid **GUID) int32 { 8 | return int32(0) 9 | } 10 | 11 | func (v *IConnectionPoint) Advise(unknown *IUnknown) (uint32, error) { 12 | return uint32(0), NewError(E_NOTIMPL) 13 | } 14 | 15 | func (v *IConnectionPoint) Unadvise(cookie uint32) error { 16 | return NewError(E_NOTIMPL) 17 | } 18 | 19 | func (v *IConnectionPoint) EnumConnections(p *unsafe.Pointer) (err error) { 20 | return NewError(E_NOTIMPL) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/vntchain/vnt-wasm/validate/log.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-interpreter 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 validate 6 | 7 | import ( 8 | "io/ioutil" 9 | "log" 10 | "os" 11 | ) 12 | 13 | var PrintDebugInfo = false 14 | 15 | var logger *log.Logger 16 | 17 | func init() { 18 | w := ioutil.Discard 19 | 20 | if PrintDebugInfo { 21 | w = os.Stderr 22 | } 23 | 24 | logger = log.New(w, "", log.Lshortfile) 25 | log.SetFlags(log.Lshortfile) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/gen_common.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 ignore 6 | 7 | package main 8 | 9 | // This file contains code common to the maketables.go and the package code. 10 | 11 | // langAliasType is the type of an alias in langAliasMap. 12 | type langAliasType int8 13 | 14 | const ( 15 | langDeprecated langAliasType = iota 16 | langMacro 17 | langLegacy 18 | 19 | langAliasTypeUnknown langAliasType = -1 20 | ) 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/idispatch_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func getIDsOfName(disp *IDispatch, names []string) ([]int32, error) { 6 | return []int32{}, NewError(E_NOTIMPL) 7 | } 8 | 9 | func getTypeInfoCount(disp *IDispatch) (uint32, error) { 10 | return uint32(0), NewError(E_NOTIMPL) 11 | } 12 | 13 | func getTypeInfo(disp *IDispatch) (*ITypeInfo, error) { 14 | return nil, NewError(E_NOTIMPL) 15 | } 16 | 17 | func invoke(disp *IDispatch, dispid int32, dispatch int16, params ...interface{}) (*VARIANT, error) { 18 | return nil, NewError(E_NOTIMPL) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/libp2p/go-libp2p-interface-connmgr/interface.go: -------------------------------------------------------------------------------- 1 | package ifconnmgr 2 | 3 | import ( 4 | "context" 5 | "time" 6 | 7 | inet "github.com/libp2p/go-libp2p-net" 8 | peer "github.com/libp2p/go-libp2p-peer" 9 | ) 10 | 11 | type ConnManager interface { 12 | TagPeer(peer.ID, string, int) 13 | UntagPeer(peer.ID, string) 14 | GetTagInfo(peer.ID) *TagInfo 15 | TrimOpenConns(context.Context) 16 | Notifee() inet.Notifiee 17 | } 18 | 19 | type TagInfo struct { 20 | FirstSeen time.Time 21 | Value int 22 | Tags map[string]int 23 | Conns map[string]time.Time 24 | } 25 | --------------------------------------------------------------------------------