-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:svub/nunya
- Loading branch information
Showing
28 changed files
with
591 additions
and
380 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
// TODO in production | ||
import "hardhat/console.sol"; | ||
|
||
// Dummy Secret Network EVM Gateway contract (so we can use the contracts on devnet) | ||
|
||
contract SecretContract { | ||
function newSecretUser(uint256 secret) external returns (uint256) { | ||
return 6; | ||
} | ||
function linkPaymentRef(uint256 secret, string calldata ref) external returns (uint256) { | ||
return 5; | ||
} | ||
function pay(string calldata ref, uint256 amount) external returns (uint256) { | ||
return 4; | ||
} | ||
function payWithReceipt(string calldata ref, uint256 amount, uint256 userPubkey) external returns (uint256) { | ||
return 3; | ||
} | ||
function withdraw(string calldata secret, address withdrawalAddress) external returns (uint256){ | ||
return 2; | ||
} | ||
|
||
function retrievePubkey() external returns (uint256){ | ||
return 1; | ||
} | ||
|
||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ntracts/voting-contract/node/.env.example → ...ontracts/nunya-contract/node/.env.example
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# FIXME - update these after deploying nunya-contract | ||
MNEMONIC="shed clerk pray velvet flower tide bug idea private solar prize tackle" | ||
CODE_HASH="e8d3f1c82b620fced20a7d8878ea81cd5af3de28ad7427246c3d7e93b2fa3c4f" | ||
SECRET_ADDRESS="secret1m9d45wakl6vmshxc5kp6ztrf29uc3gzm8vpe47" | ||
SECRET_ADDRESS="secret1m9d45wakl6vmshxc5kp6ztrf29uc3gzm8vpe47" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.