Skip to content

Commit

Permalink
fix: state delta types
Browse files Browse the repository at this point in the history
  • Loading branch information
negar-abbasi committed Jul 12, 2024
1 parent 9b50c8e commit abc8c85
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/types/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ export interface TransactionResult extends Record<string, any> {
*/
lease?: string
/** [ld] Local state key/value changes for the application being executed by this transaction. */
'local-state-delta'?: LocalStateDelta[]
'local-state-delta'?: AccountStateDelta[]
/** [gd] Global state key/value changes for the application being executed by this transaction. */
'global-state-delta'?: GlobalStateDelta[]
'global-state-delta'?: StateDelta
/** [rr] rewards applied to receiver account. */
'receiver-rewards'?: number
/** [rs] rewards applied to sender account. */
Expand Down Expand Up @@ -631,18 +631,18 @@ export interface MultisigTransactionSubSignature {
signature?: string
}

export interface GlobalStateDelta {
export interface EvalDeltaKeyValue {
key: string
value: EvalDelta
}
export interface LocalStateDelta {

export interface AccountStateDelta {
address: string
delta: {
key: string
value: EvalDelta
}[]
delta: StateDelta
}

export type StateDelta = EvalDeltaKeyValue[]

/** Represents a TEAL value delta. https://developer.algorand.org/docs/rest-apis/indexer/#evaldelta */
export interface EvalDelta {
/** [at] delta action. */
Expand Down

0 comments on commit abc8c85

Please sign in to comment.