Skip to content

Commit 9369106

Browse files
committed
Update generated scripts
1 parent 4df8ebc commit 9369106

16 files changed

+326
-8
lines changed

.github/workflows/ci-compiled-scripts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
# git diff --quiet implies --exit-code
4949
run: |
5050
cabal run export-smart-tokens ./generated/scripts/unapplied
51-
cabal run export-smart-tokens ./generated/scripts/preview 08a8d0bb8717839931b0a594f7c28b0a3b7c78f6e9172e977e250eab7637d879.0 08a8d0bb8717839931b0a594f7c28b0a3b7c78f6e9172e977e250eab7637d879.0 '"addr_test1qq986m3uel86pl674mkzneqtycyg7csrdgdxj6uf7v7kd857kquweuh5kmrj28zs8czrwkl692jm67vna2rf7xtafhpqk3hecm"'
52-
cabal run export-smart-tokens ./generated/scripts/mainnet b1977c1eb33590ca1311384ab68cd36209832213ad4483feb8a1b7cb64828946.0 b1977c1eb33590ca1311384ab68cd36209832213ad4483feb8a1b7cb64828946.0 '"addr_test1qq986m3uel86pl674mkzneqtycyg7csrdgdxj6uf7v7kd857kquweuh5kmrj28zs8czrwkl692jm67vna2rf7xtafhpqk3hecm"'
51+
cabal run export-smart-tokens ./generated/scripts/preview 08a8d0bb8717839931b0a594f7c28b0a3b7c78f6e9172e977e250eab7637d879#0 08a8d0bb8717839931b0a594f7c28b0a3b7c78f6e9172e977e250eab7637d879#0 '"addr_test1qq986m3uel86pl674mkzneqtycyg7csrdgdxj6uf7v7kd857kquweuh5kmrj28zs8czrwkl692jm67vna2rf7xtafhpqk3hecm"'
52+
cabal run export-smart-tokens ./generated/scripts/mainnet b1977c1eb33590ca1311384ab68cd36209832213ad4483feb8a1b7cb64828946#0 b1977c1eb33590ca1311384ab68cd36209832213ad4483feb8a1b7cb64828946#0 '"addr_test1qq986m3uel86pl674mkzneqtycyg7csrdgdxj6uf7v7kd857kquweuh5kmrj28zs8czrwkl692jm67vna2rf7xtafhpqk3hecm"'
5353
cabal run write-openapi-schema -- generated/openapi/schema.json
5454
nix develop --accept-flake-config --command bash -c "aiken build src/examples/aiken/aiken --out ./src/examples/aiken/haskell/data/aiken-scripts.json"
5555
git diff --quiet

