@@ -7,10 +7,10 @@ import { msgTypes } from './registry';
7
7
import { IgniteClient } from "../client"
8
8
import { MissingWalletError } from "../helpers"
9
9
import { Api } from "./rest" ;
10
- import { MsgUpdateComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" ;
11
- import { MsgCertifyModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" ;
12
10
import { MsgDeleteComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" ;
11
+ import { MsgCertifyModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" ;
13
12
import { MsgProvisionModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" ;
13
+ import { MsgUpdateComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" ;
14
14
import { MsgRevokeModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" ;
15
15
16
16
import { CertifiedModel as typeCertifiedModel } from "./types"
@@ -20,10 +20,10 @@ import { DeviceSoftwareCompliance as typeDeviceSoftwareCompliance} from "./types
20
20
import { ProvisionalModel as typeProvisionalModel } from "./types"
21
21
import { RevokedModel as typeRevokedModel } from "./types"
22
22
23
- export { MsgUpdateComplianceInfo , MsgCertifyModel , MsgDeleteComplianceInfo , MsgProvisionModel , MsgRevokeModel } ;
23
+ export { MsgDeleteComplianceInfo , MsgCertifyModel , MsgProvisionModel , MsgUpdateComplianceInfo , MsgRevokeModel } ;
24
24
25
- type sendMsgUpdateComplianceInfoParams = {
26
- value : MsgUpdateComplianceInfo ,
25
+ type sendMsgDeleteComplianceInfoParams = {
26
+ value : MsgDeleteComplianceInfo ,
27
27
fee ?: StdFee ,
28
28
memo ?: string
29
29
} ;
@@ -34,14 +34,14 @@ type sendMsgCertifyModelParams = {
34
34
memo ?: string
35
35
} ;
36
36
37
- type sendMsgDeleteComplianceInfoParams = {
38
- value : MsgDeleteComplianceInfo ,
37
+ type sendMsgProvisionModelParams = {
38
+ value : MsgProvisionModel ,
39
39
fee ?: StdFee ,
40
40
memo ?: string
41
41
} ;
42
42
43
- type sendMsgProvisionModelParams = {
44
- value : MsgProvisionModel ,
43
+ type sendMsgUpdateComplianceInfoParams = {
44
+ value : MsgUpdateComplianceInfo ,
45
45
fee ?: StdFee ,
46
46
memo ?: string
47
47
} ;
@@ -53,22 +53,22 @@ type sendMsgRevokeModelParams = {
53
53
} ;
54
54
55
55
56
- type msgUpdateComplianceInfoParams = {
57
- value : MsgUpdateComplianceInfo ,
56
+ type msgDeleteComplianceInfoParams = {
57
+ value : MsgDeleteComplianceInfo ,
58
58
} ;
59
59
60
60
type msgCertifyModelParams = {
61
61
value : MsgCertifyModel ,
62
62
} ;
63
63
64
- type msgDeleteComplianceInfoParams = {
65
- value : MsgDeleteComplianceInfo ,
66
- } ;
67
-
68
64
type msgProvisionModelParams = {
69
65
value : MsgProvisionModel ,
70
66
} ;
71
67
68
+ type msgUpdateComplianceInfoParams = {
69
+ value : MsgUpdateComplianceInfo ,
70
+ } ;
71
+
72
72
type msgRevokeModelParams = {
73
73
value : MsgRevokeModel ,
74
74
} ;
@@ -103,17 +103,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
103
103
104
104
return {
105
105
106
- async sendMsgUpdateComplianceInfo ( { value, fee, memo } : sendMsgUpdateComplianceInfoParams ) : Promise < DeliverTxResponse > {
106
+ async sendMsgDeleteComplianceInfo ( { value, fee, memo } : sendMsgDeleteComplianceInfoParams ) : Promise < DeliverTxResponse > {
107
107
if ( ! signer ) {
108
- throw new Error ( 'TxClient:sendMsgUpdateComplianceInfo : Unable to sign Tx. Signer is not present.' )
108
+ throw new Error ( 'TxClient:sendMsgDeleteComplianceInfo : Unable to sign Tx. Signer is not present.' )
109
109
}
110
110
try {
111
111
const { address } = ( await signer . getAccounts ( ) ) [ 0 ] ;
112
112
const signingClient = await SigningStargateClient . connectWithSigner ( addr , signer , { registry, prefix} ) ;
113
- let msg = this . msgUpdateComplianceInfo ( { value : MsgUpdateComplianceInfo . fromPartial ( value ) } )
113
+ let msg = this . msgDeleteComplianceInfo ( { value : MsgDeleteComplianceInfo . fromPartial ( value ) } )
114
114
return await signingClient . signAndBroadcast ( address , [ msg ] , fee ? fee : defaultFee , memo )
115
115
} catch ( e : any ) {
116
- throw new Error ( 'TxClient:sendMsgUpdateComplianceInfo : Could not broadcast Tx: ' + e . message )
116
+ throw new Error ( 'TxClient:sendMsgDeleteComplianceInfo : Could not broadcast Tx: ' + e . message )
117
117
}
118
118
} ,
119
119
@@ -131,31 +131,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
131
131
}
132
132
} ,
133
133
134
- async sendMsgDeleteComplianceInfo ( { value, fee, memo } : sendMsgDeleteComplianceInfoParams ) : Promise < DeliverTxResponse > {
134
+ async sendMsgProvisionModel ( { value, fee, memo } : sendMsgProvisionModelParams ) : Promise < DeliverTxResponse > {
135
135
if ( ! signer ) {
136
- throw new Error ( 'TxClient:sendMsgDeleteComplianceInfo : Unable to sign Tx. Signer is not present.' )
136
+ throw new Error ( 'TxClient:sendMsgProvisionModel : Unable to sign Tx. Signer is not present.' )
137
137
}
138
138
try {
139
139
const { address } = ( await signer . getAccounts ( ) ) [ 0 ] ;
140
140
const signingClient = await SigningStargateClient . connectWithSigner ( addr , signer , { registry, prefix} ) ;
141
- let msg = this . msgDeleteComplianceInfo ( { value : MsgDeleteComplianceInfo . fromPartial ( value ) } )
141
+ let msg = this . msgProvisionModel ( { value : MsgProvisionModel . fromPartial ( value ) } )
142
142
return await signingClient . signAndBroadcast ( address , [ msg ] , fee ? fee : defaultFee , memo )
143
143
} catch ( e : any ) {
144
- throw new Error ( 'TxClient:sendMsgDeleteComplianceInfo : Could not broadcast Tx: ' + e . message )
144
+ throw new Error ( 'TxClient:sendMsgProvisionModel : Could not broadcast Tx: ' + e . message )
145
145
}
146
146
} ,
147
147
148
- async sendMsgProvisionModel ( { value, fee, memo } : sendMsgProvisionModelParams ) : Promise < DeliverTxResponse > {
148
+ async sendMsgUpdateComplianceInfo ( { value, fee, memo } : sendMsgUpdateComplianceInfoParams ) : Promise < DeliverTxResponse > {
149
149
if ( ! signer ) {
150
- throw new Error ( 'TxClient:sendMsgProvisionModel : Unable to sign Tx. Signer is not present.' )
150
+ throw new Error ( 'TxClient:sendMsgUpdateComplianceInfo : Unable to sign Tx. Signer is not present.' )
151
151
}
152
152
try {
153
153
const { address } = ( await signer . getAccounts ( ) ) [ 0 ] ;
154
154
const signingClient = await SigningStargateClient . connectWithSigner ( addr , signer , { registry, prefix} ) ;
155
- let msg = this . msgProvisionModel ( { value : MsgProvisionModel . fromPartial ( value ) } )
155
+ let msg = this . msgUpdateComplianceInfo ( { value : MsgUpdateComplianceInfo . fromPartial ( value ) } )
156
156
return await signingClient . signAndBroadcast ( address , [ msg ] , fee ? fee : defaultFee , memo )
157
157
} catch ( e : any ) {
158
- throw new Error ( 'TxClient:sendMsgProvisionModel : Could not broadcast Tx: ' + e . message )
158
+ throw new Error ( 'TxClient:sendMsgUpdateComplianceInfo : Could not broadcast Tx: ' + e . message )
159
159
}
160
160
} ,
161
161
@@ -174,11 +174,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
174
174
} ,
175
175
176
176
177
- msgUpdateComplianceInfo ( { value } : msgUpdateComplianceInfoParams ) : EncodeObject {
177
+ msgDeleteComplianceInfo ( { value } : msgDeleteComplianceInfoParams ) : EncodeObject {
178
178
try {
179
- return { typeUrl : "/zigbeealliance.distributedcomplianceledger.compliance.MsgUpdateComplianceInfo " , value : MsgUpdateComplianceInfo . fromPartial ( value ) }
179
+ return { typeUrl : "/zigbeealliance.distributedcomplianceledger.compliance.MsgDeleteComplianceInfo " , value : MsgDeleteComplianceInfo . fromPartial ( value ) }
180
180
} catch ( e : any ) {
181
- throw new Error ( 'TxClient:MsgUpdateComplianceInfo : Could not create message: ' + e . message )
181
+ throw new Error ( 'TxClient:MsgDeleteComplianceInfo : Could not create message: ' + e . message )
182
182
}
183
183
} ,
184
184
@@ -190,19 +190,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
190
190
}
191
191
} ,
192
192
193
- msgDeleteComplianceInfo ( { value } : msgDeleteComplianceInfoParams ) : EncodeObject {
193
+ msgProvisionModel ( { value } : msgProvisionModelParams ) : EncodeObject {
194
194
try {
195
- return { typeUrl : "/zigbeealliance.distributedcomplianceledger.compliance.MsgDeleteComplianceInfo " , value : MsgDeleteComplianceInfo . fromPartial ( value ) }
195
+ return { typeUrl : "/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel " , value : MsgProvisionModel . fromPartial ( value ) }
196
196
} catch ( e : any ) {
197
- throw new Error ( 'TxClient:MsgDeleteComplianceInfo : Could not create message: ' + e . message )
197
+ throw new Error ( 'TxClient:MsgProvisionModel : Could not create message: ' + e . message )
198
198
}
199
199
} ,
200
200
201
- msgProvisionModel ( { value } : msgProvisionModelParams ) : EncodeObject {
201
+ msgUpdateComplianceInfo ( { value } : msgUpdateComplianceInfoParams ) : EncodeObject {
202
202
try {
203
- return { typeUrl : "/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel " , value : MsgProvisionModel . fromPartial ( value ) }
203
+ return { typeUrl : "/zigbeealliance.distributedcomplianceledger.compliance.MsgUpdateComplianceInfo " , value : MsgUpdateComplianceInfo . fromPartial ( value ) }
204
204
} catch ( e : any ) {
205
- throw new Error ( 'TxClient:MsgProvisionModel : Could not create message: ' + e . message )
205
+ throw new Error ( 'TxClient:MsgUpdateComplianceInfo : Could not create message: ' + e . message )
206
206
}
207
207
} ,
208
208
0 commit comments