-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
627b234
commit 1e7d01e
Showing
10 changed files
with
56 additions
and
56 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,7 @@ describe("Close vesting escrow", () => { | |
name: "Jupiter lock", | ||
description: "This is jupiter lock", | ||
creatorEmail: "[email protected]", | ||
recipientEmail: "[email protected]", | ||
recipientEndpoint: "[email protected]", | ||
creator: UserKP, | ||
isAssertion: true, | ||
}); | ||
|
@@ -295,7 +295,7 @@ describe("Close vesting escrow", () => { | |
name: "Jupiter lock", | ||
description: "This is jupiter lock", | ||
creatorEmail: "[email protected]", | ||
recipientEmail: "[email protected]", | ||
recipientEndpoint: "[email protected]", | ||
creator: UserKP, | ||
isAssertion: true, | ||
}); | ||
|
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 |
---|---|---|
|
@@ -124,7 +124,7 @@ describe("Escrow metadata", () => { | |
name: "Jupiter lock", | ||
description: "This is jupiter lock", | ||
creatorEmail: "[email protected]", | ||
recipientEmail: "[email protected]", | ||
recipientEndpoint: "[email protected]", | ||
creator: UserKP, | ||
isAssertion: true, | ||
}); | ||
|
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 |
---|---|---|
|
@@ -132,7 +132,7 @@ describe("Update recipient", () => { | |
newRecipient: newRecipient.publicKey, | ||
isAssertion: true, | ||
signer: UserKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
}, | ||
"Not permit to do this action", | ||
|
@@ -146,7 +146,7 @@ describe("Update recipient", () => { | |
newRecipient: newRecipient.publicKey, | ||
isAssertion: true, | ||
signer: RecipientKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
}, | ||
"Not permit to do this action", | ||
|
@@ -184,7 +184,7 @@ describe("Update recipient", () => { | |
newRecipient: newRecipient.publicKey, | ||
isAssertion: true, | ||
signer: RecipientKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
}, | ||
"Not permit to do this action", | ||
|
@@ -196,7 +196,7 @@ describe("Update recipient", () => { | |
newRecipient: newRecipient.publicKey, | ||
isAssertion: true, | ||
signer: UserKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
}); | ||
|
||
|
@@ -230,7 +230,7 @@ describe("Update recipient", () => { | |
newRecipient: newRecipient.publicKey, | ||
isAssertion: true, | ||
signer: UserKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
}, | ||
"Not permit to do this action", | ||
|
@@ -242,7 +242,7 @@ describe("Update recipient", () => { | |
newRecipient: newRecipient.publicKey, | ||
isAssertion: true, | ||
signer: RecipientKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
}); | ||
|
||
|
@@ -273,19 +273,19 @@ describe("Update recipient", () => { | |
newRecipient: RecipientKP.publicKey, | ||
isAssertion: true, | ||
signer: UserKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
|
||
await updateRecipient({ | ||
escrow, | ||
newRecipient: RecipientKP.publicKey, | ||
isAssertion: true, | ||
signer: RecipientKP, | ||
newRecipientEmail: null, | ||
newrecipientEndpoint: null, | ||
}); | ||
}); | ||
|
||
it("Update both recipient and recipient email", async () => { | ||
it("Update both recipient and recipient endpoint", async () => { | ||
console.log("Create vesting plan"); | ||
const program = createLockerProgram(new anchor.Wallet(UserKP)); | ||
let currentBlockTime = await getCurrentBlockTime( | ||
|
@@ -313,12 +313,12 @@ describe("Update recipient", () => { | |
name: "Jupiter lock", | ||
description: "This is jupiter lock", | ||
creatorEmail: "[email protected]", | ||
recipientEmail: "[email protected]", | ||
recipientEndpoint: "[email protected]", | ||
creator: UserKP, | ||
isAssertion: true, | ||
}); | ||
|
||
it("Update both recipient and recipient email", async () => { | ||
it("Update both recipient and recipient endpoint", async () => { | ||
console.log("Create vesting plan"); | ||
const program = createLockerProgram(new anchor.Wallet(UserKP)); | ||
let currentBlockTime = await getCurrentBlockTime( | ||
|
@@ -346,7 +346,7 @@ describe("Update recipient", () => { | |
name: "Jupiter lock", | ||
description: "This is jupiter lock", | ||
creatorEmail: "[email protected]", | ||
recipientEmail: "[email protected]", | ||
recipientEndpoint: "[email protected]", | ||
creator: UserKP, | ||
isAssertion: true, | ||
}); | ||
|
@@ -357,7 +357,7 @@ describe("Update recipient", () => { | |
newRecipient: RecipientKP.publicKey, | ||
isAssertion: true, | ||
signer: UserKP, | ||
newRecipientEmail: "[email protected]", | ||
newrecipientEndpoint: "[email protected]", | ||
}); | ||
|
||
console.log("Update recipient with smaller email size"); | ||
|
@@ -366,7 +366,7 @@ describe("Update recipient", () => { | |
newRecipient: RecipientKP.publicKey, | ||
isAssertion: true, | ||
signer: UserKP, | ||
newRecipientEmail: "[email protected]", | ||
newrecipientEndpoint: "[email protected]", | ||
}); | ||
}); | ||
}); | ||
|
Oops, something went wrong.