From b9388064168bebfb88b6b32ae5ecaac3d8616238 Mon Sep 17 00:00:00 2001 From: bigq Date: Tue, 18 Jul 2023 20:03:22 +0000 Subject: [PATCH] GITBOOK-503: replace SismoLib path with SismoConnectLib path for foundry --- build-with-sismo-connect/getting-started-1.md | 8 ++++---- build-with-sismo-connect/sismo-connect-cheatsheet.md | 2 +- .../sismo-connect-configuration.md | 4 ++-- .../tutorials/deploy-your-contracts.md | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build-with-sismo-connect/getting-started-1.md b/build-with-sismo-connect/getting-started-1.md index e3dcf56..068db4a 100644 --- a/build-with-sismo-connect/getting-started-1.md +++ b/build-with-sismo-connect/getting-started-1.md @@ -177,13 +177,13 @@ Install the Forge dependency: ```bash foundryup -forge install sismo-core/sismo-connect-packages +forge install sismo-core/sismo-connect-solidity --no-commit ``` -Add the remapping in remappings.txt: +Add the remapping in `remappings.txt`: ```bash -echo $'sismo-connect-solidity/=lib/sismo-connect-packages/packages/sismo-connect-solidity/src/' >> remappings.txt +echo $'sismo-connect-solidity/=lib/sismo-connect-solidity/src/' >> remappings.txt ``` {% endtab %} @@ -230,7 +230,7 @@ The Sismo Connect configuration and request used in your smart contract/backend // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; -import "sismo-connect-solidity/SismoLib.sol"; +import "sismo-connect-solidity/SismoConnectLib.sol"; // This is a sample contract that shows how to use the SismoConnect library contract Airdrop is SismoConnect { diff --git a/build-with-sismo-connect/sismo-connect-cheatsheet.md b/build-with-sismo-connect/sismo-connect-cheatsheet.md index c698878..f181a5e 100644 --- a/build-with-sismo-connect/sismo-connect-cheatsheet.md +++ b/build-with-sismo-connect/sismo-connect-cheatsheet.md @@ -443,7 +443,7 @@ import { // SPDX-License-Identifier: MIT pragma solidity ^0.8.17; -import "sismo-connect-solidity/SismoLib.sol"; +import "sismo-connect-solidity/SismoConnectLib.sol"; contract MyContract is SismoConnect { // reference your appId diff --git a/build-with-sismo-connect/technical-documentation/sismo-connect-configuration.md b/build-with-sismo-connect/technical-documentation/sismo-connect-configuration.md index f3c7c98..0fd05fa 100644 --- a/build-with-sismo-connect/technical-documentation/sismo-connect-configuration.md +++ b/build-with-sismo-connect/technical-documentation/sismo-connect-configuration.md @@ -102,7 +102,7 @@ const sismoConnect = SismoConnect({config}); In your smart contract, the most basic Sismo Connect Config looks like this: ```solidity -import "sismo-connect-solidity/SismoLib.sol"; // <--- add a Sismo Connect import +import "sismo-connect-solidity/SismoConnectLib.sol"; // <--- add a Sismo Connect import contract MyContract is SismoConnect { bytes16 public constant APP_ID = 0xf4977993e52606cfd67b7a1cde717069; @@ -219,7 +219,7 @@ const sismoConnect = SismoConnect({config}); In your smart contract, the most basic Sismo Connect Config looks like this: ```solidity -import "sismo-connect-solidity/SismoLib.sol"; // <--- add a Sismo Connect import +import "sismo-connect-solidity/SismoConnectLib.sol"; // <--- add a Sismo Connect import contract MyContract is SismoConnect { bytes16 public constant APP_ID = 0xf4977993e52606cfd67b7a1cde717069; diff --git a/build-with-sismo-connect/tutorials/deploy-your-contracts.md b/build-with-sismo-connect/tutorials/deploy-your-contracts.md index 673fcec..7e02436 100644 --- a/build-with-sismo-connect/tutorials/deploy-your-contracts.md +++ b/build-with-sismo-connect/tutorials/deploy-your-contracts.md @@ -1,4 +1,4 @@ -# Onchain Tutorial (2/2): Deploy Your Airdrop Contract +# Onchain Tutorial (2/2): Deploy Your Airdrop Contract ## Overview @@ -74,7 +74,7 @@ export const sismoConnectConfig: SismoConnectConfig = { ```solidity // in your contract -import "sismo-connect-solidity/SismoLib.sol"; +import "sismo-connect-solidity/SismoConnectLib.sol"; contract A is SismoConnect { // add your appId as a constant