Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new pkphelperv2 features to a new endpoint on the relay #41

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
340 changes: 340 additions & 0 deletions contracts/cayenne/PKPHelperV2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_resolver",
"type": "address"
},
{
"internalType": "enum ContractResolver.Env",
"name": "_env",
"type": "uint8"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "newResolverAddress",
"type": "address"
}
],
"name": "ContractResolverAddressSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "contractResolver",
"outputs": [
{
"internalType": "contract ContractResolver",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "env",
"outputs": [
{
"internalType": "enum ContractResolver.Env",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDomainWalletRegistry",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPKPNftMetdataAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPkpNftAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPkpPermissionsAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "keyType",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "permittedAuthMethodTypes",
"type": "uint256[]"
},
{
"internalType": "bytes[]",
"name": "permittedAuthMethodIds",
"type": "bytes[]"
},
{
"internalType": "bytes[]",
"name": "permittedAuthMethodPubkeys",
"type": "bytes[]"
},
{
"internalType": "uint256[][]",
"name": "permittedAuthMethodScopes",
"type": "uint256[][]"
},
{
"internalType": "bool",
"name": "addPkpEthAddressAsPermittedAddress",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "pkpEthAddressScopes",
"type": "uint256[]"
},
{
"internalType": "bool",
"name": "sendPkpToItself",
"type": "bool"
},
{
"internalType": "bool",
"name": "burnPkp",
"type": "bool"
}
],
"internalType": "struct PKPHelperV2.NewPKPParams",
"name": "params",
"type": "tuple"
}
],
"name": "mintNextAndAddAuthMethods",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "keyType",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "permittedAuthMethodTypes",
"type": "uint256[]"
},
{
"internalType": "bytes[]",
"name": "permittedAuthMethodIds",
"type": "bytes[]"
},
{
"internalType": "bytes[]",
"name": "permittedAuthMethodPubkeys",
"type": "bytes[]"
},
{
"internalType": "uint256[][]",
"name": "permittedAuthMethodScopes",
"type": "uint256[][]"
},
{
"internalType": "bool",
"name": "addPkpEthAddressAsPermittedAddress",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "pkpEthAddressScopes",
"type": "uint256[]"
},
{
"internalType": "bool",
"name": "sendPkpToItself",
"type": "bool"
},
{
"internalType": "bool",
"name": "burnPkp",
"type": "bool"
}
],
"internalType": "struct PKPHelperV2.NewPKPParams",
"name": "params",
"type": "tuple"
}
],
"name": "mintNextAndAddAuthMethodsWithTypes",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC721Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newResolverAddress",
"type": "address"
}
],
"name": "setContractResolver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading