Skip to content

Commit

Permalink
Use state delta type
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Aug 8, 2024
1 parent 84b9caa commit 3a779b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions typescript_templates/model.vm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Address##
#end
#elseif ( $param.algorandFormat == "BlockHeader" )
Block##
#elseif ( $param.algorandFormat == "StateDelta" )
LedgerStateDelta##
#elseif ( $type_override == "bigint" || ( $param.algorandFormat == "uint64" && $type_override.length() == 0 ) )
#if ( $isArgType )
(number | bigint)##
Expand Down Expand Up @@ -77,6 +79,8 @@ new ArraySchema(##
#end
#if ( $param.algorandFormat == "BlockHeader" )
Block.encodingSchema##
#elseif ( $param.algorandFormat == "StateDelta" )
LedgerStateDelta.encodingSchema##
#elseif ( $param.algorandFormat == "SignedTransaction" )
SignedTransaction.encodingSchema##
#elseif ( $param.type == "object" || $param.arrayType == "object" )
Expand Down Expand Up @@ -119,6 +123,8 @@ false##
false##
#elseif ( $param.algorandFormat == "BlockHeader" )
false##
#elseif ( $param.algorandFormat == "StateDelta" )
false##
#elseif ( $param.algorandFormat == "uint64" )
false##
#elseif ( $param.type == "object" )
Expand Down Expand Up @@ -259,6 +265,8 @@ ${value}##
SignedTransaction##
#elseif ( $prop.algorandFormat == "BlockHeader" )
Block##
#elseif ( $prop.algorandFormat == "StateDelta" )
LedgerStateDelta##
#elseif ( $prop.type == "object" )
UntypedValue##
#elseif ( $prop.arrayType )
Expand Down Expand Up @@ -295,6 +303,7 @@ import { NamedMapSchema, ArraySchema, Uint64Schema, StringSchema, BooleanSchema,
import { base64ToBytes } from '../../../../encoding/binarydata.js';
#if ( $propFile.indexer == "false" )
import { Block } from '../../../../types/block.js';
import { LedgerStateDelta } from '../../../../types/statedelta.js';
import { SignedTransaction } from '../../../../signedTransaction.js';
#end
import { Address } from '../../../../encoding/address.js';
Expand Down

0 comments on commit 3a779b7

Please sign in to comment.