Commit Graph

74 Commits

Author SHA1 Message Date
pinosu
ef9a84dda8 Add StoreAndInstantiateContract gov proposal (#1074)
* Add StoreAndInstantiateContract gov proposal

* Add integration tests

* Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove exposed functions

* Add tests

* Add Developer's guide and best practices (#1075)

* Add Developer's guide and best practices

* Fix comments

* Change genesis preserving contract history (#1076)

* preserve contract created date on genesis import and add query contract created date

* add validate created

* fix sims test app import export

* add preserve contract history

* Make proto-all only

* Remove ResetFromGenesis

* Add validation

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>

* Return contract history updates

* Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1082)

Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert "Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1082)"

This reverts commit cf81eb8ea6.

* Add cli and refactor code

* Contract authz - redesign (#1077)

* Add contract authz proto

* Implement contract autorization

* Register contract authz

* Add contract-authz tests

* Consume gas for contract authz

* Add contract authz cli

* Update cli usage

* Model spike

* Add max funds limit

* Redesign authz model

* Start e2e test

* Full e2e test

* Test filter and limits

* Test accept

* Fix description

* No linter warning

Co-authored-by: Giancarlos Salas <me@giansalex.dev>

* Add StoreAndInstantiateContract gov proposal

* Add integration tests

* Remove exposed functions

* Add tests

* Add cli and refactor code

* Fix comments

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GNaD13 <89174180+GNaD13@users.noreply.github.com>
Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
Co-authored-by: Giancarlos Salas <me@giansalex.dev>
2022-11-11 16:04:04 +01:00
Alexander Peters
5c39daee99 Contract authz - redesign (#1077)
* Add contract authz proto

* Implement contract autorization

* Register contract authz

* Add contract-authz tests

* Consume gas for contract authz

* Add contract authz cli

* Update cli usage

* Model spike

* Add max funds limit

* Redesign authz model

* Start e2e test

* Full e2e test

* Test filter and limits

* Test accept

* Fix description

* No linter warning

Co-authored-by: Giancarlos Salas <me@giansalex.dev>
2022-11-11 13:39:16 +01:00
GNaD13
4c6afb38eb Change genesis preserving contract history (#1076)
* preserve contract created date on genesis import and add query contract created date

* add validate created

* fix sims test app import export

* add preserve contract history

* Make proto-all only

* Remove ResetFromGenesis

* Add validation

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-11-11 09:45:40 +01:00
vuong
6d67d5b4f7 Get Contracts by Creator Address (#1021)
* add query to query.proto

* add ContractsByCreatorPrefix in keys.go

* add ContractCreatorThirdIndex to keeper.go

* add querier

* cli

* fix test

* linting

* add key test

* no need to change creator when migrate

* add query test

* minor

* add migrate logic

* add more test

* register migration

* minor

* Update x/wasm/client/cli/query.go

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>

* nits

* remove IterateAllContract

* Update x/wasm/keeper/genesis_test.go

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>

* nit

* nit: func name

* change key

* improve TestIteratorContractByCreator

* fix test

* use IterateContractInfo in migrate2to3

* minor

* move key

* improve test case

* add pagReq in ContractsByCreator query

* ordering query

* add migrate test

* Make ContractsByCreator plural; formatting and minor updates

* Comment why AbsoluteTxPositionLen makes sense

* Migrate 1 to 2

* Set module version

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>
Co-authored-by: khanh-notional <50263489+catShaark@users.noreply.github.com>
2022-10-20 19:04:41 +02:00
Alexander Peters
9c5ebbbc4c Implement improvements to new address generation (#1014)
* Revert default instance address generation to classic sequence based method

 Please enter the commit message for your changes. Lines starting

* Start re-adding classic address generator

* Extract address generation to file; minor updates

* Review comments

* Set max salt size

* Support predictable address on instantiation

* Switch attribute order for backwards compatiblity

* Fix salt param check in CLI

* Enable tests

* Add more tests

* Minor fix

* Remove migration

* Better cli description

* Fix init message length prefix

* Add sanity checks to address generation and minor updates

* Reduce max length in tests for CI

* CLI and address generation updates

* Add test vectors

* Minor updates

* Fix cli long doc
2022-09-22 18:22:35 +02:00
Alex Peters
ccb2fdd0b6 Make contract addresses predictable 2022-09-09 12:42:41 +02:00
Alex Peters
2674c53d7b Introduce AccessTypeAnyOfAddresses 2022-09-07 12:01:29 +02:00
jhernandezb
cc9e74075c change default behavior to always pin 2022-09-06 08:13:41 -06:00
jhernandezb
881d0aca94 add pin code flag to store code proposal 2022-09-05 10:32:22 -06:00
jhernandezb
e54d56e95f add params query 2022-08-31 10:58:42 -06:00
Simon Warta
b570f49f5e Remove outdated proto.md 2022-07-11 08:40:41 +02:00
jhernandezb
3ade8159b6 update proto field name 2022-05-09 11:35:37 -06:00
jhernandezb
cd76a61bcf update UpdateInstantiateConfigProposal proto definition 2022-05-09 11:35:37 -06:00
jhernandezb
72710effca add UpdateInstantiateConfig gov proposal 2022-05-09 11:35:37 -06:00
Alex Peters
f1273864c9 Minor godoc update 2022-05-06 10:34:47 +02:00
Jorge Hernandez
cd3c9ddddb Add instantiate permission to CodeInfoResponse (#836)
* Add instantiate permission to CodeInfoResponse

* add query code info test

* add codes query response test
2022-05-05 15:20:51 +02:00
Alexander Peters
bfb4d31fca Consolidate MaxWasmSize constraints into a single var (#826)
* Convert MaxWasmSize to var

Also removes redundant maxWasmSize param

* Convert MaxWasmSize to int

* Update CHANGELOG

* Complete max wasm size changes

* Update compile flags

Co-authored-by: Cole Brown <bigswim@gmail.com>
2022-04-29 18:54:06 +02:00
pinosu
07153801fc Add cosmwasm project prefix to REST query paths (#743)
* Add cosmwasm project prefix to REST query paths
2022-02-08 08:34:04 +01:00
Ethan Frey
fb568e3ef7 Allow sending tokens along with governance wasm_execute proposal 2022-01-24 21:18:29 +01:00
Ethan Frey
0a96e26fba Remove RunAs from Migrate proposal 2022-01-24 20:00:01 +01:00
Ethan Frey
6bd6ffe90b Compile proto files 2022-01-24 19:54:26 +01:00
Alexander Peters
dfba1395d9 Fix message representation for signing (#658)
* Introduce RawContractMessage type

* Add json signbytes test for proposals

* No assumptions on MsgIBCSend.data content

* Smart query uses RawContractMessage

* Revert method signature change to be consistent

* Review comment

* Update after discussions
2021-10-25 15:23:19 +02:00
Alex Peters
b7a99e69ee Query all pinned code ids 2021-10-07 13:52:06 +02:00
Alex Peters
7ea8cd788d Add organisation to grpc gateway path 2021-08-04 17:00:04 +02:00
Ethan Frey
18741cb19a Used reserved keyword in protobuf 2021-07-28 11:26:51 +02:00
Ethan Frey
701c0c1ace Remove source, builder from proto files 2021-07-28 11:24:44 +02:00
Ethan Frey
0ebb1efb9e Recompile protobuf files 2021-07-27 14:25:33 +02:00
Ethan Frey
e144b2ea76 {Init,Migrate}Msg -> Msg in proposals as well 2021-07-27 14:25:33 +02:00
Ethan Frey
1fa2165806 Rename 2 fields and regenerate protobuf 2021-07-27 14:25:33 +02:00
Alex Peters
c377d7110e List contract address without other data 2021-04-23 15:15:54 +02:00
Alexander Peters
d90bf6ec3f Extend ContractInfo for custom data (#492)
* Extend ContractInfo with custom data

* Review comments
2021-04-16 13:38:21 +02:00
Alexander Peters
cfcfa64ecc Restructure protobuf files (#466)
* Restructure protobuf dir and generation

* Format protobuf definitions
2021-03-22 15:50:23 +01:00
Ethan Frey
a4d27bf63e Remove gaia-specific docs 2020-07-24 21:47:54 +02:00
dependabot[bot]
9e1cdd9b13 Bump websocket-extensions from 0.1.3 to 0.1.4 in /docs
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-07 18:25:10 +00:00
Alex Peters
95292c8cd4 Merge remote-tracking branch 'remotes/gaia/master' into merge_gaia_master
* remotes/gaia/master: (38 commits)
  Merge PR #259: Bump SDK master commit
  Exec go mod tidy (#267)
  Merge PR #265: add version v2.0.5 to CHANGELOG
  Fix broken link in delegator guide (#262)
  docs: removed redundant readme.md (#261)
  Merge PR #258: Bump github.com/spf13/viper from 1.6.1 to 1.6.2
  Merge PR #250: Docs-update
  Merge PR #256: Bump github.com/pkg/errors from 0.9.0 to 0.9.1
  Merge PR #255: Bump github.com/pkg/errors from 0.8.1 to 0.9.0
  Merge PR #253: Bump SDK master commit
  Merge PR #252: v2.0.4 Changelog
  Merge PR #249: docker image build and upload for release tags
  Merge PR #247: Update SDK Commit & Update CLI Doc
  Merge PR #246: Update Archive page with explorers
  Merge PR #245: archives
  Bump SDK commit to the latest master (#239)
  Merge PR #215: Update simulation tests
  Update join-mainnet.md (#229)
  Incorporate SDK's latest changes (#227)
  Merge PR #221: Hide unnecessarily exported function to better coverage report
  ...
2020-01-23 14:07:35 +01:00
gamarin2
ba8d2b3177 Fix broken link in delegator guide (#262) 2020-01-20 13:46:58 +01:00
Erik Grinaker
6e69ba07a6 docs: removed redundant readme.md (#261) 2020-01-18 22:25:38 +01:00
Marko
f61b391aee Merge PR #250: Docs-update 2020-01-15 08:20:24 -05:00
Alex Peters
1874a6c580 Update testnet doc 2020-01-14 17:19:56 +01:00
Alexander Bezobchuk
87a4269b90 Merge PR #247: Update SDK Commit & Update CLI Doc 2020-01-07 14:14:39 -05:00
Marko
434f425241 Merge PR #246: Update Archive page with explorers 2020-01-07 10:26:32 -05:00
gamarin2
961b8ab4f4 Merge PR #245: archives 2020-01-06 11:42:51 -05:00
billy rennekamp
10493a8d0d Update join-mainnet.md (#229)
Update broken link to peers docs

[skip ci]
2019-12-13 13:12:03 +00:00
gamarin2
495feeca8e Cleanup in preparation of new docs (#183)
* l

* start cleanup

* cleanup gaia

* remove alpha mention

* crop

* update version

* link fix
2019-12-11 16:50:36 +01:00
Chris Remus
6e21ebe8c8 Merge PR #213: Update cosmoshub-2.md 2019-12-10 12:00:13 -05:00
Nicolas Pinto
9858aaaea3 Merge PR #217: Add proper block height in Hubble's link 2019-12-10 09:34:27 -05:00
iammelea
123353a031 Merge PR #216: fixed the fail in the install cmd 2019-12-10 09:33:25 -05:00
gamarin2
83787aa28d Ledger + Lunie guide docs (#208)
* improve lunie guide with screenshots

* Apply suggestions from code review

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* code review
2019-12-09 13:17:09 +01:00
Marko
767330eb2a deprecate GOPATH references on docs (#204)
* docs: Deprecate gopath

- deprecate setting of gopath in docs and bump min version to go1.13

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* Update docs/installation.md

* change other translations to go env path

* Apply suggestions from code review

Co-Authored-By: Alessio Treglia <alessio@tendermint.com>
2019-12-05 10:10:15 +01:00
Alexander Bezobchuk
477a2235dc Merge PR #205: Update Migration Doc with Proposal Values 2019-12-03 10:29:58 -05:00