Skip to content

Commit

Permalink
Merge PR: date back to stream framework (#363)
Browse files Browse the repository at this point in the history
* databack

* rm-x/ammswap/client/rest/tx.go
  • Loading branch information
zhongqiuwood authored Nov 2, 2020
1 parent 675c17e commit bc140b7
Show file tree
Hide file tree
Showing 68 changed files with 2,067 additions and 853 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CAT := $(if $(filter $(OS),Windows_NT),type,cat)

GithubTop=github.com

Version=v0.11.1
Version=v0.12.2
CosmosSDK=v0.37.9
Tendermint=v0.32.10
Iavl=v0.12.4
Expand Down
12 changes: 7 additions & 5 deletions app/genesis/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"amount": [],
"gas": "0"
},
"memo": "7f75cd135d02418d17d1092fe3a4ffc1c5d1aebb@127.0.0.1:26656",
"memo": "ab6f676c5d6b4e7c8233ff4ba63d1b5d0d203b56@127.0.0.1:26656",
"msg": [
{
"type": "okexchain/staking/MsgCreateValidator",
Expand All @@ -131,7 +131,7 @@
"amount": "0.00100000",
"denom": "okt"
},
"pubkey": "okexchainvalconspub1zcjduepqfcprr6x7d44wu4nt0suey3fz6pzp274486s5lua9vx7l3w3xhw2splls6m",
"pubkey": "okexchainvalconspub1zcjduepq83e8r6lrt44sxvg66vhh8l4yhpsr825m97yc7qxu06zhpxezuhhsmalm87",
"validator_address": "okexchainvaloper10q0rk5qnyag7wfvvt7rtphlw589m7frshchly8"
}
}
Expand All @@ -142,7 +142,7 @@
"type": "tendermint/PubKeySecp256k1",
"value": "AgYaL1tZ7ekqvweQhKojG8sDHUfN23qJWviAsTDIWvYU"
},
"signature": "40IhUZ1h5oYh7671R7tRYVyLFwwWU+RIj6J8Qe4lf0MzxtaQ0oFDeShDJk3fKG0nx7q2zV8/hpnXPgoA2OAESQ=="
"signature": "42XTaFLh5Z2Aor2kpY5H32ReUUT6Wa5IZhkGSLMas/gvaPY4Pg5XsFPwUuFJpcj36L+E9BQOjxXhM0VF1rKV7A=="
}
]
}
Expand Down Expand Up @@ -176,7 +176,6 @@
},
"mint": {
"minter_custom": {
"annual_provisions": "0.00000000",
"minted_per_block": [
{
"amount": "0.00000000",
Expand All @@ -185,9 +184,11 @@
],
"next_block_to_update": "0"
},
"original_minted_per_block": "0.05000000",
"params": {
"blocks_per_year": "10519200",
"inflation_rate": "0.01000000",
"deflation_rate": "0.50000000",
"inflation_epoch": "3",
"mint_denom": "okt"
}
},
Expand Down Expand Up @@ -273,6 +274,7 @@
"amount": "0.00000000",
"denom": "okt"
},
"ownership_confirm_window": "86400000000000",
"transfer_ownership_fee": {
"amount": "10.00000000",
"denom": "okt"
Expand Down
2 changes: 1 addition & 1 deletion app/protocol/protocol_v0.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (p *ProtocolV0) produceKeepers() {
p.upgradeKeeper = upgrade.NewKeeper(
p.cdc, p.keys[upgrade.StoreKey], p.protocolKeeper, p.stakingKeeper, p.bankKeeper, upgradeSubspace,
)
p.debugKeeper = debug.NewDebugKeeper(p.cdc, p.keys[debug.StoreKey], p.orderKeeper, p.stakingKeeper, auth.FeeCollectorName, p.Stop)
p.debugKeeper = debug.NewDebugKeeper(p.cdc, p.keys[debug.StoreKey], p.orderKeeper, p.stakingKeeper, &p.crisisKeeper, auth.FeeCollectorName, p.Stop)
}

// moduleAccountAddrs returns all the module account addresses
Expand Down
2 changes: 2 additions & 0 deletions cmd/okexchaind/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest"
bankrest "github.com/cosmos/cosmos-sdk/x/bank/client/rest"
supplyrest "github.com/cosmos/cosmos-sdk/x/supply/client/rest"
ammswaprest "github.com/okex/okexchain/x/ammswap/client/rest"
backendrest "github.com/okex/okexchain/x/backend/client/rest"
dexrest "github.com/okex/okexchain/x/dex/client/rest"
dist "github.com/okex/okexchain/x/distribution"
Expand Down Expand Up @@ -36,6 +37,7 @@ func registerRoutesV1(rs *lcd.RestServer) {
tokensrest.RegisterRoutes(rs.CliCtx, v1Router, token.ModuleName)
backendrest.RegisterRoutes(rs.CliCtx, v1Router)
dexrest.RegisterRoutes(rs.CliCtx, v1Router)
ammswaprest.RegisterRoutes(rs.CliCtx, v1Router)
supplyrest.RegisterRoutes(rs.CliCtx, v1Router)
}

Expand Down
15 changes: 11 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@ module github.com/okex/okexchain
go 1.12

require (
github.com/Comcast/pulsar-client-go v0.1.1
github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c // indirect
github.com/cosmos/cosmos-sdk v0.37.8
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d // indirect
github.com/denisenkom/go-mssqldb v0.0.0-20190515213511-eb9f6a1743f3 // indirect
github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5 // indirect
github.com/garyburd/redigo v1.6.2
github.com/go-kit/kit v0.9.0
github.com/go-redis/redis v6.15.9+incompatible
github.com/go-sql-driver/mysql v1.4.1
github.com/gofrs/uuid v3.2.0+incompatible // indirect
github.com/golang/mock v1.3.1 // indirect
github.com/gogo/protobuf v1.3.1
github.com/golang/protobuf v1.3.2
github.com/google/uuid v1.1.1
github.com/gorilla/mux v1.7.3
github.com/gorilla/websocket v1.4.1
github.com/jinzhu/gorm v1.9.2
github.com/jinzhu/inflection v0.0.0-20180308033659-04140366298a // indirect
github.com/jinzhu/now v1.0.0 // indirect
github.com/json-iterator/go v1.1.6
github.com/lib/pq v1.1.1 // indirect
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/mattn/go-sqlite3 v1.10.0 // indirect
github.com/nacos-group/nacos-sdk-go v1.0.0
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect
github.com/pelletier/go-toml v1.4.0 // indirect
github.com/pkg/errors v0.8.1
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.0.0
github.com/prometheus/common v0.6.0 // indirect
github.com/prometheus/procfs v0.0.3 // indirect
Expand All @@ -34,7 +41,7 @@ require (
github.com/spf13/cobra v0.0.5
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.6.1
github.com/stretchr/testify v1.4.0
github.com/stretchr/testify v1.5.1
github.com/tendermint/go-amino v0.15.1
github.com/tendermint/tendermint v0.32.10
github.com/tendermint/tm-db v0.2.0
Expand All @@ -46,7 +53,7 @@ require (
)

replace (
github.com/cosmos/cosmos-sdk => github.com/okex/cosmos-sdk v0.37.9-okexchain
github.com/cosmos/cosmos-sdk => github.com/okex/cosmos-sdk v0.37.9-okexchain4
github.com/tendermint/iavl => github.com/okex/iavl v0.12.4-okexchain
github.com/tendermint/tendermint => github.com/okex/tendermint v0.32.10-okexchain
)
Loading

0 comments on commit bc140b7

Please sign in to comment.