-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support of initial pending queries;
implemented request to merge_inner_queries method; supported off-chain signatures;
- Loading branch information
Showing
10 changed files
with
893 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
320 changes: 271 additions & 49 deletions
320
smartcontract/src/main/java/org/ton/java/smartcontract/multisig/MultisigWallet.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
smartcontract/src/main/java/org/ton/java/smartcontract/types/MultisigSignature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.ton.java.smartcontract.types; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
public class MultisigSignature { | ||
long pubKeyPosition; | ||
byte[] signature; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,4 @@ | |
public class OwnerInfo { | ||
byte[] publicKey; | ||
long flood; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
smartcontract/src/main/java/org/ton/java/smartcontract/types/PendingQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.ton.java.smartcontract.types; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
import org.ton.java.cell.Cell; | ||
|
||
import java.math.BigInteger; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
public class PendingQuery { | ||
BigInteger queryId; | ||
long creatorI; | ||
long cnt; // current number of collected confirmations | ||
|
||
// bits of length n, with active bit at position of public keys array. 101 - signed with pubkey[0] and pubkey[2] | ||
long cntBits; | ||
Cell msg; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
696 changes: 572 additions & 124 deletions
696
...ontract/src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletMultisig.java
Large diffs are not rendered by default.
Oops, something went wrong.