Commit Graph

3234 Commits

Author SHA1 Message Date
tbjump bf5c540d3e ci: set node-test timeout to 1m 2023-05-25 10:15:14 -07:00
tbjump 6cd3af30ab node/near: bugfix return err in processTx if processOutcome fails 2023-05-25 10:15:14 -07:00
tbjump 9af2796790 node/near/test: improve test case 2023-05-25 10:15:14 -07:00
tbjump 4396443167 node/near: improve debug logging in poll.go 2023-05-25 10:15:14 -07:00
tbjump 220f61c630 node/near/test: improve test case 2023-05-25 10:15:14 -07:00
tbjump 73d24fc670 node/near: fix comment 2023-05-25 10:15:14 -07:00
tbjump b827301ce6 node/near: prevent transactionProcessingQueue from growing too large 2023-05-25 10:15:14 -07:00
tbjump c20c3c667d node/near/test: bugfix don't write to testCase.doneC from setupAndRun 2023-05-25 10:15:14 -07:00
tbjump 42e8121d7d node/near: improve error handling in mock_server 2023-05-25 10:15:14 -07:00
tbjump 51dd2875f7 node/near: re-organize test cases 2023-05-25 10:15:14 -07:00
tbjump f52b123586 node/near: add timeouts to tests 2023-05-25 10:15:14 -07:00
Kevin Peters 1937691afe terra2: Fix broken CI tests due to LocalTerra v2.4.0 update
LocalTerra was updated to v2.4.0 and the LCD no longer returns
HTTP errors on some transaction failures (not enough gas still returns
an HTTP error). This caused some of the integration tests to break, because
the typescript SDK would throw on those HTTP errors.

