diff --git a/client/v2/algod/accountInformation.go b/client/v2/algod/accountInformation.go index 12b35faa..44ef753a 100644 --- a/client/v2/algod/accountInformation.go +++ b/client/v2/algod/accountInformation.go @@ -35,6 +35,7 @@ type AccountInformation struct { // `none`. func (s *AccountInformation) Exclude(Exclude string) *AccountInformation { s.p.Exclude = Exclude + return s } diff --git a/client/v2/algod/getPendingTransactions.go b/client/v2/algod/getPendingTransactions.go index 2ef1b55d..509ecb31 100644 --- a/client/v2/algod/getPendingTransactions.go +++ b/client/v2/algod/getPendingTransactions.go @@ -32,6 +32,7 @@ type PendingTransactions struct { // txns. func (s *PendingTransactions) Max(Max uint64) *PendingTransactions { s.p.Max = Max + return s } diff --git a/client/v2/algod/getPendingTransactionsByAddress.go b/client/v2/algod/getPendingTransactionsByAddress.go index 60ddfb73..d4765b3c 100644 --- a/client/v2/algod/getPendingTransactionsByAddress.go +++ b/client/v2/algod/getPendingTransactionsByAddress.go @@ -35,6 +35,7 @@ type PendingTransactionsByAddress struct { // txns. func (s *PendingTransactionsByAddress) Max(Max uint64) *PendingTransactionsByAddress { s.p.Max = Max + return s } diff --git a/client/v2/algod/getTransactionProof.go b/client/v2/algod/getTransactionProof.go index 59271184..2f62b5b1 100644 --- a/client/v2/algod/getTransactionProof.go +++ b/client/v2/algod/getTransactionProof.go @@ -35,6 +35,7 @@ type GetTransactionProof struct { // * sha256 func (s *GetTransactionProof) Hashtype(Hashtype string) *GetTransactionProof { s.p.Hashtype = Hashtype + return s } diff --git a/client/v2/algod/tealCompile.go b/client/v2/algod/tealCompile.go index 18313f24..c503ad7e 100644 --- a/client/v2/algod/tealCompile.go +++ b/client/v2/algod/tealCompile.go @@ -31,6 +31,7 @@ type TealCompile struct { // Defaults to `false`. func (s *TealCompile) Sourcemap(Sourcemap bool) *TealCompile { s.p.Sourcemap = Sourcemap + return s } diff --git a/client/v2/indexer/lookupAccountAppLocalStates.go b/client/v2/indexer/lookupAccountAppLocalStates.go index a6472c33..8dbfb403 100644 --- a/client/v2/indexer/lookupAccountAppLocalStates.go +++ b/client/v2/indexer/lookupAccountAppLocalStates.go @@ -41,6 +41,7 @@ type LookupAccountAppLocalStates struct { // ApplicationID application ID func (s *LookupAccountAppLocalStates) ApplicationID(ApplicationID uint64) *LookupAccountAppLocalStates { s.p.ApplicationID = ApplicationID + return s } @@ -49,6 +50,7 @@ func (s *LookupAccountAppLocalStates) ApplicationID(ApplicationID uint64) *Looku // localstates. func (s *LookupAccountAppLocalStates) IncludeAll(IncludeAll bool) *LookupAccountAppLocalStates { s.p.IncludeAll = IncludeAll + return s } @@ -56,6 +58,7 @@ func (s *LookupAccountAppLocalStates) IncludeAll(IncludeAll bool) *LookupAccount // if the limit is not reached. func (s *LookupAccountAppLocalStates) Limit(Limit uint64) *LookupAccountAppLocalStates { s.p.Limit = Limit + return s } @@ -63,6 +66,7 @@ func (s *LookupAccountAppLocalStates) Limit(Limit uint64) *LookupAccountAppLocal // results. func (s *LookupAccountAppLocalStates) Next(Next string) *LookupAccountAppLocalStates { s.p.Next = Next + return s } diff --git a/client/v2/indexer/lookupAccountAssets.go b/client/v2/indexer/lookupAccountAssets.go index c1330429..596181db 100644 --- a/client/v2/indexer/lookupAccountAssets.go +++ b/client/v2/indexer/lookupAccountAssets.go @@ -41,6 +41,7 @@ type LookupAccountAssets struct { // AssetID asset ID func (s *LookupAccountAssets) AssetID(AssetID uint64) *LookupAccountAssets { s.p.AssetID = AssetID + return s } @@ -49,6 +50,7 @@ func (s *LookupAccountAssets) AssetID(AssetID uint64) *LookupAccountAssets { // localstates. func (s *LookupAccountAssets) IncludeAll(IncludeAll bool) *LookupAccountAssets { s.p.IncludeAll = IncludeAll + return s } @@ -56,6 +58,7 @@ func (s *LookupAccountAssets) IncludeAll(IncludeAll bool) *LookupAccountAssets { // if the limit is not reached. func (s *LookupAccountAssets) Limit(Limit uint64) *LookupAccountAssets { s.p.Limit = Limit + return s } @@ -63,6 +66,7 @@ func (s *LookupAccountAssets) Limit(Limit uint64) *LookupAccountAssets { // results. func (s *LookupAccountAssets) Next(Next string) *LookupAccountAssets { s.p.Next = Next + return s } diff --git a/client/v2/indexer/lookupAccountByID.go b/client/v2/indexer/lookupAccountByID.go index 98beed73..930c5116 100644 --- a/client/v2/indexer/lookupAccountByID.go +++ b/client/v2/indexer/lookupAccountByID.go @@ -39,6 +39,7 @@ type LookupAccountByID struct { // application parameters created by this account. func (s *LookupAccountByID) Exclude(Exclude []string) *LookupAccountByID { s.p.Exclude = Exclude + return s } @@ -47,12 +48,14 @@ func (s *LookupAccountByID) Exclude(Exclude []string) *LookupAccountByID { // localstates. func (s *LookupAccountByID) IncludeAll(IncludeAll bool) *LookupAccountByID { s.p.IncludeAll = IncludeAll + return s } // Round include results for the specified round. func (s *LookupAccountByID) Round(Round uint64) *LookupAccountByID { s.p.Round = Round + return s } diff --git a/client/v2/indexer/lookupAccountCreatedApplications.go b/client/v2/indexer/lookupAccountCreatedApplications.go index cc22ace5..4852d251 100644 --- a/client/v2/indexer/lookupAccountCreatedApplications.go +++ b/client/v2/indexer/lookupAccountCreatedApplications.go @@ -41,6 +41,7 @@ type LookupAccountCreatedApplications struct { // ApplicationID application ID func (s *LookupAccountCreatedApplications) ApplicationID(ApplicationID uint64) *LookupAccountCreatedApplications { s.p.ApplicationID = ApplicationID + return s } @@ -49,6 +50,7 @@ func (s *LookupAccountCreatedApplications) ApplicationID(ApplicationID uint64) * // localstates. func (s *LookupAccountCreatedApplications) IncludeAll(IncludeAll bool) *LookupAccountCreatedApplications { s.p.IncludeAll = IncludeAll + return s } @@ -56,6 +58,7 @@ func (s *LookupAccountCreatedApplications) IncludeAll(IncludeAll bool) *LookupAc // if the limit is not reached. func (s *LookupAccountCreatedApplications) Limit(Limit uint64) *LookupAccountCreatedApplications { s.p.Limit = Limit + return s } @@ -63,6 +66,7 @@ func (s *LookupAccountCreatedApplications) Limit(Limit uint64) *LookupAccountCre // results. func (s *LookupAccountCreatedApplications) Next(Next string) *LookupAccountCreatedApplications { s.p.Next = Next + return s } diff --git a/client/v2/indexer/lookupAccountCreatedAssets.go b/client/v2/indexer/lookupAccountCreatedAssets.go index 7c74fc6d..d28f384c 100644 --- a/client/v2/indexer/lookupAccountCreatedAssets.go +++ b/client/v2/indexer/lookupAccountCreatedAssets.go @@ -41,6 +41,7 @@ type LookupAccountCreatedAssets struct { // AssetID asset ID func (s *LookupAccountCreatedAssets) AssetID(AssetID uint64) *LookupAccountCreatedAssets { s.p.AssetID = AssetID + return s } @@ -49,6 +50,7 @@ func (s *LookupAccountCreatedAssets) AssetID(AssetID uint64) *LookupAccountCreat // localstates. func (s *LookupAccountCreatedAssets) IncludeAll(IncludeAll bool) *LookupAccountCreatedAssets { s.p.IncludeAll = IncludeAll + return s } @@ -56,6 +58,7 @@ func (s *LookupAccountCreatedAssets) IncludeAll(IncludeAll bool) *LookupAccountC // if the limit is not reached. func (s *LookupAccountCreatedAssets) Limit(Limit uint64) *LookupAccountCreatedAssets { s.p.Limit = Limit + return s } @@ -63,6 +66,7 @@ func (s *LookupAccountCreatedAssets) Limit(Limit uint64) *LookupAccountCreatedAs // results. func (s *LookupAccountCreatedAssets) Next(Next string) *LookupAccountCreatedAssets { s.p.Next = Next + return s } diff --git a/client/v2/indexer/lookupAccountTransactions.go b/client/v2/indexer/lookupAccountTransactions.go index ba2296a2..c7b6aa09 100644 --- a/client/v2/indexer/lookupAccountTransactions.go +++ b/client/v2/indexer/lookupAccountTransactions.go @@ -84,6 +84,7 @@ type LookupAccountTransactions struct { // formatted string. func (s *LookupAccountTransactions) AfterTimeString(AfterTime string) *LookupAccountTransactions { s.p.AfterTime = AfterTime + return s } @@ -98,6 +99,7 @@ func (s *LookupAccountTransactions) AfterTime(AfterTime time.Time) *LookupAccoun // AssetID asset ID func (s *LookupAccountTransactions) AssetID(AssetID uint64) *LookupAccountTransactions { s.p.AssetID = AssetID + return s } @@ -105,6 +107,7 @@ func (s *LookupAccountTransactions) AssetID(AssetID uint64) *LookupAccountTransa // formatted string. func (s *LookupAccountTransactions) BeforeTimeString(BeforeTime string) *LookupAccountTransactions { s.p.BeforeTime = BeforeTime + return s } @@ -121,6 +124,7 @@ func (s *LookupAccountTransactions) BeforeTime(BeforeTime time.Time) *LookupAcco // case the asset will be used. func (s *LookupAccountTransactions) CurrencyGreaterThan(CurrencyGreaterThan uint64) *LookupAccountTransactions { s.p.CurrencyGreaterThan = CurrencyGreaterThan + return s } @@ -129,6 +133,7 @@ func (s *LookupAccountTransactions) CurrencyGreaterThan(CurrencyGreaterThan uint // will be used. func (s *LookupAccountTransactions) CurrencyLessThan(CurrencyLessThan uint64) *LookupAccountTransactions { s.p.CurrencyLessThan = CurrencyLessThan + return s } @@ -136,18 +141,21 @@ func (s *LookupAccountTransactions) CurrencyLessThan(CurrencyLessThan uint64) *L // if the limit is not reached. func (s *LookupAccountTransactions) Limit(Limit uint64) *LookupAccountTransactions { s.p.Limit = Limit + return s } // MaxRound include results at or before the specified max-round. func (s *LookupAccountTransactions) MaxRound(MaxRound uint64) *LookupAccountTransactions { s.p.MaxRound = MaxRound + return s } // MinRound include results at or after the specified min-round. func (s *LookupAccountTransactions) MinRound(MinRound uint64) *LookupAccountTransactions { s.p.MinRound = MinRound + return s } @@ -155,6 +163,7 @@ func (s *LookupAccountTransactions) MinRound(MinRound uint64) *LookupAccountTran // results. func (s *LookupAccountTransactions) NextToken(NextToken string) *LookupAccountTransactions { s.p.NextToken = NextToken + return s } @@ -168,12 +177,14 @@ func (s *LookupAccountTransactions) NotePrefix(NotePrefix []byte) *LookupAccount // RekeyTo include results which include the rekey-to field. func (s *LookupAccountTransactions) RekeyTo(RekeyTo bool) *LookupAccountTransactions { s.p.RekeyTo = RekeyTo + return s } // Round include results for the specified round. func (s *LookupAccountTransactions) Round(Round uint64) *LookupAccountTransactions { s.p.Round = Round + return s } @@ -183,18 +194,21 @@ func (s *LookupAccountTransactions) Round(Round uint64) *LookupAccountTransactio // * lsig - LogicSig func (s *LookupAccountTransactions) SigType(SigType string) *LookupAccountTransactions { s.p.SigType = SigType + return s } // TxType func (s *LookupAccountTransactions) TxType(TxType string) *LookupAccountTransactions { s.p.TxType = TxType + return s } // TXID lookup the specific transaction by ID. func (s *LookupAccountTransactions) TXID(TXID string) *LookupAccountTransactions { s.p.TXID = TXID + return s } diff --git a/client/v2/indexer/lookupApplicationByID.go b/client/v2/indexer/lookupApplicationByID.go index 8afda701..7e03f3f2 100644 --- a/client/v2/indexer/lookupApplicationByID.go +++ b/client/v2/indexer/lookupApplicationByID.go @@ -31,6 +31,7 @@ type LookupApplicationByID struct { // localstates. func (s *LookupApplicationByID) IncludeAll(IncludeAll bool) *LookupApplicationByID { s.p.IncludeAll = IncludeAll + return s } diff --git a/client/v2/indexer/lookupApplicationLogsByID.go b/client/v2/indexer/lookupApplicationLogsByID.go index b1d4d44b..ea416f46 100644 --- a/client/v2/indexer/lookupApplicationLogsByID.go +++ b/client/v2/indexer/lookupApplicationLogsByID.go @@ -45,18 +45,21 @@ type LookupApplicationLogsByID struct { // if the limit is not reached. func (s *LookupApplicationLogsByID) Limit(Limit uint64) *LookupApplicationLogsByID { s.p.Limit = Limit + return s } // MaxRound include results at or before the specified max-round. func (s *LookupApplicationLogsByID) MaxRound(MaxRound uint64) *LookupApplicationLogsByID { s.p.MaxRound = MaxRound + return s } // MinRound include results at or after the specified min-round. func (s *LookupApplicationLogsByID) MinRound(MinRound uint64) *LookupApplicationLogsByID { s.p.MinRound = MinRound + return s } @@ -64,18 +67,21 @@ func (s *LookupApplicationLogsByID) MinRound(MinRound uint64) *LookupApplication // results. func (s *LookupApplicationLogsByID) Next(Next string) *LookupApplicationLogsByID { s.p.Next = Next + return s } // SenderAddress only include transactions with this sender address. func (s *LookupApplicationLogsByID) SenderAddress(SenderAddress string) *LookupApplicationLogsByID { s.p.SenderAddress = SenderAddress + return s } // Txid lookup the specific transaction by ID. func (s *LookupApplicationLogsByID) Txid(Txid string) *LookupApplicationLogsByID { s.p.Txid = Txid + return s } diff --git a/client/v2/indexer/lookupAssetBalances.go b/client/v2/indexer/lookupAssetBalances.go index 738f10a1..7e2e845a 100644 --- a/client/v2/indexer/lookupAssetBalances.go +++ b/client/v2/indexer/lookupAssetBalances.go @@ -49,6 +49,7 @@ type LookupAssetBalances struct { // case the asset will be used. func (s *LookupAssetBalances) CurrencyGreaterThan(CurrencyGreaterThan uint64) *LookupAssetBalances { s.p.CurrencyGreaterThan = CurrencyGreaterThan + return s } @@ -57,6 +58,7 @@ func (s *LookupAssetBalances) CurrencyGreaterThan(CurrencyGreaterThan uint64) *L // will be used. func (s *LookupAssetBalances) CurrencyLessThan(CurrencyLessThan uint64) *LookupAssetBalances { s.p.CurrencyLessThan = CurrencyLessThan + return s } @@ -65,6 +67,7 @@ func (s *LookupAssetBalances) CurrencyLessThan(CurrencyLessThan uint64) *LookupA // localstates. func (s *LookupAssetBalances) IncludeAll(IncludeAll bool) *LookupAssetBalances { s.p.IncludeAll = IncludeAll + return s } @@ -72,6 +75,7 @@ func (s *LookupAssetBalances) IncludeAll(IncludeAll bool) *LookupAssetBalances { // if the limit is not reached. func (s *LookupAssetBalances) Limit(Limit uint64) *LookupAssetBalances { s.p.Limit = Limit + return s } @@ -79,6 +83,7 @@ func (s *LookupAssetBalances) Limit(Limit uint64) *LookupAssetBalances { // results. func (s *LookupAssetBalances) NextToken(NextToken string) *LookupAssetBalances { s.p.NextToken = NextToken + return s } diff --git a/client/v2/indexer/lookupAssetByID.go b/client/v2/indexer/lookupAssetByID.go index dbf2d55a..d020277c 100644 --- a/client/v2/indexer/lookupAssetByID.go +++ b/client/v2/indexer/lookupAssetByID.go @@ -31,6 +31,7 @@ type LookupAssetByID struct { // localstates. func (s *LookupAssetByID) IncludeAll(IncludeAll bool) *LookupAssetByID { s.p.IncludeAll = IncludeAll + return s } diff --git a/client/v2/indexer/lookupAssetTransactions.go b/client/v2/indexer/lookupAssetTransactions.go index 81ad96c2..6ded451c 100644 --- a/client/v2/indexer/lookupAssetTransactions.go +++ b/client/v2/indexer/lookupAssetTransactions.go @@ -94,6 +94,7 @@ type LookupAssetTransactions struct { // transaction fields. func (s *LookupAssetTransactions) AddressString(AddressString string) *LookupAssetTransactions { s.p.AddressString = AddressString + return s } @@ -101,6 +102,7 @@ func (s *LookupAssetTransactions) AddressString(AddressString string) *LookupAss // search for. func (s *LookupAssetTransactions) AddressRole(AddressRole string) *LookupAssetTransactions { s.p.AddressRole = AddressRole + return s } @@ -108,6 +110,7 @@ func (s *LookupAssetTransactions) AddressRole(AddressRole string) *LookupAssetTr // formatted string. func (s *LookupAssetTransactions) AfterTimeString(AfterTime string) *LookupAssetTransactions { s.p.AfterTime = AfterTime + return s } @@ -123,6 +126,7 @@ func (s *LookupAssetTransactions) AfterTime(AfterTime time.Time) *LookupAssetTra // formatted string. func (s *LookupAssetTransactions) BeforeTimeString(BeforeTime string) *LookupAssetTransactions { s.p.BeforeTime = BeforeTime + return s } @@ -139,6 +143,7 @@ func (s *LookupAssetTransactions) BeforeTime(BeforeTime time.Time) *LookupAssetT // case the asset will be used. func (s *LookupAssetTransactions) CurrencyGreaterThan(CurrencyGreaterThan uint64) *LookupAssetTransactions { s.p.CurrencyGreaterThan = CurrencyGreaterThan + return s } @@ -147,6 +152,7 @@ func (s *LookupAssetTransactions) CurrencyGreaterThan(CurrencyGreaterThan uint64 // will be used. func (s *LookupAssetTransactions) CurrencyLessThan(CurrencyLessThan uint64) *LookupAssetTransactions { s.p.CurrencyLessThan = CurrencyLessThan + return s } @@ -155,6 +161,7 @@ func (s *LookupAssetTransactions) CurrencyLessThan(CurrencyLessThan uint64) *Loo // receiver, if you would like to exclude them set this parameter to true. func (s *LookupAssetTransactions) ExcludeCloseTo(ExcludeCloseTo bool) *LookupAssetTransactions { s.p.ExcludeCloseTo = ExcludeCloseTo + return s } @@ -162,18 +169,21 @@ func (s *LookupAssetTransactions) ExcludeCloseTo(ExcludeCloseTo bool) *LookupAss // if the limit is not reached. func (s *LookupAssetTransactions) Limit(Limit uint64) *LookupAssetTransactions { s.p.Limit = Limit + return s } // MaxRound include results at or before the specified max-round. func (s *LookupAssetTransactions) MaxRound(MaxRound uint64) *LookupAssetTransactions { s.p.MaxRound = MaxRound + return s } // MinRound include results at or after the specified min-round. func (s *LookupAssetTransactions) MinRound(MinRound uint64) *LookupAssetTransactions { s.p.MinRound = MinRound + return s } @@ -181,6 +191,7 @@ func (s *LookupAssetTransactions) MinRound(MinRound uint64) *LookupAssetTransact // results. func (s *LookupAssetTransactions) NextToken(NextToken string) *LookupAssetTransactions { s.p.NextToken = NextToken + return s } @@ -194,12 +205,14 @@ func (s *LookupAssetTransactions) NotePrefix(NotePrefix []byte) *LookupAssetTran // RekeyTo include results which include the rekey-to field. func (s *LookupAssetTransactions) RekeyTo(RekeyTo bool) *LookupAssetTransactions { s.p.RekeyTo = RekeyTo + return s } // Round include results for the specified round. func (s *LookupAssetTransactions) Round(Round uint64) *LookupAssetTransactions { s.p.Round = Round + return s } @@ -209,18 +222,21 @@ func (s *LookupAssetTransactions) Round(Round uint64) *LookupAssetTransactions { // * lsig - LogicSig func (s *LookupAssetTransactions) SigType(SigType string) *LookupAssetTransactions { s.p.SigType = SigType + return s } // TxType func (s *LookupAssetTransactions) TxType(TxType string) *LookupAssetTransactions { s.p.TxType = TxType + return s } // TXID lookup the specific transaction by ID. func (s *LookupAssetTransactions) TXID(TXID string) *LookupAssetTransactions { s.p.TXID = TXID + return s } diff --git a/client/v2/indexer/lookupBlock.go b/client/v2/indexer/lookupBlock.go index b1f5a024..6f2f931b 100644 --- a/client/v2/indexer/lookupBlock.go +++ b/client/v2/indexer/lookupBlock.go @@ -29,6 +29,7 @@ type LookupBlock struct { // contain the transactions func (s *LookupBlock) HeaderOnly(HeaderOnly bool) *LookupBlock { s.p.HeaderOnly = HeaderOnly + return s } diff --git a/client/v2/indexer/searchForAccounts.go b/client/v2/indexer/searchForAccounts.go index bd8abadb..8085430d 100644 --- a/client/v2/indexer/searchForAccounts.go +++ b/client/v2/indexer/searchForAccounts.go @@ -66,18 +66,21 @@ type SearchAccounts struct { // ApplicationId application ID func (s *SearchAccounts) ApplicationId(ApplicationId uint64) *SearchAccounts { s.p.ApplicationId = ApplicationId + return s } // AssetID asset ID func (s *SearchAccounts) AssetID(AssetID uint64) *SearchAccounts { s.p.AssetID = AssetID + return s } // AuthAddress include accounts configured to use this spending key. func (s *SearchAccounts) AuthAddress(AuthAddress string) *SearchAccounts { s.p.AuthAddress = AuthAddress + return s } @@ -86,6 +89,7 @@ func (s *SearchAccounts) AuthAddress(AuthAddress string) *SearchAccounts { // case the asset will be used. func (s *SearchAccounts) CurrencyGreaterThan(CurrencyGreaterThan uint64) *SearchAccounts { s.p.CurrencyGreaterThan = CurrencyGreaterThan + return s } @@ -94,6 +98,7 @@ func (s *SearchAccounts) CurrencyGreaterThan(CurrencyGreaterThan uint64) *Search // will be used. func (s *SearchAccounts) CurrencyLessThan(CurrencyLessThan uint64) *SearchAccounts { s.p.CurrencyLessThan = CurrencyLessThan + return s } @@ -102,6 +107,7 @@ func (s *SearchAccounts) CurrencyLessThan(CurrencyLessThan uint64) *SearchAccoun // application parameters created by this account. func (s *SearchAccounts) Exclude(Exclude []string) *SearchAccounts { s.p.Exclude = Exclude + return s } @@ -110,6 +116,7 @@ func (s *SearchAccounts) Exclude(Exclude []string) *SearchAccounts { // localstates. func (s *SearchAccounts) IncludeAll(IncludeAll bool) *SearchAccounts { s.p.IncludeAll = IncludeAll + return s } @@ -117,6 +124,7 @@ func (s *SearchAccounts) IncludeAll(IncludeAll bool) *SearchAccounts { // if the limit is not reached. func (s *SearchAccounts) Limit(Limit uint64) *SearchAccounts { s.p.Limit = Limit + return s } @@ -124,6 +132,7 @@ func (s *SearchAccounts) Limit(Limit uint64) *SearchAccounts { // results. func (s *SearchAccounts) NextToken(NextToken string) *SearchAccounts { s.p.NextToken = NextToken + return s } @@ -135,6 +144,7 @@ func (s *SearchAccounts) NextToken(NextToken string) *SearchAccounts { // used. func (s *SearchAccounts) Round(Round uint64) *SearchAccounts { s.p.Round = Round + return s } diff --git a/client/v2/indexer/searchForApplications.go b/client/v2/indexer/searchForApplications.go index b16e3f54..dc29e96f 100644 --- a/client/v2/indexer/searchForApplications.go +++ b/client/v2/indexer/searchForApplications.go @@ -40,12 +40,14 @@ type SearchForApplications struct { // ApplicationId application ID func (s *SearchForApplications) ApplicationId(ApplicationId uint64) *SearchForApplications { s.p.ApplicationId = ApplicationId + return s } // Creator filter just applications with the given creator address. func (s *SearchForApplications) Creator(Creator string) *SearchForApplications { s.p.Creator = Creator + return s } @@ -54,6 +56,7 @@ func (s *SearchForApplications) Creator(Creator string) *SearchForApplications { // localstates. func (s *SearchForApplications) IncludeAll(IncludeAll bool) *SearchForApplications { s.p.IncludeAll = IncludeAll + return s } @@ -61,6 +64,7 @@ func (s *SearchForApplications) IncludeAll(IncludeAll bool) *SearchForApplicatio // if the limit is not reached. func (s *SearchForApplications) Limit(Limit uint64) *SearchForApplications { s.p.Limit = Limit + return s } @@ -68,6 +72,7 @@ func (s *SearchForApplications) Limit(Limit uint64) *SearchForApplications { // results. func (s *SearchForApplications) Next(Next string) *SearchForApplications { s.p.Next = Next + return s } diff --git a/client/v2/indexer/searchForAssets.go b/client/v2/indexer/searchForAssets.go index 06825668..ea014aa5 100644 --- a/client/v2/indexer/searchForAssets.go +++ b/client/v2/indexer/searchForAssets.go @@ -46,12 +46,14 @@ type SearchForAssets struct { // AssetID asset ID func (s *SearchForAssets) AssetID(AssetID uint64) *SearchForAssets { s.p.AssetID = AssetID + return s } // Creator filter just assets with the given creator address. func (s *SearchForAssets) Creator(Creator string) *SearchForAssets { s.p.Creator = Creator + return s } @@ -60,6 +62,7 @@ func (s *SearchForAssets) Creator(Creator string) *SearchForAssets { // localstates. func (s *SearchForAssets) IncludeAll(IncludeAll bool) *SearchForAssets { s.p.IncludeAll = IncludeAll + return s } @@ -67,12 +70,14 @@ func (s *SearchForAssets) IncludeAll(IncludeAll bool) *SearchForAssets { // if the limit is not reached. func (s *SearchForAssets) Limit(Limit uint64) *SearchForAssets { s.p.Limit = Limit + return s } // Name filter just assets with the given name. func (s *SearchForAssets) Name(Name string) *SearchForAssets { s.p.Name = Name + return s } @@ -80,12 +85,14 @@ func (s *SearchForAssets) Name(Name string) *SearchForAssets { // results. func (s *SearchForAssets) NextToken(NextToken string) *SearchForAssets { s.p.NextToken = NextToken + return s } // Unit filter just assets with the given unit. func (s *SearchForAssets) Unit(Unit string) *SearchForAssets { s.p.Unit = Unit + return s } diff --git a/client/v2/indexer/searchForTransactions.go b/client/v2/indexer/searchForTransactions.go index 2a04ada4..b57c0fa4 100644 --- a/client/v2/indexer/searchForTransactions.go +++ b/client/v2/indexer/searchForTransactions.go @@ -98,6 +98,7 @@ type SearchForTransactions struct { // transaction fields. func (s *SearchForTransactions) AddressString(AddressString string) *SearchForTransactions { s.p.AddressString = AddressString + return s } @@ -105,6 +106,7 @@ func (s *SearchForTransactions) AddressString(AddressString string) *SearchForTr // search for. func (s *SearchForTransactions) AddressRole(AddressRole string) *SearchForTransactions { s.p.AddressRole = AddressRole + return s } @@ -112,6 +114,7 @@ func (s *SearchForTransactions) AddressRole(AddressRole string) *SearchForTransa // formatted string. func (s *SearchForTransactions) AfterTimeString(AfterTime string) *SearchForTransactions { s.p.AfterTime = AfterTime + return s } @@ -126,12 +129,14 @@ func (s *SearchForTransactions) AfterTime(AfterTime time.Time) *SearchForTransac // ApplicationId application ID func (s *SearchForTransactions) ApplicationId(ApplicationId uint64) *SearchForTransactions { s.p.ApplicationId = ApplicationId + return s } // AssetID asset ID func (s *SearchForTransactions) AssetID(AssetID uint64) *SearchForTransactions { s.p.AssetID = AssetID + return s } @@ -139,6 +144,7 @@ func (s *SearchForTransactions) AssetID(AssetID uint64) *SearchForTransactions { // formatted string. func (s *SearchForTransactions) BeforeTimeString(BeforeTime string) *SearchForTransactions { s.p.BeforeTime = BeforeTime + return s } @@ -155,6 +161,7 @@ func (s *SearchForTransactions) BeforeTime(BeforeTime time.Time) *SearchForTrans // case the asset will be used. func (s *SearchForTransactions) CurrencyGreaterThan(CurrencyGreaterThan uint64) *SearchForTransactions { s.p.CurrencyGreaterThan = CurrencyGreaterThan + return s } @@ -163,6 +170,7 @@ func (s *SearchForTransactions) CurrencyGreaterThan(CurrencyGreaterThan uint64) // will be used. func (s *SearchForTransactions) CurrencyLessThan(CurrencyLessThan uint64) *SearchForTransactions { s.p.CurrencyLessThan = CurrencyLessThan + return s } @@ -171,6 +179,7 @@ func (s *SearchForTransactions) CurrencyLessThan(CurrencyLessThan uint64) *Searc // receiver, if you would like to exclude them set this parameter to true. func (s *SearchForTransactions) ExcludeCloseTo(ExcludeCloseTo bool) *SearchForTransactions { s.p.ExcludeCloseTo = ExcludeCloseTo + return s } @@ -178,18 +187,21 @@ func (s *SearchForTransactions) ExcludeCloseTo(ExcludeCloseTo bool) *SearchForTr // if the limit is not reached. func (s *SearchForTransactions) Limit(Limit uint64) *SearchForTransactions { s.p.Limit = Limit + return s } // MaxRound include results at or before the specified max-round. func (s *SearchForTransactions) MaxRound(MaxRound uint64) *SearchForTransactions { s.p.MaxRound = MaxRound + return s } // MinRound include results at or after the specified min-round. func (s *SearchForTransactions) MinRound(MinRound uint64) *SearchForTransactions { s.p.MinRound = MinRound + return s } @@ -197,6 +209,7 @@ func (s *SearchForTransactions) MinRound(MinRound uint64) *SearchForTransactions // results. func (s *SearchForTransactions) NextToken(NextToken string) *SearchForTransactions { s.p.NextToken = NextToken + return s } @@ -210,12 +223,14 @@ func (s *SearchForTransactions) NotePrefix(NotePrefix []byte) *SearchForTransact // RekeyTo include results which include the rekey-to field. func (s *SearchForTransactions) RekeyTo(RekeyTo bool) *SearchForTransactions { s.p.RekeyTo = RekeyTo + return s } // Round include results for the specified round. func (s *SearchForTransactions) Round(Round uint64) *SearchForTransactions { s.p.Round = Round + return s } @@ -225,18 +240,21 @@ func (s *SearchForTransactions) Round(Round uint64) *SearchForTransactions { // * lsig - LogicSig func (s *SearchForTransactions) SigType(SigType string) *SearchForTransactions { s.p.SigType = SigType + return s } // TxType func (s *SearchForTransactions) TxType(TxType string) *SearchForTransactions { s.p.TxType = TxType + return s } // TXID lookup the specific transaction by ID. func (s *SearchForTransactions) TXID(TXID string) *SearchForTransactions { s.p.TXID = TXID + return s }