Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Creates first SPG release with beta-rc6 core protocol dependencies (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeren authored Feb 28, 2024
1 parent e4d6de4 commit 0dec3c1
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CHANGELOG

## v1.0.0-beta-rc1

This is the first release of the Story Protocol Gateway

- Adds the SPG, a convenient wrapper around the core contracts for registration
- Includes NFT minting management tooling for registering and minting in one-shot
8 changes: 4 additions & 4 deletions deploy-out/deployment-11155111.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"main": {
"MetadataProviderImpl": "0x00C77FbBa266623964E5382580F503B3579D4214",
"SPG": "0x5a12E3F0DAeF58d493fa4c5a462e8cEB7b15cF28",
"SPNFTImpl": "0x8356f4e7888436d0fCa644c0E922C0880961d42A"
"MetadataProviderImpl": "0x79F8BDE6Bbe657ee31efe7B092c66A775c79Cd27",
"SPG": "0xf82EEe73c2c81D14DF9bC29DC154dD3c079d80a0",
"SPNFTImpl": "0x79F8BDE6Bbe657ee31efe7B092c66A775c79Cd27"
}
}
}
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "solidity-template",
"version": "1.0.0",
"description": "",
"main": "index.js",
"name": "@story-protocol/protocol-periphery",
"version": "v1.0.0-beta-rc1",
"description": "Story Protocol periphery smart contracts",
"main": "",
"directories": {
"lib": "lib",
"test": "test"
Expand All @@ -14,7 +14,7 @@
"test": "npx hardhat test"
},
"author": "StoryProtocol",
"license": "MIT",
"license": "BUSL-1.1",
"devDependencies": {
"chai": "^4.3.7",
"dotenv": "^16.0.3",
Expand All @@ -34,7 +34,6 @@
"dependencies": {
"@openzeppelin/contracts": "5.0.1",
"@openzeppelin/contracts-upgradeable": "5.0.1",
"@storyprotocol/contracts": "https://github.com/storyprotocol/protocol-core#v1.0.0-beta"

"@story-protocol/protocol-core": "1.0.0-beta-rc6"
}
}
2 changes: 1 addition & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@ensdomains/=node_modules/@ensdomains/
@ethereum-waffle/=node_modules/@ethereum-waffle/
@openzeppelin/=node_modules/@openzeppelin/
@storyprotocol/=node_modules/@storyprotocol/contracts/
@storyprotocol/=node_modules/@story-protocol/protocol-core/
@storyprotocol-old/=node_modules/@storyprotocol/contracts-old/
ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/=lib/forge-std/src/
Expand Down
2 changes: 1 addition & 1 deletion script/utils/StoryProtocolCoreAddressManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract StoryProtocolCoreAddressManager is Script {

function _readStoryProtocolCoreAddresses() internal {
string memory root = vm.projectRoot();
string memory path = string.concat(root, "/node_modules/@storyprotocol/contracts/deploy-out/deployment-11155111.json");
string memory path = string.concat(root, "/node_modules/@story-protocol/protocol-core/deploy-out/deployment-11155111.json");
string memory json = vm.readFile(path);
GOVERNANCE = json.readAddress(".main.Governance");
ipAssetRegistryAddr = json.readAddress(".main.IPAssetRegistry");
Expand Down
2 changes: 1 addition & 1 deletion test/utils/Fork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ contract ForkTest is BaseTest {
uint256 sepoliaFork;

// List of chain RPC URLs.
string SEPOLIA_RPC_URL = vm.envString("SEPOLIA_RPC_URL");
string SEPOLIA_RPC_URL = vm.envString("SEPOLIA_URL");

/// @notice Sets up the base test contract.
function setUp() public virtual override(BaseTest) {
Expand Down
75 changes: 75 additions & 0 deletions yarn-error.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
Arguments:
/Users/leeren/.nvm/versions/node/v18.0.0/bin/node /Users/leeren/.nvm/versions/node/v18.0.0/bin/yarn add @story-protocol/protocol-core

PATH:
/Users/leeren/.local/bin:/Users/leeren/.nvm/versions/node/v18.0.0/bin:/Users/leeren/.local/bin:/Users/leeren/.cargo/bin:/usr/local/mysql/bin:/usr/local/bin:/Users/leeren/Library/Python/3.8/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin://Users/leeren/go/bin:/Users/leeren/.foundry/bin:/Users/leeren/google-cloud-sdk/bin://Users/leeren/go/bin:/Users/leeren/.foundry/bin:/Users/leeren/google-cloud-sdk/bin

Yarn version:
1.22.19

Node version:
18.0.0

Platform:
darwin x64

Trace:
Error: https://registry.npmjs.org/@storyprotocol%2fprotocol-core: Not found
at params.callback [as _callback] (/Users/leeren/.nvm/versions/node/v18.0.0/lib/node_modules/yarn/lib/cli.js:66145:18)
at self.callback (/Users/leeren/.nvm/versions/node/v18.0.0/lib/node_modules/yarn/lib/cli.js:140890:22)
at Request.emit (node:events:527:28)
at Request.<anonymous> (/Users/leeren/.nvm/versions/node/v18.0.0/lib/node_modules/yarn/lib/cli.js:141862:10)
at Request.emit (node:events:527:28)
at IncomingMessage.<anonymous> (/Users/leeren/.nvm/versions/node/v18.0.0/lib/node_modules/yarn/lib/cli.js:141784:12)
at Object.onceWrapper (node:events:641:28)
at IncomingMessage.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1344:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

npm manifest:
{
"name": "@story-protocol/protocol-periphery",
"version": "v1.0.0-beta-rc1",
"description": "Story Protocol periphery smart contracts",
"main": "",
"directories": {
"lib": "lib",
"test": "test"
},
"scripts": {
"lint": "npm run lint:solidity && npm run lint:javascript",
"lint:javascript": "eslint ./",
"lint:solidity": "solhint \"contracts/**/*.sol\" \"test/**/*.sol\"",
"test": "npx hardhat test"
},
"author": "StoryProtocol",
"license": "MIT",
"devDependencies": {
"chai": "^4.3.7",
"dotenv": "^16.0.3",
"eslint": "^8.38.0",
"eslint-plugin-prettier": "^4.2.1",
"ethereum-waffle": "^4.0.10",
"ethers": "^6.10.0",
"mocha": "^10.2.0",
"prettier": "2.8.7",
"prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.4.1",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.8.2",
"ts-node": "^10.9.2",
"typechain": "^8.3.2"
},
"dependencies": {
"@openzeppelin/contracts": "5.0.1",
"@openzeppelin/contracts-upgradeable": "5.0.1",
"@storyprotocol/protocol-core": "1.0.0-beta-rc6"

}
}

yarn manifest:
No manifest

Lockfile:
No lockfile
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,10 @@
resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.18.0.tgz#8e77a02a09ecce957255a2f48c9a7178ec191908"
integrity sha512-yfORGUIPgLck41qyN7nbwJRAx17/jAIXCTanHOJZhB6PJ1iAk/84b/xlsVKFSyNyLXIj0dhppoE0+CRws7wlzA==

"@storyprotocol/contracts@https://github.com/storyprotocol/protocol-core#beta-rc5":
version "0.3.0"
resolved "https://github.com/storyprotocol/protocol-core#c84d0a68f9bac17ce7b7b12ccfccd2fc5e49d0c8"
"@story-protocol/[email protected]":
version "1.0.0-beta-rc6"
resolved "https://registry.yarnpkg.com/@story-protocol/protocol-core/-/protocol-core-1.0.0-beta-rc6.tgz#be833ae95419340816c6f246c40654d0e8a649c0"
integrity sha512-2diMjDOpFuKcKZ7BQTdR0jb/W3Etob3cPkewteZvXgYwpLd0MpwPDkujPOM7KijYlp781kDx0ay8TqutgqH5QQ==
dependencies:
"@openzeppelin/contracts" "5.0.1"
"@openzeppelin/contracts-upgradeable" "5.0.1"
Expand Down

0 comments on commit 0dec3c1

Please sign in to comment.