@evergonlabs/tmi-protocol-api 0.10.0-rc.0 → 0.10.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/app.d.ts +359 -1
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/client.d.ts +389 -1
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/common/roles/erc1155-token-roles.d.ts +8 -0
  6. package/dist/common/roles/erc1155-token-roles.d.ts.map +1 -0
  7. package/dist/common/roles/erc1155-token-roles.js +13 -0
  8. package/dist/common/roles/exports.d.ts +1 -0
  9. package/dist/common/roles/exports.d.ts.map +1 -1
  10. package/dist/common/roles/exports.js +1 -0
  11. package/dist/issuance/common/factories.base.d.ts +12 -12
  12. package/dist/issuance/erc1155/burn.d.ts +34 -0
  13. package/dist/issuance/erc1155/burn.d.ts.map +1 -0
  14. package/dist/issuance/erc1155/burn.js +39 -0
  15. package/dist/issuance/erc1155/default/deploy.d.ts +34 -0
  16. package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -0
  17. package/dist/issuance/erc1155/default/deploy.js +53 -0
  18. package/dist/issuance/erc1155/default/initialize.d.ts +34 -0
  19. package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -0
  20. package/dist/issuance/erc1155/default/initialize.js +38 -0
  21. package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +21 -0
  22. package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -0
  23. package/dist/issuance/erc1155/default/parseDeployEvent.js +74 -0
  24. package/dist/issuance/erc1155/gated/deploy.d.ts +36 -0
  25. package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -0
  26. package/dist/issuance/erc1155/gated/deploy.js +61 -0
  27. package/dist/issuance/erc1155/gated/initialize.d.ts +36 -0
  28. package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -0
  29. package/dist/issuance/erc1155/gated/initialize.js +44 -0
  30. package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +21 -0
  31. package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -0
  32. package/dist/issuance/erc1155/gated/parseDeployEvent.js +74 -0
  33. package/dist/issuance/erc1155/grantRole.d.ts +33 -0
  34. package/dist/issuance/erc1155/grantRole.d.ts.map +1 -0
  35. package/dist/issuance/erc1155/grantRole.js +41 -0
  36. package/dist/issuance/erc1155/index.d.ts +361 -0
  37. package/dist/issuance/erc1155/index.d.ts.map +1 -0
  38. package/dist/issuance/erc1155/index.js +38 -0
  39. package/dist/issuance/erc1155/mint.d.ts +34 -0
  40. package/dist/issuance/erc1155/mint.d.ts.map +1 -0
  41. package/dist/issuance/erc1155/mint.js +39 -0
  42. package/dist/issuance/erc1155/recover.d.ts +36 -0
  43. package/dist/issuance/erc1155/recover.d.ts.map +1 -0
  44. package/dist/issuance/erc1155/recover.js +40 -0
  45. package/dist/issuance/erc1155/renounceRole.d.ts +33 -0
  46. package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -0
  47. package/dist/issuance/erc1155/renounceRole.js +41 -0
  48. package/dist/issuance/erc1155/revokeRole.d.ts +33 -0
  49. package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -0
  50. package/dist/issuance/erc1155/revokeRole.js +41 -0
  51. package/dist/issuance/erc1155/setApprovalForAll.d.ts +32 -0
  52. package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -0
  53. package/dist/issuance/erc1155/setApprovalForAll.js +39 -0
  54. package/dist/issuance/erc1155/setBaseURI.d.ts +30 -0
  55. package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -0
  56. package/dist/issuance/erc1155/setBaseURI.js +36 -0
  57. package/dist/issuance/erc1155/setTokenURI.d.ts +32 -0
  58. package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -0
  59. package/dist/issuance/erc1155/setTokenURI.js +38 -0
  60. package/dist/issuance/erc721/approve.js +1 -1
  61. package/dist/issuance/erc721/burn.js +1 -1
  62. package/dist/issuance/erc721/default/deploy.js +4 -4
  63. package/dist/issuance/erc721/default/initialize.js +1 -1
  64. package/dist/issuance/erc721/default/parseDeployEvent.js +1 -1
  65. package/dist/issuance/erc721/gated/deploy.js +4 -4
  66. package/dist/issuance/erc721/gated/initialize.js +1 -1
  67. package/dist/issuance/erc721/gated/parseDeployEvent.js +1 -1
  68. package/dist/issuance/erc721/grantRole.js +1 -1
  69. package/dist/issuance/erc721/index.d.ts +0 -1
  70. package/dist/issuance/erc721/index.d.ts.map +1 -1
  71. package/dist/issuance/erc721/mint.d.ts +0 -2
  72. package/dist/issuance/erc721/mint.d.ts.map +1 -1
  73. package/dist/issuance/erc721/mint.js +4 -6
  74. package/dist/issuance/erc721/nextTokenId.d.ts +19 -0
  75. package/dist/issuance/erc721/nextTokenId.d.ts.map +1 -0
  76. package/dist/issuance/erc721/nextTokenId.js +79 -0
  77. package/dist/issuance/erc721/recover.js +1 -1
  78. package/dist/issuance/erc721/renounceRole.js +1 -1
  79. package/dist/issuance/erc721/revokeRole.js +1 -1
  80. package/dist/issuance/erc721/setBaseURI.js +1 -1
  81. package/dist/issuance/erc721/setTokenURI.js +1 -1
  82. package/dist/issuance/erc721/transferFrom.js +1 -1
  83. package/dist/issuance/index.d.ts +359 -1
  84. package/dist/issuance/index.d.ts.map +1 -1
  85. package/dist/issuance/index.js +2 -0
  86. package/package.json +9 -9
