Skip to content

Commit f3f7936

Browse files
committed
feat: add IGateway. success deploying Gateway.sol and NunyaContract. added new vid and screenshot
1 parent 512906d commit f3f7936

File tree

7 files changed

+967
-374
lines changed

7 files changed

+967
-374
lines changed

_DEMO_AND_VIDEO.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@
1010

1111
![Screenshot](./assets/screenshot-deploy-nunyacontract-dummygateway-mod.png)
1212

13-
* Deployment of Gateway to Ethereum Sepolia
13+
* Deployment of NunyaBusiness.sol and Gateway (based on SecretPath) to Ethereum Sepolia using IGateway.sol interface
1414

15-
![Screenshot](./assets/screenshot-deploy-gateway.png)
15+
![Screenshot](./assets/screenshot-deploy-nunyacontract-gateway-all.png)
1616

1717
## Videos
1818

1919
* Video of Nunya.business compile, upload, and instantiate a Private Secret Contract to Secret Network Testnet
2020
[YouTube Link](https://youtu.be/pCtQjqqD6gs)
2121

22-
* Video of Nunya.business compile, upload, and instantiate a Public Gateway Contract to Ethereum Sepolia Testnet
23-
[YouTube Link](https://youtu.be/WeBABOnPvgQ)
24-
* Note: It does not continue to deploy NunyaBusiness contract, likely since we added `secretContract = ISecretContract(gateway);` that still uses the DummyGatewayContract interface file instead of one for the Gateway contract.
25-
* Note: The Gateway was deployed with tx: 0x83aeaac54e1d2b467c2452bbdaca8d1c9c775549ddfee749b18d4f02a42b435f to address 0xe3a363ea613f601Dd05E0c02DBb1dfa4D7ABA99A
22+
* Video of Nunya.business compile, upload, and instantiate a SecretPath Public Gateway Contract to Sepolia Ethereum Testnet.
23+
[YouTube Link](https://youtu.be/O0unCWsrKA4)
24+
* It successfully also deploys NunyaBusiness contract since we added `secretContract = IGateway(gateway);` to use an interface based on Gateway.sol instead of the old DummyGatewayContract interface file.
25+
* Note: The Gateway was deployed with tx: 0x848763e137d97ea53000f360fa27db943f47a13e4e03982320d72dec33478e36 to address 0x41E52332e76988AFBc38280583a7A02492177C65
26+
* Note: The NunyaContract was deployed with tx:
2627

2728
* Video of Nunya.business frontend integration [video](./assets/demo.mp4)

_SETUP.md

+21-14
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,28 @@ Note: If it has deployed previously it will output `Nothing to compile. No need
7777

7878
Example of output:
7979
```
80-
Generating typings for: 4 artifacts in dir: typechain-types for target: ethers-v6
81-
Successfully generated 12 typings!
82-
Compiled 4 Solidity files successfully (evm target: london).
80+
Generating typings for: 8 artifacts in dir: typechain-types for target: ethers-v6
81+
Successfully generated 20 typings!
82+
Compiled 7 Solidity files successfully (evm target: paris).
83+
transaction 0x53593beece8061f774f9a9b6efa4584e88ed91eef22eb4ea5613b9631daed888 still pending... It used a gas pricing config of maxPriorityFeePerGas: 1500000000 maxFeePerGas: 14500077156 ,
84+
current gas price is 5987481929 wei
85+
new baseFee is 6102384838
86+
87+
✔ Choose what to do with the pending transaction: · continue waiting
88+
waiting for transaction...
8389
network: sepolia
8490
chain id: 11155111
8591
hre.network.name: sepolia
86-
deployer: 0x04f17aeb4b71e8f63f48749119f9957ca4a26268aaa87625e5e8b09aa2c45954
87-
reusing "DummyGatewayContract" at 0x77257FE5ef16d11CFA91D8fDaA79Fc9e47541BE7
88-
Successfully deployed DummyGatewayContract to address: 0x77257FE5ef16d11CFA91D8fDaA79Fc9e47541BE7
89-
reusing "NunyaBusiness" at 0xB10C8F0E2279fAa112abFF17063326bf3Fe8Dd50
90-
Successfully deployed NunyaBusiness to address: 0xB10C8F0E2279fAa112abFF17063326bf3Fe8Dd50
91-
tx hash: 0x4c379792cc11a180d831036389d4ec4122de1a8ade85eaffb90a45b43d6ceb03
92-
👋 Nunya contract: 0xB10C8F0E2279fAa112abFF17063326bf3Fe8Dd50
93-
NunyaBusiness balance: 0.000000000030084
94-
Gateway balance: 0.300499999969916
92+
deployerAddress: 0x83De04f1aad8ABF1883166B14A29c084b7B8AB59
93+
Deployer account balance: 7.01981295761257996 ETH
94+
deploying "Gateway" (tx: 0xb45283f3d585794164052a82e7bd2930aeade41090584a25464e6551bf1e37b5)...: deployed at 0x5Be91fd4b49489bb3aEc8bE2F5Fa1d83FD8C5A1b with 2559228 gas
95+
Successfully deployed Gateway to address: 0x5Be91fd4b49489bb3aEc8bE2F5Fa1d83FD8C5A1b
96+
deploying "NunyaBusiness" (tx: 0x9b69c6a4ace42a0ce36e4d1ef6ce99d3f2cc0271eed966c8c7e35438bb0fee33)...: deployed at 0x41E52332e76988AFBc38280583a7A02492177C65 with 1672042 gas
97+
Successfully deployed NunyaBusiness to address: 0x41E52332e76988AFBc38280583a7A02492177C65
98+
tx hash: 0x848763e137d97ea53000f360fa27db943f47a13e4e03982320d72dec33478e36
99+
👋 Nunya contract: 0x41E52332e76988AFBc38280583a7A02492177C65
100+
NunyaBusiness balance: 0.000000000000021
101+
Gateway balance: 0.000499999999979
95102
📝 Updated TypeScript contract definition file on ../nextjs/contracts/deployedContracts.ts
96103
```
97104

@@ -100,11 +107,11 @@ Gateway balance: 0.300499999969916
100107
5. View the contract in block explorer
101108

102109
Example previous deployment:
103-
NunyaBusiness: https://sepolia.etherscan.io/address/0xB10C8F0E2279fAa112abFF17063326bf3Fe8Dd50#code
110+
NunyaBusiness: https://sepolia.etherscan.io/address/0x41E52332e76988AFBc38280583a7A02492177C65#code
104111

105112
DummyGatewayContract: https://sepolia.etherscan.io/address/0x77257FE5ef16d11CFA91D8fDaA79Fc9e47541BE7
106113

107-
Gateway: https://sepolia.etherscan.io/address/0xe3a363ea613f601Dd05E0c02DBb1dfa4D7ABA99A
114+
Gateway: https://sepolia.etherscan.io/address/0x5Be91fd4b49489bb3aEc8bE2F5Fa1d83FD8C5A1b
108115

109116
6. On a third terminal, start the Nunya NextJS app:
110117

Loading

0 commit comments

Comments
 (0)