Skip to content

Commit

Permalink
Merge pull request #9 from superrare/feature/aggregation-rarible
Browse files Browse the repository at this point in the history
Added ABI, haskell contract, and purescript for Rarible 721 contract
  • Loading branch information
RubenAstudillo authored Sep 1, 2022
2 parents 36ddc3b + 80784b6 commit 66b3916
Show file tree
Hide file tree
Showing 32 changed files with 8,052 additions and 62 deletions.
509 changes: 509 additions & 0 deletions contracts/abis/ChainlinkEACAggregator.json

Large diffs are not rendered by default.

1,937 changes: 1,937 additions & 0 deletions contracts/abis/KnownOriginDigitalAsset.json

Large diffs are not rendered by default.

1,329 changes: 1,329 additions & 0 deletions contracts/abis/MakersplaceV2.json

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions contracts/abis/Rarible.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/build/IERC721CreatorRoyalty.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"networks": {},
"lastModified": 1606338040464,
"lastModified": 1614103696609,
"code": {
"deployedBytecode": {
"linkReferences": {},
Expand Down
2 changes: 1 addition & 1 deletion contracts/build/IERC721TokenCreator.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"networks": {},
"lastModified": 1606338040472,
"lastModified": 1614103696616,
"code": {
"deployedBytecode": {
"linkReferences": {},
Expand Down
2 changes: 1 addition & 1 deletion contracts/build/ISupeRare.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"networks": {},
"lastModified": 1606338084554,
"lastModified": 1614103736041,
"code": {
"deployedBytecode": {
"linkReferences": {},
Expand Down
2 changes: 1 addition & 1 deletion contracts/build/Marketplace/IMarketplaceSettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"networks": {},
"lastModified": 1606338040487,
"lastModified": 1614103696623,
"code": {
"deployedBytecode": {
"linkReferences": {},
Expand Down
6 changes: 3 additions & 3 deletions contracts/build/Marketplace/MarketplaceSettings.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/build/MaybeSendValue.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"networks": {},
"lastModified": 1606338041359,
"lastModified": 1614103697090,
"code": {
"deployedBytecode": {
"linkReferences": {},
Expand Down
6 changes: 3 additions & 3 deletions contracts/build/SendValueOrEscrow.json

Large diffs are not rendered by default.

23 changes: 4 additions & 19 deletions contracts/build/SuperRareAuctionHouse.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/build/SuperRareLegacy.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/build/SuperRareMarketAuctionV2.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/build/SuperRareRoyaltyRegistry.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/build/SuperRareTokenCreatorRegistry.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/build/TestAssertFailOnPay.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"networks": {},
"lastModified": 1606338057909,
"lastModified": 1614103712665,
"code": {
"deployedBytecode": {
"linkReferences": {},
"object": "6080604052600436106100225760003560e01c80634da00aea1461003657610031565b3661003157600061002f57fe5b005b600080fd5b6100ac6004803603608081101561004c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506100ae565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561012757600080fd5b505af115801561013b573d6000803e3d6000fd5b50505050505050505056fea26469706673582212208d2de7e7e1ba7e3a0152e884ab1618871ea5f44355cbbcc018dee8c5985ea9bc64736f6c634300060c0033"
"object": "6080604052600436106100225760003560e01c80634da00aea1461003657610031565b3661003157600061002f57fe5b005b600080fd5b6100ac6004803603608081101561004c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506100ae565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561012757600080fd5b505af115801561013b573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220ece980ac3521b3c9d2b15767a731afbe1142aa0fc1dee14ef832ed49dde8d08c64736f6c634300060c0033"
},
"bytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b5061017c806100206000396000f3fe6080604052600436106100225760003560e01c80634da00aea1461003657610031565b3661003157600061002f57fe5b005b600080fd5b6100ac6004803603608081101561004c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506100ae565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561012757600080fd5b505af115801561013b573d6000803e3d6000fd5b50505050505050505056fea26469706673582212208d2de7e7e1ba7e3a0152e884ab1618871ea5f44355cbbcc018dee8c5985ea9bc64736f6c634300060c0033"
"object": "608060405234801561001057600080fd5b5061017c806100206000396000f3fe6080604052600436106100225760003560e01c80634da00aea1461003657610031565b3661003157600061002f57fe5b005b600080fd5b6100ac6004803603608081101561004c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506100ae565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561012757600080fd5b505af115801561013b573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220ece980ac3521b3c9d2b15767a731afbe1142aa0fc1dee14ef832ed49dde8d08c64736f6c634300060c0033"
}
},
"abi": [
Expand Down
6 changes: 3 additions & 3 deletions contracts/build/TestExpensiveWallet.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/build/TestRequireFailOnPay.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"networks": {},
"lastModified": 1606338067279,
"lastModified": 1614103720404,
"code": {
"deployedBytecode": {
"linkReferences": {},
"object": "6080604052600436106100225760003560e01c80634da00aea146100a25761009d565b3661009d57600061009b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f726561647920746f206661696c2121210000000000000000000000000000000081525060200191505060405180910390fd5b005b600080fd5b610118600480360360808110156100b857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061011a565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561019357600080fd5b505af11580156101a7573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220d1e016bf1a3c6ea15553205750f6d95020372ff0b90996c4adb04613fae798d064736f6c634300060c0033"
"object": "6080604052600436106100225760003560e01c80634da00aea146100a25761009d565b3661009d57600061009b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f726561647920746f206661696c2121210000000000000000000000000000000081525060200191505060405180910390fd5b005b600080fd5b610118600480360360808110156100b857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061011a565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561019357600080fd5b505af11580156101a7573d6000803e3d6000fd5b50505050505050505056fea26469706673582212205ba2d53861527410a6f2429f3e0e1ddf539232856c9594ff7381fbd61b6b1f8364736f6c634300060c0033"
},
"bytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506101e8806100206000396000f3fe6080604052600436106100225760003560e01c80634da00aea146100a25761009d565b3661009d57600061009b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f726561647920746f206661696c2121210000000000000000000000000000000081525060200191505060405180910390fd5b005b600080fd5b610118600480360360808110156100b857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061011a565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561019357600080fd5b505af11580156101a7573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220d1e016bf1a3c6ea15553205750f6d95020372ff0b90996c4adb04613fae798d064736f6c634300060c0033"
"object": "608060405234801561001057600080fd5b506101e8806100206000396000f3fe6080604052600436106100225760003560e01c80634da00aea146100a25761009d565b3661009d57600061009b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f726561647920746f206661696c2121210000000000000000000000000000000081525060200191505060405180910390fd5b005b600080fd5b610118600480360360808110156100b857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061011a565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561019357600080fd5b505af11580156101a7573d6000803e3d6000fd5b50505050505050505056fea26469706673582212205ba2d53861527410a6f2429f3e0e1ddf539232856c9594ff7381fbd61b6b1f8364736f6c634300060c0033"
}
},
"abi": [
Expand Down
6 changes: 3 additions & 3 deletions contracts/build/TestRevertOnPay.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"networks": {},
"lastModified": 1606338084547,
"lastModified": 1614103736034,
"code": {
"deployedBytecode": {
"linkReferences": {},
"object": "6080604052600436106100225760003560e01c80634da00aea1461009a57610095565b36610095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f57696c6c20616c7761797300000000000000000000000000000000000000000081525060200191505060405180910390fd5b600080fd5b610110600480360360808110156100b057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610112565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561018b57600080fd5b505af115801561019f573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220ae45d55f40881b3aa96e0e95a11c5bdd04e95ab2b3b510bda232949a3a6a8cfd64736f6c634300060c0033"
"object": "6080604052600436106100225760003560e01c80634da00aea1461009a57610095565b36610095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f57696c6c20616c7761797300000000000000000000000000000000000000000081525060200191505060405180910390fd5b600080fd5b610110600480360360808110156100b057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610112565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561018b57600080fd5b505af115801561019f573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220dd5d31c3c5b0051e22eb577405af63a559fe5075a005b0eb2172bf8f642fc13164736f6c634300060c0033"
},
"bytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506101e0806100206000396000f3fe6080604052600436106100225760003560e01c80634da00aea1461009a57610095565b36610095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f57696c6c20616c7761797300000000000000000000000000000000000000000081525060200191505060405180910390fd5b600080fd5b610110600480360360808110156100b057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610112565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561018b57600080fd5b505af115801561019f573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220ae45d55f40881b3aa96e0e95a11c5bdd04e95ab2b3b510bda232949a3a6a8cfd64736f6c634300060c0033"
"object": "608060405234801561001057600080fd5b506101e0806100206000396000f3fe6080604052600436106100225760003560e01c80634da00aea1461009a57610095565b36610095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f57696c6c20616c7761797300000000000000000000000000000000000000000081525060200191505060405180910390fd5b600080fd5b610110600480360360808110156100b057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610112565b005b8073ffffffffffffffffffffffffffffffffffffffff1663c0f4ed31348686866040518563ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b15801561018b57600080fd5b505af115801561019f573d6000803e3d6000fd5b50505050505050505056fea2646970667358221220dd5d31c3c5b0051e22eb577405af63a559fe5075a005b0eb2172bf8f642fc13164736f6c634300060c0033"
}
},
"abi": [
Expand Down
12 changes: 12 additions & 0 deletions hs-contracts/src/Pixura/Contracts/ChainlinkEACAggregator.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}

module Pixura.Contracts.ChainlinkEACAggregator where

import Network.Ethereum.Contract.TH

[abiFrom|contracts/abis/ChainlinkEACAggregator.json|]
13 changes: 13 additions & 0 deletions hs-contracts/src/Pixura/Contracts/KnownOriginDigitalAsset.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

module Pixura.Contracts.KnownOriginDigitalAsset where

import Network.Ethereum.Contract.TH

[abiFrom|contracts/abis/KnownOriginDigitalAsset.json|]
13 changes: 13 additions & 0 deletions hs-contracts/src/Pixura/Contracts/MakersplaceV2.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

module Pixura.Contracts.MakersplaceV2 where

import Network.Ethereum.Contract.TH

[abiFrom|contracts/abis/MakersplaceV2.json|]
12 changes: 12 additions & 0 deletions hs-contracts/src/Pixura/Contracts/Rarible.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}

module Pixura.Contracts.Rarible where

import Network.Ethereum.Contract.TH

[abiFrom|contracts/abis/Rarible.json|]
6 changes: 5 additions & 1 deletion pixura-contracts.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: faac2bd22b40047351845524de1c72213669a24fee868884fe13b16858ed2340
-- hash: 6325ba26c39c9ef0a898ef25a4e83fb43ac9861f44bb83bbdbae638876d89953

name: pixura-contracts
version: 0.3.0.0
Expand All @@ -28,6 +28,7 @@ source-repository head
library
exposed-modules:
Pixura.Contracts.Autoglyphs
Pixura.Contracts.ChainlinkEACAggregator
Pixura.Contracts.CryptoPunks
Pixura.Contracts.ERC20
Pixura.Contracts.ERC721
Expand All @@ -36,9 +37,12 @@ library
Pixura.Contracts.EthOracle
Pixura.Contracts.IERC721CreatorRoyalty
Pixura.Contracts.IMarketplaceSettings
Pixura.Contracts.KnownOriginDigitalAsset
Pixura.Contracts.MakersplaceV2
Pixura.Contracts.Medianizer
Pixura.Contracts.PixuraNFT
Pixura.Contracts.PixuraNFTContractGenerator
Pixura.Contracts.Rarible
Pixura.Contracts.SuperRare
Pixura.Contracts.SuperRareAuctionHouse
Pixura.Contracts.SuperRareLegacy
Expand Down
Loading

0 comments on commit 66b3916

Please sign in to comment.