Alexander Peters
8991633de2
Disallow only address permission ( #1163 )
...
* Remove AccessTypeOnlyAddress for store msg
* Remove AccessTypeOnlyAddress for update config msg
* Review feedback
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com >
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com >
2023-01-25 12:46:02 +01:00
Alexander Peters
957b38e0a5
Integrate wasmvm v1.2.0 ( #1161 )
...
* Bump wasmvm version
* Bump wasm test contracts
* Encode weighted votes
* Encode instantiate2
* Handle code info query; better wasmvm errors
* Fix readme
* Make linter happy
* add non cgo build
* Review comments
* Bump wasmvm to release version
Co-authored-by: jhernandezb <contact@jhernandez.me >
2023-01-25 10:01:26 +01:00
GNaD13
bc00a6bae3
Add proposal instantiate 2 ( #1106 )
...
* add proposal instantiate 2
* add basic validate test
* test case for validate basic
* add integration test
* add cli
* fix lint
* add new func init proposal
* make format
2022-12-02 15:04:32 +01:00
Orkun Külçe
a589fe91e8
feat: Provide source, builder and codehash information in store code proposal message ( #1072 )
...
* Provide source, builder and codehash information in store code proposal message
* Make linter happy
* Update x/wasm/simulation/proposals.go
Co-authored-by: Alexander Peters <alpe@users.noreply.github.com >
* Update x/wasm/client/cli/gov_tx.go
* Update x/wasm/client/cli/gov_tx.go
* Bump github.com/cosmos/gogoproto from 1.4.2 to 1.4.3
Bumps [github.com/cosmos/gogoproto](https://github.com/cosmos/gogoproto ) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/cosmos/gogoproto/releases )
- [Changelog](https://github.com/cosmos/gogoproto/blob/main/CHANGELOG.md )
- [Commits](https://github.com/cosmos/gogoproto/compare/v1.4.2...v1.4.3 )
---
updated-dependencies:
- dependency-name: github.com/cosmos/gogoproto
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update authz grant examples
* Enable larger wasm bytecode upload for gov proposals (#1095 )
* Enable larger wasm bytecode upload for gov proposals
* Set max proposal wasm code size to 3MB
* Bump SDK to v0.45.11
* Fix license head
* Fix README header
* Bump version go to 1.19 (#1044 )
* bump go 1.19
* add change log
* correct change log
* Provide source, builder and codehash information in store code proposal message
* Implement source, builder, code_info for StoreAndInstantiateProposal
* Apply review recommendations
* Make linter happy
* Fix tests
* Formatting only
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Alexander Peters <alpe@users.noreply.github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlos Salas <giansalex@gmail.com >
Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com >
Co-authored-by: GNaD13 <89174180+GNaD13@users.noreply.github.com >
2022-11-22 15:14:38 +01:00
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
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
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
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
Jacob Gadikian
4875db2055
depracte-ioutil ( #934 )
2022-08-24 10:21:16 +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
30f05722f1
address code review comments
2022-05-09 11:35:37 -06:00
jhernandezb
01157fa914
add tests
2022-05-09 11:35:37 -06:00
Jorge Hernandez
591ff72868
fix: allow no admin in instantiation through proposal ( #828 )
...
* fix: allow no admin in instantiation through proposal
* add test for invalid amin address
2022-05-02 15:59:40 +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
Alex Peters
45c826a86b
Revisit gov params doc and tests
2022-04-13 11:14:22 +02:00
Ethan Frey
6a2a9d0bfa
fix tests
2022-01-24 20:23:20 +01:00
Ethan Frey
82f023ce51
Test execute and sudo proposal handlers
2022-01-24 19:54:26 +01:00
Ethan Frey
3acc8c960c
Expose SetParams as I will need that for migration code outside of this package
2022-01-24 13:46:18 +01:00
Ethan Frey
ab12678446
Failing test showing it was not currently pinned
2022-01-21 10:39:43 +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
fkneeland-figure
dd390d7f5f
Go Formatting update ( #648 )
...
* make fmt
* changelog update
2021-10-21 14:54:16 +02:00
Alex Peters
7b2cfa48ed
Strip message events and reorder
2021-08-11 14:08:56 +02:00
Alex Peters
e9156be200
Refactor events
2021-08-10 18:19:16 +02:00
Ethan Frey
c9360f63d1
keeper and types pass tests
2021-07-28 11:24:44 +02:00
Ethan Frey
b8b0f209b2
Update tests (new default contract addr)
2021-07-28 11:18:21 +02:00
Ethan Frey
699fbbc215
Changed references in code - 2 broken tests
2021-07-27 14:25:33 +02:00
Alexander Peters
1ada14ed52
Store contract response in event ( #535 )
...
* Store contract response in event
* Review feedback
2021-06-14 08:57:04 +02:00
Alex Peters
2f2d59a151
Allow access to contract address builder
2021-06-01 10:42:07 +02:00
Alexander Peters
d9142662c1
Remove internal package ( #464 )
...
* Move internal subfolders up
* Fix broken imports and fmt
2021-03-19 09:52:01 +01:00