Commit Graph

161 Commits

Author SHA1 Message Date
Jeff Schroeder b175dd43c8
docs: quit the spelling spam typo fix PRs with cspell magic (#3845)
* Add cspell configuration and custom dictionary

The goal is to cut down on both incoming tyops, and well meaning but
spammy tyop fix PRs.

To run cspell locally install it and run:

    cspell '**/*.md' \
        --config cspell.config.yaml \
        --words-only \
        --unique \
        --quiet | sort --ignore-case

* docs: cspell updates

* wormchain: cspell updates

* aptos: cspell updates

* node: cspell updates

* algorand: cspell updates

* whitepapers: cspell updates

* near: cspell updates

* solana: cspell updates

* terra: cspell updates

* cosmwasm: cspell updates

* ethereum: cspell updates

* clients: cspell updates

* cspell updates for DEVELOP document

* github: run cspell github action

* sdk: cspell updates

* github: only run cspell on markdown files

* algorand: EMMITTER --> EMITTER

Suggested-by: @evan-gray

* cspell: removed from dictionary

Suggested-by: @evan-gray

* aptos and node: cspell updates

Suggested-by: @evan-gray

* cosmowasm: doc updates for terra2

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* cspell: updated custom word dictionary

This resorts the dictionary and adds a few new words from the
algorand/MEMORY.md document around varints and integers.

* cspell: sort the dictionary how vscode does it

On macOS the sorting is locale dependent. To do this on macOS, you have
to invert the case, do a character insensitive sort, and then invert the
case again:

    LC_COLLATE="en_US.UTF-8" cspell '**/*.md' --config cspell.config.yaml \
        --words-only \
        --unique \
        --no-progress \
        --quiet \
    | tr 'a-zA-Z' 'A-Za-z' \
    | sort --ignore-case \
    | tr 'a-zA-Z' 'A-Za-z'

This requires the `LC_COLLATE` variable to be set to `en_US.UTF-8`, or it
will not do the right thing.

* docs: grammar clean up

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-03-20 15:40:02 -04:00
Sebastián Claudio Nale ef0ab69208 terra: uses `tr` instead of bash 4 feature in `verify` script 2024-01-30 15:55:52 -05:00
scnale d75fcdf66e
terra: upgrade scripts (#3753)
* terra: updates RPC URL

* terra: fixes fee estimation on bytecode upload

* terra: fixes `verify` script

* terra: updates README commands and instructions

* terra: updates governance upgrade generation

* terra: adds instructions to submit governance VAA through `worm`
2024-01-29 16:38:47 -05:00
Csongor Kiss bfd4ba40ef
terra/doc: add some implementation notes (#3597) 2023-12-13 17:21:34 +00:00
Evan Gray 09d18801fd terra: update devnet address 2023-12-13 11:45:07 -05:00
Evan Gray 1305b52a0a terra: additional pre-upgrade tests 2023-12-13 11:45:07 -05:00
Csongor Kiss bd62e27789
terra: migrate to cosmwasm 1.1.0 (#3138)
* terra/contracts: migrate to cosmwasm 1.1.0

use `classic-bindings` crate instead of terra-cosmwasm.
This is the updated version that calls the correct query post chain upgrade

* terra/Dockerfile: update workspace optimizer

* terra: label is now required on instantiate

* terra: accept either 32 or 20 byte addresses

* terra: update devnet terra classic

* node/cosmwasm: always CW >1

* tilt: re-introduce terra classic tests

* terra: make get_address support both 20 and 32 byte addresses

* terra: fix tests to account for burn tax

Since the tests are now ran against the new LocalTerra which has burn
tax, the transaction results are different from before

* terra/token-bridge: check first 12 bytes to determine native denoms

* terra/token-bridge: simplify conditional

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-12-13 16:27:17 +00:00
Csongor Kiss 71cae152e5
terra: delete migration (#3601)
Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-12-12 21:50:59 +00:00
Evan Gray 094a404902 tilt: remove additional root CA support 2023-12-12 14:22:05 -06:00
Csongor Kiss cab4419a4f terra/Dockerfile: fix target cache
the cosmwasm optimizer script builds to the root directory
2023-12-06 20:40:17 +00:00
Csongor Kiss 0cc1f677e5 drop mention of the terra NFT bridge from docs and scripts 2023-12-06 20:40:17 +00:00
Csongor Kiss 6fa6a2d0c1 terra: delete nft bridge
This was never deployed, and has become a maintenance burden with the
new cosmwasm 1.0 migration that Terra classic mainnet has recently gone through.
2023-12-06 20:40:17 +00:00
Csongor Kiss 47faf43355 terra/contracts/README.md: update maintenance info 2023-12-06 20:40:17 +00:00
heyitaki 0ecc427d6f docker: build CLI in shared image
Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-06-01 15:33:07 +01:00
Nikhil Suri 6fd43d11ae
terra: change nft-bridge name to nft-bridge-terra (#2607)
* terra: change nft-bridge name to nft-bridge-terra for compatibility with solana nft-bridge package

* change nft_bridge.wasm to nft_bridge_terra.wasm in deploy script
2023-04-11 18:48:23 -04:00
A5 Pickle aee8720163 terra: fix clippy error 2023-01-26 18:36:03 -06:00
justinschuldt 9db82e310f cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00
omahs ce1f3adc23 Fix: minor typo
Fix: minor typo
2023-01-11 14:25:55 -05:00
Nikhil Suri ee2b6d0c17 cosmwasm: wormhole: remove unecessary cast to usize 2022-12-15 14:51:54 -05:00
Evan Gray 22304b94a1 sdk/js: avoid terra test1 key in CI 2022-12-01 17:41:00 -05:00
Evan Gray a3a4528c6f terra/devnet: update timeout_broadcast_tx_commit 2022-12-01 17:41:00 -05:00
Evan Gray b0c65265aa terra/tools: restore broadcast waiting fix 2022-12-01 17:41:00 -05:00
Chirantan Ekbote f7cc16aa91 terra: Fix clippy warnings 2022-10-28 14:35:44 -04:00
Chirantan Ekbote 68ae3ff6cd terra: Fix formatting
Also disable the unstable options in rustfmt.toml.
2022-10-28 14:35:44 -04:00
Evan Gray 19d9c3a290 ci: quieter terra 2022-10-27 07:52:24 -04:00
Evan Gray 6c6661f621 js: make packages comply with ci rule 2022-10-20 17:11:13 -05:00
Hendrik Hofstadt 4a2fbd923f
tilt: shorten terra block time (#1744)
Change-Id: I35cce03ae6e82b522482f2c1c40ccb6819eb51f6
2022-10-17 18:13:19 +02:00
Csongor Kiss 3877f6f3c3 tilt: register aptos on other chains 2022-10-15 15:17:36 +01:00
Chirantan Ekbote 7f4b0d1a09 Wormhole chain integration
This is a squashed commit of all the changes needed to integrate
wormhole chain into the main repo.
2022-10-03 17:34:42 +09:00
kev1n-peters c5d2f9d54d
sdk/js: Near refactor, added integration tests (#1648)
* near-sdk-refactor: Fix attest
                 : Fix missing function calls
                 : make near on near
                 : renamed tryHexToNativeStringNear

* near-sdk-refactor: bumped near-sdk-js version

Co-authored-by: Josh Siegel <jsiegel@jumptrading.com>
2022-09-28 08:53:15 -05:00
Csongor Kiss 37ee5cf4a4 terra: Add fromAddress to payload 3 2022-09-27 12:19:25 -04:00
Csongor Kiss d0900c791a terra/token-bridge: fix lunc tax deduction 2022-09-27 11:54:47 -04:00
Evan Gray 898cf160df ci: fix to flaky terra deploy 2022-09-16 18:14:17 -04:00
Csongor Kiss 650beaa79a solana/terra: delete generate_governance
These are superseded by the more general script `scripts/contract-upgrade-governance.sh`
2022-08-24 16:27:04 +02:00
Csongor Kiss ca43f8629a
terra: Check that bytes32 fits into 20 bytes before truncating (#1458) 2022-08-23 21:13:30 +02:00
Csongor Kiss 3e63590c10 terra: Don't migrate wrapped assets for now
See comment in the code for more context
2022-08-10 22:19:16 +01:00
Csongor Kiss ce20776f5d terra: Also allow private key in deploy script
The mnemonic might no longer be available.
2022-08-10 22:19:16 +01:00
Csongor Kiss 9c9f5b4b23 terra/token_bridge: fixed wrapped asset ids
The wrapped assets on terra have been migrated to code id 767, but the
config wasn't updated to store this new code id, so newly created
wrapped assets all use an older code id. This patch upgrades all wrapped
assets to 767 and changes the config so future wrapped assets also use
that code id.

Also added a new function `migrate_wrapped_assets` so this task can be
done in the future in a less error-prone way.
2022-08-08 12:42:32 -05:00
Csongor Kiss aea76be327 terra: Ensure that recipient address is 32 bytes.
Before this check, users were able to lose funds by sending money to an
address that's shorter than 32 bytes.
This commit is essentially a backport of the fix from the new cosmwasm contract.
2022-08-08 12:12:14 -05:00
Kevin Peters 910eb0f3e0 fix terra classic native token parsing
when a native denom is received (complete transfer native),
check if the token chain is terra classic
2022-08-03 12:02:02 -05:00
Csongor Kiss f50586ad86 cosmwasm: move chain id and fee denom to storage
Prior to this change, these values were hardcode in the contract, as
the only supported chain was terra 2. This change allows the contract to
be deployed to other cosmwasm chains without having to recompile the
contract for each one.

The migration code ensures that terra2 is upgraded appropriately.
2022-07-20 16:09:39 -04:00
claudijd 8221708ef0 Move from ADD to COPY on Dockerfiles 2022-07-13 09:27:15 -04:00
Evan Gray db0fc219aa cosmwasm: terra2 support
Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
2022-06-21 10:03:57 -04:00
Evan Gray 38d8918d28
terra: fix terra test (#1231)
* terra: fix terra test

* Update terra git bits

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2022-05-26 11:25:53 +02:00
Csongor Kiss d8e7a5f93f terra/token_bridge: transfer with payload
Also rename terra token-bridge package so it's unique Otherwise cargo
can't find it externally, and confuses it with the solana one.
2022-05-11 21:24:36 -04:00
Evan Gray cc72c2a644 algo: contracts 2022-04-29 20:56:17 -04:00
Chirantan Ekbote e907a05b1e sdk, terra: Fix tests and add them to CI
The terra tests had bit rotted quite terribly. It seems no one has run
them in almost a year because the API changed with the 0.14 release of
cosmwasm_vm in April, 2021.

Completely remove cosmwasm_vm from dev-dependencies.  The tests aren't
doing anything that requires interacting with the wasm code and can just
test the relevant functions directly.

Once this goes in the tests should be running in the CI so hopefully no
one will be able to push any more breaking changes.

commit-id:537d95e6
2022-04-20 09:46:51 +09:00
justinschuldt 648a5faa54 fixes for tilt ci 2022-04-12 20:37:52 -05:00
justinschuldt 2e1ee8ec20 terra-devnet init with multiple guardians 2022-04-12 20:37:52 -05:00
Chirantan Ekbote 5e4bf02014
terra-nft: Remove unused dependencies (#982) 2022-04-12 09:36:45 +02:00