Skip to content

Commit

Permalink
chore(spaceward): regen hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Pitasi committed Mar 8, 2024
1 parent c29a064 commit 3436404
Show file tree
Hide file tree
Showing 173 changed files with 26,866 additions and 26,817 deletions.
10 changes: 9 additions & 1 deletion spaceward/src/hooks/useWardenIntent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ export default function useWardenIntent() {
);
}

return {QueryParams,QueryActions,QueryIntents,QueryIntentById,QueryActionsByAddress,
const QueryActionById = (query: any, options: any) => {
const key = { type: 'QueryActionById', query };
return useQuery([key], () => {
const {query } = key
return client.WardenIntent.query.queryActionById(query ?? undefined).then( res => res.data );
}, options);
}

return {QueryParams,QueryActions,QueryIntents,QueryIntentById,QueryActionsByAddress,QueryActionById,
}
}
14 changes: 7 additions & 7 deletions spaceward/src/hooks/useWardenWarden/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ export default function useWardenWarden() {
);
}

const QuerySpaceByAddress = (query: any, options: any) => {
const key = { type: 'QuerySpaceByAddress', query };
const QuerySpaceById = (query: any, options: any) => {
const key = { type: 'QuerySpaceById', query };
return useQuery([key], () => {
const {query } = key
return client.WardenWarden.query.querySpaceByAddress(query ?? undefined).then( res => res.data );
return client.WardenWarden.query.querySpaceById(query ?? undefined).then( res => res.data );
}, options);
}

const QueryKeychainByAddress = (query: any, options: any) => {
const key = { type: 'QueryKeychainByAddress', query };
const QueryKeychainById = (query: any, options: any) => {
const key = { type: 'QueryKeychainById', query };
return useQuery([key], () => {
const {query } = key
return client.WardenWarden.query.queryKeychainByAddress(query ?? undefined).then( res => res.data );
return client.WardenWarden.query.queryKeychainById(query ?? undefined).then( res => res.data );
}, options);
}

Expand Down Expand Up @@ -163,6 +163,6 @@ export default function useWardenWarden() {
}, options);
}

return {QueryParams,QuerySpaces,QuerySpacesByOwner,QueryKeychains,QuerySpaceByAddress,QueryKeychainByAddress,QueryKeyRequests,QueryKeyRequestById,QueryKeys,QuerySignatureRequests,QuerySignatureRequestById,QuerySignTransactionRequests,QuerySignTransactionRequestById,
return {QueryParams,QuerySpaces,QuerySpacesByOwner,QueryKeychains,QuerySpaceById,QueryKeychainById,QueryKeyRequests,QueryKeyRequestById,QueryKeys,QuerySignatureRequests,QuerySignatureRequestById,QuerySignTransactionRequests,QuerySignTransactionRequestById,
}
}
Loading

0 comments on commit 3436404

Please sign in to comment.