Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Warp Integration #856

Merged
merged 29 commits into from
Apr 24, 2024
Merged

Remove Warp Integration #856

merged 29 commits into from
Apr 24, 2024

Conversation

wlawt
Copy link
Contributor

@wlawt wlawt commented Apr 23, 2024

Closes #855

@wlawt wlawt self-assigned this Apr 23, 2024
@@ -436,19 +432,19 @@ var _ = ginkgo.Describe("[Tx Processing]", func() {
// read: 2 keys reads, 1 had 0 chunks
// allocate: 1 key created with 1 chunk
// write: 2 keys modified (new + old)
transferTxConsumed := fees.Dimensions{191, 7, 12, 25, 26}
transferTxConsumed := fees.Dimensions{187, 7, 12, 25, 26}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed https://github.com/ava-labs/hypersdk/blob/203e78b7c65a8b7c875fa4941f974292ce989f52/chain/transaction.go#L76C9-L76C17 which returns an int which is 4 bytes

Which also resulted in updating the numbers below this line for the rest of the file as well

@@ -437,19 +432,19 @@ var _ = ginkgo.Describe("[Tx Processing]", func() {
// read: 2 keys reads, 1 had 0 chunks
// allocate: 1 key created
// write: 1 key modified, 1 key new
transferTxConsumed := fees.Dimensions{227, 7, 12, 25, 26}
transferTxConsumed := fees.Dimensions{223, 7, 12, 25, 26}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

@wlawt wlawt force-pushed the remove-warp branch 6 times, most recently from 419f8d1 to e8e6b68 Compare April 24, 2024 01:56
@wlawt wlawt marked this pull request as ready for review April 24, 2024 02:51
chain/result.go Outdated Show resolved Hide resolved
@@ -350,8 +350,6 @@ func SetAsset(
copy(v[consts.Uint16Len+symbolLen+consts.Uint8Len+consts.Uint16Len:], metadata)
binary.BigEndian.PutUint64(v[consts.Uint16Len+symbolLen+consts.Uint8Len+consts.Uint16Len+metadataLen:], supply)
copy(v[consts.Uint16Len+symbolLen+consts.Uint8Len+consts.Uint16Len+metadataLen+consts.Uint64Len:], owner[:])
b := byte(0x0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still need to reduce the size of the allocation of v above ^

README.md Outdated Show resolved Hide resolved
vm/vm.go Outdated Show resolved Hide resolved
// Proceed with normal verification
return b.verify(ctx, stateReady)
}

// implements "snowman.Block"
func (b *StatelessBlock) Verify(ctx context.Context) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to unify Build/build and Verify/verify for now but not sure where we use them.

@wlawt wlawt merged commit 897be9b into main Apr 24, 2024
25 checks passed
@wlawt wlawt deleted the remove-warp branch April 24, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove Warp integration
2 participants