1
+ /**
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@latest.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
+ */
6
+
7
+ import { Addr , PaymentInfo , Uint128 , ConfigResponse , ExecuteMsg , Binary , Cw20ReceiveMsg , GetRegistrationResponse , Registration , InfoForCodeIdResponse , InstantiateMsg , ListRegistrationsResponse , QueryMsg , ReceiveMsg } from "./CwCodeIdRegistry.types" ;
8
+ import { CamelCasedProperties } from "type-fest" ;
9
+ export abstract class CwCodeIdRegistryExecuteMessageBuilder {
10
+ static receive = ( {
11
+ amount,
12
+ msg,
13
+ sender
14
+ } : CamelCasedProperties < Extract < ExecuteMsg , {
15
+ receive : unknown ;
16
+ } > [ "receive" ] > ) : ExecuteMsg => {
17
+ return {
18
+ receive : ( {
19
+ amount,
20
+ msg,
21
+ sender
22
+ } as const )
23
+ } ;
24
+ } ;
25
+ static register = ( {
26
+ chainId,
27
+ checksum,
28
+ codeId,
29
+ name,
30
+ version
31
+ } : CamelCasedProperties < Extract < ExecuteMsg , {
32
+ register : unknown ;
33
+ } > [ "register" ] > ) : ExecuteMsg => {
34
+ return {
35
+ register : ( {
36
+ chain_id : chainId ,
37
+ checksum,
38
+ code_id : codeId ,
39
+ name,
40
+ version
41
+ } as const )
42
+ } ;
43
+ } ;
44
+ static setOwner = ( {
45
+ chainId,
46
+ name,
47
+ owner
48
+ } : CamelCasedProperties < Extract < ExecuteMsg , {
49
+ set_owner : unknown ;
50
+ } > [ "set_owner" ] > ) : ExecuteMsg => {
51
+ return {
52
+ set_owner : ( {
53
+ chain_id : chainId ,
54
+ name,
55
+ owner
56
+ } as const )
57
+ } ;
58
+ } ;
59
+ static unregister = ( {
60
+ chainId,
61
+ codeId
62
+ } : CamelCasedProperties < Extract < ExecuteMsg , {
63
+ unregister : unknown ;
64
+ } > [ "unregister" ] > ) : ExecuteMsg => {
65
+ return {
66
+ unregister : ( {
67
+ chain_id : chainId ,
68
+ code_id : codeId
69
+ } as const )
70
+ } ;
71
+ } ;
72
+ static updateConfig = ( {
73
+ admin,
74
+ paymentInfo
75
+ } : CamelCasedProperties < Extract < ExecuteMsg , {
76
+ update_config : unknown ;
77
+ } > [ "update_config" ] > ) : ExecuteMsg => {
78
+ return {
79
+ update_config : ( {
80
+ admin,
81
+ payment_info : paymentInfo
82
+ } as const )
83
+ } ;
84
+ } ;
85
+ }
86
+ export abstract class CwCodeIdRegistryQueryMessageBuilder {
87
+ static config = ( ) : QueryMsg => {
88
+ return {
89
+ config : ( { } as const )
90
+ } ;
91
+ } ;
92
+ static getRegistration = ( {
93
+ chainId,
94
+ name,
95
+ version
96
+ } : CamelCasedProperties < Extract < QueryMsg , {
97
+ get_registration : unknown ;
98
+ } > [ "get_registration" ] > ) : QueryMsg => {
99
+ return {
100
+ get_registration : ( {
101
+ chain_id : chainId ,
102
+ name,
103
+ version
104
+ } as const )
105
+ } ;
106
+ } ;
107
+ static infoForCodeId = ( {
108
+ chainId,
109
+ codeId
110
+ } : CamelCasedProperties < Extract < QueryMsg , {
111
+ info_for_code_id : unknown ;
112
+ } > [ "info_for_code_id" ] > ) : QueryMsg => {
113
+ return {
114
+ info_for_code_id : ( {
115
+ chain_id : chainId ,
116
+ code_id : codeId
117
+ } as const )
118
+ } ;
119
+ } ;
120
+ static listRegistrations = ( {
121
+ chainId,
122
+ name
123
+ } : CamelCasedProperties < Extract < QueryMsg , {
124
+ list_registrations : unknown ;
125
+ } > [ "list_registrations" ] > ) : QueryMsg => {
126
+ return {
127
+ list_registrations : ( {
128
+ chain_id : chainId ,
129
+ name
130
+ } as const )
131
+ } ;
132
+ } ;
133
+ }
0 commit comments