Skip to content

Commit

Permalink
Feature/compass handover (#1277)
Browse files Browse the repository at this point in the history
# Related Github tickets

- VolumeFi#1960
- VolumeFi#1951
- VolumeFi#1956
- VolumeFi#2043

# Background

This change makes use of the atomic handover endpoint on compass,
re-enables the token relink and ensures ownership of fee manager is
transferred as well.

# Testing completed

- [x] test coverage exists or has been added/updated
- [x] tested in a private testnet

# Breaking changes

- [x] I have checked my code for breaking changes
- [x] If there are breaking changes, there is a supporting migration.
  • Loading branch information
byte-bandit authored Aug 29, 2024
1 parent ee53201 commit a605a1f
Show file tree
Hide file tree
Showing 19 changed files with 2,668 additions and 1,516 deletions.
4 changes: 4 additions & 0 deletions proto/palomachain/paloma/evm/chain_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ message SmartContractDeployment {
Status status = 4;

message ERC20Transfer {
// individual transfers are no longer needed with the new atomic update mechanism
// TODO: remove once the new mechanism is rolled out
option deprecated = true;

// Paloma denom of the ERC20 token
string denom = 1;
// Address of the ERC20 token on the target chain
Expand Down
25 changes: 15 additions & 10 deletions proto/palomachain/paloma/evm/turnstone.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,23 @@ message SubmitLogicCall {
ExecutionRequirements executionRequirements = 7
[ (gogoproto.nullable) = false ];
uint32 retries = 8;
Fees fees = 10
Fees fees = 10
[ (gogoproto.nullable) = true ];
}

message UpdateValset {
Valset valset = 1;
message UpdateValset {
Valset valset = 1;
}

message CompassHandover {
message ForwardCallArgs {
string hexContractAddress = 1;
bytes payload = 2;
}
repeated ForwardCallArgs forwardCallArgs = 1 [ (gogoproto.nullable) = false ];
int64 deadline = 2;
// Contains ID of the new smart contract
uint64 id = 3;
}

message UploadSmartContract {
Expand Down Expand Up @@ -74,6 +85,7 @@ message Message {
UpdateValset updateValset = 4;
UploadSmartContract uploadSmartContract = 5;
UploadUserSmartContract uploadUserSmartContract = 11;
CompassHandover compassHandover = 12;
}

string compassAddr = 6;
Expand All @@ -97,10 +109,3 @@ message TxExecutedProof {
}

message SmartContractExecutionErrorProof { string errorMessage = 1; }

// This is no longer in active use.
message TransferERC20Ownership {
option deprecated = true;
uint64 smartContractID = 1;
bytes newCompassAddress = 2;
}
Loading

0 comments on commit a605a1f

Please sign in to comment.