forked from storyprotocol/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
27 changed files
with
844 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "packages/core-sdk/protocol-contracts"] | ||
path = packages/core-sdk/protocol-contracts | ||
url = https://github.com/storyprotocol/protocol-core | ||
branch = beta-rc1 | ||
branch = beta-rc2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { formatAbi } from "abitype"; | ||
import { getAddress } from "viem"; | ||
import * as dotenv from "dotenv"; | ||
|
||
import DisputeModuleABI from "./json/DisputeModule.abi"; | ||
|
||
if (typeof process !== "undefined") { | ||
dotenv.config(); | ||
} | ||
|
||
export const DisputeModuleRaw = DisputeModuleABI; | ||
export const DisputeModuleReadable = formatAbi(DisputeModuleRaw); | ||
|
||
export const DisputeModuleConfig = { | ||
abi: DisputeModuleRaw, | ||
address: getAddress(process.env.DISPUTE_MODULE || process.env.NEXT_PUBLIC_DISPUTE_MODULE || ""), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import * as dotenv from "dotenv"; | ||
|
||
import IPAccountImplABI from "./json/IPAccountImpl.abi"; | ||
import errorsJson from "./json/Errors.json"; | ||
|
||
export const ErrorsAbi = errorsJson; | ||
if (typeof process !== "undefined") { | ||
dotenv.config(); | ||
} | ||
|
||
export const ErrorsAbi = errorsJson; | ||
export const IPAccountImplMerged = [...IPAccountImplABI, ...ErrorsAbi]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
export default [ | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_targetIpId", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "_arbitrationPolicy", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "string", | ||
name: "_linkToDisputeEvidence", | ||
type: "string", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_targetTag", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "_data", | ||
type: "bytes", | ||
}, | ||
], | ||
name: "raiseDispute", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "_disputeId", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "_decision", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "_data", | ||
type: "bytes", | ||
}, | ||
], | ||
name: "setDisputeJudgement", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_arbitrationPolicy", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "_allowed", | ||
type: "bool", | ||
}, | ||
], | ||
name: "whitelistArbitrationPolicy", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_arbitrationPolicy", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "_arbPolicyRelayer", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "_allowed", | ||
type: "bool", | ||
}, | ||
], | ||
name: "whitelistArbitrationRelayer", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "_tag", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "_allowed", | ||
type: "bool", | ||
}, | ||
], | ||
name: "whitelistDisputeTags", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
] as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.