File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
third_party/pyth/xc-governance-sdk-js/src Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
export {
2
2
DataSource ,
3
+ AptosAuthorizeUpgradeContractInstruction ,
3
4
EthereumUpgradeContractInstruction ,
4
5
HexString20Bytes ,
5
6
HexString32Bytes ,
Original file line number Diff line number Diff line change @@ -100,6 +100,19 @@ abstract class TargetInstruction extends Instruction {
100
100
}
101
101
}
102
102
103
+ export class AptosAuthorizeUpgradeContractInstruction extends TargetInstruction {
104
+ constructor (
105
+ targetChainId : ChainId ,
106
+ private hash : HexString32Bytes ,
107
+ ) {
108
+ super ( TargetAction . UpgradeContract , targetChainId ) ;
109
+ }
110
+
111
+ protected serializePayload ( ) : Buffer {
112
+ return this . hash . serialize ( ) ;
113
+ }
114
+ }
115
+
103
116
export class EthereumUpgradeContractInstruction extends TargetInstruction {
104
117
constructor (
105
118
targetChainId : ChainId ,
You can’t perform that action at this time.
0 commit comments