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

Zone shard #175

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Zone shard #175

merged 1 commit into from
Jun 7, 2024

Conversation

robertlincecum
Copy link
Contributor

No description provided.

Prime = '0x',
}

function fromBytes(shard: string): Shard {
Copy link
Member

Choose a reason for hiding this comment

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

I know that this method is not exported but I believe the function naming could be more clear by changing it to zoneFromBytes, deriveZoneFromBytes or something along those lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rileystephens28 I thought about that but decided fromBytes made more sense given the context. I can change it to have the context in the name though.

Hydra3 = '0x22',
}

function fromBytes(zone: string): Zone {
Copy link
Member

Choose a reason for hiding this comment

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

Same situation as the shard fromBytes method, let's rename for clarity.

}
| {
method: 'getCode';
address: string;
blockTag: BlockTag;
shard: string;
shard: Shard;
Copy link
Member

Choose a reason for hiding this comment

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

This refers to getting a smart contracts bytecode which only applies to zones

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rileystephens28 makes sense

}
| {
method: 'getLogs';
filter: PerformActionFilter;
shard: string;
shard: Shard;
Copy link
Member

Choose a reason for hiding this comment

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

Logs are created by smart contracts so this should be zone

}
| {
method: 'getStorage';
address: string;
position: bigint;
blockTag: BlockTag;
shard: string;
shard: Shard;
Copy link
Member

Choose a reason for hiding this comment

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

This method relates to returning smart contract data at some storage position so this should be zone

*/
export interface ProtoAccessList {
access_tuples: Array<ProtoAccessTuple>;
}

/**
* @TODO write documentation for this interface.
*
* @category Transaction
* @todo Write documentation for this interface.
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate todo line

@@ -188,17 +189,16 @@ type allowedSignatureTypes = Signature | string;
* much (the {@link ProtoTransaction.value | **value** } in ether) the operation should entail.
*
* @category Transaction
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate category line

Copy link
Member

Choose a reason for hiding this comment

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

This file will be replaced by @alejoacosta74 updated wallet implementation feature very soon

Copy link
Contributor Author

Choose a reason for hiding this comment

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

file should stay there for now though so when he rebases he can see how the enums should be used

Copy link
Member

Choose a reason for hiding this comment

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

This file will be replaced by @alejoacosta74 updated wallet implementation feature very soon

Copy link
Member

Choose a reason for hiding this comment

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

This file will be replaced by @alejoacosta74 updated wallet implementation feature very soon

@rileystephens28 rileystephens28 merged commit b82abde into master Jun 7, 2024
@rileystephens28 rileystephens28 deleted the zone-shard branch June 7, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants