Commit Graph
808 Commits
Author SHA1 Message Date
e1cfebce00 Add support for warp off chain messages (#1028)
Co-authored-by: Ceyhun Onur <[email protected]>
2023-12-27 12:49:33 -08:00
Dhruba BasuandGitHub 6f67474c21 Add TestSnowContext util (#1030) 2023-12-22 23:14:36 +03:00
e7d9cc2f90 Precompile events - Native Minter (#963)
* add equality tests

* regenerate abis

* add extra padding tests

* override network upgrades (#839)

* override network upgrades

* genesis network upgrades defaults

* fix conflicts

* Update plugin/evm/vm.go

* update native minter

* nativeminter nit test changes

* replace fee manager packers

* remove generated abis

* Update precompile/contracts/feemanager/contract.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix comments

* add event packing/unpacking to contract template

* add pack event tests to template

* add event precompile bind tests

* nits

* separate event file

* Update accounts/abi/bind/precompilebind/precompile_bind.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* revert set changes

* change event comments

* precompile event for native minter

* fixed NativeMint contract to add event

* faulty packing?

* fixed UT

* cleanups

* add get event gas cost and tests

* nits

* remove unrelated changes

* minimize diff

* add hardhat test

* fix gas in tests

* reorder event log

* add topics to GetLogData

* use interface function for testing logs

* Update contract_test.go

Signed-off-by: Ceyhun Onur <[email protected]>

* add sender to indexed topics

* Update event.go

Signed-off-by: Ceyhun Onur <[email protected]>

* unindex the amount in event

* Update contracts/test/contract_native_minter.ts

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* readd after hook

* add signature topic gas costs

* add assert event func

* Update contracts/test/contract_native_minter.ts

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update precompile/contracts/nativeminter/event.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
2023-12-21 19:43:26 +03:00
6834da19af Precompile events - Reward Manager (#961)
* add event packing/unpacking to contract template

* add pack event tests to template

* add event precompile bind tests

* nits

* separate event file

* Update accounts/abi/bind/precompilebind/precompile_bind.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* revert set changes

* change event comments

* set reward address precompile events

* added UT

* fixed RewardAddress gas costs

* added precompile logging for allowFeeRecipient

* added UT

* added precompile logging for disable rewards

* address code review comments

* some more fixes

* nit

* consolidated UTs

* refactored UT chainConfig creation + extra UTs

* handle D-fork for logs gas cost

* nit

* add event gas calculation to template

* add event gas costs to reward manager functions

* minor comment fix on template

* fix tests

* fix tests

* nits

* nits

* add hardhat test

* add get event gas cost and tests

* revert unrelated changes

* nits

* remove sender fields from events

* use isDUpgrade func from utils

* reorder event log

* rever reordering

* change event set log order

* add topics to GetLogData

* use interface function for testing logs

* use len instead of zero

Signed-off-by: Ceyhun Onur <[email protected]>

* add sender to events

* use address

Signed-off-by: Ceyhun Onur <[email protected]>

* trigger CI

* add signature topic gas costs

* add assert event func

* Update contracts/test/reward_manager.ts

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-12-21 19:24:17 +03:00
2ba8bcd80e Precompile events allow list (#968)
* add equality tests

* regenerate abis

* add extra padding tests

* override network upgrades (#839)

* override network upgrades

* genesis network upgrades defaults

* fix conflicts

* Update plugin/evm/vm.go

* update native minter

* nativeminter nit test changes

* replace fee manager packers

* remove generated abis

* Update precompile/contracts/feemanager/contract.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix comments

* add event packing/unpacking to contract template

* add pack event tests to template

* add event precompile bind tests

* nits

* separate event file

* Update accounts/abi/bind/precompilebind/precompile_bind.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* revert set changes

* change event comments

* wip: log allow list events

* propagated allow list events to other precompiles

* add get event gas cost and tests

* nits

* revert unrelated changes

* add allowlist events

* add topics to GetLogData

* fix dep cycle in tests

* add allowlist hardhat tests

* use len in zero assertion

Signed-off-by: Ceyhun Onur <[email protected]>

* Update test_allowlist.go

Signed-off-by: Ceyhun Onur <[email protected]>

* add sender to indexed topics

* Update utils.go

Signed-off-by: Ceyhun Onur <[email protected]>

* add output names

* add signature topic gas costs

* Update precompile/testutils/test_precompile.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update accounts/abi/bind/precompilebind/precompile_event_template.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix tests

* fix tests

* return err

* add RoleSet event

* Update contracts/test/contract_deployer_allow_list.ts

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update contracts/test/tx_allow_list.ts

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* add assert event func

* use hash len

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
2023-12-21 19:05:04 +03:00
485ddc1659 Precompile events - Fee Config (#967)
* add equality tests

* regenerate abis

* add extra padding tests

* override network upgrades (#839)

* override network upgrades

* genesis network upgrades defaults

* fix conflicts

* Update plugin/evm/vm.go

* update native minter

* nativeminter nit test changes

* replace fee manager packers

* remove generated abis

* Update precompile/contracts/feemanager/contract.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix comments

* add event packing/unpacking to contract template

* add pack event tests to template

* add event precompile bind tests

* nits

* separate event file

* Update accounts/abi/bind/precompilebind/precompile_bind.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* revert set changes

* change event comments

* added event for setFeeConfig

* added UT

* cleanups

* add get event gas cost and tests

* nits

* revert unrelated changes

* add event

* add hardhat test

* add topics to GetLogData

* use interface function for testing logs

* add sender to indexed topics

* Update contract.go

Signed-off-by: Ceyhun Onur <[email protected]>

* move gas to above

* Update contracts/test/fee_manager.ts

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* use existing test

* fix typo

* add signature topic gas costs

* fix tests

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
2023-12-21 15:28:26 +00:00
aaronbuchwaldandGitHub f76018bea4 x/warp: update warp log gas cost to reflect number of topics (#1026) 2023-12-20 15:48:08 +00:00
a16a959e28 add event packing/unpacking to contract template (#949)
* add event packing/unpacking to contract template

* add pack event tests to template

* add event precompile bind tests

* nits

* separate event file

* Update accounts/abi/bind/precompilebind/precompile_bind.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* revert set changes

* change event comments

* add get event gas cost and tests

* nits

* add topics to GetLogData

* Update utils.go

Signed-off-by: Ceyhun Onur <[email protected]>

* add output names

* Update precompile/testutils/test_precompile.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update accounts/abi/bind/precompilebind/precompile_event_template.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix tests

* fix tests

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-12-18 18:14:43 +00:00
omahsandGitHub 5ae735bd66 Fix typos (#1025)
* fix typo

Signed-off-by: omahs <[email protected]>

* fix typos

* fix typo

* fix typo

---------

Signed-off-by: omahs <[email protected]>
2023-12-17 19:48:10 -08:00
d1c41afc0e Fix abi get inputs (#1023)
* add equality tests

* regenerate abis

* add extra padding tests

* override network upgrades (#839)

* override network upgrades

* genesis network upgrades defaults

* fix conflicts

* Update plugin/evm/vm.go

* update native minter

* nativeminter nit test changes

* replace fee manager packers

* remove generated abis

* Update precompile/contracts/feemanager/contract.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix comments

* readd pack/unpack tests

* add signature tests

* refactor allowlist

* add readt allowlist tests

* refactor modify allowlist functions

* add pack read allowlist output

* fix golangci

* remove unrelated signature tests

* fix reviews

* remove skip len check vars

* add native minter equality tests

* add strict mode to getInputs

* fix nits

* add get fee config output fuzz tests

* disable strict mode by default in warp

* add fee manager fuzz tests

* move tests to another test file

* move pack test to another file

* fix tests

* merge allowlist refactor

* move function name getter to type

* move signatures to unpack test

* move signatures to unpack test

* Update precompile/allowlist/allowlist.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* nits

* unexport test fields

* fix tests

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
v0.5.11-rc.0
2023-12-15 14:24:35 -08:00
a9bd96ac20 Refactor allowlist (#1011)
* add equality tests

* regenerate abis

* add extra padding tests

* override network upgrades (#839)

* override network upgrades

* genesis network upgrades defaults

* fix conflicts

* Update plugin/evm/vm.go

* update native minter

* nativeminter nit test changes

* replace fee manager packers

* remove generated abis

* Update precompile/contracts/feemanager/contract.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix comments

* readd pack/unpack tests

* add signature tests

* refactor allowlist

* add readt allowlist tests

* refactor modify allowlist functions

* add pack read allowlist output

* fix golangci

* remove unrelated signature tests

* fix reviews

* remove skip len check vars

* add native minter equality tests

* add get fee config output fuzz tests

* add fee manager fuzz tests

* move tests to another test file

* move pack test to another file

* move function name getter to type

* move signatures to unpack test

* move signatures to unpack test

* Update precompile/allowlist/allowlist.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* nits

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-12-15 13:05:34 -08:00
bcf1139b3c Replace old packers (#857)
* add equality tests

* regenerate abis

* add extra padding tests

* override network upgrades (#839)

* override network upgrades

* genesis network upgrades defaults

* fix conflicts

* Update plugin/evm/vm.go

* update native minter

* nativeminter nit test changes

* replace fee manager packers

* remove generated abis

* Update precompile/contracts/feemanager/contract.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix comments

* readd pack/unpack tests

* add signature tests

* remove skip len check vars

* add native minter equality tests

* add get fee config output fuzz tests

* add fee manager fuzz tests

* move tests to another test file

* move signatures to unpack test

* nits

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-12-15 18:18:43 +00:00
315cf93071 prepare release v0.5.10 (#1019)
* bump versions

* change p2p network code

* Revert "change p2p network code"

This reverts commit 7960d9e524.

* Use `p2p.Network` (#384)

---------

Co-authored-by: Joshua Kim <[email protected]>
v0.5.10
2023-12-07 00:11:32 +03:00
fe4dd6e49f verify single predicate (#960)
* verify single predicate

* simplify returned error

* track indexes for predicates

* don't short cirtcuit predicate err

* Update predicate_check.go

Signed-off-by: Ceyhun Onur <[email protected]>

* nits for single-predicate-verify (#1012)

* Update x/warp/predicate_test.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update x/warp/predicate_test.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* review fixes

* use bitset constructor

* change return type to err in verifypredicate

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: marun <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
2023-12-05 18:28:43 +03:00
Ceyhun OnurandGitHub 9428127238 fix pointers in err string (#1016)
* fix pointers in err string

* use ptrToString in description
2023-12-04 23:03:38 +03:00
Ceyhun OnurandGitHub c9e778f59d remove unnecessary assignment (#1015) 2023-12-04 08:35:01 -08:00
c7f45a6b55 refactor warp e2e tests into ginkgo table entries + add warp load test (#1010)
* cmd/simulator: refactor simulator to support warp load test

* Fix metrics server blocking incorrectly

* Apply suggestions from code review

Signed-off-by: aaronbuchwald <[email protected]>

* refactor warp e2e tests into ginkgo table entries + add warp load test

* update avago dep

* Update AppGossip to match updated avago bump

* Update ANR dep to fix panic

* Address comments

* Use errgroup to run send and deliver load concurrently

* Revert "Use errgroup to run send and deliver load concurrently"

This reverts commit 51b515ed50b9db3edeef193aabb441ddfdf89c3e.

* Add TODO

* Update tests/warp/warp_test.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: aaronbuchwald <[email protected]>

* Bump to ago v1.10.17-rc.14

---------

Signed-off-by: aaronbuchwald <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-11-30 12:58:58 -05:00
084fb04670 Apply upgrades after state at block (#999)
* apply upgrades at StateAtTransaction

* apply upgrades to trace chain

* improve log

* apply upgrades to intermediate roots

* apply upgrades to standartdTraceBlockToFile

* apply upgrades to TraceCall

* add call trace with overrides tests

* Update eth/tracers/api.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* add stateatnextblock func

* restore format changes

* apply upgrade before overrides

* fix nits

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-11-29 22:01:16 -08:00
7e0b73c670 Trie stress test (#981)
* Add TrieStreeTest

This smart contract will append N new elements to a vector, this is a stress
test to our implementation of the trie structure

* Expose internal database?

* Rewrite bench

Make bench more generic and simpler to bootstrap

* Reuse functions

* Deploy contract once and reuse it

* Write full blocks

* Allow callee to deploy N contracts

Remove gas calculation from benchmarks, gas is still calculated to make sure
all contracts are deployed.

stressTestTrieDb takes 3 arguments. The number of contracts to deploy, the
calls for each block and the numbers of elements to append to the vector on
each call

* Remove all gas control

* Added AddTxOrFail()

This function will treat execution errors as errors as well, useful for
testing.

ApplyTransaction has been modified to return the ExecutionResult

* Move changes to the test

Breaking API changes should be avoided

* Improve error handling in benchmark

* Call many contracts per block

* Removed duplicate code

Use existing code instead, reading the receipt from the last execution instead
of returning the exceutionresult struct

* Use NewTx instead of NewTransaction

* Better organization for files

* rename & move files

* Update core/trie_stress_bench_test.go

Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Cesar <[email protected]>

---------

Signed-off-by: Cesar <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
2023-11-29 11:37:30 -05:00
aaronbuchwaldandGitHub 67cf00f67b cmd/simulator: refactor simulator to support warp load test (#1009)
* cmd/simulator: refactor simulator to support warp load test

* Fix metrics server blocking incorrectly

* Apply suggestions from code review

Signed-off-by: aaronbuchwald <[email protected]>

* Address comments

---------

Signed-off-by: aaronbuchwald <[email protected]>
2023-11-29 09:32:42 -05:00
aaronbuchwaldandGitHub 76fba30fdb downgrade p2p network logs from debug to trace (#1007) 2023-11-28 15:02:03 -05:00
aaronbuchwaldandGitHub 0c19c564a3 Add subnetID arg to warp APIs (#1008) 2023-11-28 13:30:07 -05:00
aaronbuchwaldandGitHub 27796c9af9 Cleanup warp related code (#995)
* Cleanup warp related code

* Revert back to pass rules via pointer in handlePrecompileAccept

* goimports

* Remove unused var

* Update signature aggregator new comment

* Update README so it applies to both Coreth and Subnet-EVM
2023-11-28 11:32:21 -05:00
fce7ce27bc add WaitForResult (#1002)
Co-authored-by: Darioush Jalali <[email protected]>
2023-11-24 15:46:22 +00:00
512da7af4f remove unnecessary avalanchego version from script (#989)
* remove unnecessary avalanchego version from script

* rename avalanchego version to avalanche version

---------

Signed-off-by: Darioush Jalali <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2023-11-22 19:14:08 +03:00
Ceyhun OnurandGitHub 99ad4e86a5 remove specific folders (#990) 2023-11-20 16:29:54 +00:00
Ceyhun OnurandGitHub e9c603fd66 remove unnecessary locks (#998) 2023-11-16 22:23:09 +00:00
aaronbuchwaldandGitHub 263f43607e warp/handlers: update duration greater than assertion to pass on windows (#991) 2023-11-16 15:48:43 +03:00
e77c9c97cc coreth sync: 0.12.4-rc.0 -> 0.12.7 (#975)
* coreth sync: 0.12.4-rc.0 -> 0.12.7

* Review coreth 0.12.7 (#980)

* Apply suggested changes from https://github.com/ava-labs/coreth/pull/381/files

* drop reexec=0

* add txHashes

* bump avalanchego

* remove manager

* fix compat test

* bump version for e2e tests

---------

Co-authored-by: Ceyhun Onur <[email protected]>
v0.5.9
2023-11-07 14:35:02 -05:00
Darioush JalaliandGitHub acb8bc67d8 bump avalanchego to v1.10.15 (#988)
* bump avalanchego

* remove manager

* fix compat test

* bump version for e2e tests

* update readme
2023-11-07 13:59:22 -05:00
Darioush JalaliandGitHub 7749deb9ac warp: add details to accepted message log (#984) 2023-11-06 12:33:31 -08:00
Ceyhun OnurandGitHub ad8b8f2722 Fix tracer precompile upgrade (#979) 2023-11-03 09:08:47 +03:00
Ceyhun OnurandGitHub af1c3c28aa remove extra service registration (#978) 2023-11-01 08:19:56 -07:00
Ceyhun OnurandGitHub a08fda51b3 use cgo in mockgen (#974)
* use cgo in mockgen

* use repo path

* move constants
2023-10-27 10:34:06 -04:00
Ceyhun OnurandGitHub 1b6ddf5720 bump avalanchego to v1.10.14 (#971)
* bump avalanchego to v1.10.14

* fix versions in readme

* bump min golang version

* bump anr
v0.5.8
2023-10-26 12:42:12 -04:00
aaronbuchwaldandGitHub 06ee6b5a45 predicate: fix predicate bytes incorrect error log (#969)
* predicate: fix predicate bytes incorrect error log

* predicate: add unit test for GetPredicateResultBytes
v0.5.8-rc.0
2023-10-26 12:07:03 +03:00
aaronbuchwaldandGitHub 4510ce9fb9 warp: add block signature handler (#962)
* warp: add block signature handler

* warp/aggregator: handle block/message types in aggregator

* warp/aggregator: refactor aggregator

* tests/warp: update e2e tests

* Fix lint

* cleanup

* add logs to e2e test

* Fix bug

* address comments

* tests/warp: add const for num nodes per subnet
v0.5.7
2023-10-23 15:18:10 -04:00
Ceyhun OnurandGitHub a2ba3700ff bump subnet-evm and avalanchego versions (#965) v0.5.7-rc.0 2023-10-19 20:24:06 +03:00
aaronbuchwaldandGitHub 62d949d042 x/warp: update PredicateGas to require warp message contains a valid payload (#945)
* x/warp: add check for valid payload in PredicateGas

* x/warp: fix typo
2023-10-18 11:04:36 -04:00
AnushaandGitHub e60565d5d8 Improve TPS on E2E Load Test (#947)
* init

* make fee changes

* change simulator settings

* Correct numbers

* correct header

* correct
2023-10-18 14:56:06 +00:00
d3776b236e plugin/evm: update type cast to skip call to Bytes() (#958)
Co-authored-by: Ceyhun Onur <[email protected]>
2023-10-18 13:40:34 +00:00
Ceyhun OnurandGitHub 0607a31ff9 Return message ID (#930)
* fix warp event packing

* add hardhat tests for warp

* remove destination fields from test

* parse from event data

* move setup to beforesuite

* add message id to events + return types

* fix test

* fix comment

* format example warp sol
2023-10-18 11:35:41 +03:00
aaronbuchwaldandGitHub 83c13dafdc Remove outdated readme (#955) 2023-10-16 14:12:26 -04:00
Ceyhun OnurandGitHub b51ea91530 rename stuttering files (#957) 2023-10-16 20:53:19 +03:00
Dan LaineandGitHub 6248314741 Fix aggregate signatures test race (#954)
* fix test race

* fix test race

* fix test race
2023-10-13 13:41:20 -07:00
7cee35b4b7 Move warp payload to avalanchego (#923)
* Integrating Warp Payload Types into AvalancheGo for Cross-VM Compatibility

This fixes https://github.com/ava-labs/avalanchego/discussions/2050 and https://github.com/ava-labs/avalanchego/pull/2116

* Update types

* Do not update go.sum

* Fixed more type changes from the migration

* Drop the alias `avalancheWarpPayload`

The alias is not longer needed

---------

Co-authored-by: Aaron Buchwald <[email protected]>
2023-10-12 22:45:10 +03:00
Ceyhun OnurandGitHub e2c7037d64 add hardhat tests for warp (#935)
* fix warp event packing

* add hardhat tests for warp

* remove destination fields from test

* parse from event data

* move setup to beforesuite

* Revert "move setup to beforesuite"

This reverts commit 59abbf14432d29a6c3a82cfcb3e18badadfcd87b.

* cleanups

* move variables to definition

* remove hex checks

* use mocha conf to increase timeouts
2023-10-11 13:57:30 -07:00
Ceyhun OnurandGitHub 7d9d91ab56 bump avalanchego to v1.10.12 (#952) 2023-10-11 13:56:18 -07:00
d926245278 predicate: document predicate results size cap (#943)
* predicate: document predicate results size cap

* Update predicate/Results.md

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: aaronbuchwald <[email protected]>

---------

Signed-off-by: aaronbuchwald <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
2023-10-11 11:42:32 -07:00
55189b74ac warp: refactor warp handler stats (#944)
* warp: refactor warp handler stats

* warp: update handler stats var name to signatureRequestDuration

---------

Co-authored-by: Ceyhun Onur <[email protected]>
2023-10-11 16:53:28 +03:00