Commit Graph

93 Commits

Author SHA1 Message Date
jhernandezb
e54d56e95f add params query 2022-08-31 10:58:42 -06:00
Alexander Peters
9d63bc061c Merge pull request #901 from CosmWasm/access_config
Restrict code access config modifications
2022-08-23 17:03:31 +02:00
Alexander Peters
00082a25b8 Make app keepers public (#951)
* use ecosystem convention for keeper names in app.go

* fix linting

* Revert variable renaming

* Deprecate attribute access helper

* Formatting only

* Replace usage of deprecated test helper

* Address linter report

Co-authored-by: faddat <jacobgadikian@gmail.com>
2022-08-23 17:01:04 +02:00
Alex Peters
e5ff7c195a Restrict code access config modifications 2022-07-08 14:28:45 +02:00
Simon Warta
2390ea15a0 Create query stack size limit 2022-05-19 10:35:27 +02:00
Ethan Frey
76a5053fa6 Expose ibc v3 entry points 2022-05-16 15:42:59 +02:00
Simon Warta
53e735d76e Adapt codebase to new IBC3ChannelOpenResponse return value 2022-05-16 14:17:19 +02:00
Ethan Frey
27d30513b2 Add a few more tests as requested in review 2022-05-10 16:25:11 +02:00
Ethan Frey
c2ec9092d0 Add compare logic for stricter AccessConfig 2022-05-10 16:09:35 +02:00
Ethan Frey
bff3aff95b Run new "make format" 2022-05-09 22:34:26 +02:00
jhernandezb
3ade8159b6 update proto field name 2022-05-09 11:35:37 -06:00
jhernandezb
a89083261c fix missing gov registration type 2022-05-09 11:35:37 -06:00
jhernandezb
7c0763e57b add to EnableAllProposals 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
vuong
f5bba58741 update ChannelKeeper for ibc v3 2022-05-04 10:34:15 +02:00
Jacob Gadikian
f740dae543 push smol thing to github so can work with Mr. Vuong 2022-05-04 10:34:15 +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
Ethan Frey
8ca55b78fc Merge pull request #822 from CosmWasm/move-const-label-to-var
Make MaxLabelSize a var not const
2022-04-27 21:01:11 +02:00
Simon Warta
1e892acd36 Make IsJSONObjectWithTopLevelKey public 2022-04-27 17:00:03 +02:00
Simon Warta
8fc4714a0b Add and test JSON object matcher 2022-04-27 17:00:03 +02:00
Ethan Frey
fbae4e86b4 Make MaxLabelSize a var not const 2022-04-27 15:40:54 +02:00
Alex Lynham
190b8cc306 Add ExecuteContractProposal test 2022-04-21 22:46:51 +01:00
Alex Lynham
64e1fca042 Add a basic validation test 2022-04-17 22:56:09 +01:00
Alex Lynham
e86a13d838 Add missing sudo and execute to codec 2022-04-17 22:29:30 +01:00
Alexander Peters
68b4908b78 Unpack contract details from genesis (#802)
* Unpack contract details from genesis

* Address linter warnings
2022-04-12 17:46:44 +02:00
Alex Peters
a543aa53a1 Use callback pattern for contract state iterator 2022-03-25 10:56:21 +01:00
Albert Chon
1c9a1e11b6 fix: close iterators 2022-03-22 19:38:34 -04:00
Ira Miller
e03c7f4f88 Relaxed address strength restrictions for legacy 20 byte addresses (#772)
* Use the length of contractAddr to support variable length addresses

* Add contract address len to index

* Add changelog entry

* Add tests to assure old address length is still supported

Co-authored-by: Carlton Hanna <channa@figure.com>
2022-03-03 18:16:02 +01:00
Alexander Peters
e0e6cc4b55 Merge pull request #752 from loloicci/missing-colon
Add missing colons in String of some proposals
2022-02-15 12:24:12 +01:00
loloicci
bc1087db2c add missing colons in String of some proposals 2022-02-10 22:32:17 +09: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
Alex Peters
f8d25eb930 Update IBC protobufs 2022-01-28 11:58:05 +01:00
Ethan Frey
fb568e3ef7 Allow sending tokens along with governance wasm_execute proposal 2022-01-24 21:18:29 +01:00
Ethan Frey
6a2a9d0bfa fix tests 2022-01-24 20:23:20 +01:00
Ethan Frey
0a96e26fba Remove RunAs from Migrate proposal 2022-01-24 20:00:01 +01:00
Ethan Frey
53a44eb4d7 Wire up proposal handlers 2022-01-24 19:54:26 +01:00
Ethan Frey
d227112cc3 Registered new proposal types 2022-01-24 19:54:26 +01:00
Ethan Frey
6bd6ffe90b Compile proto files 2022-01-24 19:54:26 +01:00
Mauro Lacy
bf84b199a8 Proper systemerror follow-up (#715)
* Add custom NoSuchContract error

* Return custom NoSuchContract error from WasmQuerier

* Add custom NoSuchContract error

* Use custom ErrNoSuchContract error

Map to corresponding wasmvmtypes error

* Handle wrapped errors

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-01-20 17:05:10 +01:00
Alexander Peters
b8319aa334 Upgrade to cosmos-sdk v0.45.0 (#717)
* Upgrade to cosmos-sdk v0.44.5

* Upgrade to sdk v0.45.0-rc1

* Fix local test deploy scripts

* Bump to v0.45.0 final release

* Fixed replace to 0.45.0 not rc1

* Fix changed import path since rc1

Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>
2022-01-20 12:47:01 +01:00
Alex Peters
9d57522d67 Upgrade wasmvm to v1.0.0-beta5 2022-01-04 09:51:24 +01:00
Alexander Peters
efe87743e4 Limit simulation gas (#674)
* Limit simulation gas

* Put parameters on separate lines
2021-11-17 17:20:26 +01:00
Alexander Peters
c18bc4b00e Add linter name and minor golint related updates (#663) 2021-10-25 15:33:21 +02: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
fkneeland-figure
57517b0c33 Add golangci lint check on pull requests (#645)
* added golangci lint check on pull requests

* changelog update

* updated to use circleci instead of github actions

* testing a golang change

* added workflow

* updated how we find the golangci command in the make file

* using orb for golangci

* Added golangci install make command

* use docker image for golangci

* stop using make in circleci

* reverted golang change to trigger ci

* gofmt

* make fmt

* fixed a few things

* updated version on golintci

* fixed all the lint errors

* check version

* skipped wrongly failing lint

* Revert generated file changes

* fix import grouping, return errors on failures, initialization of arrays revert

* fixed a few lint errors

* addressed more code review comments

* updated with error check

* increased timeout for golangci-lint

* dont format autogenerated files

Co-authored-by: Carlton Hanna <channa@figure.com>
2021-10-25 09:09:47 +02:00
fkneeland-figure
dd390d7f5f Go Formatting update (#648)
* make fmt

* changelog update
2021-10-21 14:54:16 +02:00
Alex Peters
b7a99e69ee Query all pinned code ids 2021-10-07 13:52:06 +02:00