Skip to content

Commit

Permalink
feat: bump packages to v0.0.16 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e authored Jul 4, 2023
1 parent f901034 commit 650979e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 25 deletions.
27 changes: 17 additions & 10 deletions abi/Airdrop.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,21 +401,28 @@
"inputs": [],
"name": "config",
"outputs": [
{
"internalType": "bytes16",
"name": "appId",
"type": "bytes16"
},
{
"components": [
{
"internalType": "bool",
"name": "isImpersonationMode",
"type": "bool"
"internalType": "bytes16",
"name": "appId",
"type": "bytes16"
},
{
"components": [
{
"internalType": "bool",
"name": "isImpersonationMode",
"type": "bool"
}
],
"internalType": "struct VaultConfig",
"name": "vault",
"type": "tuple"
}
],
"internalType": "struct VaultConfig",
"name": "vault",
"internalType": "struct SismoConnectConfig",
"name": "",
"type": "tuple"
}
],
Expand Down
2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"deploy-airdrop": "forge script DeployAirdrop --rpc-url http://localhost:8545 -vv --mnemonics 'test test test test test test test test test test test junk' --sender '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' --broadcast && ./script/generate-abi-from-front.sh"
},
"dependencies": {
"@sismo-core/sismo-connect-react": "0.0.15",
"@sismo-core/sismo-connect-react": "0.0.16",
"@types/node": "20.2.3",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
Expand Down
18 changes: 9 additions & 9 deletions front/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -721,22 +721,22 @@
"@noble/hashes" "~1.3.0"
"@scure/base" "~1.1.0"

"@sismo-core/[email protected].13":
version "0.0.13"
resolved "https://registry.yarnpkg.com/@sismo-core/sismo-connect-client/-/sismo-connect-client-0.0.13.tgz#3d6d6b06b21cae33ec71b2d696d7bd21c431f616"
integrity sha512-mlCT5rzqxvj9LAEFIMpQsxRAcxFN8Dt2SJgJx96RdY50l4jKAOkzLftltrEvNVsUjvN0sE3FGOcMt/vb3LFIbw==
"@sismo-core/[email protected].16":
version "0.0.16"
resolved "https://registry.yarnpkg.com/@sismo-core/sismo-connect-client/-/sismo-connect-client-0.0.16.tgz#28f1c8e586509bf6272fc42969c8b13d837e3cbc"
integrity sha512-SO33SjpVPy2rVSIqE3B568+bQfNGe1T5ieh1pxNR68W6sAeLGU+PtzRegdKNbirFLVhVTi0Ky/vfmqI12Ehmng==
dependencies:
"@ethersproject/bignumber" "5.7.0"
js-base64 "^3.7.5"
pako "^2.1.0"
viem "^0.3.1"

"@sismo-core/[email protected].15":
version "0.0.15"
resolved "https://registry.yarnpkg.com/@sismo-core/sismo-connect-react/-/sismo-connect-react-0.0.15.tgz#da719be21ca09ed951c2da2cbe53f41e40639e4b"
integrity sha512-RaZjjwgP9QSthAgvcYg5LPIB2B53X8qKPac4QaDpd66zOQHwOCgF47DYVmjTRn3ZDpAmmhYbIT+ZhcCb84Pkig==
"@sismo-core/[email protected].16":
version "0.0.16"
resolved "https://registry.yarnpkg.com/@sismo-core/sismo-connect-react/-/sismo-connect-react-0.0.16.tgz#9c660f0fcd71d4497b5c1cc98f37c8b1b439e4d0"
integrity sha512-hZG+3AAUmTZ4Jsr9zypLfhWDRWvInbfBgVwNjnVpWPa1PUmfhVxn69b/zJL756TfENkgZqhIpknp1cvUN0Hmnw==
dependencies:
"@sismo-core/sismo-connect-client" "0.0.13"
"@sismo-core/sismo-connect-client" "0.0.16"

"@solana/buffer-layout@^4.0.0":
version "4.0.1"
Expand Down
8 changes: 4 additions & 4 deletions src/Airdrop.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ contract Airdrop is ERC20, SismoConnect {
using SismoConnectHelper for SismoConnectVerifiedResult;
mapping(uint256 => bool) public claimed;

// add your appId as a constant
bytes16 public constant APP_ID = 0xf4977993e52606cfd67b7a1cde717069;
// add your appId
bytes16 private _appId = 0xf4977993e52606cfd67b7a1cde717069;
// use impersonated mode for testing
bool public constant IS_IMPERSONATION_MODE = true;
bool private _isImpersonationMode = true;

constructor(
string memory name,
string memory symbol
)
ERC20(name, symbol)
SismoConnect(buildConfig(APP_ID, IS_IMPERSONATION_MODE)) // <--- Sismo Connect constructor
SismoConnect(buildConfig(_appId, _isImpersonationMode)) // <--- Sismo Connect constructor
{}

function claimWithSismo(bytes memory response) public {
Expand Down

0 comments on commit 650979e

Please sign in to comment.