@@ -76,14 +76,14 @@ const asset = algots.Asset(1001)
7676const randomAsset = ctx .any .asset ({
7777 clawback: ctx .any .account (), // Optional: Clawback address
7878 creator: ctx .any .account (), // Optional: Creator account
79- decimals: algots . Uint64 ( 6 ) , // Optional: Number of decimals
79+ decimals: 6 , // Optional: Number of decimals
8080 defaultFrozen: false , // Optional: Default frozen state
8181 freeze: ctx .any .account (), // Optional: Freeze address
8282 manager: ctx .any .account (), // Optional: Manager address
8383 metadataHash: ctx .any .bytes (32 ), // Optional: Metadata hash
8484 name: algots .Bytes (ctx .any .string ()), // Optional: Asset name
8585 reserve: ctx .any .account (), // Optional: Reserve address
86- total: algots . Uint64 ( 1000000 ) , // Optional: Total supply
86+ total: 1000000 , // Optional: Total supply
8787 unitName: algots .Bytes (ctx .any .string ()), // Optional: Unit name
8888 url: algots .Bytes (ctx .any .string ()), // Optional: Asset URL
8989})
@@ -95,14 +95,14 @@ const asset = ctx.ledger.getAsset(randomAsset.id)
9595ctx .ledger .patchAssetData (randomAsset , {
9696 clawback: ctx .any .account (), // Optional: New clawback address
9797 creator: ctx .any .account (), // Optional: Creator account
98- decimals: algots . Uint64 ( 6 ) , // Optional: New number of decimals
98+ decimals: 6 , // Optional: New number of decimals
9999 defaultFrozen: false , // Optional: Default frozen state
100100 freeze: ctx .any .account (), // Optional: New freeze address
101101 manager: ctx .any .account (), // Optional: New manager address
102102 metadataHash: ctx .any .bytes (32 ), // Optional: New metadata hash
103103 name: algots .Bytes (ctx .any .string ()), // Optional: New asset name
104104 reserve: ctx .any .account (), // Optional: New reserve address
105- total: algots . Uint64 ( 1000000 ) , // Optional: New total supply
105+ total: 1000000 , // Optional: New total supply
106106 unitName: algots .Bytes (ctx .any .string ()), // Optional: Unit name
107107 url: algots .Bytes (ctx .any .string ()), // Optional: New asset URL
108108})
@@ -171,11 +171,11 @@ const application = algots.Application()
171171const randomApp = ctx .any .application ({
172172 approvalProgram: algots .Bytes (' ' ), // Optional: Specify a custom approval program
173173 clearStateProgram: algots .Bytes (' ' ), // Optional: Specify a custom clear state program
174- globalNumUint: algots . Uint64 ( 1 ) , // Optional: Number of global uint values
175- globalNumBytes: algots . Uint64 ( 1 ) , // Optional: Number of global byte values
176- localNumUint: algots . Uint64 ( 1 ) , // Optional: Number of local uint values
177- localNumBytes: algots . Uint64 ( 1 ) , // Optional: Number of local byte values
178- extraProgramPages: algots . Uint64 ( 1 ) , // Optional: Number of extra program pages
174+ globalNumUint: 1 , // Optional: Number of global uint values
175+ globalNumBytes: 1 , // Optional: Number of global byte values
176+ localNumUint: 1 , // Optional: Number of local uint values
177+ localNumBytes: 1 , // Optional: Number of local byte values
178+ extraProgramPages: 1 , // Optional: Number of extra program pages
179179 creator: ctx .defaultSender , // Optional: Specify the creator account
180180})
181181
@@ -187,11 +187,11 @@ ctx.ledger.patchApplicationData(randomApp, {
187187 application: {
188188 approvalProgram: algots .Bytes (' ' ), // Optional: New approval program
189189 clearStateProgram: algots .Bytes (' ' ), // Optional: New clear state program
190- globalNumUint: algots . Uint64 ( 1 ) , // Optional: New number of global uint values
191- globalNumBytes: algots . Uint64 ( 1 ) , // Optional: New number of global byte values
192- localNumUint: algots . Uint64 ( 1 ) , // Optional: New number of local uint values
193- localNumBytes: algots . Uint64 ( 1 ) , // Optional: New number of local byte values
194- extraProgramPages: algots . Uint64 ( 1 ) , // Optional: New number of extra program pages
190+ globalNumUint: 1 , // Optional: New number of global uint values
191+ globalNumBytes: 1 , // Optional: New number of global byte values
192+ localNumUint: 1 , // Optional: New number of local uint values
193+ localNumBytes: 1 , // Optional: New number of local byte values
194+ extraProgramPages: 1 , // Optional: New number of extra program pages
195195 creator: ctx .defaultSender , // Optional: New creator account
196196 },
197197})
0 commit comments