Skip to content

Commit fd035a4

Browse files
committed
Update snapshots
1 parent 970fd40 commit fd035a4

File tree

2 files changed

+66
-66
lines changed

2 files changed

+66
-66
lines changed

packages/ast/__tests__/message-builder/__snapshots__/message-builder.test.ts.snap

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ exports[`execute class 1`] = `
99
transfer_nft: unknown;
1010
}>["transfer_nft"]>): ExecuteMsg_for_Empty => {
1111
return {
12-
transfer_nft: ({
12+
transfer_nft: {
1313
recipient,
1414
token_id: tokenId
15-
} as const)
15+
} as const
1616
};
1717
};
1818
static sendNft = ({
@@ -23,11 +23,11 @@ exports[`execute class 1`] = `
2323
send_nft: unknown;
2424
}>["send_nft"]>): ExecuteMsg_for_Empty => {
2525
return {
26-
send_nft: ({
26+
send_nft: {
2727
contract,
2828
msg,
2929
token_id: tokenId
30-
} as const)
30+
} as const
3131
};
3232
};
3333
static approve = ({
@@ -38,11 +38,11 @@ exports[`execute class 1`] = `
3838
approve: unknown;
3939
}>["approve"]>): ExecuteMsg_for_Empty => {
4040
return {
41-
approve: ({
41+
approve: {
4242
expires,
4343
spender,
4444
token_id: tokenId
45-
} as const)
45+
} as const
4646
};
4747
};
4848
static revoke = ({
@@ -52,10 +52,10 @@ exports[`execute class 1`] = `
5252
revoke: unknown;
5353
}>["revoke"]>): ExecuteMsg_for_Empty => {
5454
return {
55-
revoke: ({
55+
revoke: {
5656
spender,
5757
token_id: tokenId
58-
} as const)
58+
} as const
5959
};
6060
};
6161
static approveAll = ({
@@ -65,10 +65,10 @@ exports[`execute class 1`] = `
6565
approve_all: unknown;
6666
}>["approve_all"]>): ExecuteMsg_for_Empty => {
6767
return {
68-
approve_all: ({
68+
approve_all: {
6969
expires,
7070
operator
71-
} as const)
71+
} as const
7272
};
7373
};
7474
static revokeAll = ({
@@ -77,9 +77,9 @@ exports[`execute class 1`] = `
7777
revoke_all: unknown;
7878
}>["revoke_all"]>): ExecuteMsg_for_Empty => {
7979
return {
80-
revoke_all: ({
80+
revoke_all: {
8181
operator
82-
} as const)
82+
} as const
8383
};
8484
};
8585
static mint = ({
@@ -91,12 +91,12 @@ exports[`execute class 1`] = `
9191
mint: unknown;
9292
}>["mint"]>): ExecuteMsg_for_Empty => {
9393
return {
94-
mint: ({
94+
mint: {
9595
extension,
9696
owner,
9797
token_id: tokenId,
9898
token_uri: tokenUri
99-
} as const)
99+
} as const
100100
};
101101
};
102102
static burn = ({
@@ -105,9 +105,9 @@ exports[`execute class 1`] = `
105105
burn: unknown;
106106
}>["burn"]>): ExecuteMsg_for_Empty => {
107107
return {
108-
burn: ({
108+
burn: {
109109
token_id: tokenId
110-
} as const)
110+
} as const
111111
};
112112
};
113113
}"
@@ -121,9 +121,9 @@ exports[`ownership 1`] = `
121121
set_factory: unknown;
122122
}>["set_factory"]>): ExecuteMsg => {
123123
return {
124-
set_factory: ({
124+
set_factory: {
125125
new_factory: newFactory
126-
} as const)
126+
} as const
127127
};
128128
};
129129
static updateOwnership = (action: Action): ExecuteMsg => {
@@ -143,10 +143,10 @@ exports[`query class 1`] = `
143143
owner_of: unknown;
144144
}>["owner_of"]>): QueryMsg => {
145145
return {
146-
owner_of: ({
146+
owner_of: {
147147
include_expired: includeExpired,
148148
token_id: tokenId
149-
} as const)
149+
} as const
150150
};
151151
};
152152
static approval = ({
@@ -157,11 +157,11 @@ exports[`query class 1`] = `
157157
approval: unknown;
158158
}>["approval"]>): QueryMsg => {
159159
return {
160-
approval: ({
160+
approval: {
161161
include_expired: includeExpired,
162162
spender,
163163
token_id: tokenId
164-
} as const)
164+
} as const
165165
};
166166
};
167167
static approvals = ({
@@ -171,10 +171,10 @@ exports[`query class 1`] = `
171171
approvals: unknown;
172172
}>["approvals"]>): QueryMsg => {
173173
return {
174-
approvals: ({
174+
approvals: {
175175
include_expired: includeExpired,
176176
token_id: tokenId
177-
} as const)
177+
} as const
178178
};
179179
};
180180
static allOperators = ({
@@ -186,22 +186,22 @@ exports[`query class 1`] = `
186186
all_operators: unknown;
187187
}>["all_operators"]>): QueryMsg => {
188188
return {
189-
all_operators: ({
189+
all_operators: {
190190
include_expired: includeExpired,
191191
limit,
192192
owner,
193193
start_after: startAfter
194-
} as const)
194+
} as const
195195
};
196196
};
197197
static numTokens = (): QueryMsg => {
198198
return {
199-
num_tokens: ({} as const)
199+
num_tokens: {} as const
200200
};
201201
};
202202
static contractInfo = (): QueryMsg => {
203203
return {
204-
contract_info: ({} as const)
204+
contract_info: {} as const
205205
};
206206
};
207207
static nftInfo = ({
@@ -210,9 +210,9 @@ exports[`query class 1`] = `
210210
nft_info: unknown;
211211
}>["nft_info"]>): QueryMsg => {
212212
return {
213-
nft_info: ({
213+
nft_info: {
214214
token_id: tokenId
215-
} as const)
215+
} as const
216216
};
217217
};
218218
static allNftInfo = ({
@@ -222,10 +222,10 @@ exports[`query class 1`] = `
222222
all_nft_info: unknown;
223223
}>["all_nft_info"]>): QueryMsg => {
224224
return {
225-
all_nft_info: ({
225+
all_nft_info: {
226226
include_expired: includeExpired,
227227
token_id: tokenId
228-
} as const)
228+
} as const
229229
};
230230
};
231231
static tokens = ({
@@ -236,11 +236,11 @@ exports[`query class 1`] = `
236236
tokens: unknown;
237237
}>["tokens"]>): QueryMsg => {
238238
return {
239-
tokens: ({
239+
tokens: {
240240
limit,
241241
owner,
242242
start_after: startAfter
243-
} as const)
243+
} as const
244244
};
245245
};
246246
static allTokens = ({
@@ -250,20 +250,20 @@ exports[`query class 1`] = `
250250
all_tokens: unknown;
251251
}>["all_tokens"]>): QueryMsg => {
252252
return {
253-
all_tokens: ({
253+
all_tokens: {
254254
limit,
255255
start_after: startAfter
256-
} as const)
256+
} as const
257257
};
258258
};
259259
static minter = (): QueryMsg => {
260260
return {
261-
minter: ({} as const)
261+
minter: {} as const
262262
};
263263
};
264264
static collectionInfo = (): QueryMsg => {
265265
return {
266-
collection_info: ({} as const)
266+
collection_info: {} as const
267267
};
268268
};
269269
}"

packages/ast/__tests__/react-query/__snapshots__/react-query.test.ts.snap

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -754,73 +754,73 @@ export function useSg721OwnerOfQuery<TData = OwnerOfResponse>({
754754

755755
exports[`createReactQueryHooks 5`] = `
756756
"export const sg721QueryKeys = {
757-
contract: ([{
757+
contract: [{
758758
contract: "sg721"
759-
}] as const),
760-
address: (contractAddress: string | undefined) => ([{
759+
}] as const,
760+
address: (contractAddress: string | undefined) => [{
761761
...sg721QueryKeys.contract[0],
762762
address: contractAddress
763-
}] as const),
764-
ownerOf: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
763+
}] as const,
764+
ownerOf: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
765765
...sg721QueryKeys.address(contractAddress)[0],
766766
method: "owner_of",
767767
args
768-
}] as const),
769-
approval: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
768+
}] as const,
769+
approval: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
770770
...sg721QueryKeys.address(contractAddress)[0],
771771
method: "approval",
772772
args
773-
}] as const),
774-
approvals: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
773+
}] as const,
774+
approvals: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
775775
...sg721QueryKeys.address(contractAddress)[0],
776776
method: "approvals",
777777
args
778-
}] as const),
779-
allOperators: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
778+
}] as const,
779+
allOperators: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
780780
...sg721QueryKeys.address(contractAddress)[0],
781781
method: "all_operators",
782782
args
783-
}] as const),
784-
numTokens: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
783+
}] as const,
784+
numTokens: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
785785
...sg721QueryKeys.address(contractAddress)[0],
786786
method: "num_tokens",
787787
args
788-
}] as const),
789-
contractInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
788+
}] as const,
789+
contractInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
790790
...sg721QueryKeys.address(contractAddress)[0],
791791
method: "contract_info",
792792
args
793-
}] as const),
794-
nftInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
793+
}] as const,
794+
nftInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
795795
...sg721QueryKeys.address(contractAddress)[0],
796796
method: "nft_info",
797797
args
798-
}] as const),
799-
allNftInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
798+
}] as const,
799+
allNftInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
800800
...sg721QueryKeys.address(contractAddress)[0],
801801
method: "all_nft_info",
802802
args
803-
}] as const),
804-
tokens: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
803+
}] as const,
804+
tokens: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
805805
...sg721QueryKeys.address(contractAddress)[0],
806806
method: "tokens",
807807
args
808-
}] as const),
809-
allTokens: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
808+
}] as const,
809+
allTokens: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
810810
...sg721QueryKeys.address(contractAddress)[0],
811811
method: "all_tokens",
812812
args
813-
}] as const),
814-
minter: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
813+
}] as const,
814+
minter: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
815815
...sg721QueryKeys.address(contractAddress)[0],
816816
method: "minter",
817817
args
818-
}] as const),
819-
collectionInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => ([{
818+
}] as const,
819+
collectionInfo: (contractAddress: string | undefined, args?: Record<string, unknown>) => [{
820820
...sg721QueryKeys.address(contractAddress)[0],
821821
method: "collection_info",
822822
args
823-
}] as const)
823+
}] as const
824824
};
825825
export const sg721Queries = {
826826
ownerOf: <TData = OwnerOfResponse,>({

0 commit comments

Comments
 (0)