@@ -101,7 +101,7 @@ export function getGuardV1Encoder(): Encoder<GuardV1Args> {
101101 [ 'transferAmountRule' , getOptionEncoder ( getTransferAmountRuleEncoder ( ) ) ] ,
102102 [ 'additionalFieldsRule' , getArrayEncoder ( getMetadataAdditionalFieldRuleEncoder ( ) ) ] ,
103103 ] ) ,
104- value => ( { ...value , discriminator : GUARD_V1_DISCRIMINATOR } )
104+ value => ( { ...value , discriminator : GUARD_V1_DISCRIMINATOR } ) ,
105105 ) ;
106106}
107107
@@ -123,21 +123,21 @@ export function getGuardV1Codec(): Codec<GuardV1Args, GuardV1> {
123123}
124124
125125export function decodeGuardV1 < TAddress extends string = string > (
126- encodedAccount : EncodedAccount < TAddress >
126+ encodedAccount : EncodedAccount < TAddress > ,
127127) : Account < GuardV1 , TAddress > ;
128128export function decodeGuardV1 < TAddress extends string = string > (
129- encodedAccount : MaybeEncodedAccount < TAddress >
129+ encodedAccount : MaybeEncodedAccount < TAddress > ,
130130) : MaybeAccount < GuardV1 , TAddress > ;
131131export function decodeGuardV1 < TAddress extends string = string > (
132- encodedAccount : EncodedAccount < TAddress > | MaybeEncodedAccount < TAddress >
132+ encodedAccount : EncodedAccount < TAddress > | MaybeEncodedAccount < TAddress > ,
133133) : Account < GuardV1 , TAddress > | MaybeAccount < GuardV1 , TAddress > {
134134 return decodeAccount ( encodedAccount as MaybeEncodedAccount < TAddress > , getGuardV1Decoder ( ) ) ;
135135}
136136
137137export async function fetchGuardV1 < TAddress extends string = string > (
138138 rpc : Parameters < typeof fetchEncodedAccount > [ 0 ] ,
139139 address : Address < TAddress > ,
140- config ?: FetchAccountConfig
140+ config ?: FetchAccountConfig ,
141141) : Promise < Account < GuardV1 , TAddress > > {
142142 const maybeAccount = await fetchMaybeGuardV1 ( rpc , address , config ) ;
143143 assertAccountExists ( maybeAccount ) ;
@@ -147,7 +147,7 @@ export async function fetchGuardV1<TAddress extends string = string>(
147147export async function fetchMaybeGuardV1 < TAddress extends string = string > (
148148 rpc : Parameters < typeof fetchEncodedAccount > [ 0 ] ,
149149 address : Address < TAddress > ,
150- config ?: FetchAccountConfig
150+ config ?: FetchAccountConfig ,
151151) : Promise < MaybeAccount < GuardV1 , TAddress > > {
152152 const maybeAccount = await fetchEncodedAccount ( rpc , address , config ) ;
153153 return decodeGuardV1 ( maybeAccount ) ;
@@ -156,7 +156,7 @@ export async function fetchMaybeGuardV1<TAddress extends string = string>(
156156export async function fetchAllGuardV1 (
157157 rpc : Parameters < typeof fetchEncodedAccounts > [ 0 ] ,
158158 addresses : Array < Address > ,
159- config ?: FetchAccountsConfig
159+ config ?: FetchAccountsConfig ,
160160) : Promise < Account < GuardV1 > [ ] > {
161161 const maybeAccounts = await fetchAllMaybeGuardV1 ( rpc , addresses , config ) ;
162162 assertAccountsExist ( maybeAccounts ) ;
@@ -166,7 +166,7 @@ export async function fetchAllGuardV1(
166166export async function fetchAllMaybeGuardV1 (
167167 rpc : Parameters < typeof fetchEncodedAccounts > [ 0 ] ,
168168 addresses : Array < Address > ,
169- config ?: FetchAccountsConfig
169+ config ?: FetchAccountsConfig ,
170170) : Promise < MaybeAccount < GuardV1 > [ ] > {
171171 const maybeAccounts = await fetchEncodedAccounts ( rpc , addresses , config ) ;
172172 return maybeAccounts . map ( maybeAccount => decodeGuardV1 ( maybeAccount ) ) ;
0 commit comments