Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #95

Closed
wants to merge 110 commits into from
Closed

Refactor #95

wants to merge 110 commits into from

Conversation

aleeusgr
Copy link
Owner

No description provided.

Copy link
Owner Author

@aleeusgr aleeusgr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that I understand nothing 🤷

Copy link
Owner Author

@aleeusgr aleeusgr May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe("vesting contract", () => {
  let vestingProgram, initiatorWallet, recipientWallet;
  beforeEach(() => { 
    vestingProgram = new helios.Program( ... ); 
     ...
  })
  it ("tests things while reusing provided `vestingProgram`", async () => {
    ...
  })
})

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it("works with datumHash and datum at spend time")
it("works with inlineDatum and no special datum at spend time")

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe("vesting contract"), () => {
  describe("contract initiation", () => {
    it("holds assets for vesting", async() => {
    })
    it("lets the initiator take their own funds back, until the contract is claimed", async () => {})
  })
  describe("contract claim", async() => {
     it("allows the recipient to mint a claim token they can hold in their wallet" async() => {
})
     it("doesn't let the initiator withdraw funds once claimed", async() => {
})
  })
  describe("gradual maturation", () => {
    ...
  })
  describe("reclaiming funds after long period of inactivity" () => {
    ...
  })
})

??

@aleeusgr aleeusgr closed this May 17, 2023
@aleeusgr aleeusgr deleted the refactor branch May 18, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant