File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
governance/xc-governance-sdk-js/src Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,16 @@ export class EthereumUpgradeContractInstruction extends TargetInstruction {
120
120
}
121
121
}
122
122
123
+ export class CosmwasmUpgradeContractInstruction extends TargetInstruction {
124
+ constructor ( targetChainId : ChainId , private codeId : bigint ) {
125
+ super ( TargetAction . UpgradeContract , targetChainId ) ;
126
+ }
127
+
128
+ protected serializePayload ( ) : Buffer {
129
+ return new BufferBuilder ( ) . addBigUint64 ( this . codeId ) . build ( ) ;
130
+ }
131
+ }
132
+
123
133
export class AuthorizeGovernanceDataSourceTransferInstruction extends TargetInstruction {
124
134
constructor ( targetChainId : ChainId , private claimVaa : Buffer ) {
125
135
super ( TargetAction . AuthorizeGovernanceDataSourceTransfer , targetChainId ) ;
You can’t perform that action at this time.
0 commit comments