OSDN Git Service

feat(warder): add warder backbone (#181)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Tue, 25 Jun 2019 11:50:41 +0000 (19:50 +0800)
committerPaladz <yzhu101@uottawa.ca>
Tue, 25 Jun 2019 11:50:41 +0000 (19:50 +0800)
commitc25a6856e885c46a1086d0328d7fc528ca19086c
tree86a7ff04f9fb2e4bf08e139d424aedaea89b9ed0
parent4607cea3c6d3b1501ae1edb2c078b9ae0ee4bc79
feat(warder): add warder backbone (#181)

* init warder

* init

* add

* gogogo

* add

* dododo

* gogogo

* add validateTx

* add

* build tx

* update

* check

* dododod

* fk

aaaaaaaaaa

* update check

* add colect_minutes

* fix

* init collect

* what can i say

* find

* find

* update

* ???

* zhen xiang

* clean

* fix

* dodo

* clean

* update

* fix

* fix typo

* clean

* update

* add service.Warder

* hostPort

* path

* fix

* dododo

* add add add

* add

* add

* update

* add

* update

* update

* update

* fix https://github.com/Bytom/vapor/pull/181#discussion_r294070592

* fix https://github.com/Bytom/vapor/pull/181#discussion_r294070868

* remove blank line

* fix logic for https://github.com/Bytom/vapor/pull/181#discussion_r294070592

* xpr

* dododo

* decode fedprog

* add todos

* sort

* sep

* checked

* temp

* clean

* ???

* rename

* clean

* add time_range

* pause

* pause again

* can compile

* do

* use https://github.com/Bytom/vapor/pull/181#pullrequestreview-250219072 3

* add input

* parse

* add fedProg

* add

* fix

* di

* clean

* fix

* clean

* add todo

* what can i sat

* clean

* combine

* fix

* renew

* add type SigningInstruction

* comment out useless

* revert

* rename to assetStore

* update

* dododo

* fj

* add output

* type

* init

* update

* emm

* dododo

* update

* clean up

* addInputWitness

* init

* fix sidechainKeeper.getCrossChainReqs()

* opt

* opt

* rename

* clean

* clean

* fix

* add

* fix

* clean

* renew

* merge

* clean

* fix https://github.com/Bytom/vapor/pull/181#discussion_r295148126

* add todo

* rename

* rename GetByAssetID

* fmtKey

* fix cache query

* clean

* fix no valid transaction

* fix

* rename

* fix

* fix

* revert

* clean

* fix

* fix

* fix collect

* clean

* add tryProcess

* pause

* init

* draft

* fix

* draft

* more

* sign

* rearrange

* clean

* clean

* what can i say

* redesign

* fix getSignData

* fix getSigns

* init finalizeTx

* add labels

* add  getInputsCnt

* ???

* clean

* wtf

* good

* clean

* clean

* clean

* good

* fix

* clean

* clean

* miao

* update

* clean

* init api.NewServer

* init

* minor

* comment out synchron first

* rename

* init

* add venfor

* clean up

* add listener

* add middleware

* add

* init handlerMiddleware

* add

* fix typo

* update

* update

* clean

* update

* clean

* updare

* add

* add todos

* add

* do

* update

* add

* update

* update

* clean up

* clean

* clean

* temp clean

* clean up

* clean

* clean

* clean

* clean up

* clean

* clean

* fix

* clean

* combine

* clean

* add github.com/mattn/go-isatty

* add github.com/ugorji/go/codec

* add gopkg.in/go-playground/validator.v8

* clean

* temp

* clean

* init

* init

* add minor

* add json

* ???

* temp

* clean

* fix json

* fix json

* clean

* add

* add

* add

* add

* clean

* clean

* clean

* move

* fix https://github.com/Bytom/vapor/pull/181#discussion_r297058765

* fix
169 files changed:
cmd/fedd/main.go
docs/federation/README-en.md
docs/federation/federation.sql
federation/api/common.go [new file with mode: 0644]
federation/api/display.go [new file with mode: 0644]
federation/api/errors.go [new file with mode: 0644]
federation/api/handler.go [new file with mode: 0644]
federation/api/pagination.go [new file with mode: 0644]
federation/api/response.go [new file with mode: 0644]
federation/api/server.go [new file with mode: 0644]
federation/common/const.go
federation/config/config.go
federation/database/asset_store.go [new file with mode: 0644]
federation/database/cache.go [deleted file]
federation/database/orm/asset.go
federation/database/orm/cross_transaction.go
federation/database/orm/cross_transaction_req.go
federation/database/orm/cross_transaction_sign.go [deleted file]
federation/database/orm/warder.go [deleted file]
federation/service/node.go
federation/synchron/mainchain_keeper.go
federation/synchron/sidechain_keeper.go
federation/util/script.go [new file with mode: 0644]
protocol/validation/tx.go
vendor/github.com/gin-contrib/sse/LICENSE [new file with mode: 0644]
vendor/github.com/gin-contrib/sse/README.md [new file with mode: 0644]
vendor/github.com/gin-contrib/sse/sse-decoder.go [new file with mode: 0644]
vendor/github.com/gin-contrib/sse/sse-encoder.go [new file with mode: 0644]
vendor/github.com/gin-contrib/sse/writer.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/AUTHORS.md [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/BENCHMARKS.md [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/CHANGELOG.md [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/CODE_OF_CONDUCT.md [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/CONTRIBUTING.md [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/LICENSE [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/Makefile [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/README.md [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/auth.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/binding.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/default_validator.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/form.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/form_mapping.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/json.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/msgpack.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/protobuf.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/query.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/binding/xml.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/codecov.yml [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/context.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/context_appengine.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/coverage.sh [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/debug.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/deprecated.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/doc.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/errors.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/fs.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/gin.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/json/json.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/json/jsoniter.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/logger.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/mode.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/path.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/recovery.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/data.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/html.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/json.go [new file with mode: 0755]
vendor/github.com/gin-gonic/gin/render/msgpack.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/reader.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/redirect.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/render.go [new file with mode: 0755]
vendor/github.com/gin-gonic/gin/render/text.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/xml.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/render/yaml.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/response_writer.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/response_writer_1.7.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/response_writer_1.8.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/routergroup.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/test_helpers.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/tree.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/utils.go [new file with mode: 0644]
vendor/github.com/gin-gonic/gin/wercker.yml [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/.travis.yml [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/LICENSE [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/README.md [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/doc.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/example_test.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_bsd.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_linux.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_others.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_others_test.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_solaris.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_windows.go [new file with mode: 0644]
vendor/github.com/mattn/go-isatty/isatty_windows_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/0doc.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/README.md [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/binc.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/build.sh [new file with mode: 0755]
vendor/github.com/ugorji/go/codec/cbor.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/cbor_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/codec_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/codecgen.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/codecgen/README.md [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/codecgen/gen.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/codecgen/goversion_pkgpath_gte_go111.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/codecgen/goversion_pkgpath_lt_go111.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/codecgen/z.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/decode.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/encode.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/fast-path.generated.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/fast-path.go.tmpl [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/fast-path.not.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/gen-dec-array.go.tmpl [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/gen-dec-map.go.tmpl [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/gen-enc-chan.go.tmpl [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/gen-helper.generated.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/gen-helper.go.tmpl [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/gen.generated.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/gen.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/go.mod [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_arrayof_gte_go15.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_arrayof_lt_go15.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_makemap_gte_go19.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_makemap_lt_go19.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_gte_go110.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_lt_go110.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_unsupported_lt_go14.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go15.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go16.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_vendor_gte_go17.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/goversion_vendor_lt_go15.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/helper.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/helper_internal.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/helper_not_unsafe.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/helper_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/helper_unsafe.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/json.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/mammoth-test.go.tmpl [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/mammoth2-test.go.tmpl [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/mammoth2_codecgen_generated_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/mammoth2_generated_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/mammoth_generated_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/msgpack.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/py_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/rpc.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/shared_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/simple.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/test-cbor-goldens.json [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/test.py [new file with mode: 0755]
vendor/github.com/ugorji/go/codec/values_flex_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/values_test.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/xml.go [new file with mode: 0644]
vendor/github.com/ugorji/go/codec/z_all_test.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/.gitignore [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/LICENSE [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/README.md [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/baked_in.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/benchmarks_test.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/cache.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/doc.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/examples/custom/custom.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/examples/simple/simple.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/examples/struct-level/struct_level.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/examples_test.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/logo.png [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/regexes.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/util.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/validator.go [new file with mode: 0644]
vendor/gopkg.in/go-playground/validator.v8/validator_test.go [new file with mode: 0644]