generated/openapi/schema.json

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
"Asset name": {
2525
"type": "string"
2626
},
27+
"BlacklistInitArgs": {
28+
"properties": {
29+
"issuer": {
30+
"$ref": "#/components/schemas/Address"
31+
}
32+
},
33+
"required": [
34+
"issuer"
35+
],
36+
"type": "object"
37+
},
2738
"BlacklistNodeArgs": {
2839
"properties": {
2940
"blacklist_address": {
@@ -75,6 +86,39 @@
7586
],
7687
"type": "object"
7788
},
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+
},
78122
"ProgrammableLogicGlobalParams": {
79123
"description": "Global parameters of the programmable token directory",
80124
"properties": {
@@ -99,6 +143,22 @@
99143
"Quantity": {
100144
"type": "integer"
101145
},
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+
},
102162
"SeizeAssetsArgs": {
103163
"properties": {
104164
"issuer": {
@@ -370,6 +430,38 @@
370430
}
371431
}
372432
},
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+
},
373465
"/api/v1/query/global-params": {
374466
"get": {
375467
"description": "The UTxO with the global parameters",
@@ -387,6 +479,73 @@
387479
}
388480
}
389481
},
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+
},
390549
"/api/v1/query/user-funds/{address}": {
391550
"get": {
392551
"description": "Total value locked in programmable token outputs addressed to the user",
@@ -419,6 +578,38 @@
419578
}
420579
}
421580
},
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+
},
422613
"/api/v1/tx/add-vkey-witness": {
423614
"post": {
424615
"description": "Add a VKey witness to a transaction",
@@ -477,6 +668,35 @@
477668
}
478669
}
479670
},
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+
},
480700
"/api/v1/tx/programmable-token/issue": {
481701
"post": {
482702
"description": "Create some programmable tokens",
@@ -506,6 +726,35 @@
506726
}
507727
}
508728
},
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+
},
509758
"/api/v1/tx/programmable-token/seize": {
510759
"post": {
511760
"description": "Seize a user's funds",
@@ -535,6 +784,35 @@
535784
}
536785
}
537786
},
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+
},
538816
"/api/v1/tx/programmable-token/transfer": {
539817
"post": {
540818
"description": "Transfer programmable tokens from one address to another",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5903c15903be01010033232323232323232323232323232322232323232323232325980099b874800000a26464646464646464b300133710900000245660026602a6602a6602a6602a66e1e60026eacc07cc08000a6eb80226eb801522298008015200094c00400a90005d6cdd5800a02e801a02c002191919192cc004cdc3a400000513232325980099b874800000a266ebcc098010c0980062941024181380118118009baa4c0122d87a9f581c922a3913b26bfd4d1eeb3c20c9d35fbe25852212d2b32b8ed292478eff0089919192cc004cdc3a400400513375e604c008604c00314a08120c09c008c08c004dd5260122d87a9f581c922a3913b26bfd4d1eeb3c20c9d35fbe25852212d2b32b8ed292478eff004084604800460400026ea8004c07cc084dd5180f8011980b19ba548008cc0600492f5c06602e03c6eacc07c030cdd780099ba548008cc0600492f5c0660320026eacc07cc080c080c08003229345901d45660026602a6602c66e952002330180124bd701980b80f1bab301f00c33019301f00f3756603e604060406040019149a2c80e901d180f007180f9baa301d001375860380166eb4c074008c064004c966002003168992cc00400626036005164060603600280b8cc0548966002003168acc004cdd7980d180d80080244dd5980e980d800c4c008c07000501920300013756603000c602e003164054603000460280026ea8c050c054010c050c050004c04cc04c004c048c048c04cdd51808801180880098089baa00123002375200244446601644b30010018802c56600266ebcc040c04400401a2600860266022003130023012001403c80700048a6002005001a5040284600c44b30010018a508acc004cdd79806000801c528c4c008c03400500a2012230052259800800c52f5c11330043003300b0013002300c0014020ae8088cc010896600200314a1159800980299b873009375460126014002900044c008c02c0062b30013375e601860140020091330062259800800c528c56600266e1cc02cdd518059806000a400115980099baf300e300c0010068a50898011806800a0148a5140288048c02c00626600c44b30010018a508acc004cdc398059baa300b300c001480022b30013375e601c601800200d1330082259800800c528c56600266e1cc034dd518069807000a400115980099baf3010300e0010088a50898011807800a0188a5140308058c03400626004601a0028052294100a2012300b0014020804100700094c004006942945004119180111980100100091801119801001000aab9f5734aae755d0aba25573c98010948
1+
5903c15903be01010033232323232323232323232323232322232323232323232325980099b874800000a26464646464646464b300133710900000245660026602a6602a6602a6602a66e1e60026eacc07cc08000a6eb80226eb801522298008015200094c00400a90005d6cdd5800a02e801a02c002191919192cc004cdc3a400000513232325980099b874800000a266ebcc098010c0980062941024181380118118009baa4c0122d87a9f581c6a88e5f4051227ab54d6c637fd7d5d628d5452124e933da866559ef6ff0089919192cc004cdc3a400400513375e604c008604c00314a08120c09c008c08c004dd5260122d87a9f581c6a88e5f4051227ab54d6c637fd7d5d628d5452124e933da866559ef6ff004084604800460400026ea8004c07cc084dd5180f8011980b19ba548008cc0600492f5c06602e03c6eacc07c030cdd780099ba548008cc0600492f5c0660320026eacc07cc080c080c08003229345901d45660026602a6602c66e952002330180124bd701980b80f1bab301f00c33019301f00f3756603e604060406040019149a2c80e901d180f007180f9baa301d001375860380166eb4c074008c064004c966002003168992cc00400626036005164060603600280b8cc0548966002003168acc004cdd7980d180d80080244dd5980e980d800c4c008c07000501920300013756603000c602e003164054603000460280026ea8c050c054010c050c050004c04cc04c004c048c048c04cdd51808801180880098089baa00123002375200244446601644b30010018802c56600266ebcc040c04400401a2600860266022003130023012001403c80700048a6002005001a5040284600c44b30010018a508acc004cdd79806000801c528c4c008c03400500a2012230052259800800c52f5c11330043003300b0013002300c0014020ae8088cc010896600200314a1159800980299b873009375460126014002900044c008c02c0062b30013375e601860140020091330062259800800c528c56600266e1cc02cdd518059806000a400115980099baf300e300c0010068a50898011806800a0148a5140288048c02c00626600c44b30010018a508acc004cdc398059baa300b300c001480022b30013375e601c601800200d1330082259800800c528c56600266e1cc034dd518069807000a400115980099baf3010300e0010088a50898011807800a0188a5140308058c03400626004601a0028052294100a2012300b0014020804100700094c004006942945004119180111980100100091801119801001000aab9f5734aae755d0aba25573c98010948
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "Programmable Logic Base",
4+
"cborHex": "58cb010100323232323223259800acc004cdd798021803000a6122d87a9f581c02e8cd69e393486840770b2ec08b6f3a62a6f82f70f2fb60ccfd59e9ff008a5189991919180111980100100091801119801001000912cc00400629422b3001300330090018a51898011804000a00c555cf88cdd79802800a6122d87a9f581c02e8cd69e393486840770b2ec08b6f3a62a6f82f70f2fb60ccfd59e9ff003005001400d149a2c8018dd5980298021802180218021802180218031baa300530063754002ae6955ceaba25742aae79"
5+
}

0 commit comments

Comments
 (0)