Skip to content

Commit

Permalink
feat: rpc Provider cleanup & refactor, RPC Spec types update
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Nov 1, 2023
1 parent e42f9f9 commit c373ca4
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 220 deletions.
8 changes: 4 additions & 4 deletions src/provider/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export abstract class ProviderInterface {
): Promise<ContractClassResponse>;

/**
* Returns the class hash deployed under the given address.
* Returns the contract class hash in the given block for the contract deployed at the given address
*
* @param contractAddress - contract address
* @param blockIdentifier - block identifier
Expand All @@ -100,7 +100,7 @@ export abstract class ProviderInterface {
public abstract getClassByHash(classHash: string): Promise<ContractClassResponse>;

/**
* Gets the nonce of a contract with respect to a specific block
* Returns the nonce associated with the given address in the given block
*
* @param contractAddress - contract address
* @returns the hex nonce
Expand All @@ -111,7 +111,7 @@ export abstract class ProviderInterface {
): Promise<Nonce>;

/**
* Gets the contract's storage variable at a specific key.
* Get the value of the storage (contract's variable) at the given address and key
*
* @param contractAddress
* @param key - from getStorageVarAddress('<STORAGE_VARIABLE_NAME>') (WIP)
Expand Down Expand Up @@ -326,7 +326,7 @@ export abstract class ProviderInterface {
): Promise<SimulateTransactionResponse>;

/**
* Gets the state changes in a specific block
* Gets the state changes in a specific block (result of executing the requested block)
*
* @param blockIdentifier - block identifier
* @returns StateUpdateResponse
Expand Down
Loading

0 comments on commit c373ca4

Please sign in to comment.