-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: merge 0.14.0-beta1 #86
Merged
Merged
Changes from all commits
Commits
Show all changes
1042 commits
Select commit
Hold shift + click to select a range
efe6ef5
Add ed25519_batch_verifiy impl / tests
maurolacy 4c9cb5e
Update lock files
maurolacy 3d834fc
Simplify / re-use var names
maurolacy 4b81308
Fix clippy warnings
maurolacy 362b95d
Change ed25519_batch_verify signature for convenience
maurolacy 6b04dc0
Add max batches constant
maurolacy 881525b
Revert "Change ed25519_batch_verify signature for convenience"
maurolacy 5b2da18
Rename for clarity / consistency
maurolacy fd9ec55
Add conversions module / errors
maurolacy 96430c8
Add encode_sections() helper
maurolacy 8395f54
Add VM sections module
maurolacy 7bd5a9e
Add decode_sections()
maurolacy fc9f9a7
Fix features import / selections
maurolacy 25eac93
Fix clippy warning
maurolacy 0d8d04d
Let encode_sections always succeed
webmaster128 5fc78ca
Fix syntax
maurolacy 13e55bb
Simplify decode_sections
maurolacy dcc949d
Add ed25519_batch_verify native
maurolacy d89e8e0
Add ed25519_batch_verify mock
maurolacy e9d1328
Add StdError -> VerificationError mapping
maurolacy 71cf7e6
Add ed25519_batch_verify extern
maurolacy d8eac7c
Add ed25519_batch_verify contract tests
maurolacy 39c882a
Add ed25519_batch_verify structural / length checks
maurolacy ed66524
Add ed25519_batch_verify multisig test
maurolacy 8c3afa1
Adapt to new encode_sections() signature
maurolacy 5edbace
Now fix clippy warnings
maurolacy 10a3557
Update schema
maurolacy e12ee9f
Add ed25519_batch_verify single signer support
maurolacy 5895ca2
cargo fmt
maurolacy daf33e3
Add BatchErr
maurolacy b76e522
Fix rebase errors / omissions
maurolacy feee15b
Add BatchErr
maurolacy be63900
Fix batch mutisig test
maurolacy 457774a
Fix import
maurolacy 8f4b8cf
Fix tests order
maurolacy fafabbf
Increase max number of batches to 256
maurolacy 27c9746
Change encode_sections() signature to references
maurolacy 8033d06
Change ed25519_batch_verify() signature to references
maurolacy 3347359
Improve tendermint batch verification deserialization
maurolacy c37ac13
Ensure no data is lost in the positive case
maurolacy e9f0ff5
Remove empty case explicit negative verification
maurolacy e5ef4d0
Add single pubkey tests
maurolacy 66d6acb
Add ed25519 batch verification structural tests
maurolacy 908a64b
Add a couple extra structural tests
maurolacy 705077e
Change to variant where all empty sets work
maurolacy 187708b
Fix copy paste error
maurolacy 9d6e5ca
Update crypto README.md
maurolacy d92ca53
Update CHANGELOG.md / README.md
maurolacy b3753f2
Add ed25519_batch_verify detailed docs
maurolacy d7c6a92
Improve batch verification gas cost estimation
maurolacy 172fbd3
Update test wasm files
maurolacy 34a4379
Add ed25519_batch_verify import to make_instance
maurolacy f7688ae
Remove duplicate dependency
maurolacy cf86e0f
Revert "Add StdError -> VerificationError mapping"
maurolacy d1c8fc5
Update wasm test files
maurolacy 0895ece
Fix lint issues
webmaster128 71d953c
Merge pull request #788 from CosmWasm/crypto-api-ed25519-batch
webmaster128 6ef7d58
Add missing lockfiles to clippy cache key
webmaster128 7d900c2
Fix paths to contract target folders
webmaster128 3f582b1
Merge pull request #799 from CosmWasm/add-missing-lockfiles
webmaster128 7d104aa
Add serialize_unsigned_transaction to crypto contract
webmaster128 5af1741
Add verify_transaction
webmaster128 4b55d12
Let ethereum_address_raw return [u8; 20] and reuse for ethereum_address
webmaster128 ccfbf58
Remove ethereum-transaction dependency and encode directly
webmaster128 56c504e
Simplify nonce to u64
webmaster128 d69722d
Use &dyn Api instead of generics
webmaster128 f3dca89
Create QueryMsg::VerifyEthereumTransaction
webmaster128 9806d63
Use copy instead of clone
webmaster128 e9d8f87
Turn Ethereum addresses into string
webmaster128 2307332
Compare Eth addresses in binary
webmaster128 efd9a09
Sipence clippy
webmaster128 3239d58
Update schema
webmaster128 d228e3a
Fix typos in error messages
webmaster128 1c8d7db
Move and document get_recovery_param/get_recovery_param_with_chain_id
webmaster128 fe070d1
Add references to transaction serialization format
webmaster128 d059c2b
Use try_into to convert to fixed length array
webmaster128 1361b34
Bump min Rust version to 1.49
webmaster128 29b791a
Merge pull request #797 from CosmWasm/verify-ethereum-sig
webmaster128 919dfb5
Use simpler / shorter Sha256::digest()
maurolacy ed9311e
Add digital signature verification benchmarks
maurolacy 648531b
Use chain() for generating bad data
maurolacy 8ad8be5
ed25519 batch verification of different batch lengths
maurolacy 8ec6129
Use words instead of numbers
maurolacy 8518dd7
Update README.md
maurolacy 40013e9
Add crypto benchmarks to CI
maurolacy 2dc4086
Add crypto-verify-benchmarks branch to CI benchmarks
maurolacy 04e5abf
Fix crypto package job name
maurolacy 8326174
Add crypto package to CI build
maurolacy fc7e5df
Update CI crypto package rust version to 1.49.0
maurolacy 6f855ed
Add benchmark for ed25519 batch verify with one pubkey
maurolacy a674bf7
Merge pull request #801 from CosmWasm/crypto-verify-benchmarks
webmaster128 c355ed3
Remove pointless Default implementations
webmaster128 e9c3603
Merge pull request #803 from CosmWasm/pointless-defaults
ethanfrey a92583e
Rename to InvalidHashFormat amd remove unnecessary message
webmaster128 b91ba4c
Migrate SignatureErr to InvalidSignatureFormat
webmaster128 3bb778b
Disallow some error cases in do_ed25519_verify/do_ed25519_batch_verify
webmaster128 36aa85c
Refactor MessageError to MessageTooLong
webmaster128 02e76a4
Use try_into for slice to array conversion
webmaster128 c9984ea
Fix comment of InvalidEd25519SignatureFormat
webmaster128 9486ee7
Refactor InvalidPubkeyFormat
webmaster128 9f5d884
Turn broken pubkey data into verification failure
webmaster128 1c03da6
Make CI's formatter happy
webmaster128 a11ade8
Fix typo: pubkic -> public
webmaster128 5e9cbdf
Adapt integration tests
webmaster128 592d0e2
Remove unused index
webmaster128 b4a89d6
Merge pull request #800 from CosmWasm/review_crypto_errors
mergify[bot] 914dd07
Add benchmarks-based signature verification gas costs
maurolacy 2f7c570
Add SubcallResponse type and entry point
ethanfrey 737ae2c
Add SubMsg type and SubcallResult
ethanfrey 187cbd0
Add submessages to Response, fix cosmwasm-std
ethanfrey 2cb14f5
Update contracts to compile properly
ethanfrey b9ec527
Add subcall implementation to reflect contract
ethanfrey 3c1ec8e
Add unit test for reflect subcall functions
ethanfrey 5a703f2
Expose subcall_response in vm
ethanfrey d7aae0f
Add integration test
ethanfrey 1594e3f
Update test contracts
ethanfrey f546aef
Fix gas costs
ethanfrey 8a2f894
Add CHANGELOG entry
ethanfrey 3a4af0f
Fix clippy warning
ethanfrey 7387abf
Rename calls in std and vm
ethanfrey 03d6edb
Update reflect contract
ethanfrey 29e87ad
SubCallResponse -> SubcallResponse
ethanfrey 84f8fb1
Rebuild hackatom test contract
ethanfrey c7bdef9
Merge pull request #796 from CosmWasm/sub-calls-and-entry-point
webmaster128 e0552b0
Add GasConfig struct / info to Environment
maurolacy cc8458c
Use GasConfig info for crypto gas costs
maurolacy fce4dac
Avoid floating point numbers / ops
maurolacy 1ec2ad2
Merge pull request #804 from CosmWasm/crypto-verify-gas
webmaster128 4d62aec
Add PinnedMemoryCache::has
webmaster128 cd4d77a
Ensure consecutive pins are no-ops
webmaster128 b190a52
Merge pull request #808 from CosmWasm/pinned_memory_cache-has
mergify[bot] 3d1288f
Integrate with upstream clru-rs
maurolacy fc077b1
Support zero-sized (disabled) memory cache
maurolacy bd8344f
Add clru-rs-upstream branch to CI benchmarks
maurolacy 96ddbb2
Update lock files
maurolacy 379b473
Use if let Some()
maurolacy d583d63
Update to clru-rs 0.4.0
maurolacy f6495b2
Remove clru-rs-upstream branch from CI benchmarks
maurolacy 981e10a
Merge pull request #805 from CosmWasm/clru-rs-upstream
webmaster128 b029817
Format CHANGELOG [skip ci]
webmaster128 ad0d61e
Set version: 0.14.0-alpha1
webmaster128 4570d12
Collect memories into Option<Memory> instead of Vec
webmaster128 5c6dcae
Add note why panic is safe
webmaster128 75f22ba
Upgrade rust-optimizer to 0.10.8 [skip ci]
webmaster128 c5a5d8f
Update packages/vm/src/environment.rs
webmaster128 b3e9141
Merge pull request #810 from CosmWasm/elaborate-on-panic
webmaster128 522b186
Runs clippy on --tests [skip ci]
webmaster128 932306c
Update CI rust version to 1.50.0
maurolacy b54b46d
Update CHANGELOG / MIGRATING
maurolacy e3d7a0f
Update github CI to 1.50.0
maurolacy ea57211
Fix CHANGELOG
maurolacy 17894cd
Fix clippy unnecessary_wraps warnings
maurolacy e01eacd
Merge pull request #811 from CosmWasm/update-to-rust-1.50.0
webmaster128 f750296
Use snake_case in SystemMsg enum
ethanfrey e3c7124
Rebuild test contract
ethanfrey 92762ce
Make label in WasmMsg::Instantiate non-optional
webmaster128 fbad796
Merge pull request #815 from CosmWasm/fix-hackatom-contract
webmaster128 30ecab3
Merge pull request #814 from CosmWasm/non-optional-label
mergify[bot] 73e3af2
Merge pull request #812 from CosmWasm/upgrade-rust-optimizer
webmaster128 53070cf
Remove cranelift from CI tests / benchmarks
maurolacy ce04572
Fix vm all-features / no-features linting
maurolacy 776faa5
Merge pull request #816 from CosmWasm/remove-cranelift-ci
webmaster128 8f99e2a
Rename system entry point to sudo in cosmwasm-vm
maurolacy 2bdccec
Rename system entry point to sudo in cosmwasm-std
maurolacy 72f343f
Rename system entry point to sudo in hackatom
maurolacy 5bf299f
Rename handle entry point to execute in cosmwasm-vm
maurolacy be0bec8
Rename handle entry point to execute in cosmwasm-std
maurolacy bb95935
Rename handle entry point to execute in contracts
maurolacy 7478f18
Update test contracts
maurolacy 8efd0a1
Fix rebase error
maurolacy 93897da
Rename HandleMsg to ExecuteMsg in packages
maurolacy 549492c
Rename HandleMsg -> ExecuteMsg in contracts
maurolacy 1be338a
Rename HandleMsg -> ExecuteMsg in schema
maurolacy a7039b3
Rename SystemMsg -> SudoMsg in schema
maurolacy 075d60f
Update schemas
maurolacy 5d73b21
Update test contracts (again)
maurolacy b38bbf7
Update CHANGELOG
maurolacy 192a3c6
Update README
maurolacy e3e1fec
Update MIGRATING
maurolacy 703a8ff
Update comment
maurolacy dcf86c5
cargo fmt
maurolacy 424041e
Update hackatom schema
maurolacy 265f485
More cargo fmt
maurolacy 683a862
Set version: 0.14.0-alpha2
maurolacy 35cf871
Add InitReponse, HandleResponse, MigrateResponse migration guidelines
maurolacy 5bd2f2f
Merge pull request #818 from CosmWasm/update-to-0.14.0-alpha2
webmaster128 7342ac2
Update 0.13 -> 0.14 MIGRATING guidelines
maurolacy 22fcbf7
Fix typo
maurolacy ea7603d
Reverting incorrect change (previous guidelines)
maurolacy d8b5097
Add submessages to ibc response types
ethanfrey 52e7b8a
Update ibc contracts for new types
ethanfrey cdea62b
Rebuild ibc-reflect test contract
ethanfrey 628f6f5
Merge pull request #823 from CosmWasm/822-submessages-on-ibc-responses
webmaster128 b2f86bd
Add `compile_module` utility
maurolacy f5b08d6
Add check_wasm to compile_module
maurolacy 1c74b53
Rename `compile_module` to `check_contract`
maurolacy dc24362
Improve `check_contract` description
maurolacy c6ef51c
Format text [skip ci]
webmaster128 591d996
Implement From instead of Into
webmaster128 8afc762
Implement From<u{32,16,8}> for Uint128
webmaster128 37f86d4
Merge pull request #828 from CosmWasm/clippy-1.51.0-prep
webmaster128 977575f
Pull out contract build scripts into files
webmaster128 7a5ef83
Pull out check_workspace.sh
webmaster128 fcc2bc9
Add 'stargate' feature to `check_contract`
maurolacy 8724cdc
Add `check_contract` step to CI deploy stage
maurolacy 14c46da
Add add and run shell formatter
webmaster128 b71cb68
Rename entry point init -> instantiate
webmaster128 d170425
Recompile development contracts
webmaster128 a0c44b1
Document renaming
webmaster128 12f8944
Rename init->instantiate in docs
webmaster128 7bd1889
Rename InitMsg to InstantiateMsg
webmaster128 30e48b8
Merge pull request #831 from CosmWasm/dev-scripts-to-files
webmaster128 7655375
Merge pull request #832 from CosmWasm/init-to-instantiate
webmaster128 47bfe62
Make execute optional
webmaster128 20cb8fc
Fix .mergify.yml [skip ci]
webmaster128 2e0e64c
Merge pull request #833 from CosmWasm/optional-execute
mergify[bot] 7cf905c
Return full ChannelInfo on Ibc ListChannels query
ethanfrey c56936a
Improve IbcQuery::ListChannels docs
webmaster128 5dfc189
Merge pull request #824 from CosmWasm/adjust-ibc-queries
mergify[bot] 7912850
Fix benchmarking
webmaster128 f4bc65d
Merge pull request #836 from CosmWasm/fix-benches
webmaster128 7f3f838
Set version: 0.14.0-beta1
webmaster128 29cfd9a
Make check_contracts work with clean repo
maurolacy e15300a
Add clean_contracts script
maurolacy 5e6c879
Rename workspace clean
maurolacy aeafc94
Format clean scripts
maurolacy 0a71aa0
Change CI build and release image
maurolacy 2bb2f35
Add ghr (and go) to build and deploy stage
maurolacy 8321c8f
Add dev branch for testing
maurolacy 9c107d5
Revert "Add ghr (and go) to build and deploy stage"
maurolacy e1aac4d
Revert "Change CI build and release image"
maurolacy 5ad09bc
Run `check_contract` in its own container
maurolacy 1f40cff
Add `check_contract.sh` helper
maurolacy c8e83c1
Use check_contract.sh helper in CI
maurolacy 8263276
Simplify path
maurolacy d12b431
Revert "Add dev branch for testing"
maurolacy 0f59e50
Remove hopelessly outdated building instructions
webmaster128 966c6c9
Format shell script
webmaster128 3d4ee4e
Fix reflect incompatiblity
alpe 9fd06ea
Merge pull request #838 from alpe/contract_reflect_fix
webmaster128 cbe5cbb
Add reference to the other InitCallback
webmaster128 9070b8d
Merge tag 'v0.14.0-beta1+contracts1' into develop
4f5ceb8
fix: bump up cosmwasm-ext to 0.14.0-beta1
5f0d28c
fix: migrate collection-tester to 0.14.0-beta1
e8cf52b
fix: migrate token-tester to 0.14.0-beta1
33b8ef5
fix: repatch pull request #89
f9b3a71
fix: repatch pull request #87
7c17989
fix: migrate testing to 0.14.0-beta1
5ad1ab6
chore: cargo fmt
d559290
chore: disable unsued code warning for testing
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Contract Development | ||
|
||
# Pushes to long living branches and all PRs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 0.[0-9]+ | ||
pull_request: | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
test-hackatom: | ||
name: ${{ matrix.build }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- build: macOS | ||
os: macOS-latest | ||
- build: Windows | ||
os: windows-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./contracts/hackatom | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.50.0 | ||
target: wasm32-unknown-unknown | ||
profile: minimal | ||
override: true | ||
- name: Build hackatom wasm | ||
run: cargo wasm --locked | ||
- name: Unit Test hackatom | ||
run: cargo unit-test --locked | ||
- name: Integration Test hackatom | ||
run: cargo integration-test --locked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ artifacts/ | |
|
||
# Auto-gen | ||
.cargo-ok | ||
|
||
# Log files (e.g. memory profiling) | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will our repository also migrate its name from master to main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's do it ASAP.
I have made it.