Skip to content

Conversation

@hugobucquet
Copy link

@hugobucquet hugobucquet commented Jun 30, 2022

  • This pull request consists of two smart contracts implementing multi-signature wallets.
  • The purpose was to create very simple multisig wallets to safely interact with FA1.2 and FA2 tokens on the Tezos Blockchain. Theses contracts do not include lambdas.
  • This PR contains tests, deployment targets and a UI built using Taquito and Beacon. It also contains FA2 and FA1.2 token templates imported from SmartPy
  • These contracts are meant to be integrated into Galleon wallet.

@hugobucquet hugobucquet requested review from gdsoumya and vishakh July 5, 2022 15:06

# multisig_wallet.transfer(sp.record(receiver = alice.address, amount = 10, tokenAddress = c1.address)).run(sender = admin.address)
# multisig_wallet.signAndExecute(0).run(sender = alice.address)
# multisig_wallet.recoverToken(sp.record(receiver = alice.address, amount = 10, tokenAddress = c1.address)).run(sender = admin.address)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's set the threshold to two and then test recovery.

@hugobucquet hugobucquet changed the title first draft for multisig second draft for multisig Jul 20, 2022
@hugobucquet hugobucquet changed the title second draft for multisig third draft for multisig Jul 27, 2022
Copy link
Contributor

@gdsoumya gdsoumya left a comment

Choose a reason for hiding this comment

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

lgtm, have we deployed the contracts and tested them on testnet?

Comment on lines 159 to 160
make_burn = sp.contract(sp.TRecord(address = sp.TAddress, value= sp.TNat), self.data.transferMap[id].tokenAddress, "burn").open_some()
sp.transfer(sp.record(address = self.data.transferMap[id].sender, value = self.data.transferMap[id].amount), sp.tez(0), make_burn)
Copy link
Contributor

Choose a reason for hiding this comment

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

burn entry point may or may not be available in the old contracts, burn is supposed to be a normal transfer to the burn address

Copy link
Author

Choose a reason for hiding this comment

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

so should I remove the burn function on the FA1.2?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes you can, but that just an example fa1.2 contract we already have the real token contracts deployed and I am pretty sure those don't have the burn function so change the multisig too.

Copy link
Author

Choose a reason for hiding this comment

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

Yes ok I meant remove it on the FA1.2 multisig 👍

@hugobucquet
Copy link
Author

lgtm, have we deployed the contracts and tested them on testnet?

yes have have depoyed them on testnet, but I haven't tested all functionnalities. But the smartpy tests work

@vishakh vishakh changed the title third draft for multisig Simple multisig contracts for Tezos FA1.2 and FA2 tokens Aug 25, 2022
@vishakh vishakh added the enhancement New feature or request label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants