Skip to content

Commit

Permalink
Add remaining hopr-admin contracts (#95)
Browse files Browse the repository at this point in the history
* Add missing hoprTokenABI and update hoprNodeModuleABI

* Add dufour related SC addresses

* Extract NodeStakeFactory ABI from hopr-admin + rename nodeModuleABI

* Fix name of hoprNodeStakeFactoryABI

* Update package.json version

* Add remaining hopr-admin staking contracts

* Move ERC721ABI
  • Loading branch information
Luis Martínez authored Oct 11, 2023
1 parent 09da6f0 commit 42de3bc
Show file tree
Hide file tree
Showing 7 changed files with 2,741 additions and 0 deletions.
388 changes: 388 additions & 0 deletions src/ethereum/erc721ABI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,388 @@
export const erc721ABI = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address'
},
{
indexed: true,
internalType: 'address',
name: 'approved',
type: 'address'
},
{
indexed: true,
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'Approval',
type: 'event'
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address'
},
{
indexed: true,
internalType: 'address',
name: 'operator',
type: 'address'
},
{
indexed: false,
internalType: 'bool',
name: 'approved',
type: 'bool'
}
],
name: 'ApprovalForAll',
type: 'event'
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address'
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address'
},
{
indexed: true,
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'Transfer',
type: 'event'
},
{
inputs: [
{
internalType: 'address',
name: 'to',
type: 'address'
},
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'approve',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address'
}
],
name: 'balanceOf',
outputs: [
{
internalType: 'uint256',
name: 'balance',
type: 'uint256'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'getApproved',
outputs: [
{
internalType: 'address',
name: 'operator',
type: 'address'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address'
},
{
internalType: 'address',
name: 'operator',
type: 'address'
}
],
name: 'isApprovedForAll',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [],
name: 'name',
outputs: [
{
internalType: 'string',
name: '',
type: 'string'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'ownerOf',
outputs: [
{
internalType: 'address',
name: 'owner',
type: 'address'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'address',
name: 'from',
type: 'address'
},
{
internalType: 'address',
name: 'to',
type: 'address'
},
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'safeTransferFrom',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{
internalType: 'address',
name: 'from',
type: 'address'
},
{
internalType: 'address',
name: 'to',
type: 'address'
},
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes'
}
],
name: 'safeTransferFrom',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{
internalType: 'address',
name: 'operator',
type: 'address'
},
{
internalType: 'bool',
name: '_approved',
type: 'bool'
}
],
name: 'setApprovalForAll',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{
internalType: 'bytes4',
name: 'interfaceId',
type: 'bytes4'
}
],
name: 'supportsInterface',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [],
name: 'symbol',
outputs: [
{
internalType: 'string',
name: '',
type: 'string'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'uint256',
name: 'index',
type: 'uint256'
}
],
name: 'tokenByIndex',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address'
},
{
internalType: 'uint256',
name: 'index',
type: 'uint256'
}
],
name: 'tokenOfOwnerByIndex',
outputs: [
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'tokenURI',
outputs: [
{
internalType: 'string',
name: '',
type: 'string'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [],
name: 'totalSupply',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'address',
name: 'from',
type: 'address'
},
{
internalType: 'address',
name: 'to',
type: 'address'
},
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256'
}
],
name: 'transferFrom',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
}
];
1 change: 1 addition & 0 deletions src/ethereum/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './smartContractAddresses';
export * from './wrapperABI';
export * from './stakingV2';
export * from './erc721ABI';
Loading

0 comments on commit 42de3bc

Please sign in to comment.