@@ -126,11 +126,7 @@ var setOCR3ConfigHandler = func(b cld_ops.Bundle, deps sui_ops.OpTxDeps, input S
126126		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, err 
127127	}
128128
129- 	opts  :=  deps .GetCallOpts ()
130- 	opts .Signer  =  deps .Signer 
131- 	tx , err  :=  offRampPackage .SetOcr3Config (
132- 		b .GetContext (),
133- 		opts ,
129+ 	encodedCall , err  :=  offRampPackage .Encoder ().SetOcr3Config (
134130		bind.Object {Id : input .CCIPObjectRefId },
135131		bind.Object {Id : input .OffRampStateId },
136132		bind.Object {Id : input .OwnerCapObjectId },
@@ -142,25 +138,52 @@ var setOCR3ConfigHandler = func(b cld_ops.Bundle, deps sui_ops.OpTxDeps, input S
142138		input .Transmitters ,
143139	)
144140	if  err  !=  nil  {
145- 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to execute set ocr3 config in offramp: %w" , err )
141+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to encode SetOcr3Config call: %w" , err )
142+ 	}
143+ 	call , err  :=  sui_ops .ToTransactionCall (encodedCall , input .OffRampStateId )
144+ 	if  err  !=  nil  {
145+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to convert encoded call to TransactionCall: %w" , err )
146+ 	}
147+ 	if  deps .Signer  ==  nil  {
148+ 		b .Logger .Infow ("Skipping execution of SetOcr3Config on OffRamp as per no Signer provided" )
149+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{
150+ 			Digest :    "" ,
151+ 			PackageId : input .OffRampPackageId ,
152+ 			Objects :   DeployCCIPOffRampObjects {},
153+ 			Call :      call ,
154+ 		}, nil 
146155	}
147156
157+ 	opts  :=  deps .GetCallOpts ()
158+ 	opts .Signer  =  deps .Signer 
159+ 	tx , err  :=  offRampPackage .Bound ().ExecuteTransaction (
160+ 		b .GetContext (),
161+ 		opts ,
162+ 		encodedCall ,
163+ 	)
164+ 	if  err  !=  nil  {
165+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to execute SetOcr3Config on OffRamp: %w" , err )
166+ 	}
167+ 
168+ 	b .Logger .Infow ("OCR3 config set on OffRamp" )
169+ 
148170	return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{
149171		Digest :    tx .Digest ,
150172		PackageId : input .OffRampPackageId ,
151173		Objects :   DeployCCIPOffRampObjects {},
152- 	}, err 
174+ 		Call :      call ,
175+ 	}, nil 
153176}
154177
155178type  ApplySourceChainConfigUpdateInput  struct  {
156- 	CCIPObjectRef                         string 
157- 	OffRampPackageId                      string 
158- 	OffRampStateId                        string 
159- 	OwnerCapObjectId                      string 
160- 	SourceChainsSelectors                 []uint64 
161- 	SourceChainsIsEnabled                 []bool 
162- 	SouceChainsIsRMNVerificationDisabled  []bool 
163- 	SourceChainsOnRamp                    [][]byte 
179+ 	CCIPObjectRef                           string 
180+ 	OffRampPackageId                        string 
181+ 	OffRampStateId                          string 
182+ 	OwnerCapObjectId                        string 
183+ 	SourceChainsSelectors                   []uint64 
184+ 	SourceChainsIsEnabled                   []bool 
185+ 	SourceChainsIsRMNVerificationDisabled  []bool 
186+ 	SourceChainsOnRamp                      [][]byte 
164187}
165188
166189var  applySourceChainConfigUpdateHandler  =  func (b  cld_ops.Bundle , deps  sui_ops.OpTxDeps , input  ApplySourceChainConfigUpdateInput ) (output  sui_ops.OpTxResult [DeployCCIPOffRampObjects ], err  error ) {
@@ -169,28 +192,51 @@ var applySourceChainConfigUpdateHandler = func(b cld_ops.Bundle, deps sui_ops.Op
169192		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, err 
170193	}
171194
172- 	opts  :=  deps .GetCallOpts ()
173- 	opts .Signer  =  deps .Signer 
174- 	tx , err  :=  offRampPackage .ApplySourceChainConfigUpdates (
175- 		b .GetContext (),
176- 		opts ,
195+ 	encodedCall , err  :=  offRampPackage .Encoder ().ApplySourceChainConfigUpdates (
177196		bind.Object {Id : input .CCIPObjectRef },
178197		bind.Object {Id : input .OffRampStateId },
179198		bind.Object {Id : input .OwnerCapObjectId },
180199		input .SourceChainsSelectors ,
181200		input .SourceChainsIsEnabled ,
182- 		input .SouceChainsIsRMNVerificationDisabled ,
201+ 		input .SourceChainsIsRMNVerificationDisabled ,
183202		input .SourceChainsOnRamp ,
184203	)
185204	if  err  !=  nil  {
186- 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to execute applySourceChainConfigUpdate in offramp: %w" , err )
205+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to encode ApplySourceChainConfigUpdates call: %w" , err )
206+ 	}
207+ 	call , err  :=  sui_ops .ToTransactionCall (encodedCall , input .OffRampStateId )
208+ 	if  err  !=  nil  {
209+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to convert encoded call to TransactionCall: %w" , err )
210+ 	}
211+ 	if  deps .Signer  ==  nil  {
212+ 		b .Logger .Infow ("Skipping execution of ApplySourceChainConfigUpdates on OffRamp as per no Signer provided" )
213+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{
214+ 			Digest :    "" ,
215+ 			PackageId : input .OffRampPackageId ,
216+ 			Objects :   DeployCCIPOffRampObjects {},
217+ 			Call :      call ,
218+ 		}, nil 
219+ 	}
220+ 
221+ 	opts  :=  deps .GetCallOpts ()
222+ 	opts .Signer  =  deps .Signer 
223+ 	tx , err  :=  offRampPackage .Bound ().ExecuteTransaction (
224+ 		b .GetContext (),
225+ 		opts ,
226+ 		encodedCall ,
227+ 	)
228+ 	if  err  !=  nil  {
229+ 		return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{}, fmt .Errorf ("failed to execute ApplySourceChainConfigUpdates on OffRamp: %w" , err )
187230	}
188231
232+ 	b .Logger .Infow ("Source chain config updates applied on OffRamp" )
233+ 
189234	return  sui_ops.OpTxResult [DeployCCIPOffRampObjects ]{
190235		Digest :    tx .Digest ,
191236		PackageId : input .OffRampPackageId ,
192237		Objects :   DeployCCIPOffRampObjects {},
193- 	}, err 
238+ 		Call :      call ,
239+ 	}, nil 
194240}
195241
196242type  AddPackageIdOffRampInput  struct  {
0 commit comments