https://github.com/terra-money/LocalTerra/releases/tag/v2.4.0
2023-05-25 13:14:10 -04:00
heyitaki f29c8c9351 aptos: pin tag instead of deleted branch 2023-05-25 10:55:06 -04:00
heyitaki 9d50254893 clients/js: set strict = true in tsconfig 2023-05-24 17:45:09 -05:00
Kevin Peters 0cff646fed sdk/js: injective parseSmartContractStateResponse fix 2023-05-24 13:05:28 -05:00
tbjump a5a37495bb node: log golang version on startup 2023-05-24 09:52:58 -07:00
tbjump db462668a6 node: bugfix: inverted meaning of publicRpcLogToTelemetry 2023-05-24 09:52:58 -07:00
tbjump 6a231e8149 node: add options --telemetryServiceAccountFile and --telemetryProject 2023-05-24 09:52:58 -07:00
bruce-riley f5b96ecb4e
Node/SDK: Mainnet Sei deploy (#2969)
Change-Id: I18491c36963e44791c688d1b14fb2c8062eb6544
2023-05-23 17:14:26 -05:00
Bruce Riley 5762ba592a Github: Change codeowner for governor
Change-Id: I632b69ba5c609f8362ccef157858570bfb2980b6
2023-05-23 18:13:30 -04:00
Bruce Riley b419896e3b Github: Add code owners for node folder
Change-Id: I05b2f6e68d4b23713b3af55ee6516d51e3537f10
2023-05-23 12:03:54 -04:00
Nikhil Suri f6f93bf35e
tilt: devnet deployment for ibc generic messaging (#2593)
* Tilt devnet deployment for ibc generic messaging

* Address review comments from kcsongor and hendrikhofstadt

* Add IBC channel whitelist updates to wormchain and terra devnet deploy scripts

* VAAs had guardian set index three instead of zero

* ci: update addresses

* Remove message.block_height and message.tx_index from attributes

* Remove unnecessary contracts from terra2 devnet deployment

* Update wormhole-ibc address on terra2

* Update wormhole-ibc guardian set on terra2 devnet deployment

* IBC relayer testnet deployment fixes

* Wormchain update whitelist fix

---------

Co-authored-by: Bruce Riley <briley@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-05-18 18:56:18 -04:00
Nikhil Suri 892274ffa4
cosmwasm: ibc contracts (#2591)
* cosmwasm: add wormchain-ibc-receiver and wormhole-ibc contracts

* Address review comments from jynnantonix and hendrikhofstadt

* Fix lint errors and test failures

* Update naming to reflect new mapping of channelId -> chainId

* Return errors in ibc handlers that should never be called

* Remove contract name and version logic from migration handlers

* Add query handlers to wormhole-ibc contract

* Add wormchain channel id whitelisting to wormhole-ibc contract

* Increase packet timeout to 1 year

* Rebase on main, update imports to new names

* Add governance replay protection to both contracts

* wormhole_ibc SubmitUpdateChannelChain should only handle a single VAA

* better error messages

* Better logging and strip null characters from channel_id from governance VAA

* add brackets back for empty query methods

* Update Cargo.lock

* Only send wormhole wasm event attributes via IBC and add attribute whitelist on the receiver end

* tilt: fix terra2 deploy

* Update based on comments from jynnantonix

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-05-18 07:34:15 -04:00
bruce-riley 5aa99a959f
Node: IBC Watcher channel query broken (#2950) 2023-05-17 17:04:46 -05:00
heyitaki b114875528 sdk/js: bump to 0.9.17 2023-05-17 12:19:15 -07:00
heyitaki 7608b2b740 sdk/js: normalize all sui addresses and types being compared 2023-05-17 12:19:15 -07:00
Jeff Schroeder 2402e2fbcf ethereum: update foundry config
From running:

    forge config --fix
2023-05-17 12:51:26 -05:00
Jeff Schroeder f25075d256 ethereum: update foundry wrapper script
So we get a newer forge with improved warnings.
2023-05-17 12:51:26 -05:00
Jeff Schroeder 8605ef0e5f ethereum: kill warning in TokenImplementation.t
Newer versions of forge show this warning:

    [⠊] Compiling...
    [⠢] Compiling 93 files with 0.8.4
    [⠘] Solc 0.8.4 finished in 20.09s
    Compiler run successful (with warnings)
    warning[2018]: Warning: Function state mutability can be restricted to view
    --> forge-test/TokenImplementation.t.sol:76:5:
    |
    |     function simulatePermitSignature(
    |     ^ (Relevant source part starts here and spans across multiple lines).

This change cleans it up.
2023-05-17 12:51:26 -05:00
Jeff Schroeder 925e6474d7 ethereum: update forge-std in the Makefile
Ensure you remove the old version via:

    rm -rf ethereum/lib/forge-std
    make forge_dependencies
2023-05-17 12:51:26 -05:00
Jeff Schroeder 128352a91d ethereum: change inheritance for TestMessages
Do not inherit from Getters and Messages directly.
2023-05-17 12:51:26 -05:00
Jeff Schroeder ca2f8ce283 ethereum: change inheritance for BridgeTest
The BridgeTest contract inherited from both Bridge and forge-std's
Test contracts. This was fine with the ancient version of
forge-std it was using, but newer forge-std has an isFork() from
foundry-rs/forge-std#236. This makes upgrading forge-std to take
advantage of new features like improved invariant testing or smart
fuzzing impossibru.

This makes it a bit cleaner and also fixes some of the logic in the
testTruncate to not be undefined.

Thanks @scnale for the assist on this one!
2023-05-17 12:51:26 -05:00
gator-boi d7e9a0b2dd sui: update testnet Sui addresses 2023-05-17 12:26:00 -04:00
Jonathan Claudius 4903fe8313 node: lower governor limit for solana 2023-05-16 09:16:55 -04:00
A5 Pickle 6f8c8430ac
solana: fix token metadata program interaction (#2913)
* testing: fix pubkey caused by 0b0b9cea70

* solana: fix token-metadata forked dependency

* sdk/js: fix tokenMetadata and Solana IDLs

* testing: fix tests; add token-metadata dependency

---------

Co-authored-by: A5 Pickle <a5-pickle@users.noreply.github.com>
2023-05-15 20:55:03 +01:00
Jeff Schroeder 3a28b6169a
clients/js: move worm parse to print valid json (#2908)
* clients/js: worm parse should output valid json

This was really useful when looking at a list of all governance vaas
to see which ones were guardian set upgrades.

* clients/js: update worm parse test fixtures

Since `worm parse` outputs in native json now, ensure the test fixtures
are also in json format.

* clients/js: move quiet.ts --> side-effects.ts

Now that the BigInt side effect for json serialization is in this file,
it isn't just to "quiet" the log warning anymore.

Addresses review feedback from @evan-gray
2023-05-15 13:29:19 -04:00
Conor Patrick 99235bc08d wormchain: add testnet files 2023-05-12 06:16:53 -04:00
Nikhil Suri ee7d0765f9
sdk: add new governance VAA for IbcReceiverUpdateChainConnection (#2590)
* sdk: add new governance VAA for IbcReceiverUpdateChainConnection

* Enforce connectionId to be 64 bytes, add tests in rust sdk

* Update PrependBufferBytesFixed to LeftPadBytes, add template function + command for IBC governance VAA

* Add >64 length check for ibcReceiverUpdateChainConnectionConnectionId in runIbcReceiverUpdateChainConnectionTemplate command

* Update naming of governance VAA to reflect new mapping of channelId -> chainId

* Add TargetChainID to admin commands

* Node: Add IBC update channel to admin verify cmd

---------

Co-authored-by: Bruce Riley <briley@jumptrading.com>
2023-05-12 06:11:21 -04:00
Jonathan Claudius df796930b1
sdk: add FuzzUnmarshalBigPayload (#2893) 2023-05-12 06:02:43 -04:00
tbjump d9d5481092 node: update golang to 1.20 from 1.19 2023-05-12 05:59:53 -04:00
tbjump aa0b229f1f SECURITY.md: Add OtterSec Sui audit report 2023-05-12 05:42:19 -04:00
tbjump d22cf3d7d2 node/gov: Add tBTC to manual_tokens.go 2023-05-11 15:47:41 -07:00
tbjump 3a2fb8b47d
node/gov: change Sui parameters to M/00k (#2914)
Co-authored-by: tbjump <>
2023-05-11 14:19:54 -04:00
Csongor Kiss b5325be922 clients/js: import esm instead of cjs from wormhole-sdk
This reduces the bundle size by about 1mb
2023-05-11 09:54:07 -07:00
Csongor Kiss bc5ef2c00d clients/js: explicit side effects declaration 2023-05-11 09:54:07 -07:00
Nikhil Suri 96682bdbeb
sdk: rust: add Sei, Btc, and Base chains and change Ropsten to Sepolia (#2851) 2023-05-10 08:28:54 -07:00
tbjump 4b3d721a0c SECURITY.md: Add TrailOfBits audit report 2023-05-09 09:08:11 -07:00
Jonathan Claudius 6ac2444172
sdk: assert no negative numGuardians in quorum calculation (#2892)
* sdk: assert no negative numGuardians in quorum calculation

* sdk: fix formating on quorum tests
2023-05-09 08:45:10 -07:00
Nikhil Suri b8b425263b
node/watcher: filter recv_packet events (#2883) 2023-05-05 14:55:09 -07:00
Evan Gray 2734600234 clients/js: suppress lib warnings 2023-05-05 14:07:24 -04:00