package/dist/client.d.ts CHANGED
@@ -3513,7 +3513,6 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
3513
3513
  json: {
3514
3514
  tokenAddress: string;
3515
3515
  to: string;
3516
- tokenId: string;
3517
3516
  };
3518
3517
  };
3519
3518
  output: {
@@ -3714,6 +3713,395 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
3714
3713
  };
3715
3714
  }>;
3716
3715
  };
3716
+ } & {
3717
+ erc1155: {
3718
+ deploy: import("hono/client").ClientRequest<string, "/erc1155/deploy", {
3719
+ $post: {
3720
+ input: {
3721
+ json: {
3722
+ chainId: 11155111 | 72080;
3723
+ baseURI: string;
3724
+ defaultTokenAdmin: string;
3725
+ minter: string;
3726
+ };
3727
+ };
3728
+ output: {
3729
+ data: `0x${string}`;
3730
+ to: `0x${string}`;
3731
+ details: {
3732
+ functionName: string;
3733
+ address: `0x${string}`;
3734
+ abi: any[];
3735
+ args: any[];
3736
+ };
3737
+ };
3738
+ outputFormat: "json";
3739
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3740
+ };
3741
+ }>;
3742
+ };
3743
+ } & {
3744
+ erc1155: {
3745
+ initialize: import("hono/client").ClientRequest<string, "/erc1155/initialize", {
3746
+ $post: {
3747
+ input: {
3748
+ json: {
3749
+ tokenAddress: string;
3750
+ baseURI: string;
3751
+ defaultAdmin: string;
3752
+ minter: string;
3753
+ };
3754
+ };
3755
+ output: {
3756
+ data: `0x${string}`;
3757
+ to: `0x${string}`;
3758
+ details: {
3759
+ functionName: string;
3760
+ address: `0x${string}`;
3761
+ abi: any[];
3762
+ args: any[];
3763
+ };
3764
+ };
3765
+ outputFormat: "json";
3766
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3767
+ };
3768
+ }>;
3769
+ };
3770
+ } & {
3771
+ erc1155: {
3772
+ getDeployEvent: import("hono/client").ClientRequest<string, "/erc1155/getDeployEvent", {
3773
+ $get: {
3774
+ input: {
3775
+ query: {
3776
+ chainId: string | string[];
3777
+ hash: string | string[];
3778
+ };
3779
+ };
3780
+ output: {
3781
+ proxy: `0x${string}`;
3782
+ admin: `0x${string}`;
3783
+ minter: `0x${string}`;
3784
+ baseURI: string;
3785
+ };
3786
+ outputFormat: "json";
3787
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3788
+ };
3789
+ }>;
3790
+ };
3791
+ } & {
3792
+ erc1155: {
3793
+ deployGated: import("hono/client").ClientRequest<string, "/erc1155/deployGated", {
3794
+ $post: {
3795
+ input: {
3796
+ json: {
3797
+ chainId: 11155111 | 72080;
3798
+ baseURI: string;
3799
+ defaultTokenAdmin: string;
3800
+ minter: string;
3801
+ gatingSigner?: string | undefined;
3802
+ };
3803
+ };
3804
+ output: {
3805
+ data: `0x${string}`;
3806
+ to: `0x${string}`;
3807
+ details: {
3808
+ functionName: string;
3809
+ address: `0x${string}`;
3810
+ abi: any[];
3811
+ args: any[];
3812
+ };
3813
+ };
3814
+ outputFormat: "json";
3815
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3816
+ };
3817
+ }>;
3818
+ };
3819
+ } & {
3820
+ erc1155: {
3821
+ initializeGated: import("hono/client").ClientRequest<string, "/erc1155/initializeGated", {
3822
+ $post: {
3823
+ input: {
3824
+ json: {
3825
+ tokenAddress: string;
3826
+ baseURI: string;
3827
+ defaultAdmin: string;
3828
+ minter: string;
3829
+ gatingSigner?: string | undefined;
3830
+ };
3831
+ };
3832
+ output: {
3833
+ data: `0x${string}`;
3834
+ to: `0x${string}`;
3835
+ details: {
3836
+ functionName: string;
3837
+ address: `0x${string}`;
3838
+ abi: any[];
3839
+ args: any[];
3840
+ };
3841
+ };
3842
+ outputFormat: "json";
3843
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3844
+ };
3845
+ }>;
3846
+ };
3847
+ } & {
3848
+ erc1155: {
3849
+ getDeployEventGated: import("hono/client").ClientRequest<string, "/erc1155/getDeployEventGated", {
3850
+ $get: {
3851
+ input: {
3852
+ query: {
3853
+ chainId: string | string[];
3854
+ hash: string | string[];
3855
+ };
3856
+ };
3857
+ output: {
3858
+ proxy: `0x${string}`;
3859
+ admin: `0x${string}`;
3860
+ minter: `0x${string}`;
3861
+ baseURI: string;
3862
+ };
3863
+ outputFormat: "json";
3864
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3865
+ };
3866
+ }>;
3867
+ };
3868
+ } & {
3869
+ erc1155: {
3870
+ mint: import("hono/client").ClientRequest<string, "/erc1155/mint", {
3871
+ $post: {
3872
+ input: {
3873
+ json: {
3874
+ tokenAddress: string;
3875
+ to: string;
3876
+ amount: string;
3877
+ data?: string | undefined;
3878
+ };
3879
+ };
3880
+ output: {
3881
+ data: `0x${string}`;
3882
+ to: `0x${string}`;
3883
+ details: {
3884
+ functionName: string;
3885
+ address: `0x${string}`;
3886
+ abi: any[];
3887
+ args: any[];
3888
+ };
3889
+ };
3890
+ outputFormat: "json";
3891
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3892
+ };
3893
+ }>;
3894
+ };
3895
+ } & {
3896
+ erc1155: {
3897
+ burn: import("hono/client").ClientRequest<string, "/erc1155/burn", {
3898
+ $post: {
3899
+ input: {
3900
+ json: {
3901
+ tokenAddress: string;
3902
+ account: string;
3903
+ id: string;
3904
+ amount: string;
3905
+ };
3906
+ };
3907
+ output: {
3908
+ data: `0x${string}`;
3909
+ to: `0x${string}`;
3910
+ details: {
3911
+ functionName: string;
3912
+ address: `0x${string}`;
3913
+ abi: any[];
3914
+ args: any[];
3915
+ };
3916
+ };
3917
+ outputFormat: "json";
3918
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3919
+ };
3920
+ }>;
3921
+ };
3922
+ } & {
3923
+ erc1155: {
3924
+ setApprovalForAll: import("hono/client").ClientRequest<string, "/erc1155/setApprovalForAll", {
3925
+ $post: {
3926
+ input: {
3927
+ json: {
3928
+ tokenAddress: string;
3929
+ operator: string;
3930
+ approved: boolean;
3931
+ };
3932
+ };
3933
+ output: {
3934
+ data: `0x${string}`;
3935
+ to: `0x${string}`;
3936
+ details: {
3937
+ functionName: string;
3938
+ address: `0x${string}`;
3939
+ abi: any[];
3940
+ args: any[];
3941
+ };
3942
+ };
3943
+ outputFormat: "json";
3944
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3945
+ };
3946
+ }>;
3947
+ };
3948
+ } & {
3949
+ erc1155: {
3950
+ setBaseURI: import("hono/client").ClientRequest<string, "/erc1155/setBaseURI", {
3951
+ $post: {
3952
+ input: {
3953
+ json: {
3954
+ tokenAddress: string;
3955
+ baseURI: string;
3956
+ };
3957
+ };
3958
+ output: {
3959
+ data: `0x${string}`;
3960
+ to: `0x${string}`;
3961
+ details: {
3962
+ functionName: string;
3963
+ address: `0x${string}`;
3964
+ abi: any[];
3965
+ args: any[];
3966
+ };
3967
+ };
3968
+ outputFormat: "json";
3969
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3970
+ };
3971
+ }>;
3972
+ };
3973
+ } & {
3974
+ erc1155: {
3975
+ setTokenURI: import("hono/client").ClientRequest<string, "/erc1155/setTokenURI", {
3976
+ $post: {
3977
+ input: {
3978
+ json: {
3979
+ tokenAddress: string;
3980
+ id: string;
3981
+ tokenURI: string;
3982
+ };
3983
+ };
3984
+ output: {
3985
+ data: `0x${string}`;
3986
+ to: `0x${string}`;
3987
+ details: {
3988
+ functionName: string;
3989
+ address: `0x${string}`;
3990
+ abi: any[];
3991
+ args: any[];
3992
+ };
3993
+ };
3994
+ outputFormat: "json";
3995
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3996
+ };
3997
+ }>;
3998
+ };
3999
+ } & {
4000
+ erc1155: {
4001
+ recover: import("hono/client").ClientRequest<string, "/erc1155/recover", {
4002
+ $post: {
4003
+ input: {
4004
+ json: {
4005
+ tokenAddress: string;
4006
+ from: string;
4007
+ to: string;
4008
+ id: string;
4009
+ amount: string;
4010
+ };
4011
+ };
4012
+ output: {
4013
+ data: `0x${string}`;
4014
+ to: `0x${string}`;
4015
+ details: {
4016
+ functionName: string;
4017
+ address: `0x${string}`;
4018
+ abi: any[];
4019
+ args: any[];
4020
+ };
4021
+ };
4022
+ outputFormat: "json";
4023
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4024
+ };
4025
+ }>;
4026
+ };
4027
+ } & {
4028
+ erc1155: {
4029
+ grantRole: import("hono/client").ClientRequest<string, "/erc1155/grantRole", {
4030
+ $post: {
4031
+ input: {
4032
+ json: {
4033
+ tokenAddress: string;
4034
+ role: import("./client.js").Erc1155TokenRole;
4035
+ account: string;
4036
+ };
4037
+ };
4038
+ output: {
4039
+ data: `0x${string}`;
4040
+ to: `0x${string}`;
4041
+ details: {
4042
+ functionName: string;
4043
+ address: `0x${string}`;
4044
+ abi: any[];
4045
+ args: any[];
4046
+ };
4047
+ };
4048
+ outputFormat: "json";
4049
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4050
+ };
4051
+ }>;
4052
+ };
4053
+ } & {
4054
+ erc1155: {
4055
+ revokeRole: import("hono/client").ClientRequest<string, "/erc1155/revokeRole", {
4056
+ $post: {
4057
+ input: {
4058
+ json: {
4059
+ tokenAddress: string;
4060
+ role: import("./client.js").Erc1155TokenRole;
4061
+ account: string;
4062
+ };
4063
+ };
4064
+ output: {
4065
+ data: `0x${string}`;
4066
+ to: `0x${string}`;
4067
+ details: {
4068
+ functionName: string;
4069
+ address: `0x${string}`;
4070
+ abi: any[];
4071
+ args: any[];
4072
+ };
4073
+ };
4074
+ outputFormat: "json";
4075
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4076
+ };
4077
+ }>;
4078
+ };
4079
+ } & {
4080
+ erc1155: {
4081
+ renounceRole: import("hono/client").ClientRequest<string, "/erc1155/renounceRole", {
4082
+ $post: {
4083
+ input: {
4084
+ json: {
4085
+ tokenAddress: string;
4086
+ role: import("./client.js").Erc1155TokenRole;
4087
+ callerConfirmation: string;
4088
+ };
4089
+ };
4090
+ output: {
4091
+ data: `0x${string}`;
4092
+ to: `0x${string}`;
4093
+ details: {
4094
+ functionName: string;
4095
+ address: `0x${string}`;
4096
+ abi: any[];
4097
+ args: any[];
4098
+ };
4099
+ };
4100
+ outputFormat: "json";
4101
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4102
+ };
4103
+ }>;
4104
+ };
3717
4105
  } & {
3718
4106
  proxy: {
3719
4107
  deployProxyAdmin: import("hono/client").ClientRequest<string, "/proxy/deployProxyAdmin", {
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAM,MAAM,aAAa,CAAC;AAMvD,wBAAgB,YAAY,CAAC,QAAQ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhF;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAU3D,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare enum Erc1155TokenRole {
2
+ DEFAULT_ADMIN_ROLE = "DEFAULT_ADMIN_ROLE",
3
+ MINTER_ROLE = "MINTER_ROLE",
4
+ PAUSER_ROLE = "PAUSER_ROLE",
5
+ RECOVER_ROLE = "RECOVER_ROLE"
6
+ }
7
+ export declare function convertErc1155TokenRoleToHash(role: Erc1155TokenRole): `0x${string}`;
8
+ //# sourceMappingURL=erc1155-token-roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc1155-token-roles.d.ts","sourceRoot":"","sources":["../../../src/common/roles/erc1155-token-roles.ts"],"names":[],"mappings":"AAEA,oBAAY,gBAAgB;IAC1B,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;CAC9B;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,GAAG,KAAK,MAAM,EAAE,CAGnF"}
@@ -0,0 +1,13 @@
1
+ import { keccak256, toHex } from "viem";
2
+ export var Erc1155TokenRole;
3
+ (function (Erc1155TokenRole) {
4
+ Erc1155TokenRole["DEFAULT_ADMIN_ROLE"] = "DEFAULT_ADMIN_ROLE";
5
+ Erc1155TokenRole["MINTER_ROLE"] = "MINTER_ROLE";
6
+ Erc1155TokenRole["PAUSER_ROLE"] = "PAUSER_ROLE";
7
+ Erc1155TokenRole["RECOVER_ROLE"] = "RECOVER_ROLE";
8
+ })(Erc1155TokenRole || (Erc1155TokenRole = {}));
9
+ export function convertErc1155TokenRoleToHash(role) {
10
+ if (role === Erc1155TokenRole.DEFAULT_ADMIN_ROLE)
11
+ return toHex(0, { size: 32 });
12
+ return keccak256(toHex(role));
13
+ }
@@ -1,3 +1,4 @@
1
1
  export { Erc20GatedRole } from "./erc20-gated-roles.js";
2
2
  export { Erc721TokenRole } from "./erc721-factory-roles.js";
3
+ export { Erc1155TokenRole } from "./erc1155-token-roles.js";
3
4
  //# sourceMappingURL=exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/common/roles/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/common/roles/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { Erc20GatedRole } from "./erc20-gated-roles.js";
2
2
  export { Erc721TokenRole } from "./erc721-factory-roles.js";
3
+ export { Erc1155TokenRole } from "./erc1155-token-roles.js";
@@ -149,19 +149,19 @@ export declare const factoryChainIds: (11155111 | 72080)[];
149
149
  export type IFactoryChainId = (typeof factoryChainIds)[number];
150
150
  export declare function getFactories<T extends IFactoryChainId>(id: T): {
151
151
  readonly DiamondFactory: "0x4be118d8a3a6f1490162e134E7419284827dbdBb";
152
- readonly ERC1155GatedPausableRecoverableFactory: "0x52DEA561a81E4AAC451431F2d9E88ACb1e31C520";
153
- readonly ERC1155PausableRecoverableFactory: "0x39F9AD5A2F869b22e84bDCC27C246dA4F34f5cD6";
154
- readonly ERC20GatedPausableRecoverableFactory: "0xcDb88041351f6c3008D4bb5b403A16EA26a382d3";
155
- readonly ERC20PausableRecoverableFactory: "0xddA13D3F875Ee039b18de8d4C0Fda96c045299B2";
156
- readonly ERC721GatedPausableRecoverableFactory: "0xBd79C0E23E69Da284378188015d85f5C0196DF05";
157
- readonly ERC721PausableRecoverableFactory: "0x22F97529FAA6ECb6306C0cd274E8F1a851A31Dc3";
152
+ readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0xc29A12b1dF6f6F285f66fdd879b2feBc50a3bbEf";
153
+ readonly ERC1155AutoIdPausableRecoverableFactory: "0xAc373c72e4683F8eFc5303d060703a480bfAA74A";
154
+ readonly ERC20GatedPausableRecoverableFactory: "0x95E521FEe12cc5b551151C94f8d146B9C7f043fA";
155
+ readonly ERC20PausableRecoverableFactory: "0xFea92aC14C5B39590b29C86370D0A710aE02B45D";
156
+ readonly ERC721AutoIdGatedPausableRecoverableFactory: "0xdB2b8eB6df1C89C1887ad9A38938153cc896AB37";
157
+ readonly ERC721AutoIdPausableRecoverableFactory: "0xFE98EF8Ba0f70f59D18862F2528071F00A94f0C3";
158
158
  } | {
159
159
  readonly DiamondFactory: "0x141c8f5BC8f7895E800518dc799f3D6e419b30Ac";
160
- readonly ERC1155GatedPausableRecoverableFactory: "0xBa362eeAc702C32935601Ea13063f6ECde1AbF14";
161
- readonly ERC1155PausableRecoverableFactory: "0x6B194C183dB881c4Fcc95a6fC4eA6a47d062256c";
162
- readonly ERC20GatedPausableRecoverableFactory: "0xc0E81eA6bC7eCc3639e550b5Ff5e3B840A0B151f";
163
- readonly ERC20PausableRecoverableFactory: "0x48711c8E26f1a658f58B6d426cd7Be52de02ffF9";
164
- readonly ERC721GatedPausableRecoverableFactory: "0x43C8BfbAB561D406F362e0cCc75EB9FbCc6ebc2e";
165
- readonly ERC721PausableRecoverableFactory: "0x0F48421Ac48D921A1513e50dd8eBbFBbF18e58eE";
160
+ readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0x059A29005D665134a2BDe3828053dA09C0423E68";
161
+ readonly ERC1155AutoIdPausableRecoverableFactory: "0xDf10CF08E8362d8185C3bb148DdCf9aB8e8F5D16";
162
+ readonly ERC20GatedPausableRecoverableFactory: "0x969Ef79EeecA0A647ae975561014351767afa155";
163
+ readonly ERC20PausableRecoverableFactory: "0x868d1414BAc904175ba9c905EeE38150BDE34eBb";
164
+ readonly ERC721AutoIdGatedPausableRecoverableFactory: "0x0fee6C8Cde9Ab6C59DA9a6b19127b9e616D7bE49";
165
+ readonly ERC721AutoIdPausableRecoverableFactory: "0x0d6E0315119DBE67F717F76B75f2A0FBd8FF3858";
166
166
  };
167
167
  //# sourceMappingURL=factories.base.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const BurnErc1155RequestSchema: z.ZodObject<{
3
+ tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
4
+ account: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ id: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
6
+ amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
7
+ }, z.core.$strip>;
8
+ export declare const BurnErc1155: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
9
+ "/": {
10
+ $post: {
11
+ input: {
12
+ json: {
13
+ tokenAddress: string;
14
+ account: string;
15
+ id: string;
16
+ amount: string;
17
+ };
18
+ };
19
+ output: {
20
+ data: `0x${string}`;
21
+ to: `0x${string}`;
22
+ details: {
23
+ functionName: string;
24
+ address: `0x${string}`;
25
+ abi: any[];
26
+ args: any[];
27
+ };
28
+ };
29
+ outputFormat: "json";
30
+ status: import("hono/utils/http-status").ContentfulStatusCode;
31
+ };
32
+ };
33
+ }, "/", "/">>;
34
+ //# sourceMappingURL=burn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAkBH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;aActB,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { z } from "zod";
4
+ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
+ import { createController } from "../../common/controller.js";
6
+ import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
7
+ import { Int256BigInt } from "../../common/int256.js";
8
+ export const BurnErc1155RequestSchema = z.object({
9
+ tokenAddress: AddressSchema,
10
+ account: AddressSchema.openapi({ description: "Address to burn tokens from" }),
11
+ id: Int256BigInt(z.bigint().nonnegative()).openapi({ description: "Token ID to burn" }),
12
+ amount: Int256BigInt(z.bigint().nonnegative()).openapi({ description: "Amount of tokens to burn" }),
13
+ });
14
+ const burnRoute = describeRoute({
15
+ summary: "Burn ERC1155",
16
+ description: "Returns transaction data for burning an ERC1155 token",
17
+ tags: ["Issuance"],
18
+ responses: {
19
+ 200: {
20
+ description: "Returns transaction data for burning an ERC1155 token",
21
+ content: {
22
+ "application/json": {
23
+ schema: resolver(TransactionSchema),
24
+ },
25
+ },
26
+ },
27
+ },
28
+ });
29
+ export const BurnErc1155 = createController({
30
+ build: (factory) => factory.createApp().post("/", burnRoute, validator("json", BurnErc1155RequestSchema), async (c) => {
31
+ const { tokenAddress, account, id, amount } = c.req.valid("json");
32
+ return c.json(toTransaction({
33
+ address: tokenAddress,
34
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
35
+ functionName: "burn",
36
+ args: [account, BigInt(id), BigInt(amount)],
37
+ }));
38
+ }),
39
+ });
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const DeployErc1155RequestSchema: z.ZodObject<{
3
+ chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 72080>, z.ZodLiteral<11155111 | 72080>, ...z.ZodLiteral<11155111 | 72080>[]]>;
4
+ baseURI: z.ZodString;
5
+ defaultTokenAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
+ minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
+ }, z.core.$strip>;
8
+ export declare const CreateErc1155Token: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
9
+ "/": {
10
+ $post: {
11
+ input: {
12
+ json: {
13
+ chainId: 11155111 | 72080;
14
+ baseURI: string;
15
+ defaultTokenAdmin: string;
16
+ minter: string;
17
+ };
18
+ };
19
+ output: {
20
+ data: `0x${string}`;
21
+ to: `0x${string}`;
22
+ details: {
23
+ functionName: string;
24
+ address: `0x${string}`;
25
+ abi: any[];
26
+ args: any[];
27
+ };
28
+ };
29
+ outputFormat: "json";
30
+ status: import("hono/utils/http-status").ContentfulStatusCode;
31
+ };
32
+ };
33
+ }, "/", "/">>;
34
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/default/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AA+BH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;aAc7B,CAAC"}