@metamask/metamask-eth-abis
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -9,2 +9,8 @@ # Changelog | ||
## [3.0.0] | ||
### Changed | ||
- [BREAKING] Harden types on ABI objects ([#6](https://github.com/MetaMask/metamask-eth-abis/pull/6)) | ||
- If you have a function that takes an argument typed via `typeof abiERC1155`, `typeof abiERC20`, or `typeof abiERC721,` that argument must now literally be the ABI object you are referencing instead of a general ABI shape. | ||
## [2.1.0] | ||
@@ -18,4 +24,5 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/metamask-eth-abis/compare/v2.1.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/metamask-eth-abis/compare/v3.0.0...HEAD | ||
[3.0.0]: https://github.com/MetaMask/metamask-eth-abis/compare/v2.1.0...v3.0.0 | ||
[2.1.0]: https://github.com/MetaMask/metamask-eth-abis/compare/v2.0.0...v2.1.0 | ||
[2.0.0]: https://github.com/MetaMask/metamask-eth-abis/releases/tag/v2.0.0 |
@@ -1,39 +0,252 @@ | ||
export declare const abiERC1155: ({ | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
})[]; | ||
export declare const abiERC1155: readonly [{ | ||
readonly inputs: readonly [{ | ||
readonly internalType: "string"; | ||
readonly name: "uri_"; | ||
readonly type: "string"; | ||
}]; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "constructor"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "operator"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "bool"; | ||
readonly name: "approved"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly name: "ApprovalForAll"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "operator"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256[]"; | ||
readonly name: "ids"; | ||
readonly type: "uint256[]"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256[]"; | ||
readonly name: "values"; | ||
readonly type: "uint256[]"; | ||
}]; | ||
readonly name: "TransferBatch"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "operator"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "id"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "value"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "TransferSingle"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: false; | ||
readonly internalType: "string"; | ||
readonly name: "value"; | ||
readonly type: "string"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "uint256"; | ||
readonly name: "id"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "URI"; | ||
readonly type: "event"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "id"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "balanceOf"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "uint256"; | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address[]"; | ||
readonly name: "accounts"; | ||
readonly type: "address[]"; | ||
}, { | ||
readonly internalType: "uint256[]"; | ||
readonly name: "ids"; | ||
readonly type: "uint256[]"; | ||
}]; | ||
readonly name: "balanceOfBatch"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "uint256[]"; | ||
readonly name: ""; | ||
readonly type: "uint256[]"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "operator"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "isApprovedForAll"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bool"; | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint256[]"; | ||
readonly name: "ids"; | ||
readonly type: "uint256[]"; | ||
}, { | ||
readonly internalType: "uint256[]"; | ||
readonly name: "amounts"; | ||
readonly type: "uint256[]"; | ||
}, { | ||
readonly internalType: "bytes"; | ||
readonly name: "data"; | ||
readonly type: "bytes"; | ||
}]; | ||
readonly name: "safeBatchTransferFrom"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "id"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "amount"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly internalType: "bytes"; | ||
readonly name: "data"; | ||
readonly type: "bytes"; | ||
}]; | ||
readonly name: "safeTransferFrom"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "operator"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "bool"; | ||
readonly name: "approved"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly name: "setApprovalForAll"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes4"; | ||
readonly name: "interfaceId"; | ||
readonly type: "bytes4"; | ||
}]; | ||
readonly name: "supportsInterface"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bool"; | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "uint256"; | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "uri"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "string"; | ||
readonly name: ""; | ||
readonly type: "string"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}]; |
@@ -1,46 +0,202 @@ | ||
export declare const abiERC20: ({ | ||
constant: boolean; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
}[]; | ||
payable: boolean; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
inputs: { | ||
name: string; | ||
type: string; | ||
}[]; | ||
type: string; | ||
constant?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
payable?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
payable: boolean; | ||
type: string; | ||
constant?: undefined; | ||
inputs?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
constant?: undefined; | ||
outputs?: undefined; | ||
payable?: undefined; | ||
})[]; | ||
export declare const abiERC20: readonly [{ | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "name"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "string"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_spender"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_value"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "approve"; | ||
readonly outputs: readonly [{ | ||
readonly name: "success"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "totalSupply"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_value"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "transferFrom"; | ||
readonly outputs: readonly [{ | ||
readonly name: "success"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "decimals"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "version"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "string"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "balanceOf"; | ||
readonly outputs: readonly [{ | ||
readonly name: "balance"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "symbol"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "string"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_value"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "transfer"; | ||
readonly outputs: readonly [{ | ||
readonly name: "success"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_spender"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_value"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly name: "_extraData"; | ||
readonly type: "bytes"; | ||
}]; | ||
readonly name: "approveAndCall"; | ||
readonly outputs: readonly [{ | ||
readonly name: "success"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_spender"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "allowance"; | ||
readonly outputs: readonly [{ | ||
readonly name: "remaining"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly name: "_initialAmount"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly name: "_tokenName"; | ||
readonly type: "string"; | ||
}, { | ||
readonly name: "_decimalUnits"; | ||
readonly type: "uint8"; | ||
}, { | ||
readonly name: "_tokenSymbol"; | ||
readonly type: "string"; | ||
}]; | ||
readonly type: "constructor"; | ||
}, { | ||
readonly payable: false; | ||
readonly type: "fallback"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly name: "_from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly name: "_to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly name: "_value"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "Transfer"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly name: "_spender"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly name: "_value"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "Approval"; | ||
readonly type: "event"; | ||
}]; |
@@ -1,29 +0,285 @@ | ||
export declare const abiERC721: ({ | ||
constant: boolean; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
}[]; | ||
payable: boolean; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
constant?: undefined; | ||
outputs?: undefined; | ||
payable?: undefined; | ||
stateMutability?: undefined; | ||
})[]; | ||
export declare const abiERC721: readonly [{ | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "interfaceID"; | ||
readonly type: "bytes4"; | ||
}]; | ||
readonly name: "supportsInterface"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "name"; | ||
readonly outputs: readonly [{ | ||
readonly name: "_name"; | ||
readonly type: "string"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "getApproved"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "address"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_approved"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "approve"; | ||
readonly outputs: readonly []; | ||
readonly payable: true; | ||
readonly stateMutability: "payable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "totalSupply"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "transferFrom"; | ||
readonly outputs: readonly []; | ||
readonly payable: true; | ||
readonly stateMutability: "payable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_index"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "tokenOfOwnerByIndex"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "safeTransferFrom"; | ||
readonly outputs: readonly []; | ||
readonly payable: true; | ||
readonly stateMutability: "payable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_index"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "tokenByIndex"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "ownerOf"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "address"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "balanceOf"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly []; | ||
readonly name: "symbol"; | ||
readonly outputs: readonly [{ | ||
readonly name: "_symbol"; | ||
readonly type: "string"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_operator"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_approved"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly name: "setApprovalForAll"; | ||
readonly outputs: readonly []; | ||
readonly payable: false; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: false; | ||
readonly inputs: readonly [{ | ||
readonly name: "_from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly name: "data"; | ||
readonly type: "bytes"; | ||
}]; | ||
readonly name: "safeTransferFrom"; | ||
readonly outputs: readonly []; | ||
readonly payable: true; | ||
readonly stateMutability: "payable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "tokenURI"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "string"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly constant: true; | ||
readonly inputs: readonly [{ | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}, { | ||
readonly name: "_operator"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "isApprovedForAll"; | ||
readonly outputs: readonly [{ | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly payable: false; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly name: "_from"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly name: "_to"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "Transfer"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly name: "_approved"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly name: "_tokenId"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "Approval"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly name: "_owner"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly name: "_operator"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly name: "_approved"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly name: "ApprovalForAll"; | ||
readonly type: "event"; | ||
}]; |
{ | ||
"name": "@metamask/metamask-eth-abis", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "The MetaMask Node module for smart contracts ABIs.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/MetaMask/metamask-eth-abis#readme", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84492
1734