Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions _SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,30 @@ yarn run secret:queryPubkey

* Reference https://docs.scrt.network/secret-network-documentation/development/readme-1/compile-and-deploy

#### Run Unit Tests

> Important: Only works in Rust Nightly (not Stable)

Run the following.
```
cd packages/secret-contracts/nunya-contract

rustup update
rustup default nightly

make build

make test

cargo test

# quicker tests
cargo test --lib

```

TODO: Find out why `cargo test --features=backtraces` does not work even though we have that dependency in cargo.toml

### Setup Custom Gateways and Relayers <a id="setup-gateways-relayers"></a>

See https://github.com/ltfschoen/SecretPath to deploy the following:
Expand Down
8 changes: 8 additions & 0 deletions packages/hardhat/contracts/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,14 @@ contract Gateway is Ownable {
emit TaskCompleted(_taskId, callbackSuccessful);
}

/*//////////////////////////////////////////////////////////////
New Functions for Upgradeability
//////////////////////////////////////////////////////////////*/

function upgradeHandler() public {

}

function newSecretUser(string calldata secret) public pure returns (uint256) {
// console.log("------ DummyGateway.newSecretUser", secret);
return 6;
Expand Down
Loading