Skip to content
Merged
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
383 changes: 383 additions & 0 deletions packages/core/src/abis/GTokenAuthorization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,383 @@
{
"abi": [
{
"type": "constructor",
"inputs": [
{ "name": "cap_", "type": "uint256", "internalType": "uint256" },
{ "name": "factory_", "type": "address", "internalType": "address" }
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "allowance",
"inputs": [
{ "name": "owner", "type": "address", "internalType": "address" },
{ "name": "spender", "type": "address", "internalType": "address" }
],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "approve",
"inputs": [
{ "name": "spender", "type": "address", "internalType": "address" },
{ "name": "value", "type": "uint256", "internalType": "uint256" }
],
"outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "authorizationState",
"inputs": [
{ "name": "authorizer", "type": "address", "internalType": "address" },
{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" }
],
"outputs": [{ "name": "", "type": "uint8", "internalType": "enum GTokenAuthorization.AuthorizationState" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [{ "name": "account", "type": "address", "internalType": "address" }],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "burn",
"inputs": [{ "name": "value", "type": "uint256", "internalType": "uint256" }],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "burnFrom",
"inputs": [
{ "name": "account", "type": "address", "internalType": "address" },
{ "name": "value", "type": "uint256", "internalType": "uint256" }
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "CANCEL_AUTHORIZATION_TYPEHASH",
"inputs": [],
"outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "cancelAuthorization",
"inputs": [
{ "name": "authorizer", "type": "address", "internalType": "address" },
{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" },
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "cap",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "decimals",
"inputs": [],
"outputs": [{ "name": "", "type": "uint8", "internalType": "uint8" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "DOMAIN_SEPARATOR",
"inputs": [],
"outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "factory",
"inputs": [],
"outputs": [{ "name": "", "type": "address", "internalType": "contract IxPNTsFactory" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "MAX_AUTH_VALIDITY",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "mint",
"inputs": [
{ "name": "to", "type": "address", "internalType": "address" },
{ "name": "amount", "type": "uint256", "internalType": "uint256" }
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "mySBT",
"inputs": [],
"outputs": [{ "name": "", "type": "address", "internalType": "contract ISBT" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [{ "name": "", "type": "string", "internalType": "string" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "RECEIVE_WITH_AUTHORIZATION_TYPEHASH",
"inputs": [],
"outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "receiveWithAuthorization",
"inputs": [
{ "name": "from", "type": "address", "internalType": "address" },
{ "name": "to", "type": "address", "internalType": "address" },
{ "name": "value", "type": "uint256", "internalType": "uint256" },
{ "name": "validAfter", "type": "uint256", "internalType": "uint256" },
{ "name": "validBefore", "type": "uint256", "internalType": "uint256" },
{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" },
{ "name": "xPNTsToken", "type": "address", "internalType": "address" },
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "remainingMintableSupply",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setMySBT",
"inputs": [{ "name": "mySBT_", "type": "address", "internalType": "address" }],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [{ "name": "", "type": "string", "internalType": "string" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalSupply",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "transfer",
"inputs": [
{ "name": "to", "type": "address", "internalType": "address" },
{ "name": "value", "type": "uint256", "internalType": "uint256" }
],
"outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "TRANSFER_WITH_AUTHORIZATION_TYPEHASH",
"inputs": [],
"outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{ "name": "from", "type": "address", "internalType": "address" },
{ "name": "to", "type": "address", "internalType": "address" },
{ "name": "value", "type": "uint256", "internalType": "uint256" }
],
"outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [{ "name": "newOwner", "type": "address", "internalType": "address" }],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferWithAuthorization",
"inputs": [
{ "name": "from", "type": "address", "internalType": "address" },
{ "name": "to", "type": "address", "internalType": "address" },
{ "name": "value", "type": "uint256", "internalType": "uint256" },
{ "name": "validAfter", "type": "uint256", "internalType": "uint256" },
{ "name": "validBefore", "type": "uint256", "internalType": "uint256" },
{ "name": "nonce", "type": "bytes32", "internalType": "bytes32" },
{ "name": "xPNTsToken", "type": "address", "internalType": "address" },
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "version",
"inputs": [],
"outputs": [{ "name": "", "type": "string", "internalType": "string" }],
"stateMutability": "pure"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{ "name": "owner", "type": "address", "indexed": true, "internalType": "address" },
{ "name": "spender", "type": "address", "indexed": true, "internalType": "address" },
{ "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
],
"anonymous": false
},
{
"type": "event",
"name": "AuthorizationCanceled",
"inputs": [
{ "name": "authorizer", "type": "address", "indexed": true, "internalType": "address" },
{ "name": "nonce", "type": "bytes32", "indexed": true, "internalType": "bytes32" }
],
"anonymous": false
},
{
"type": "event",
"name": "AuthorizationUsed",
"inputs": [
{ "name": "authorizer", "type": "address", "indexed": true, "internalType": "address" },
{ "name": "nonce", "type": "bytes32", "indexed": true, "internalType": "bytes32" }
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{ "name": "previousOwner", "type": "address", "indexed": true, "internalType": "address" },
{ "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" }
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{ "name": "from", "type": "address", "indexed": true, "internalType": "address" },
{ "name": "to", "type": "address", "indexed": true, "internalType": "address" },
{ "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
],
"anonymous": false
},
{ "type": "error", "name": "AuthorizationExpired", "inputs": [] },
{ "type": "error", "name": "AuthorizationNotYetValid", "inputs": [] },
{ "type": "error", "name": "AuthorizationUsedOrCanceled", "inputs": [] },
{ "type": "error", "name": "AuthorizationWindowInvalid", "inputs": [] },
{ "type": "error", "name": "AuthorizationWindowTooLong", "inputs": [] },
{ "type": "error", "name": "CallerMustBeRecipient", "inputs": [] },
{
"type": "error",
"name": "ERC20ExceededCap",
"inputs": [
{ "name": "increasedSupply", "type": "uint256", "internalType": "uint256" },
{ "name": "cap", "type": "uint256", "internalType": "uint256" }
]
},
{
"type": "error",
"name": "ERC20InsufficientAllowance",
"inputs": [
{ "name": "spender", "type": "address", "internalType": "address" },
{ "name": "allowance", "type": "uint256", "internalType": "uint256" },
{ "name": "needed", "type": "uint256", "internalType": "uint256" }
]
},
{
"type": "error",
"name": "ERC20InsufficientBalance",
"inputs": [
{ "name": "sender", "type": "address", "internalType": "address" },
{ "name": "balance", "type": "uint256", "internalType": "uint256" },
{ "name": "needed", "type": "uint256", "internalType": "uint256" }
]
},
{
"type": "error",
"name": "ERC20InvalidApprover",
"inputs": [{ "name": "approver", "type": "address", "internalType": "address" }]
},
{
"type": "error",
"name": "ERC20InvalidCap",
"inputs": [{ "name": "cap", "type": "uint256", "internalType": "uint256" }]
},
{
"type": "error",
"name": "ERC20InvalidReceiver",
"inputs": [{ "name": "receiver", "type": "address", "internalType": "address" }]
},
{
"type": "error",
"name": "ERC20InvalidSender",
"inputs": [{ "name": "sender", "type": "address", "internalType": "address" }]
},
{
"type": "error",
"name": "ERC20InvalidSpender",
"inputs": [{ "name": "spender", "type": "address", "internalType": "address" }]
},
{ "type": "error", "name": "InvalidSignature", "inputs": [] },
{
"type": "error",
"name": "OwnableInvalidOwner",
"inputs": [{ "name": "owner", "type": "address", "internalType": "address" }]
},
{
"type": "error",
"name": "OwnableUnauthorizedAccount",
"inputs": [{ "name": "account", "type": "address", "internalType": "address" }]
},
{ "type": "error", "name": "RecipientNotInProtocol", "inputs": [] },
{ "type": "error", "name": "SBTAlreadySet", "inputs": [] }
]
}
1 change: 1 addition & 0 deletions packages/core/src/abis/abi.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{ "name": "DVTValidator.json", "hash": "7fbc002acbd897b23bbdfcc1a50811d2091a1e43a9c05334aa0e787604474f13" },
{ "name": "EntryPoint.json", "hash": "fb52a7e1d92dfed8285b78d1849661936c09401227e27e2eceda905b20cd6844" },
{ "name": "GToken.json", "hash": "27d6adc3c327cdee1d4f8b57f2a19f0a59ac6d9f020e664be6fc4a51ddf828a9" },
{ "name": "GTokenAuthorization.json", "hash": "6a3e474c6f070ba848b59b718e6477cf30fd35b849a65ecd1d72ccaf512b07e3" },
{ "name": "GTokenStaking.json", "hash": "207b5e22dcfd734c90ca1c1035d06a3cbbd0a6646544ce46e3cde8ed43524d26" },
{ "name": "MicroPaymentChannel.json", "hash": "f91f26a39a5c4f930710c713e117e1fd6f400565e90316e5e54134cc47b47dff" },
{ "name": "MySBT.json", "hash": "b3c2bec8b4d26ff44f39b4c26a7bfc4754add68bd2dd233a7ff0a1facac162cf" },
Expand Down
Loading