Commit Graph

3111 Commits

Author SHA1 Message Date
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
Evan Gray dfe4baf1b1 clients/js: minified bundle 2023-05-05 14:07:24 -04:00
bruce-riley b4a5bc8aef
Client/js: Add command to generate emitter addrs (#2839)
* Client/js: Add command to generate emitter addrs

Change-Id: Icb06990ca2004df3e01223a63e2142a77b10c47b

* Move emitters.ts into src dir

Change-Id: I2ca652db72ca650d8740633ceb9297000a4ece2c
2023-05-05 12:51:44 -04:00
tbjump a5092db982 node/governor: handle type assertion error 2023-05-05 07:13:40 -07:00
tbjump 478ea22a3f ci/golangci: fix comment 2023-05-05 07:13:40 -07:00
tbjump bb2ddeeffa ci: add go linters forcetypeassert, noctx, unparam, prealloc 2023-05-05 07:13:40 -07:00
tbjump f7c358c7a8 ci: update golangci-lint to v1.52.2 2023-05-05 07:13:40 -07:00
tbjump ff413a2068 node: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump c24fff4d2d sdk: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump ab1378d744 node/watchers/sui: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump adde6213f5 node/watchers/solana: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump b2ae264928 node/watchers/ibc: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump 555b304f46 node/watchers/cosmwasm: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump c33ceadebf node/processor: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump b5f1622129 node/watchers/algorand: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump 91fd0e0517 node: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump e420d26356 node/accountant: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump 8f1ab74b53 hack/: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump 28fb0f0ec8 node/adminserver: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump 990f8d1dbe node/governor: fix linter warnings 2023-05-05 07:13:40 -07:00
tbjump 8de708193b node/watchers/wormchain: linter fixes 2023-05-05 07:13:40 -07:00
tbjump e979d20ccd node/watchers/near: linter fixes 2023-05-05 07:13:40 -07:00
tbjump c718834021 node/acct/test: prealloc keys 2023-05-05 07:13:40 -07:00
Evan Gray b23e7ce8e8
clients/js: prep for release (#2862)
* clients/js: prep for release

* clients/js: make worm directory agnostic
2023-05-05 18:39:53 +09:00