|
24 | 24 | "Asset name": { |
25 | 25 | "type": "string" |
26 | 26 | }, |
| 27 | + "BlacklistInitArgs": { |
| 28 | + "properties": { |
| 29 | + "issuer": { |
| 30 | + "$ref": "#/components/schemas/Address" |
| 31 | + } |
| 32 | + }, |
| 33 | + "required": [ |
| 34 | + "issuer" |
| 35 | + ], |
| 36 | + "type": "object" |
| 37 | + }, |
27 | 38 | "BlacklistNodeArgs": { |
28 | 39 | "properties": { |
29 | 40 | "blacklist_address": { |
|
75 | 86 | ], |
76 | 87 | "type": "object" |
77 | 88 | }, |
| 89 | + "MultiSeizeAssetsArgs": { |
| 90 | + "properties": { |
| 91 | + "a_issuer": { |
| 92 | + "$ref": "#/components/schemas/Address" |
| 93 | + }, |
| 94 | + "a_num_u_tx_os_to_seize": { |
| 95 | + "maximum": 9223372036854775807, |
| 96 | + "minimum": -9223372036854775808, |
| 97 | + "type": "integer" |
| 98 | + }, |
| 99 | + "a_reason": { |
| 100 | + "$ref": "#/components/schemas/SeizeReason" |
| 101 | + }, |
| 102 | + "a_target": { |
| 103 | + "items": { |
| 104 | + "$ref": "#/components/schemas/Address" |
| 105 | + }, |
| 106 | + "type": "array" |
| 107 | + } |
| 108 | + }, |
| 109 | + "required": [ |
| 110 | + "a_issuer", |
| 111 | + "a_target", |
| 112 | + "a_reason", |
| 113 | + "a_num_u_tx_os_to_seize" |
| 114 | + ], |
| 115 | + "type": "object" |
| 116 | + }, |
| 117 | + "PolicyId": { |
| 118 | + "description": "Policy ID", |
| 119 | + "example": "01f4b788593d4f70de2a45c2e1e87088bfbdfa29577ae1b62aba60e095e3ab53", |
| 120 | + "type": "string" |
| 121 | + }, |
78 | 122 | "ProgrammableLogicGlobalParams": { |
79 | 123 | "description": "Global parameters of the programmable token directory", |
80 | 124 | "properties": { |
|
99 | 143 | "Quantity": { |
100 | 144 | "type": "integer" |
101 | 145 | }, |
| 146 | + "RegisterTransferScriptsArgs": { |
| 147 | + "properties": { |
| 148 | + "issuer": { |
| 149 | + "$ref": "#/components/schemas/Address" |
| 150 | + } |
| 151 | + }, |
| 152 | + "required": [ |
| 153 | + "issuer" |
| 154 | + ], |
| 155 | + "type": "object" |
| 156 | + }, |
| 157 | + "ScriptHash": { |
| 158 | + "description": "Script hash", |
| 159 | + "example": "01f4b788593d4f70de2a45c2e1e87088bfbdfa29577ae1b62aba60e095e3ab53", |
| 160 | + "type": "string" |
| 161 | + }, |
102 | 162 | "SeizeAssetsArgs": { |
103 | 163 | "properties": { |
104 | 164 | "issuer": { |
|
370 | 430 | } |
371 | 431 | } |
372 | 432 | }, |
| 433 | + "/api/v1/query/freeze-policy-id/{address}": { |
| 434 | + "get": { |
| 435 | + "description": "The policy ID for the freeze and seize programmable token policy associated with this user", |
| 436 | + "parameters": [ |
| 437 | + { |
| 438 | + "in": "path", |
| 439 | + "name": "address", |
| 440 | + "required": true, |
| 441 | + "schema": { |
| 442 | + "description": "bech32-serialised cardano address", |
| 443 | + "example": "addr1q9d42egme33z960rr8vlnt69lpmythdpm7ydk2e6k5nj5ghay9rg60vw49kejfah76sqeh4yshlsntgg007y0wgjlfwju6eksr", |
| 444 | + "type": "string" |
| 445 | + } |
| 446 | + } |
| 447 | + ], |
| 448 | + "responses": { |
| 449 | + "200": { |
| 450 | + "content": { |
| 451 | + "application/json;charset=utf-8": { |
| 452 | + "schema": { |
| 453 | + "$ref": "#/components/schemas/PolicyId" |
| 454 | + } |
| 455 | + } |
| 456 | + }, |
| 457 | + "description": "" |
| 458 | + }, |
| 459 | + "404": { |
| 460 | + "description": "`address` not found" |
| 461 | + } |
| 462 | + } |
| 463 | + } |
| 464 | + }, |
373 | 465 | "/api/v1/query/global-params": { |
374 | 466 | "get": { |
375 | 467 | "description": "The UTxO with the global parameters", |
|
387 | 479 | } |
388 | 480 | } |
389 | 481 | }, |
| 482 | + "/api/v1/query/policy-issuer/{policy_id}": { |
| 483 | + "get": { |
| 484 | + "description": "Issuer address associated with a freeze/seize policy id", |
| 485 | + "parameters": [ |
| 486 | + { |
| 487 | + "in": "path", |
| 488 | + "name": "policy_id", |
| 489 | + "required": true, |
| 490 | + "schema": { |
| 491 | + "description": "hex-encoded policy identifier", |
| 492 | + "example": "4cfd5e2b0c534b4e0cda0f5d84df7e0d3d3c6a74c0e5f3d823a58a38", |
| 493 | + "type": "string" |
| 494 | + } |
| 495 | + } |
| 496 | + ], |
| 497 | + "responses": { |
| 498 | + "200": { |
| 499 | + "content": { |
| 500 | + "application/json;charset=utf-8": { |
| 501 | + "schema": { |
| 502 | + "$ref": "#/components/schemas/Address" |
| 503 | + } |
| 504 | + } |
| 505 | + }, |
| 506 | + "description": "" |
| 507 | + }, |
| 508 | + "404": { |
| 509 | + "description": "`policy_id` not found" |
| 510 | + } |
| 511 | + } |
| 512 | + } |
| 513 | + }, |
| 514 | + "/api/v1/query/stake-scripts/{address}": { |
| 515 | + "get": { |
| 516 | + "description": "The stake scripts for the programmable token", |
| 517 | + "parameters": [ |
| 518 | + { |
| 519 | + "in": "path", |
| 520 | + "name": "address", |
| 521 | + "required": true, |
| 522 | + "schema": { |
| 523 | + "description": "bech32-serialised cardano address", |
| 524 | + "example": "addr1q9d42egme33z960rr8vlnt69lpmythdpm7ydk2e6k5nj5ghay9rg60vw49kejfah76sqeh4yshlsntgg007y0wgjlfwju6eksr", |
| 525 | + "type": "string" |
| 526 | + } |
| 527 | + } |
| 528 | + ], |
| 529 | + "responses": { |
| 530 | + "200": { |
| 531 | + "content": { |
| 532 | + "application/json;charset=utf-8": { |
| 533 | + "schema": { |
| 534 | + "items": { |
| 535 | + "$ref": "#/components/schemas/ScriptHash" |
| 536 | + }, |
| 537 | + "type": "array" |
| 538 | + } |
| 539 | + } |
| 540 | + }, |
| 541 | + "description": "" |
| 542 | + }, |
| 543 | + "404": { |
| 544 | + "description": "`address` not found" |
| 545 | + } |
| 546 | + } |
| 547 | + } |
| 548 | + }, |
390 | 549 | "/api/v1/query/user-funds/{address}": { |
391 | 550 | "get": { |
392 | 551 | "description": "Total value locked in programmable token outputs addressed to the user", |
|
419 | 578 | } |
420 | 579 | } |
421 | 580 | }, |
| 581 | + "/api/v1/query/user-total-programmable-value/{address}": { |
| 582 | + "get": { |
| 583 | + "description": "Total value of all programmable tokens addressed to the user", |
| 584 | + "parameters": [ |
| 585 | + { |
| 586 | + "in": "path", |
| 587 | + "name": "address", |
| 588 | + "required": true, |
| 589 | + "schema": { |
| 590 | + "description": "bech32-serialised cardano address", |
| 591 | + "example": "addr1q9d42egme33z960rr8vlnt69lpmythdpm7ydk2e6k5nj5ghay9rg60vw49kejfah76sqeh4yshlsntgg007y0wgjlfwju6eksr", |
| 592 | + "type": "string" |
| 593 | + } |
| 594 | + } |
| 595 | + ], |
| 596 | + "responses": { |
| 597 | + "200": { |
| 598 | + "content": { |
| 599 | + "application/json;charset=utf-8": { |
| 600 | + "schema": { |
| 601 | + "$ref": "#/components/schemas/Value" |
| 602 | + } |
| 603 | + } |
| 604 | + }, |
| 605 | + "description": "" |
| 606 | + }, |
| 607 | + "404": { |
| 608 | + "description": "`address` not found" |
| 609 | + } |
| 610 | + } |
| 611 | + } |
| 612 | + }, |
422 | 613 | "/api/v1/tx/add-vkey-witness": { |
423 | 614 | "post": { |
424 | 615 | "description": "Add a VKey witness to a transaction", |
|
477 | 668 | } |
478 | 669 | } |
479 | 670 | }, |
| 671 | + "/api/v1/tx/programmable-token/blacklist-init": { |
| 672 | + "post": { |
| 673 | + "description": "Initialize the blacklist", |
| 674 | + "requestBody": { |
| 675 | + "content": { |
| 676 | + "application/json;charset=utf-8": { |
| 677 | + "schema": { |
| 678 | + "$ref": "#/components/schemas/BlacklistInitArgs" |
| 679 | + } |
| 680 | + } |
| 681 | + } |
| 682 | + }, |
| 683 | + "responses": { |
| 684 | + "200": { |
| 685 | + "content": { |
| 686 | + "application/json;charset=utf-8": { |
| 687 | + "schema": { |
| 688 | + "$ref": "#/components/schemas/TextEnvelopeJSON" |
| 689 | + } |
| 690 | + } |
| 691 | + }, |
| 692 | + "description": "" |
| 693 | + }, |
| 694 | + "400": { |
| 695 | + "description": "Invalid `body`" |
| 696 | + } |
| 697 | + } |
| 698 | + } |
| 699 | + }, |
480 | 700 | "/api/v1/tx/programmable-token/issue": { |
481 | 701 | "post": { |
482 | 702 | "description": "Create some programmable tokens", |
|
506 | 726 | } |
507 | 727 | } |
508 | 728 | }, |
| 729 | + "/api/v1/tx/programmable-token/register-transfer-scripts": { |
| 730 | + "post": { |
| 731 | + "description": "Register the transfer scripts", |
| 732 | + "requestBody": { |
| 733 | + "content": { |
| 734 | + "application/json;charset=utf-8": { |
| 735 | + "schema": { |
| 736 | + "$ref": "#/components/schemas/RegisterTransferScriptsArgs" |
| 737 | + } |
| 738 | + } |
| 739 | + } |
| 740 | + }, |
| 741 | + "responses": { |
| 742 | + "200": { |
| 743 | + "content": { |
| 744 | + "application/json;charset=utf-8": { |
| 745 | + "schema": { |
| 746 | + "$ref": "#/components/schemas/TextEnvelopeJSON" |
| 747 | + } |
| 748 | + } |
| 749 | + }, |
| 750 | + "description": "" |
| 751 | + }, |
| 752 | + "400": { |
| 753 | + "description": "Invalid `body`" |
| 754 | + } |
| 755 | + } |
| 756 | + } |
| 757 | + }, |
509 | 758 | "/api/v1/tx/programmable-token/seize": { |
510 | 759 | "post": { |
511 | 760 | "description": "Seize a user's funds", |
|
535 | 784 | } |
536 | 785 | } |
537 | 786 | }, |
| 787 | + "/api/v1/tx/programmable-token/seize-multi": { |
| 788 | + "post": { |
| 789 | + "description": "Seize multiple user's funds", |
| 790 | + "requestBody": { |
| 791 | + "content": { |
| 792 | + "application/json;charset=utf-8": { |
| 793 | + "schema": { |
| 794 | + "$ref": "#/components/schemas/MultiSeizeAssetsArgs" |
| 795 | + } |
| 796 | + } |
| 797 | + } |
| 798 | + }, |
| 799 | + "responses": { |
| 800 | + "200": { |
| 801 | + "content": { |
| 802 | + "application/json;charset=utf-8": { |
| 803 | + "schema": { |
| 804 | + "$ref": "#/components/schemas/TextEnvelopeJSON" |
| 805 | + } |
| 806 | + } |
| 807 | + }, |
| 808 | + "description": "" |
| 809 | + }, |
| 810 | + "400": { |
| 811 | + "description": "Invalid `body`" |
| 812 | + } |
| 813 | + } |
| 814 | + } |
| 815 | + }, |
538 | 816 | "/api/v1/tx/programmable-token/transfer": { |
539 | 817 | "post": { |
540 | 818 | "description": "Transfer programmable tokens from one address to another", |
|
0 commit comments