/ frontend / bloxy-abi.json
bloxy-abi.json
   1  [
   2    {
   3      "type": "constructor",
   4      "inputs": [
   5        {
   6          "name": "_paymentToken",
   7          "type": "address",
   8          "internalType": "address"
   9        },
  10        {
  11          "name": "_paymentTokenDecimals",
  12          "type": "uint256",
  13          "internalType": "uint256"
  14        },
  15        {
  16          "name": "_datafeed",
  17          "type": "address",
  18          "internalType": "address"
  19        }
  20      ],
  21      "stateMutability": "nonpayable"
  22    },
  23    {
  24      "type": "function",
  25      "name": "AkashWalletAddress",
  26      "inputs": [],
  27      "outputs": [
  28        {
  29          "name": "",
  30          "type": "string",
  31          "internalType": "string"
  32        }
  33      ],
  34      "stateMutability": "view"
  35    },
  36    {
  37      "type": "function",
  38      "name": "BloxyIPAddress",
  39      "inputs": [],
  40      "outputs": [
  41        {
  42          "name": "",
  43          "type": "string",
  44          "internalType": "string"
  45        }
  46      ],
  47      "stateMutability": "view"
  48    },
  49    {
  50      "type": "function",
  51      "name": "approve",
  52      "inputs": [
  53        {
  54          "name": "to",
  55          "type": "address",
  56          "internalType": "address"
  57        },
  58        {
  59          "name": "tokenId",
  60          "type": "uint256",
  61          "internalType": "uint256"
  62        }
  63      ],
  64      "outputs": [],
  65      "stateMutability": "nonpayable"
  66    },
  67    {
  68      "type": "function",
  69      "name": "balanceOf",
  70      "inputs": [
  71        {
  72          "name": "owner",
  73          "type": "address",
  74          "internalType": "address"
  75        }
  76      ],
  77      "outputs": [
  78        {
  79          "name": "",
  80          "type": "uint256",
  81          "internalType": "uint256"
  82        }
  83      ],
  84      "stateMutability": "view"
  85    },
  86    {
  87      "type": "function",
  88      "name": "entries",
  89      "inputs": [
  90        {
  91          "name": "",
  92          "type": "uint256",
  93          "internalType": "uint256"
  94        }
  95      ],
  96      "outputs": [
  97        {
  98          "name": "name",
  99          "type": "string",
 100          "internalType": "string"
 101        },
 102        {
 103          "name": "domain",
 104          "type": "string",
 105          "internalType": "string"
 106        },
 107        {
 108          "name": "target",
 109          "type": "string",
 110          "internalType": "string"
 111        },
 112        {
 113          "name": "expiry",
 114          "type": "uint256",
 115          "internalType": "uint256"
 116        }
 117      ],
 118      "stateMutability": "view"
 119    },
 120    {
 121      "type": "function",
 122      "name": "extend",
 123      "inputs": [
 124        {
 125          "name": "tokenId",
 126          "type": "uint256",
 127          "internalType": "uint256"
 128        },
 129        {
 130          "name": "newExpiry",
 131          "type": "uint256",
 132          "internalType": "uint256"
 133        }
 134      ],
 135      "outputs": [],
 136      "stateMutability": "payable"
 137    },
 138    {
 139      "type": "function",
 140      "name": "getAll",
 141      "inputs": [],
 142      "outputs": [
 143        {
 144          "name": "",
 145          "type": "tuple[]",
 146          "internalType": "struct Bloxy.Entry[]",
 147          "components": [
 148            {
 149              "name": "name",
 150              "type": "string",
 151              "internalType": "string"
 152            },
 153            {
 154              "name": "domain",
 155              "type": "string",
 156              "internalType": "string"
 157            },
 158            {
 159              "name": "target",
 160              "type": "string",
 161              "internalType": "string"
 162            },
 163            {
 164              "name": "expiry",
 165              "type": "uint256",
 166              "internalType": "uint256"
 167            }
 168          ]
 169        }
 170      ],
 171      "stateMutability": "view"
 172    },
 173    {
 174      "type": "function",
 175      "name": "getApproved",
 176      "inputs": [
 177        {
 178          "name": "tokenId",
 179          "type": "uint256",
 180          "internalType": "uint256"
 181        }
 182      ],
 183      "outputs": [
 184        {
 185          "name": "",
 186          "type": "address",
 187          "internalType": "address"
 188        }
 189      ],
 190      "stateMutability": "view"
 191    },
 192    {
 193      "type": "function",
 194      "name": "getPrice",
 195      "inputs": [
 196        {
 197          "name": "duration",
 198          "type": "uint256",
 199          "internalType": "uint256"
 200        }
 201      ],
 202      "outputs": [
 203        {
 204          "name": "",
 205          "type": "uint256",
 206          "internalType": "uint256"
 207        }
 208      ],
 209      "stateMutability": "view"
 210    },
 211    {
 212      "type": "function",
 213      "name": "getPriceETH",
 214      "inputs": [
 215        {
 216          "name": "duration",
 217          "type": "uint256",
 218          "internalType": "uint256"
 219        }
 220      ],
 221      "outputs": [
 222        {
 223          "name": "",
 224          "type": "uint256",
 225          "internalType": "uint256"
 226        }
 227      ],
 228      "stateMutability": "view"
 229    },
 230    {
 231      "type": "function",
 232      "name": "getValid",
 233      "inputs": [],
 234      "outputs": [
 235        {
 236          "name": "",
 237          "type": "tuple[]",
 238          "internalType": "struct Bloxy.Entry[]",
 239          "components": [
 240            {
 241              "name": "name",
 242              "type": "string",
 243              "internalType": "string"
 244            },
 245            {
 246              "name": "domain",
 247              "type": "string",
 248              "internalType": "string"
 249            },
 250            {
 251              "name": "target",
 252              "type": "string",
 253              "internalType": "string"
 254            },
 255            {
 256              "name": "expiry",
 257              "type": "uint256",
 258              "internalType": "uint256"
 259            }
 260          ]
 261        }
 262      ],
 263      "stateMutability": "view"
 264    },
 265    {
 266      "type": "function",
 267      "name": "hashTaken",
 268      "inputs": [
 269        {
 270          "name": "",
 271          "type": "bytes32",
 272          "internalType": "bytes32"
 273        }
 274      ],
 275      "outputs": [
 276        {
 277          "name": "",
 278          "type": "bool",
 279          "internalType": "bool"
 280        }
 281      ],
 282      "stateMutability": "view"
 283    },
 284    {
 285      "type": "function",
 286      "name": "isApprovedForAll",
 287      "inputs": [
 288        {
 289          "name": "owner",
 290          "type": "address",
 291          "internalType": "address"
 292        },
 293        {
 294          "name": "operator",
 295          "type": "address",
 296          "internalType": "address"
 297        }
 298      ],
 299      "outputs": [
 300        {
 301          "name": "",
 302          "type": "bool",
 303          "internalType": "bool"
 304        }
 305      ],
 306      "stateMutability": "view"
 307    },
 308    {
 309      "type": "function",
 310      "name": "name",
 311      "inputs": [],
 312      "outputs": [
 313        {
 314          "name": "",
 315          "type": "string",
 316          "internalType": "string"
 317        }
 318      ],
 319      "stateMutability": "view"
 320    },
 321    {
 322      "type": "function",
 323      "name": "newEntry",
 324      "inputs": [
 325        {
 326          "name": "entry",
 327          "type": "tuple",
 328          "internalType": "struct Bloxy.Entry",
 329          "components": [
 330            {
 331              "name": "name",
 332              "type": "string",
 333              "internalType": "string"
 334            },
 335            {
 336              "name": "domain",
 337              "type": "string",
 338              "internalType": "string"
 339            },
 340            {
 341              "name": "target",
 342              "type": "string",
 343              "internalType": "string"
 344            },
 345            {
 346              "name": "expiry",
 347              "type": "uint256",
 348              "internalType": "uint256"
 349            }
 350          ]
 351        }
 352      ],
 353      "outputs": [],
 354      "stateMutability": "payable"
 355    },
 356    {
 357      "type": "function",
 358      "name": "owner",
 359      "inputs": [],
 360      "outputs": [
 361        {
 362          "name": "",
 363          "type": "address",
 364          "internalType": "address"
 365        }
 366      ],
 367      "stateMutability": "view"
 368    },
 369    {
 370      "type": "function",
 371      "name": "ownerOf",
 372      "inputs": [
 373        {
 374          "name": "tokenId",
 375          "type": "uint256",
 376          "internalType": "uint256"
 377        }
 378      ],
 379      "outputs": [
 380        {
 381          "name": "",
 382          "type": "address",
 383          "internalType": "address"
 384        }
 385      ],
 386      "stateMutability": "view"
 387    },
 388    {
 389      "type": "function",
 390      "name": "paymentToken",
 391      "inputs": [],
 392      "outputs": [
 393        {
 394          "name": "",
 395          "type": "address",
 396          "internalType": "contract IERC20"
 397        }
 398      ],
 399      "stateMutability": "view"
 400    },
 401    {
 402      "type": "function",
 403      "name": "reclaim",
 404      "inputs": [
 405        {
 406          "name": "tokenId",
 407          "type": "uint256",
 408          "internalType": "uint256"
 409        },
 410        {
 411          "name": "entry",
 412          "type": "tuple",
 413          "internalType": "struct Bloxy.Entry",
 414          "components": [
 415            {
 416              "name": "name",
 417              "type": "string",
 418              "internalType": "string"
 419            },
 420            {
 421              "name": "domain",
 422              "type": "string",
 423              "internalType": "string"
 424            },
 425            {
 426              "name": "target",
 427              "type": "string",
 428              "internalType": "string"
 429            },
 430            {
 431              "name": "expiry",
 432              "type": "uint256",
 433              "internalType": "uint256"
 434            }
 435          ]
 436        }
 437      ],
 438      "outputs": [],
 439      "stateMutability": "payable"
 440    },
 441    {
 442      "type": "function",
 443      "name": "removeEntry",
 444      "inputs": [
 445        {
 446          "name": "tokenId",
 447          "type": "uint256",
 448          "internalType": "uint256"
 449        }
 450      ],
 451      "outputs": [],
 452      "stateMutability": "nonpayable"
 453    },
 454    {
 455      "type": "function",
 456      "name": "renounceOwnership",
 457      "inputs": [],
 458      "outputs": [],
 459      "stateMutability": "nonpayable"
 460    },
 461    {
 462      "type": "function",
 463      "name": "safeTransferFrom",
 464      "inputs": [
 465        {
 466          "name": "from",
 467          "type": "address",
 468          "internalType": "address"
 469        },
 470        {
 471          "name": "to",
 472          "type": "address",
 473          "internalType": "address"
 474        },
 475        {
 476          "name": "tokenId",
 477          "type": "uint256",
 478          "internalType": "uint256"
 479        }
 480      ],
 481      "outputs": [],
 482      "stateMutability": "nonpayable"
 483    },
 484    {
 485      "type": "function",
 486      "name": "safeTransferFrom",
 487      "inputs": [
 488        {
 489          "name": "from",
 490          "type": "address",
 491          "internalType": "address"
 492        },
 493        {
 494          "name": "to",
 495          "type": "address",
 496          "internalType": "address"
 497        },
 498        {
 499          "name": "tokenId",
 500          "type": "uint256",
 501          "internalType": "uint256"
 502        },
 503        {
 504          "name": "data",
 505          "type": "bytes",
 506          "internalType": "bytes"
 507        }
 508      ],
 509      "outputs": [],
 510      "stateMutability": "nonpayable"
 511    },
 512    {
 513      "type": "function",
 514      "name": "setApprovalForAll",
 515      "inputs": [
 516        {
 517          "name": "operator",
 518          "type": "address",
 519          "internalType": "address"
 520        },
 521        {
 522          "name": "approved",
 523          "type": "bool",
 524          "internalType": "bool"
 525        }
 526      ],
 527      "outputs": [],
 528      "stateMutability": "nonpayable"
 529    },
 530    {
 531      "type": "function",
 532      "name": "setEntry",
 533      "inputs": [
 534        {
 535          "name": "tokenId",
 536          "type": "uint256",
 537          "internalType": "uint256"
 538        },
 539        {
 540          "name": "entry",
 541          "type": "tuple",
 542          "internalType": "struct Bloxy.Entry",
 543          "components": [
 544            {
 545              "name": "name",
 546              "type": "string",
 547              "internalType": "string"
 548            },
 549            {
 550              "name": "domain",
 551              "type": "string",
 552              "internalType": "string"
 553            },
 554            {
 555              "name": "target",
 556              "type": "string",
 557              "internalType": "string"
 558            },
 559            {
 560              "name": "expiry",
 561              "type": "uint256",
 562              "internalType": "uint256"
 563            }
 564          ]
 565        }
 566      ],
 567      "outputs": [],
 568      "stateMutability": "nonpayable"
 569    },
 570    {
 571      "type": "function",
 572      "name": "supportsInterface",
 573      "inputs": [
 574        {
 575          "name": "interfaceId",
 576          "type": "bytes4",
 577          "internalType": "bytes4"
 578        }
 579      ],
 580      "outputs": [
 581        {
 582          "name": "",
 583          "type": "bool",
 584          "internalType": "bool"
 585        }
 586      ],
 587      "stateMutability": "view"
 588    },
 589    {
 590      "type": "function",
 591      "name": "symbol",
 592      "inputs": [],
 593      "outputs": [
 594        {
 595          "name": "",
 596          "type": "string",
 597          "internalType": "string"
 598        }
 599      ],
 600      "stateMutability": "view"
 601    },
 602    {
 603      "type": "function",
 604      "name": "tokenByIndex",
 605      "inputs": [
 606        {
 607          "name": "index",
 608          "type": "uint256",
 609          "internalType": "uint256"
 610        }
 611      ],
 612      "outputs": [
 613        {
 614          "name": "",
 615          "type": "uint256",
 616          "internalType": "uint256"
 617        }
 618      ],
 619      "stateMutability": "view"
 620    },
 621    {
 622      "type": "function",
 623      "name": "tokenOfOwnerByIndex",
 624      "inputs": [
 625        {
 626          "name": "owner",
 627          "type": "address",
 628          "internalType": "address"
 629        },
 630        {
 631          "name": "index",
 632          "type": "uint256",
 633          "internalType": "uint256"
 634        }
 635      ],
 636      "outputs": [
 637        {
 638          "name": "",
 639          "type": "uint256",
 640          "internalType": "uint256"
 641        }
 642      ],
 643      "stateMutability": "view"
 644    },
 645    {
 646      "type": "function",
 647      "name": "tokenURI",
 648      "inputs": [
 649        {
 650          "name": "tokenId",
 651          "type": "uint256",
 652          "internalType": "uint256"
 653        }
 654      ],
 655      "outputs": [
 656        {
 657          "name": "",
 658          "type": "string",
 659          "internalType": "string"
 660        }
 661      ],
 662      "stateMutability": "view"
 663    },
 664    {
 665      "type": "function",
 666      "name": "totalSupply",
 667      "inputs": [],
 668      "outputs": [
 669        {
 670          "name": "",
 671          "type": "uint256",
 672          "internalType": "uint256"
 673        }
 674      ],
 675      "stateMutability": "view"
 676    },
 677    {
 678      "type": "function",
 679      "name": "transferFrom",
 680      "inputs": [
 681        {
 682          "name": "from",
 683          "type": "address",
 684          "internalType": "address"
 685        },
 686        {
 687          "name": "to",
 688          "type": "address",
 689          "internalType": "address"
 690        },
 691        {
 692          "name": "tokenId",
 693          "type": "uint256",
 694          "internalType": "uint256"
 695        }
 696      ],
 697      "outputs": [],
 698      "stateMutability": "nonpayable"
 699    },
 700    {
 701      "type": "function",
 702      "name": "transferOwnership",
 703      "inputs": [
 704        {
 705          "name": "newOwner",
 706          "type": "address",
 707          "internalType": "address"
 708        }
 709      ],
 710      "outputs": [],
 711      "stateMutability": "nonpayable"
 712    },
 713    {
 714      "type": "function",
 715      "name": "withdraw",
 716      "inputs": [],
 717      "outputs": [],
 718      "stateMutability": "nonpayable"
 719    },
 720    {
 721      "type": "event",
 722      "name": "Approval",
 723      "inputs": [
 724        {
 725          "name": "owner",
 726          "type": "address",
 727          "indexed": true,
 728          "internalType": "address"
 729        },
 730        {
 731          "name": "approved",
 732          "type": "address",
 733          "indexed": true,
 734          "internalType": "address"
 735        },
 736        {
 737          "name": "tokenId",
 738          "type": "uint256",
 739          "indexed": true,
 740          "internalType": "uint256"
 741        }
 742      ],
 743      "anonymous": false
 744    },
 745    {
 746      "type": "event",
 747      "name": "ApprovalForAll",
 748      "inputs": [
 749        {
 750          "name": "owner",
 751          "type": "address",
 752          "indexed": true,
 753          "internalType": "address"
 754        },
 755        {
 756          "name": "operator",
 757          "type": "address",
 758          "indexed": true,
 759          "internalType": "address"
 760        },
 761        {
 762          "name": "approved",
 763          "type": "bool",
 764          "indexed": false,
 765          "internalType": "bool"
 766        }
 767      ],
 768      "anonymous": false
 769    },
 770    {
 771      "type": "event",
 772      "name": "ExpiryExtended",
 773      "inputs": [
 774        {
 775          "name": "tokenId",
 776          "type": "uint256",
 777          "indexed": true,
 778          "internalType": "uint256"
 779        },
 780        {
 781          "name": "expiry",
 782          "type": "uint256",
 783          "indexed": true,
 784          "internalType": "uint256"
 785        }
 786      ],
 787      "anonymous": false
 788    },
 789    {
 790      "type": "event",
 791      "name": "NewEntry",
 792      "inputs": [
 793        {
 794          "name": "tokenId",
 795          "type": "uint256",
 796          "indexed": true,
 797          "internalType": "uint256"
 798        },
 799        {
 800          "name": "expiry",
 801          "type": "uint256",
 802          "indexed": true,
 803          "internalType": "uint256"
 804        },
 805        {
 806          "name": "name",
 807          "type": "string",
 808          "indexed": false,
 809          "internalType": "string"
 810        }
 811      ],
 812      "anonymous": false
 813    },
 814    {
 815      "type": "event",
 816      "name": "OwnershipTransferred",
 817      "inputs": [
 818        {
 819          "name": "previousOwner",
 820          "type": "address",
 821          "indexed": true,
 822          "internalType": "address"
 823        },
 824        {
 825          "name": "newOwner",
 826          "type": "address",
 827          "indexed": true,
 828          "internalType": "address"
 829        }
 830      ],
 831      "anonymous": false
 832    },
 833    {
 834      "type": "event",
 835      "name": "ReclaimedEntry",
 836      "inputs": [
 837        {
 838          "name": "tokenId",
 839          "type": "uint256",
 840          "indexed": true,
 841          "internalType": "uint256"
 842        },
 843        {
 844          "name": "name",
 845          "type": "string",
 846          "indexed": false,
 847          "internalType": "string"
 848        }
 849      ],
 850      "anonymous": false
 851    },
 852    {
 853      "type": "event",
 854      "name": "RemovedEntry",
 855      "inputs": [
 856        {
 857          "name": "tokenId",
 858          "type": "uint256",
 859          "indexed": true,
 860          "internalType": "uint256"
 861        }
 862      ],
 863      "anonymous": false
 864    },
 865    {
 866      "type": "event",
 867      "name": "Transfer",
 868      "inputs": [
 869        {
 870          "name": "from",
 871          "type": "address",
 872          "indexed": true,
 873          "internalType": "address"
 874        },
 875        {
 876          "name": "to",
 877          "type": "address",
 878          "indexed": true,
 879          "internalType": "address"
 880        },
 881        {
 882          "name": "tokenId",
 883          "type": "uint256",
 884          "indexed": true,
 885          "internalType": "uint256"
 886        }
 887      ],
 888      "anonymous": false
 889    },
 890    {
 891      "type": "error",
 892      "name": "BloxyNameTaken",
 893      "inputs": [
 894        {
 895          "name": "",
 896          "type": "string",
 897          "internalType": "string"
 898        }
 899      ]
 900    },
 901    {
 902      "type": "error",
 903      "name": "ERC721EnumerableForbiddenBatchMint",
 904      "inputs": []
 905    },
 906    {
 907      "type": "error",
 908      "name": "ERC721IncorrectOwner",
 909      "inputs": [
 910        {
 911          "name": "sender",
 912          "type": "address",
 913          "internalType": "address"
 914        },
 915        {
 916          "name": "tokenId",
 917          "type": "uint256",
 918          "internalType": "uint256"
 919        },
 920        {
 921          "name": "owner",
 922          "type": "address",
 923          "internalType": "address"
 924        }
 925      ]
 926    },
 927    {
 928      "type": "error",
 929      "name": "ERC721InsufficientApproval",
 930      "inputs": [
 931        {
 932          "name": "operator",
 933          "type": "address",
 934          "internalType": "address"
 935        },
 936        {
 937          "name": "tokenId",
 938          "type": "uint256",
 939          "internalType": "uint256"
 940        }
 941      ]
 942    },
 943    {
 944      "type": "error",
 945      "name": "ERC721InvalidApprover",
 946      "inputs": [
 947        {
 948          "name": "approver",
 949          "type": "address",
 950          "internalType": "address"
 951        }
 952      ]
 953    },
 954    {
 955      "type": "error",
 956      "name": "ERC721InvalidOperator",
 957      "inputs": [
 958        {
 959          "name": "operator",
 960          "type": "address",
 961          "internalType": "address"
 962        }
 963      ]
 964    },
 965    {
 966      "type": "error",
 967      "name": "ERC721InvalidOwner",
 968      "inputs": [
 969        {
 970          "name": "owner",
 971          "type": "address",
 972          "internalType": "address"
 973        }
 974      ]
 975    },
 976    {
 977      "type": "error",
 978      "name": "ERC721InvalidReceiver",
 979      "inputs": [
 980        {
 981          "name": "receiver",
 982          "type": "address",
 983          "internalType": "address"
 984        }
 985      ]
 986    },
 987    {
 988      "type": "error",
 989      "name": "ERC721InvalidSender",
 990      "inputs": [
 991        {
 992          "name": "sender",
 993          "type": "address",
 994          "internalType": "address"
 995        }
 996      ]
 997    },
 998    {
 999      "type": "error",
1000      "name": "ERC721NonexistentToken",
1001      "inputs": [
1002        {
1003          "name": "tokenId",
1004          "type": "uint256",
1005          "internalType": "uint256"
1006        }
1007      ]
1008    },
1009    {
1010      "type": "error",
1011      "name": "ERC721OutOfBoundsIndex",
1012      "inputs": [
1013        {
1014          "name": "owner",
1015          "type": "address",
1016          "internalType": "address"
1017        },
1018        {
1019          "name": "index",
1020          "type": "uint256",
1021          "internalType": "uint256"
1022        }
1023      ]
1024    },
1025    {
1026      "type": "error",
1027      "name": "FailedToReturnETH",
1028      "inputs": []
1029    },
1030    {
1031      "type": "error",
1032      "name": "InvalidName",
1033      "inputs": [
1034        {
1035          "name": "",
1036          "type": "string",
1037          "internalType": "string"
1038        }
1039      ]
1040    },
1041    {
1042      "type": "error",
1043      "name": "NotEnoughETH",
1044      "inputs": [
1045        {
1046          "name": "",
1047          "type": "uint256",
1048          "internalType": "uint256"
1049        },
1050        {
1051          "name": "",
1052          "type": "uint256",
1053          "internalType": "uint256"
1054        }
1055      ]
1056    },
1057    {
1058      "type": "error",
1059      "name": "NotReclaimable",
1060      "inputs": [
1061        {
1062          "name": "",
1063          "type": "uint256",
1064          "internalType": "uint256"
1065        }
1066      ]
1067    },
1068    {
1069      "type": "error",
1070      "name": "OwnableInvalidOwner",
1071      "inputs": [
1072        {
1073          "name": "owner",
1074          "type": "address",
1075          "internalType": "address"
1076        }
1077      ]
1078    },
1079    {
1080      "type": "error",
1081      "name": "OwnableUnauthorizedAccount",
1082      "inputs": [
1083        {
1084          "name": "account",
1085          "type": "address",
1086          "internalType": "address"
1087        }
1088      ]
1089    },
1090    {
1091      "type": "error",
1092      "name": "PaymentFailed",
1093      "inputs": [
1094        {
1095          "name": "",
1096          "type": "uint256",
1097          "internalType": "uint256"
1098        }
1099      ]
1100    },
1101    {
1102      "type": "error",
1103      "name": "ReentrancyGuardReentrantCall",
1104      "inputs": []
1105    }
1106  ]