Commit Graph

2847 Commits

Author SHA1 Message Date
bruce-riley 4116f8454d
Node/Acct: Pending status query fix (#2320)
* Node/Acct: Pending status query fix

* Node/Acct: Test should actually verify the results
2023-01-31 05:22:51 -06:00
Justin Schuldt 15f485885b
wormchain: contracts deploy to Tilt devnet (#2300) 2023-01-30 21:45:22 -05:00
Evan Gray 30d8fb4ef7 Update CODEOWNERS 2023-01-30 21:43:22 -05:00
Evan Gray 95411c6722 wormchain/ts-sdk: add wasm 2023-01-30 12:21:12 -06:00
Evan Gray ae82c4035f tilt: fix accounting deploy 2023-01-30 10:17:20 -06:00
justinschuldt ab6146f19b wormchain - contracts deploy 2023-01-30 10:17:20 -06:00
Evan Gray a9373d54fa wormchain: update ts sdk 2023-01-30 09:17:37 -05:00
Csongor Kiss 145ba6df0f aptos/coin: pin dependency on move stdlib to fix build 2023-01-30 08:50:05 -05:00
Bruce Riley 3dfc8a5285 Node/Acct: add setUpdTime
Change-Id: I0a2172a7b8c63ea7973b11c720b2a965aac362f7
2023-01-29 23:54:43 -05:00
Bruce Riley 2005da77f4 Node/Acct: Fix tmp map key format
Change-Id: Ic2276dd1bb441f4c8b289068fbf23a42d2450b52
2023-01-29 23:54:43 -05:00
Bruce Riley 8ded72af8b Node/Acct: Add another test
Change-Id: I64e37072e77e199f5ff21300ecd9c20aa81a0b5a
2023-01-29 23:54:43 -05:00
Bruce Riley 4a9b2db2df Node/Acct: Audit should handle nil status
Change-Id: I5bfe79fb02ae5c5ef587608eb6e595ad2dd1f848
2023-01-29 23:54:43 -05:00
Bruce Riley 485d5eb037 Node/Acct: Fix audit interval
Change-Id: I23b4d4024462fd47bd0f189f97d0b782fe655a0c
2023-01-29 23:54:43 -05:00
Bruce Riley 90545f7c2a Node/Acct: code review rework
Change-Id: Ib45aec98f855f3e4cff4dabf2d5597ce19b060c9
2023-01-29 23:54:43 -05:00
Bruce Riley 23e09b8ec1 Node/Acct: Tweak audit parameters
Change-Id: Icbd3a85c55ca413de9bac13cc3b5b80b310acbad
2023-01-29 23:54:43 -05:00
Bruce Riley 04f5415c84 Node/Acct: audit stuck pending
Change-Id: I643ce699b5d5e21129d957dae8677e8f2fccdbfd
2023-01-29 23:54:43 -05:00
Bruce Riley 2e400bef1c Node/Acct: check for malformed response
Change-Id: Idb389df44359b77de5c89ce2b15ba44705d86a3d
2023-01-29 23:51:45 -05:00
Bruce Riley e39891bbfd Node: Move setting of scissors metrics up a line 2023-01-29 14:07:13 -05:00
Bruce Riley c585810766 Node: Initialize scissors metrics
Change-Id: I018a663aa5b9ea902f934ab71c23b1786c8aeeb0
2023-01-29 14:07:13 -05:00
Evan Gray c6593ededf tilt: fix guardian wormchainKey1 2023-01-29 10:19:02 -05:00
Paul Noel 6ebd57be58 ethereum/scripts: reduce register script 2023-01-28 07:10:35 -05:00
Justin Schuldt e09a2616bf
wormchain: contracts env data (#2297) 2023-01-27 14:27:21 -05:00
justinschuldt 621d1d66fc wormchain - contracts dir 2023-01-27 14:19:28 -05:00
justinschuldt d6c24214be wormchain - config comments and defaults 2023-01-27 14:03:02 -05:00
justinschuldt d9b18a264b node - wormchain config 2023-01-27 11:27:41 -06:00
Tony Jin ab958bc2d7 docs: remove README link to deprecated docs site
Replace link to docs with book.wormhole.com vs the deprecated docs site.
2023-01-27 10:51:00 -05:00
Evan Gray c3dd438ab9 tilt: solana deploy fix 2023-01-27 10:21:32 -05:00
justinschuldt 08a0c28c65 wormchain ibc - update wormchain service name 2023-01-27 06:56:15 -05:00
A5 Pickle aee8720163 terra: fix clippy error 2023-01-26 18:36:03 -06:00
A5 Pickle 1b40fdb7b9 cosmwasm: fix clippy error 2023-01-26 18:36:03 -06:00
A5 Pickle 58e6afd439 sdk/rust: fix clippy error 2023-01-26 18:36:03 -06:00
Chirantan Ekbote 9f0109388a cosmwasm: accountant: Allow transfers on the same chain
While sending tokens to another address on the same chain via wormhole
is quite inefficient, it's not strictly disallowed and we do have some
VAAs on solana that do this.  Explicitly check for this case and allow
it.

There are no restrictions on native tokens sent in this way but wrapped
transfers are still subject to some checks: the wrapped account for
the token must exist and it must have a balance larger than the amount
being transferred.  If either of those checks fails then that means
that the sender acquired some wrapped tokens that did not go through
the accountant and so that transfer should be blocked and require manual
intervention.
2023-01-26 09:35:43 -05:00
Kevin Peters 4c7df41984 clients/js: Added generate RecoverChainId cmd, split cmds into separate files 2023-01-25 11:35:48 -05:00
Evan Gray 992efa44a3 CI: split lint-and-tests 2023-01-25 11:10:16 -05:00
Conor Patrick ad3a62c0dc wormchain: fix wormhole keeper wasmd field 2023-01-25 09:15:02 -05:00
Conor Patrick fac7e10eb4 wormchain: add more persistent peers to wormchain 2023-01-24 08:25:14 -08:00
njkumr 6825d5ca3a
ethereum: adding hash check in verifyVM (#1851)
* adding a check to verify the vm.hash against the hash of the body and tests for the same
2023-01-24 16:10:52 +00:00
Bojan Angjelkoski 81d1f83f45
sdk/js: injective package bump (#2175)
* chore: package bump

* chore: updated to latest package versions

* refactor: migrate to MsgExecuteContractCompat for EIP712 compatibility

* chore: added dev deps

* chore: packages bump
2023-01-23 21:33:26 -05:00
Conor Patrick bef87c498d wormchain: bump wasmd fork 2023-01-23 17:02:50 -05:00
Chirantan Ekbote dd95954fc3 cosmwasm: Rename accounting -> accountant
Also change wormchain -> global.
2023-01-23 16:42:47 -05:00
justinschuldt 1f939ea2dd wormchain - peer-exchange reactor off by default 2023-01-23 15:06:07 -06:00
Chirantan Ekbote 1f8055adfa cosmwasm: accounting: Use hex-encoding for TokenAddress
Use hex rather than base64 when serializing / deserializing
`TokenAddress` so that it's more consistent with the other address
types.
2023-01-23 14:27:08 -05:00
Chirantan Ekbote 1e3356b4c9 cosmwasm: accounting: Don't store Observation on-chain
Now that we can calculate the digest of an Observation there's no need
to store the whole thing on-chain.  Instead only store the observation
digest, tx_hash, and emitter chain (the tx_hash is necessary because
it's not included in the digest and the emitter chain is used for
servicing missing observation queries).  When adding new observations
we can check for equality by comparing the digests and tx hashes rather
than comparing the whole object.

This should further reduce the size of the on-chain state.
2023-01-23 14:27:08 -05:00
Chirantan Ekbote 2ee213254f cosmwasm: accounting: Don't store signature data on-chain
When submitting observations to the accounting contract, clients sign
the entire batch once.  There's no point storing this signature in the
on-chain data for each observation because it's already stored as part
of the chain's transaction history and the signature would be different
if an observation was submitted as part of a different batch (or the
same batch in a different order) even if the observation itself didn't
change.

Also, nothing actually made use of this signature data.  (Yes,
technically it was returned by some queries but the usefulness of
the signature by itself is questionable without the full batch of
observations that were signed).

All we really care about is the index of the guardian anyway so use
a bitset to keep track of the indices of all the guardians that have
signed an observation.  We use a u128 for the bitset out of an abundance
of caution in case the number of guardians increases in the future.
Dealing with more than 128 guardians is left as a problem for future
wormhole contributors if we ever get to that point.
2023-01-23 14:27:08 -05:00
Chirantan Ekbote 289d37771d cosmwasm: accounting: Return transfer status for observations
When submitting a batch of observations, we don't want an observation
for an already committed transfer to fail the entire batch.  This leads
to more complexity in the guardian and also delays all the legitimate
observations by at least one more block (~5 seconds).

Fix this by returning the transfer status of each observation as part
of the response data.  Observations for committed transfers will get
a `TransferStatus::Committed` response without failing the tx as long
as the digest of the observation matches the digest of the committed
transfer.  Digest mismatches are still an error and will fail the entire
batch.
2023-01-23 14:27:08 -05:00
Josh Siegel 04b0018cfe sui/guardian: more informative error messages 2023-01-23 11:00:09 -06:00
Josh Siegel bf70827fe7 sui: guardian watcher updates 2023-01-23 11:00:09 -06:00
Chirantan Ekbote b2ca522e73 sdk/rust: Add test with hardcoded digest
Add a test for digest calculation that uses a hardcoded digest.  The
digest for this test was calculated using the `worm` CLI to ensure
interoperability.
2023-01-23 11:53:39 -05:00
Jeff Schroeder cd93c57d66 node: strip leading 0x for send-observation-request
This allows copying and pasting transactions from montioring tools or
an explorer to be reobserved.
2023-01-23 10:32:15 -05:00
Chirantan Ekbote 45b3d18d80 Add codeowners for accountant 2023-01-23 09:11:39 -05:00