@gala-chain/launchpad 1.0.0
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.
- package/.dev-env +7 -0
- package/.dockerignore +9 -0
- package/.eslintignore +4 -0
- package/.eslintrc.json +37 -0
- package/.github/workflows/publish-on-tag.yml +72 -0
- package/.github/workflows/test-on-push.yml +32 -0
- package/.nvmrc +1 -0
- package/.prettierignore +4 -0
- package/.prettierrc +12 -0
- package/Dockerfile +31 -0
- package/LICENSE +201 -0
- package/README.md +2 -0
- package/api-config.json +16 -0
- package/e2e/__snapshots__/api.spec.ts.snap +2482 -0
- package/e2e/api-config.json +17 -0
- package/e2e/api.spec.ts +48 -0
- package/e2e/jest.config.js +42 -0
- package/e2e/tsconfig.json +10 -0
- package/jest.config.ts +27 -0
- package/lib/jest.config.d.ts +13 -0
- package/lib/jest.config.d.ts.map +1 -0
- package/lib/jest.config.js +28 -0
- package/lib/jest.config.js.map +1 -0
- package/lib/package.json +54 -0
- package/lib/src/api/index.d.ts +4 -0
- package/lib/src/api/index.d.ts.map +1 -0
- package/lib/src/api/index.js +21 -0
- package/lib/src/api/index.js.map +1 -0
- package/lib/src/api/types/LaunchpadDtos.d.ts +102 -0
- package/lib/src/api/types/LaunchpadDtos.d.ts.map +1 -0
- package/lib/src/api/types/LaunchpadDtos.js +410 -0
- package/lib/src/api/types/LaunchpadDtos.js.map +1 -0
- package/lib/src/api/types/LaunchpadFeeConfig.d.ts +9 -0
- package/lib/src/api/types/LaunchpadFeeConfig.d.ts.map +1 -0
- package/lib/src/api/types/LaunchpadFeeConfig.js +56 -0
- package/lib/src/api/types/LaunchpadFeeConfig.js.map +1 -0
- package/lib/src/api/types/LaunchpadFinalizeAllocation.d.ts +10 -0
- package/lib/src/api/types/LaunchpadFinalizeAllocation.d.ts.map +1 -0
- package/lib/src/api/types/LaunchpadFinalizeAllocation.js +70 -0
- package/lib/src/api/types/LaunchpadFinalizeAllocation.js.map +1 -0
- package/lib/src/api/types/LaunchpadSale.d.ts +35 -0
- package/lib/src/api/types/LaunchpadSale.d.ts.map +1 -0
- package/lib/src/api/types/LaunchpadSale.js +195 -0
- package/lib/src/api/types/LaunchpadSale.js.map +1 -0
- package/lib/src/api/types/index.d.ts +5 -0
- package/lib/src/api/types/index.d.ts.map +1 -0
- package/lib/src/api/types/index.js +22 -0
- package/lib/src/api/types/index.js.map +1 -0
- package/lib/src/api/utils/error.d.ts +20 -0
- package/lib/src/api/utils/error.d.ts.map +1 -0
- package/lib/src/api/utils/error.js +35 -0
- package/lib/src/api/utils/error.js.map +1 -0
- package/lib/src/api/utils/index.d.ts +2 -0
- package/lib/src/api/utils/index.d.ts.map +1 -0
- package/lib/src/api/utils/index.js +19 -0
- package/lib/src/api/utils/index.js.map +1 -0
- package/lib/src/api/validators/decorators.d.ts +19 -0
- package/lib/src/api/validators/decorators.d.ts.map +1 -0
- package/lib/src/api/validators/decorators.js +391 -0
- package/lib/src/api/validators/decorators.js.map +1 -0
- package/lib/src/api/validators/index.d.ts +2 -0
- package/lib/src/api/validators/index.d.ts.map +1 -0
- package/lib/src/api/validators/index.js +19 -0
- package/lib/src/api/validators/index.js.map +1 -0
- package/lib/src/chaincode/LaunchpadContract.d.ts +20 -0
- package/lib/src/chaincode/LaunchpadContract.d.ts.map +1 -0
- package/lib/src/chaincode/LaunchpadContract.js +217 -0
- package/lib/src/chaincode/LaunchpadContract.js.map +1 -0
- package/lib/src/chaincode/dexLaunchpadFeeGate.d.ts +14 -0
- package/lib/src/chaincode/dexLaunchpadFeeGate.d.ts.map +1 -0
- package/lib/src/chaincode/dexLaunchpadFeeGate.js +47 -0
- package/lib/src/chaincode/dexLaunchpadFeeGate.js.map +1 -0
- package/lib/src/chaincode/index.d.ts +2 -0
- package/lib/src/chaincode/index.d.ts.map +1 -0
- package/lib/src/chaincode/index.js +19 -0
- package/lib/src/chaincode/index.js.map +1 -0
- package/lib/src/chaincode/launchpad/buyExactToken.d.ts +20 -0
- package/lib/src/chaincode/launchpad/buyExactToken.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/buyExactToken.js +113 -0
- package/lib/src/chaincode/launchpad/buyExactToken.js.map +1 -0
- package/lib/src/chaincode/launchpad/buyWithNative.d.ts +22 -0
- package/lib/src/chaincode/launchpad/buyWithNative.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/buyWithNative.js +106 -0
- package/lib/src/chaincode/launchpad/buyWithNative.js.map +1 -0
- package/lib/src/chaincode/launchpad/callMemeTokenIn.d.ts +27 -0
- package/lib/src/chaincode/launchpad/callMemeTokenIn.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/callMemeTokenIn.js +76 -0
- package/lib/src/chaincode/launchpad/callMemeTokenIn.js.map +1 -0
- package/lib/src/chaincode/launchpad/callMemeTokenOut.d.ts +25 -0
- package/lib/src/chaincode/launchpad/callMemeTokenOut.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/callMemeTokenOut.js +56 -0
- package/lib/src/chaincode/launchpad/callMemeTokenOut.js.map +1 -0
- package/lib/src/chaincode/launchpad/callNativeTokenIn.d.ts +25 -0
- package/lib/src/chaincode/launchpad/callNativeTokenIn.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/callNativeTokenIn.js +51 -0
- package/lib/src/chaincode/launchpad/callNativeTokenIn.js.map +1 -0
- package/lib/src/chaincode/launchpad/callNativeTokenOut.d.ts +26 -0
- package/lib/src/chaincode/launchpad/callNativeTokenOut.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/callNativeTokenOut.js +60 -0
- package/lib/src/chaincode/launchpad/callNativeTokenOut.js.map +1 -0
- package/lib/src/chaincode/launchpad/configureLaunchpadFeeConfig.d.ts +4 -0
- package/lib/src/chaincode/launchpad/configureLaunchpadFeeConfig.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/configureLaunchpadFeeConfig.js +58 -0
- package/lib/src/chaincode/launchpad/configureLaunchpadFeeConfig.js.map +1 -0
- package/lib/src/chaincode/launchpad/createSale.d.ts +26 -0
- package/lib/src/chaincode/launchpad/createSale.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/createSale.js +129 -0
- package/lib/src/chaincode/launchpad/createSale.js.map +1 -0
- package/lib/src/chaincode/launchpad/fees.d.ts +6 -0
- package/lib/src/chaincode/launchpad/fees.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/fees.js +85 -0
- package/lib/src/chaincode/launchpad/fees.js.map +1 -0
- package/lib/src/chaincode/launchpad/fetchLaunchpadAdressConfig.d.ts +4 -0
- package/lib/src/chaincode/launchpad/fetchLaunchpadAdressConfig.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/fetchLaunchpadAdressConfig.js +36 -0
- package/lib/src/chaincode/launchpad/fetchLaunchpadAdressConfig.js.map +1 -0
- package/lib/src/chaincode/launchpad/fetchSaleDetails.d.ts +19 -0
- package/lib/src/chaincode/launchpad/fetchSaleDetails.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/fetchSaleDetails.js +49 -0
- package/lib/src/chaincode/launchpad/fetchSaleDetails.js.map +1 -0
- package/lib/src/chaincode/launchpad/finaliseSale.d.ts +4 -0
- package/lib/src/chaincode/launchpad/finaliseSale.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/finaliseSale.js +144 -0
- package/lib/src/chaincode/launchpad/finaliseSale.js.map +1 -0
- package/lib/src/chaincode/launchpad/finalizeTokenAllocation.d.ts +4 -0
- package/lib/src/chaincode/launchpad/finalizeTokenAllocation.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/finalizeTokenAllocation.js +43 -0
- package/lib/src/chaincode/launchpad/finalizeTokenAllocation.js.map +1 -0
- package/lib/src/chaincode/launchpad/index.d.ts +15 -0
- package/lib/src/chaincode/launchpad/index.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/index.js +32 -0
- package/lib/src/chaincode/launchpad/index.js.map +1 -0
- package/lib/src/chaincode/launchpad/preMintCalculation.d.ts +17 -0
- package/lib/src/chaincode/launchpad/preMintCalculation.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/preMintCalculation.js +56 -0
- package/lib/src/chaincode/launchpad/preMintCalculation.js.map +1 -0
- package/lib/src/chaincode/launchpad/sellExactToken.d.ts +22 -0
- package/lib/src/chaincode/launchpad/sellExactToken.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/sellExactToken.js +102 -0
- package/lib/src/chaincode/launchpad/sellExactToken.js.map +1 -0
- package/lib/src/chaincode/launchpad/sellWithNative.d.ts +23 -0
- package/lib/src/chaincode/launchpad/sellWithNative.d.ts.map +1 -0
- package/lib/src/chaincode/launchpad/sellWithNative.js +97 -0
- package/lib/src/chaincode/launchpad/sellWithNative.js.map +1 -0
- package/lib/src/chaincode/utils/index.d.ts +2 -0
- package/lib/src/chaincode/utils/index.d.ts.map +1 -0
- package/lib/src/chaincode/utils/index.js +19 -0
- package/lib/src/chaincode/utils/index.js.map +1 -0
- package/lib/src/chaincode/utils/launchpadSaleUtils.d.ts +11 -0
- package/lib/src/chaincode/utils/launchpadSaleUtils.d.ts.map +1 -0
- package/lib/src/chaincode/utils/launchpadSaleUtils.js +65 -0
- package/lib/src/chaincode/utils/launchpadSaleUtils.js.map +1 -0
- package/lib/src/cli.d.ts +3 -0
- package/lib/src/cli.d.ts.map +1 -0
- package/lib/src/cli.js +41 -0
- package/lib/src/cli.js.map +1 -0
- package/lib/src/index.d.ts +14 -0
- package/lib/src/index.d.ts.map +1 -0
- package/lib/src/index.js +32 -0
- package/lib/src/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +54 -0
- package/src/api/index.ts +18 -0
- package/src/api/types/LaunchpadDtos.ts +362 -0
- package/src/api/types/LaunchpadFeeConfig.ts +45 -0
- package/src/api/types/LaunchpadFinalizeAllocation.ts +65 -0
- package/src/api/types/LaunchpadSale.ts +200 -0
- package/src/api/types/index.ts +19 -0
- package/src/api/utils/error.ts +32 -0
- package/src/api/utils/index.ts +16 -0
- package/src/api/validators/decorators.spec.ts +277 -0
- package/src/api/validators/decorators.ts +401 -0
- package/src/api/validators/index.ts +16 -0
- package/src/chaincode/LaunchpadContract.ts +211 -0
- package/src/chaincode/dexLaunchpadFeeGate.ts +43 -0
- package/src/chaincode/index.ts +16 -0
- package/src/chaincode/launchpad/buyExactToken.ts +128 -0
- package/src/chaincode/launchpad/buyWithNative.ts +120 -0
- package/src/chaincode/launchpad/callMemeTokenIn.ts +82 -0
- package/src/chaincode/launchpad/callMemeTokenOut.ts +80 -0
- package/src/chaincode/launchpad/callNativeTokenIn.ts +71 -0
- package/src/chaincode/launchpad/callNativeTokenOut.ts +81 -0
- package/src/chaincode/launchpad/configureLaunchpadFeeConfig.ts +69 -0
- package/src/chaincode/launchpad/createSale.ts +157 -0
- package/src/chaincode/launchpad/fees.ts +105 -0
- package/src/chaincode/launchpad/fetchLaunchpadAdressConfig.ts +38 -0
- package/src/chaincode/launchpad/fetchSaleDetails.ts +53 -0
- package/src/chaincode/launchpad/finaliseSale.ts +217 -0
- package/src/chaincode/launchpad/finalizeTokenAllocation.ts +47 -0
- package/src/chaincode/launchpad/index.ts +28 -0
- package/src/chaincode/launchpad/preMintCalculation.ts +61 -0
- package/src/chaincode/launchpad/sellExactToken.ts +122 -0
- package/src/chaincode/launchpad/sellWithNative.ts +112 -0
- package/src/chaincode/utils/index.ts +15 -0
- package/src/chaincode/utils/launchpadSaleUtils.ts +68 -0
- package/src/cli.ts +63 -0
- package/src/index.ts +32 -0
- package/tsconfig.base.json +29 -0
- package/tsconfig.json +19 -0
- package/tsconfig.spec.json +11 -0
|
@@ -0,0 +1,2482 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`API snapshots Api of Launchpad 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"contractName": "Launchpad",
|
|
6
|
+
"contractVersion": "?.?.?",
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"description": "Evaluate a batch of transactions Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
10
|
+
"dtoSchema": {
|
|
11
|
+
"properties": {
|
|
12
|
+
"operations": {
|
|
13
|
+
"items": {
|
|
14
|
+
"properties": {
|
|
15
|
+
"dto": {
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"properties": {
|
|
18
|
+
"prefix": {
|
|
19
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"type": "string",
|
|
22
|
+
},
|
|
23
|
+
"signature": {
|
|
24
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
25
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"type": "string",
|
|
28
|
+
},
|
|
29
|
+
"signerAddress": {
|
|
30
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"type": "string",
|
|
33
|
+
},
|
|
34
|
+
"signerPublicKey": {
|
|
35
|
+
"description": "Public key of the user who signed the DTO.",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"type": "string",
|
|
38
|
+
},
|
|
39
|
+
"signing": {
|
|
40
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
41
|
+
"enum": [
|
|
42
|
+
"ETH",
|
|
43
|
+
"TON",
|
|
44
|
+
],
|
|
45
|
+
"type": "string",
|
|
46
|
+
},
|
|
47
|
+
"uniqueKey": {
|
|
48
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
49
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
50
|
+
"minLength": 1,
|
|
51
|
+
"type": "string",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
"type": "object",
|
|
55
|
+
},
|
|
56
|
+
"method": {
|
|
57
|
+
"minLength": 1,
|
|
58
|
+
"type": "string",
|
|
59
|
+
},
|
|
60
|
+
"prefix": {
|
|
61
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"type": "string",
|
|
64
|
+
},
|
|
65
|
+
"signature": {
|
|
66
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
67
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
68
|
+
"minLength": 1,
|
|
69
|
+
"type": "string",
|
|
70
|
+
},
|
|
71
|
+
"signerAddress": {
|
|
72
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
73
|
+
"minLength": 1,
|
|
74
|
+
"type": "string",
|
|
75
|
+
},
|
|
76
|
+
"signerPublicKey": {
|
|
77
|
+
"description": "Public key of the user who signed the DTO.",
|
|
78
|
+
"minLength": 1,
|
|
79
|
+
"type": "string",
|
|
80
|
+
},
|
|
81
|
+
"signing": {
|
|
82
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
83
|
+
"enum": [
|
|
84
|
+
"ETH",
|
|
85
|
+
"TON",
|
|
86
|
+
],
|
|
87
|
+
"type": "string",
|
|
88
|
+
},
|
|
89
|
+
"uniqueKey": {
|
|
90
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
91
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
92
|
+
"minLength": 1,
|
|
93
|
+
"type": "string",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"method",
|
|
98
|
+
"dto",
|
|
99
|
+
],
|
|
100
|
+
"type": "object",
|
|
101
|
+
},
|
|
102
|
+
"maxItems": 1000,
|
|
103
|
+
"minItems": 1,
|
|
104
|
+
"type": "array",
|
|
105
|
+
},
|
|
106
|
+
"prefix": {
|
|
107
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
108
|
+
"minLength": 1,
|
|
109
|
+
"type": "string",
|
|
110
|
+
},
|
|
111
|
+
"signature": {
|
|
112
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
113
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"type": "string",
|
|
116
|
+
},
|
|
117
|
+
"signerAddress": {
|
|
118
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
119
|
+
"minLength": 1,
|
|
120
|
+
"type": "string",
|
|
121
|
+
},
|
|
122
|
+
"signerPublicKey": {
|
|
123
|
+
"description": "Public key of the user who signed the DTO.",
|
|
124
|
+
"minLength": 1,
|
|
125
|
+
"type": "string",
|
|
126
|
+
},
|
|
127
|
+
"signing": {
|
|
128
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
129
|
+
"enum": [
|
|
130
|
+
"ETH",
|
|
131
|
+
"TON",
|
|
132
|
+
],
|
|
133
|
+
"type": "string",
|
|
134
|
+
},
|
|
135
|
+
"uniqueKey": {
|
|
136
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
137
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"type": "string",
|
|
140
|
+
},
|
|
141
|
+
"writesLimit": {
|
|
142
|
+
"description": "Soft limit of keys written to chain in a batch, excluding deletes. If the limit is exceeded, all subsequent operations in batch fail. Typically it is safe to repeat failed operations in the next batch. Default: 10000. Max: 100000.",
|
|
143
|
+
"maximum": 100000,
|
|
144
|
+
"minimum": 1,
|
|
145
|
+
"type": "number",
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"operations",
|
|
150
|
+
],
|
|
151
|
+
"type": "object",
|
|
152
|
+
},
|
|
153
|
+
"isWrite": false,
|
|
154
|
+
"methodName": "BatchEvaluate",
|
|
155
|
+
"responseSchema": {
|
|
156
|
+
"properties": {
|
|
157
|
+
"Data": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
},
|
|
160
|
+
"Message": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
},
|
|
163
|
+
"Status": {
|
|
164
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
165
|
+
"enum": [
|
|
166
|
+
0,
|
|
167
|
+
1,
|
|
168
|
+
],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
"required": [
|
|
172
|
+
"Status",
|
|
173
|
+
],
|
|
174
|
+
"type": "object",
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"description": "Submit a batch of transactionsSubmit a batch of transactions Allowed roles: SUBMIT. Allowed orgs: CuratorOrg.",
|
|
179
|
+
"dtoSchema": {
|
|
180
|
+
"properties": {
|
|
181
|
+
"operations": {
|
|
182
|
+
"items": {
|
|
183
|
+
"properties": {
|
|
184
|
+
"dto": {
|
|
185
|
+
"minLength": 1,
|
|
186
|
+
"properties": {
|
|
187
|
+
"prefix": {
|
|
188
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
189
|
+
"minLength": 1,
|
|
190
|
+
"type": "string",
|
|
191
|
+
},
|
|
192
|
+
"signature": {
|
|
193
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
194
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
195
|
+
"minLength": 1,
|
|
196
|
+
"type": "string",
|
|
197
|
+
},
|
|
198
|
+
"signerAddress": {
|
|
199
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
200
|
+
"minLength": 1,
|
|
201
|
+
"type": "string",
|
|
202
|
+
},
|
|
203
|
+
"signerPublicKey": {
|
|
204
|
+
"description": "Public key of the user who signed the DTO.",
|
|
205
|
+
"minLength": 1,
|
|
206
|
+
"type": "string",
|
|
207
|
+
},
|
|
208
|
+
"signing": {
|
|
209
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
210
|
+
"enum": [
|
|
211
|
+
"ETH",
|
|
212
|
+
"TON",
|
|
213
|
+
],
|
|
214
|
+
"type": "string",
|
|
215
|
+
},
|
|
216
|
+
"uniqueKey": {
|
|
217
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
218
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
219
|
+
"minLength": 1,
|
|
220
|
+
"type": "string",
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
"type": "object",
|
|
224
|
+
},
|
|
225
|
+
"method": {
|
|
226
|
+
"minLength": 1,
|
|
227
|
+
"type": "string",
|
|
228
|
+
},
|
|
229
|
+
"prefix": {
|
|
230
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
231
|
+
"minLength": 1,
|
|
232
|
+
"type": "string",
|
|
233
|
+
},
|
|
234
|
+
"signature": {
|
|
235
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
236
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
237
|
+
"minLength": 1,
|
|
238
|
+
"type": "string",
|
|
239
|
+
},
|
|
240
|
+
"signerAddress": {
|
|
241
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
242
|
+
"minLength": 1,
|
|
243
|
+
"type": "string",
|
|
244
|
+
},
|
|
245
|
+
"signerPublicKey": {
|
|
246
|
+
"description": "Public key of the user who signed the DTO.",
|
|
247
|
+
"minLength": 1,
|
|
248
|
+
"type": "string",
|
|
249
|
+
},
|
|
250
|
+
"signing": {
|
|
251
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
252
|
+
"enum": [
|
|
253
|
+
"ETH",
|
|
254
|
+
"TON",
|
|
255
|
+
],
|
|
256
|
+
"type": "string",
|
|
257
|
+
},
|
|
258
|
+
"uniqueKey": {
|
|
259
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
260
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
261
|
+
"minLength": 1,
|
|
262
|
+
"type": "string",
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
"required": [
|
|
266
|
+
"method",
|
|
267
|
+
"dto",
|
|
268
|
+
],
|
|
269
|
+
"type": "object",
|
|
270
|
+
},
|
|
271
|
+
"maxItems": 1000,
|
|
272
|
+
"minItems": 1,
|
|
273
|
+
"type": "array",
|
|
274
|
+
},
|
|
275
|
+
"prefix": {
|
|
276
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
277
|
+
"minLength": 1,
|
|
278
|
+
"type": "string",
|
|
279
|
+
},
|
|
280
|
+
"signature": {
|
|
281
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
282
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
283
|
+
"minLength": 1,
|
|
284
|
+
"type": "string",
|
|
285
|
+
},
|
|
286
|
+
"signerAddress": {
|
|
287
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
288
|
+
"minLength": 1,
|
|
289
|
+
"type": "string",
|
|
290
|
+
},
|
|
291
|
+
"signerPublicKey": {
|
|
292
|
+
"description": "Public key of the user who signed the DTO.",
|
|
293
|
+
"minLength": 1,
|
|
294
|
+
"type": "string",
|
|
295
|
+
},
|
|
296
|
+
"signing": {
|
|
297
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
298
|
+
"enum": [
|
|
299
|
+
"ETH",
|
|
300
|
+
"TON",
|
|
301
|
+
],
|
|
302
|
+
"type": "string",
|
|
303
|
+
},
|
|
304
|
+
"uniqueKey": {
|
|
305
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
306
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
307
|
+
"minLength": 1,
|
|
308
|
+
"type": "string",
|
|
309
|
+
},
|
|
310
|
+
"writesLimit": {
|
|
311
|
+
"description": "Soft limit of keys written to chain in a batch, excluding deletes. If the limit is exceeded, all subsequent operations in batch fail. Typically it is safe to repeat failed operations in the next batch. Default: 10000. Max: 100000.",
|
|
312
|
+
"maximum": 100000,
|
|
313
|
+
"minimum": 1,
|
|
314
|
+
"type": "number",
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
"required": [
|
|
318
|
+
"operations",
|
|
319
|
+
],
|
|
320
|
+
"type": "object",
|
|
321
|
+
},
|
|
322
|
+
"isWrite": true,
|
|
323
|
+
"methodName": "BatchSubmit",
|
|
324
|
+
"responseSchema": {
|
|
325
|
+
"properties": {
|
|
326
|
+
"Data": {
|
|
327
|
+
"type": "object",
|
|
328
|
+
},
|
|
329
|
+
"Message": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
},
|
|
332
|
+
"Status": {
|
|
333
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
334
|
+
"enum": [
|
|
335
|
+
0,
|
|
336
|
+
1,
|
|
337
|
+
],
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
"required": [
|
|
341
|
+
"Status",
|
|
342
|
+
],
|
|
343
|
+
"type": "object",
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"description": " Allowed roles: SUBMIT.",
|
|
348
|
+
"dtoSchema": {
|
|
349
|
+
"properties": {
|
|
350
|
+
"expectedNativeToken": {
|
|
351
|
+
"description": "Number provided as a string.",
|
|
352
|
+
"type": "string",
|
|
353
|
+
},
|
|
354
|
+
"extraFees": {
|
|
355
|
+
"properties": {
|
|
356
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
357
|
+
"description": "Number provided as a string.",
|
|
358
|
+
"type": "string",
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
"type": "object",
|
|
362
|
+
},
|
|
363
|
+
"prefix": {
|
|
364
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
365
|
+
"minLength": 1,
|
|
366
|
+
"type": "string",
|
|
367
|
+
},
|
|
368
|
+
"signature": {
|
|
369
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
370
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
371
|
+
"minLength": 1,
|
|
372
|
+
"type": "string",
|
|
373
|
+
},
|
|
374
|
+
"signerAddress": {
|
|
375
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
376
|
+
"minLength": 1,
|
|
377
|
+
"type": "string",
|
|
378
|
+
},
|
|
379
|
+
"signerPublicKey": {
|
|
380
|
+
"description": "Public key of the user who signed the DTO.",
|
|
381
|
+
"minLength": 1,
|
|
382
|
+
"type": "string",
|
|
383
|
+
},
|
|
384
|
+
"signing": {
|
|
385
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
386
|
+
"enum": [
|
|
387
|
+
"ETH",
|
|
388
|
+
"TON",
|
|
389
|
+
],
|
|
390
|
+
"type": "string",
|
|
391
|
+
},
|
|
392
|
+
"tokenQuantity": {
|
|
393
|
+
"description": "Number provided as a string.",
|
|
394
|
+
"type": "string",
|
|
395
|
+
},
|
|
396
|
+
"uniqueKey": {
|
|
397
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
398
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
399
|
+
"minLength": 1,
|
|
400
|
+
"type": "string",
|
|
401
|
+
},
|
|
402
|
+
"vaultAddress": {
|
|
403
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
404
|
+
"minLength": 1,
|
|
405
|
+
"type": "string",
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
"required": [
|
|
409
|
+
"vaultAddress",
|
|
410
|
+
"tokenQuantity",
|
|
411
|
+
],
|
|
412
|
+
"type": "object",
|
|
413
|
+
},
|
|
414
|
+
"isWrite": true,
|
|
415
|
+
"methodName": "BuyExactToken",
|
|
416
|
+
"responseSchema": {
|
|
417
|
+
"properties": {
|
|
418
|
+
"Data": {
|
|
419
|
+
"properties": {
|
|
420
|
+
"functionName": {
|
|
421
|
+
"minLength": 1,
|
|
422
|
+
"type": "string",
|
|
423
|
+
},
|
|
424
|
+
"inputQuantity": {
|
|
425
|
+
"minLength": 1,
|
|
426
|
+
"type": "string",
|
|
427
|
+
},
|
|
428
|
+
"isFinalized": {
|
|
429
|
+
"minLength": 1,
|
|
430
|
+
"type": "string",
|
|
431
|
+
},
|
|
432
|
+
"nativeTokenAmount": {},
|
|
433
|
+
"nativeTokenBalance": {},
|
|
434
|
+
"outputQuantity": {
|
|
435
|
+
"minLength": 1,
|
|
436
|
+
"type": "string",
|
|
437
|
+
},
|
|
438
|
+
"tokenBalance": {},
|
|
439
|
+
"tokenName": {
|
|
440
|
+
"minLength": 1,
|
|
441
|
+
"type": "string",
|
|
442
|
+
},
|
|
443
|
+
"tokenQuantity": {},
|
|
444
|
+
"tradeType": {
|
|
445
|
+
"minLength": 1,
|
|
446
|
+
"type": "string",
|
|
447
|
+
},
|
|
448
|
+
"userAddress": {
|
|
449
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
450
|
+
"minLength": 1,
|
|
451
|
+
"type": "string",
|
|
452
|
+
},
|
|
453
|
+
"vaultAddress": {
|
|
454
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
455
|
+
"minLength": 1,
|
|
456
|
+
"type": "string",
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
"required": [
|
|
460
|
+
"inputQuantity",
|
|
461
|
+
"outputQuantity",
|
|
462
|
+
"tokenName",
|
|
463
|
+
"tradeType",
|
|
464
|
+
"vaultAddress",
|
|
465
|
+
"userAddress",
|
|
466
|
+
"isFinalized",
|
|
467
|
+
"functionName",
|
|
468
|
+
],
|
|
469
|
+
"type": "object",
|
|
470
|
+
},
|
|
471
|
+
"Message": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
},
|
|
474
|
+
"Status": {
|
|
475
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
476
|
+
"enum": [
|
|
477
|
+
0,
|
|
478
|
+
1,
|
|
479
|
+
],
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
"required": [
|
|
483
|
+
"Status",
|
|
484
|
+
],
|
|
485
|
+
"type": "object",
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"description": " Allowed roles: SUBMIT.",
|
|
490
|
+
"dtoSchema": {
|
|
491
|
+
"properties": {
|
|
492
|
+
"expectedToken": {
|
|
493
|
+
"description": "Number provided as a string.",
|
|
494
|
+
"type": "string",
|
|
495
|
+
},
|
|
496
|
+
"extraFees": {
|
|
497
|
+
"properties": {
|
|
498
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
499
|
+
"description": "Number provided as a string.",
|
|
500
|
+
"type": "string",
|
|
501
|
+
},
|
|
502
|
+
},
|
|
503
|
+
"type": "object",
|
|
504
|
+
},
|
|
505
|
+
"nativeTokenQuantity": {
|
|
506
|
+
"description": "Number provided as a string.",
|
|
507
|
+
"type": "string",
|
|
508
|
+
},
|
|
509
|
+
"prefix": {
|
|
510
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
511
|
+
"minLength": 1,
|
|
512
|
+
"type": "string",
|
|
513
|
+
},
|
|
514
|
+
"signature": {
|
|
515
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
516
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
517
|
+
"minLength": 1,
|
|
518
|
+
"type": "string",
|
|
519
|
+
},
|
|
520
|
+
"signerAddress": {
|
|
521
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
522
|
+
"minLength": 1,
|
|
523
|
+
"type": "string",
|
|
524
|
+
},
|
|
525
|
+
"signerPublicKey": {
|
|
526
|
+
"description": "Public key of the user who signed the DTO.",
|
|
527
|
+
"minLength": 1,
|
|
528
|
+
"type": "string",
|
|
529
|
+
},
|
|
530
|
+
"signing": {
|
|
531
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
532
|
+
"enum": [
|
|
533
|
+
"ETH",
|
|
534
|
+
"TON",
|
|
535
|
+
],
|
|
536
|
+
"type": "string",
|
|
537
|
+
},
|
|
538
|
+
"uniqueKey": {
|
|
539
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
540
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
541
|
+
"minLength": 1,
|
|
542
|
+
"type": "string",
|
|
543
|
+
},
|
|
544
|
+
"vaultAddress": {
|
|
545
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
546
|
+
"minLength": 1,
|
|
547
|
+
"type": "string",
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
"required": [
|
|
551
|
+
"vaultAddress",
|
|
552
|
+
"nativeTokenQuantity",
|
|
553
|
+
],
|
|
554
|
+
"type": "object",
|
|
555
|
+
},
|
|
556
|
+
"isWrite": true,
|
|
557
|
+
"methodName": "BuyWithNative",
|
|
558
|
+
"responseSchema": {
|
|
559
|
+
"properties": {
|
|
560
|
+
"Data": {
|
|
561
|
+
"properties": {
|
|
562
|
+
"functionName": {
|
|
563
|
+
"minLength": 1,
|
|
564
|
+
"type": "string",
|
|
565
|
+
},
|
|
566
|
+
"inputQuantity": {
|
|
567
|
+
"minLength": 1,
|
|
568
|
+
"type": "string",
|
|
569
|
+
},
|
|
570
|
+
"isFinalized": {
|
|
571
|
+
"minLength": 1,
|
|
572
|
+
"type": "string",
|
|
573
|
+
},
|
|
574
|
+
"nativeTokenAmount": {},
|
|
575
|
+
"nativeTokenBalance": {},
|
|
576
|
+
"outputQuantity": {
|
|
577
|
+
"minLength": 1,
|
|
578
|
+
"type": "string",
|
|
579
|
+
},
|
|
580
|
+
"tokenBalance": {},
|
|
581
|
+
"tokenName": {
|
|
582
|
+
"minLength": 1,
|
|
583
|
+
"type": "string",
|
|
584
|
+
},
|
|
585
|
+
"tokenQuantity": {},
|
|
586
|
+
"tradeType": {
|
|
587
|
+
"minLength": 1,
|
|
588
|
+
"type": "string",
|
|
589
|
+
},
|
|
590
|
+
"userAddress": {
|
|
591
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
592
|
+
"minLength": 1,
|
|
593
|
+
"type": "string",
|
|
594
|
+
},
|
|
595
|
+
"vaultAddress": {
|
|
596
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
597
|
+
"minLength": 1,
|
|
598
|
+
"type": "string",
|
|
599
|
+
},
|
|
600
|
+
},
|
|
601
|
+
"required": [
|
|
602
|
+
"inputQuantity",
|
|
603
|
+
"outputQuantity",
|
|
604
|
+
"tokenName",
|
|
605
|
+
"tradeType",
|
|
606
|
+
"vaultAddress",
|
|
607
|
+
"userAddress",
|
|
608
|
+
"isFinalized",
|
|
609
|
+
"functionName",
|
|
610
|
+
],
|
|
611
|
+
"type": "object",
|
|
612
|
+
},
|
|
613
|
+
"Message": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
},
|
|
616
|
+
"Status": {
|
|
617
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
618
|
+
"enum": [
|
|
619
|
+
0,
|
|
620
|
+
1,
|
|
621
|
+
],
|
|
622
|
+
},
|
|
623
|
+
},
|
|
624
|
+
"required": [
|
|
625
|
+
"Status",
|
|
626
|
+
],
|
|
627
|
+
"type": "object",
|
|
628
|
+
},
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
632
|
+
"dtoSchema": {
|
|
633
|
+
"properties": {
|
|
634
|
+
"nativeTokenQuantity": {
|
|
635
|
+
"description": "Number provided as a string.",
|
|
636
|
+
"minLength": 1,
|
|
637
|
+
"type": "string",
|
|
638
|
+
},
|
|
639
|
+
"prefix": {
|
|
640
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
641
|
+
"minLength": 1,
|
|
642
|
+
"type": "string",
|
|
643
|
+
},
|
|
644
|
+
"signature": {
|
|
645
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
646
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
647
|
+
"minLength": 1,
|
|
648
|
+
"type": "string",
|
|
649
|
+
},
|
|
650
|
+
"signerAddress": {
|
|
651
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
652
|
+
"minLength": 1,
|
|
653
|
+
"type": "string",
|
|
654
|
+
},
|
|
655
|
+
"signerPublicKey": {
|
|
656
|
+
"description": "Public key of the user who signed the DTO.",
|
|
657
|
+
"minLength": 1,
|
|
658
|
+
"type": "string",
|
|
659
|
+
},
|
|
660
|
+
"signing": {
|
|
661
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
662
|
+
"enum": [
|
|
663
|
+
"ETH",
|
|
664
|
+
"TON",
|
|
665
|
+
],
|
|
666
|
+
"type": "string",
|
|
667
|
+
},
|
|
668
|
+
"uniqueKey": {
|
|
669
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
670
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
671
|
+
"minLength": 1,
|
|
672
|
+
"type": "string",
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
"required": [
|
|
676
|
+
"nativeTokenQuantity",
|
|
677
|
+
],
|
|
678
|
+
"type": "object",
|
|
679
|
+
},
|
|
680
|
+
"isWrite": false,
|
|
681
|
+
"methodName": "CalculatePreMintTokens",
|
|
682
|
+
"responseSchema": {
|
|
683
|
+
"properties": {
|
|
684
|
+
"Data": {},
|
|
685
|
+
"Message": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
},
|
|
688
|
+
"Status": {
|
|
689
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
690
|
+
"enum": [
|
|
691
|
+
0,
|
|
692
|
+
1,
|
|
693
|
+
],
|
|
694
|
+
},
|
|
695
|
+
},
|
|
696
|
+
"required": [
|
|
697
|
+
"Status",
|
|
698
|
+
],
|
|
699
|
+
"type": "object",
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
704
|
+
"dtoSchema": {
|
|
705
|
+
"properties": {
|
|
706
|
+
"expectedToken": {
|
|
707
|
+
"description": "Number provided as a string.",
|
|
708
|
+
"type": "string",
|
|
709
|
+
},
|
|
710
|
+
"extraFees": {
|
|
711
|
+
"properties": {
|
|
712
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
713
|
+
"description": "Number provided as a string.",
|
|
714
|
+
"type": "string",
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
"type": "object",
|
|
718
|
+
},
|
|
719
|
+
"nativeTokenQuantity": {
|
|
720
|
+
"description": "Number provided as a string.",
|
|
721
|
+
"type": "string",
|
|
722
|
+
},
|
|
723
|
+
"prefix": {
|
|
724
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
725
|
+
"minLength": 1,
|
|
726
|
+
"type": "string",
|
|
727
|
+
},
|
|
728
|
+
"signature": {
|
|
729
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
730
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
731
|
+
"minLength": 1,
|
|
732
|
+
"type": "string",
|
|
733
|
+
},
|
|
734
|
+
"signerAddress": {
|
|
735
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
736
|
+
"minLength": 1,
|
|
737
|
+
"type": "string",
|
|
738
|
+
},
|
|
739
|
+
"signerPublicKey": {
|
|
740
|
+
"description": "Public key of the user who signed the DTO.",
|
|
741
|
+
"minLength": 1,
|
|
742
|
+
"type": "string",
|
|
743
|
+
},
|
|
744
|
+
"signing": {
|
|
745
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
746
|
+
"enum": [
|
|
747
|
+
"ETH",
|
|
748
|
+
"TON",
|
|
749
|
+
],
|
|
750
|
+
"type": "string",
|
|
751
|
+
},
|
|
752
|
+
"uniqueKey": {
|
|
753
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
754
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
755
|
+
"minLength": 1,
|
|
756
|
+
"type": "string",
|
|
757
|
+
},
|
|
758
|
+
"vaultAddress": {
|
|
759
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
760
|
+
"minLength": 1,
|
|
761
|
+
"type": "string",
|
|
762
|
+
},
|
|
763
|
+
},
|
|
764
|
+
"required": [
|
|
765
|
+
"vaultAddress",
|
|
766
|
+
"nativeTokenQuantity",
|
|
767
|
+
],
|
|
768
|
+
"type": "object",
|
|
769
|
+
},
|
|
770
|
+
"isWrite": false,
|
|
771
|
+
"methodName": "CallMemeTokenIn",
|
|
772
|
+
"responseSchema": {
|
|
773
|
+
"properties": {
|
|
774
|
+
"Data": {
|
|
775
|
+
"properties": {
|
|
776
|
+
"calculatedQuantity": {
|
|
777
|
+
"minLength": 1,
|
|
778
|
+
"type": "string",
|
|
779
|
+
},
|
|
780
|
+
"extraFees": {
|
|
781
|
+
"items": {
|
|
782
|
+
"properties": {
|
|
783
|
+
"reverseBondingCurve": {
|
|
784
|
+
"minLength": 1,
|
|
785
|
+
"type": "string",
|
|
786
|
+
},
|
|
787
|
+
},
|
|
788
|
+
"required": [
|
|
789
|
+
"reverseBondingCurve",
|
|
790
|
+
],
|
|
791
|
+
"type": "object",
|
|
792
|
+
},
|
|
793
|
+
"type": "array",
|
|
794
|
+
},
|
|
795
|
+
},
|
|
796
|
+
"required": [
|
|
797
|
+
"calculatedQuantity",
|
|
798
|
+
"extraFees",
|
|
799
|
+
],
|
|
800
|
+
"type": "object",
|
|
801
|
+
},
|
|
802
|
+
"Message": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
},
|
|
805
|
+
"Status": {
|
|
806
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
807
|
+
"enum": [
|
|
808
|
+
0,
|
|
809
|
+
1,
|
|
810
|
+
],
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
"required": [
|
|
814
|
+
"Status",
|
|
815
|
+
],
|
|
816
|
+
"type": "object",
|
|
817
|
+
},
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
821
|
+
"dtoSchema": {
|
|
822
|
+
"properties": {
|
|
823
|
+
"expectedToken": {
|
|
824
|
+
"description": "Number provided as a string.",
|
|
825
|
+
"type": "string",
|
|
826
|
+
},
|
|
827
|
+
"extraFees": {
|
|
828
|
+
"properties": {
|
|
829
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
830
|
+
"description": "Number provided as a string.",
|
|
831
|
+
"type": "string",
|
|
832
|
+
},
|
|
833
|
+
},
|
|
834
|
+
"type": "object",
|
|
835
|
+
},
|
|
836
|
+
"nativeTokenQuantity": {
|
|
837
|
+
"description": "Number provided as a string.",
|
|
838
|
+
"type": "string",
|
|
839
|
+
},
|
|
840
|
+
"prefix": {
|
|
841
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
842
|
+
"minLength": 1,
|
|
843
|
+
"type": "string",
|
|
844
|
+
},
|
|
845
|
+
"signature": {
|
|
846
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
847
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
848
|
+
"minLength": 1,
|
|
849
|
+
"type": "string",
|
|
850
|
+
},
|
|
851
|
+
"signerAddress": {
|
|
852
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
853
|
+
"minLength": 1,
|
|
854
|
+
"type": "string",
|
|
855
|
+
},
|
|
856
|
+
"signerPublicKey": {
|
|
857
|
+
"description": "Public key of the user who signed the DTO.",
|
|
858
|
+
"minLength": 1,
|
|
859
|
+
"type": "string",
|
|
860
|
+
},
|
|
861
|
+
"signing": {
|
|
862
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
863
|
+
"enum": [
|
|
864
|
+
"ETH",
|
|
865
|
+
"TON",
|
|
866
|
+
],
|
|
867
|
+
"type": "string",
|
|
868
|
+
},
|
|
869
|
+
"uniqueKey": {
|
|
870
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
871
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
872
|
+
"minLength": 1,
|
|
873
|
+
"type": "string",
|
|
874
|
+
},
|
|
875
|
+
"vaultAddress": {
|
|
876
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
877
|
+
"minLength": 1,
|
|
878
|
+
"type": "string",
|
|
879
|
+
},
|
|
880
|
+
},
|
|
881
|
+
"required": [
|
|
882
|
+
"vaultAddress",
|
|
883
|
+
"nativeTokenQuantity",
|
|
884
|
+
],
|
|
885
|
+
"type": "object",
|
|
886
|
+
},
|
|
887
|
+
"isWrite": false,
|
|
888
|
+
"methodName": "CallMemeTokenOut",
|
|
889
|
+
"responseSchema": {
|
|
890
|
+
"properties": {
|
|
891
|
+
"Data": {
|
|
892
|
+
"properties": {
|
|
893
|
+
"calculatedQuantity": {
|
|
894
|
+
"minLength": 1,
|
|
895
|
+
"type": "string",
|
|
896
|
+
},
|
|
897
|
+
"extraFees": {
|
|
898
|
+
"items": {
|
|
899
|
+
"properties": {
|
|
900
|
+
"reverseBondingCurve": {
|
|
901
|
+
"minLength": 1,
|
|
902
|
+
"type": "string",
|
|
903
|
+
},
|
|
904
|
+
},
|
|
905
|
+
"required": [
|
|
906
|
+
"reverseBondingCurve",
|
|
907
|
+
],
|
|
908
|
+
"type": "object",
|
|
909
|
+
},
|
|
910
|
+
"type": "array",
|
|
911
|
+
},
|
|
912
|
+
},
|
|
913
|
+
"required": [
|
|
914
|
+
"calculatedQuantity",
|
|
915
|
+
"extraFees",
|
|
916
|
+
],
|
|
917
|
+
"type": "object",
|
|
918
|
+
},
|
|
919
|
+
"Message": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
},
|
|
922
|
+
"Status": {
|
|
923
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
924
|
+
"enum": [
|
|
925
|
+
0,
|
|
926
|
+
1,
|
|
927
|
+
],
|
|
928
|
+
},
|
|
929
|
+
},
|
|
930
|
+
"required": [
|
|
931
|
+
"Status",
|
|
932
|
+
],
|
|
933
|
+
"type": "object",
|
|
934
|
+
},
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
938
|
+
"dtoSchema": {
|
|
939
|
+
"properties": {
|
|
940
|
+
"expectedNativeToken": {
|
|
941
|
+
"description": "Number provided as a string.",
|
|
942
|
+
"type": "string",
|
|
943
|
+
},
|
|
944
|
+
"extraFees": {
|
|
945
|
+
"properties": {
|
|
946
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
947
|
+
"description": "Number provided as a string.",
|
|
948
|
+
"type": "string",
|
|
949
|
+
},
|
|
950
|
+
},
|
|
951
|
+
"type": "object",
|
|
952
|
+
},
|
|
953
|
+
"prefix": {
|
|
954
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
955
|
+
"minLength": 1,
|
|
956
|
+
"type": "string",
|
|
957
|
+
},
|
|
958
|
+
"signature": {
|
|
959
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
960
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
961
|
+
"minLength": 1,
|
|
962
|
+
"type": "string",
|
|
963
|
+
},
|
|
964
|
+
"signerAddress": {
|
|
965
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
966
|
+
"minLength": 1,
|
|
967
|
+
"type": "string",
|
|
968
|
+
},
|
|
969
|
+
"signerPublicKey": {
|
|
970
|
+
"description": "Public key of the user who signed the DTO.",
|
|
971
|
+
"minLength": 1,
|
|
972
|
+
"type": "string",
|
|
973
|
+
},
|
|
974
|
+
"signing": {
|
|
975
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
976
|
+
"enum": [
|
|
977
|
+
"ETH",
|
|
978
|
+
"TON",
|
|
979
|
+
],
|
|
980
|
+
"type": "string",
|
|
981
|
+
},
|
|
982
|
+
"tokenQuantity": {
|
|
983
|
+
"description": "Number provided as a string.",
|
|
984
|
+
"type": "string",
|
|
985
|
+
},
|
|
986
|
+
"uniqueKey": {
|
|
987
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
988
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
989
|
+
"minLength": 1,
|
|
990
|
+
"type": "string",
|
|
991
|
+
},
|
|
992
|
+
"vaultAddress": {
|
|
993
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
994
|
+
"minLength": 1,
|
|
995
|
+
"type": "string",
|
|
996
|
+
},
|
|
997
|
+
},
|
|
998
|
+
"required": [
|
|
999
|
+
"vaultAddress",
|
|
1000
|
+
"tokenQuantity",
|
|
1001
|
+
],
|
|
1002
|
+
"type": "object",
|
|
1003
|
+
},
|
|
1004
|
+
"isWrite": false,
|
|
1005
|
+
"methodName": "CallNativeTokenIn",
|
|
1006
|
+
"responseSchema": {
|
|
1007
|
+
"properties": {
|
|
1008
|
+
"Data": {
|
|
1009
|
+
"properties": {
|
|
1010
|
+
"calculatedQuantity": {
|
|
1011
|
+
"minLength": 1,
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
},
|
|
1014
|
+
"extraFees": {
|
|
1015
|
+
"items": {
|
|
1016
|
+
"properties": {
|
|
1017
|
+
"reverseBondingCurve": {
|
|
1018
|
+
"minLength": 1,
|
|
1019
|
+
"type": "string",
|
|
1020
|
+
},
|
|
1021
|
+
},
|
|
1022
|
+
"required": [
|
|
1023
|
+
"reverseBondingCurve",
|
|
1024
|
+
],
|
|
1025
|
+
"type": "object",
|
|
1026
|
+
},
|
|
1027
|
+
"type": "array",
|
|
1028
|
+
},
|
|
1029
|
+
},
|
|
1030
|
+
"required": [
|
|
1031
|
+
"calculatedQuantity",
|
|
1032
|
+
"extraFees",
|
|
1033
|
+
],
|
|
1034
|
+
"type": "object",
|
|
1035
|
+
},
|
|
1036
|
+
"Message": {
|
|
1037
|
+
"type": "string",
|
|
1038
|
+
},
|
|
1039
|
+
"Status": {
|
|
1040
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1041
|
+
"enum": [
|
|
1042
|
+
0,
|
|
1043
|
+
1,
|
|
1044
|
+
],
|
|
1045
|
+
},
|
|
1046
|
+
},
|
|
1047
|
+
"required": [
|
|
1048
|
+
"Status",
|
|
1049
|
+
],
|
|
1050
|
+
"type": "object",
|
|
1051
|
+
},
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
1055
|
+
"dtoSchema": {
|
|
1056
|
+
"properties": {
|
|
1057
|
+
"expectedNativeToken": {
|
|
1058
|
+
"description": "Number provided as a string.",
|
|
1059
|
+
"type": "string",
|
|
1060
|
+
},
|
|
1061
|
+
"extraFees": {
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
1064
|
+
"description": "Number provided as a string.",
|
|
1065
|
+
"type": "string",
|
|
1066
|
+
},
|
|
1067
|
+
},
|
|
1068
|
+
"type": "object",
|
|
1069
|
+
},
|
|
1070
|
+
"prefix": {
|
|
1071
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1072
|
+
"minLength": 1,
|
|
1073
|
+
"type": "string",
|
|
1074
|
+
},
|
|
1075
|
+
"signature": {
|
|
1076
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1077
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1078
|
+
"minLength": 1,
|
|
1079
|
+
"type": "string",
|
|
1080
|
+
},
|
|
1081
|
+
"signerAddress": {
|
|
1082
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1083
|
+
"minLength": 1,
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
},
|
|
1086
|
+
"signerPublicKey": {
|
|
1087
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1088
|
+
"minLength": 1,
|
|
1089
|
+
"type": "string",
|
|
1090
|
+
},
|
|
1091
|
+
"signing": {
|
|
1092
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1093
|
+
"enum": [
|
|
1094
|
+
"ETH",
|
|
1095
|
+
"TON",
|
|
1096
|
+
],
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
},
|
|
1099
|
+
"tokenQuantity": {
|
|
1100
|
+
"description": "Number provided as a string.",
|
|
1101
|
+
"type": "string",
|
|
1102
|
+
},
|
|
1103
|
+
"uniqueKey": {
|
|
1104
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1105
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1106
|
+
"minLength": 1,
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
},
|
|
1109
|
+
"vaultAddress": {
|
|
1110
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1111
|
+
"minLength": 1,
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
},
|
|
1114
|
+
},
|
|
1115
|
+
"required": [
|
|
1116
|
+
"vaultAddress",
|
|
1117
|
+
"tokenQuantity",
|
|
1118
|
+
],
|
|
1119
|
+
"type": "object",
|
|
1120
|
+
},
|
|
1121
|
+
"isWrite": false,
|
|
1122
|
+
"methodName": "CallNativeTokenOut",
|
|
1123
|
+
"responseSchema": {
|
|
1124
|
+
"properties": {
|
|
1125
|
+
"Data": {
|
|
1126
|
+
"properties": {
|
|
1127
|
+
"calculatedQuantity": {
|
|
1128
|
+
"minLength": 1,
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
},
|
|
1131
|
+
"extraFees": {
|
|
1132
|
+
"items": {
|
|
1133
|
+
"properties": {
|
|
1134
|
+
"reverseBondingCurve": {
|
|
1135
|
+
"minLength": 1,
|
|
1136
|
+
"type": "string",
|
|
1137
|
+
},
|
|
1138
|
+
},
|
|
1139
|
+
"required": [
|
|
1140
|
+
"reverseBondingCurve",
|
|
1141
|
+
],
|
|
1142
|
+
"type": "object",
|
|
1143
|
+
},
|
|
1144
|
+
"type": "array",
|
|
1145
|
+
},
|
|
1146
|
+
},
|
|
1147
|
+
"required": [
|
|
1148
|
+
"calculatedQuantity",
|
|
1149
|
+
"extraFees",
|
|
1150
|
+
],
|
|
1151
|
+
"type": "object",
|
|
1152
|
+
},
|
|
1153
|
+
"Message": {
|
|
1154
|
+
"type": "string",
|
|
1155
|
+
},
|
|
1156
|
+
"Status": {
|
|
1157
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1158
|
+
"enum": [
|
|
1159
|
+
0,
|
|
1160
|
+
1,
|
|
1161
|
+
],
|
|
1162
|
+
},
|
|
1163
|
+
},
|
|
1164
|
+
"required": [
|
|
1165
|
+
"Status",
|
|
1166
|
+
],
|
|
1167
|
+
"type": "object",
|
|
1168
|
+
},
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"description": " Allowed roles: SUBMIT. Allowed orgs: CuratorOrg.",
|
|
1172
|
+
"dtoSchema": {
|
|
1173
|
+
"properties": {
|
|
1174
|
+
"newAuthorities": {
|
|
1175
|
+
"items": {
|
|
1176
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1177
|
+
"type": "string",
|
|
1178
|
+
},
|
|
1179
|
+
"type": "array",
|
|
1180
|
+
},
|
|
1181
|
+
"newPlatformFeeAddress": {
|
|
1182
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1183
|
+
"type": "string",
|
|
1184
|
+
},
|
|
1185
|
+
"prefix": {
|
|
1186
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1187
|
+
"minLength": 1,
|
|
1188
|
+
"type": "string",
|
|
1189
|
+
},
|
|
1190
|
+
"signature": {
|
|
1191
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1192
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1193
|
+
"minLength": 1,
|
|
1194
|
+
"type": "string",
|
|
1195
|
+
},
|
|
1196
|
+
"signerAddress": {
|
|
1197
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1198
|
+
"minLength": 1,
|
|
1199
|
+
"type": "string",
|
|
1200
|
+
},
|
|
1201
|
+
"signerPublicKey": {
|
|
1202
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1203
|
+
"minLength": 1,
|
|
1204
|
+
"type": "string",
|
|
1205
|
+
},
|
|
1206
|
+
"signing": {
|
|
1207
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1208
|
+
"enum": [
|
|
1209
|
+
"ETH",
|
|
1210
|
+
"TON",
|
|
1211
|
+
],
|
|
1212
|
+
"type": "string",
|
|
1213
|
+
},
|
|
1214
|
+
"uniqueKey": {
|
|
1215
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1216
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1217
|
+
"minLength": 1,
|
|
1218
|
+
"type": "string",
|
|
1219
|
+
},
|
|
1220
|
+
},
|
|
1221
|
+
"type": "object",
|
|
1222
|
+
},
|
|
1223
|
+
"isWrite": true,
|
|
1224
|
+
"methodName": "ConfigureLaunchpadFeeAddress",
|
|
1225
|
+
"responseSchema": {
|
|
1226
|
+
"properties": {
|
|
1227
|
+
"Data": {
|
|
1228
|
+
"description": "Defines the platform fee address and authorized owners for modification.",
|
|
1229
|
+
"properties": {
|
|
1230
|
+
"authorities": {
|
|
1231
|
+
"items": {
|
|
1232
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
},
|
|
1235
|
+
"minItems": 1,
|
|
1236
|
+
"type": "array",
|
|
1237
|
+
},
|
|
1238
|
+
"feeAddress": {
|
|
1239
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1240
|
+
"minLength": 1,
|
|
1241
|
+
"type": "string",
|
|
1242
|
+
},
|
|
1243
|
+
},
|
|
1244
|
+
"required": [
|
|
1245
|
+
"feeAddress",
|
|
1246
|
+
"authorities",
|
|
1247
|
+
],
|
|
1248
|
+
"type": "object",
|
|
1249
|
+
},
|
|
1250
|
+
"Message": {
|
|
1251
|
+
"type": "string",
|
|
1252
|
+
},
|
|
1253
|
+
"Status": {
|
|
1254
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1255
|
+
"enum": [
|
|
1256
|
+
0,
|
|
1257
|
+
1,
|
|
1258
|
+
],
|
|
1259
|
+
},
|
|
1260
|
+
},
|
|
1261
|
+
"required": [
|
|
1262
|
+
"Status",
|
|
1263
|
+
],
|
|
1264
|
+
"type": "object",
|
|
1265
|
+
},
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"description": " Allowed roles: SUBMIT.",
|
|
1269
|
+
"dtoSchema": {
|
|
1270
|
+
"properties": {
|
|
1271
|
+
"preBuyQuantity": {
|
|
1272
|
+
"description": "Number provided as a string.",
|
|
1273
|
+
"type": "string",
|
|
1274
|
+
},
|
|
1275
|
+
"prefix": {
|
|
1276
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1277
|
+
"minLength": 1,
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
},
|
|
1280
|
+
"reverseBondingCurveConfiguration": {
|
|
1281
|
+
"properties": {
|
|
1282
|
+
"maxFeePortion": {
|
|
1283
|
+
"description": "Number provided as a string.",
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
},
|
|
1286
|
+
"minFeePortion": {
|
|
1287
|
+
"description": "Number provided as a string.",
|
|
1288
|
+
"type": "string",
|
|
1289
|
+
},
|
|
1290
|
+
"prefix": {
|
|
1291
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1292
|
+
"minLength": 1,
|
|
1293
|
+
"type": "string",
|
|
1294
|
+
},
|
|
1295
|
+
"signature": {
|
|
1296
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1297
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1298
|
+
"minLength": 1,
|
|
1299
|
+
"type": "string",
|
|
1300
|
+
},
|
|
1301
|
+
"signerAddress": {
|
|
1302
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1303
|
+
"minLength": 1,
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
},
|
|
1306
|
+
"signerPublicKey": {
|
|
1307
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1308
|
+
"minLength": 1,
|
|
1309
|
+
"type": "string",
|
|
1310
|
+
},
|
|
1311
|
+
"signing": {
|
|
1312
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1313
|
+
"enum": [
|
|
1314
|
+
"ETH",
|
|
1315
|
+
"TON",
|
|
1316
|
+
],
|
|
1317
|
+
"type": "string",
|
|
1318
|
+
},
|
|
1319
|
+
"uniqueKey": {
|
|
1320
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1321
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1322
|
+
"minLength": 1,
|
|
1323
|
+
"type": "string",
|
|
1324
|
+
},
|
|
1325
|
+
},
|
|
1326
|
+
"required": [
|
|
1327
|
+
"minFeePortion",
|
|
1328
|
+
"maxFeePortion",
|
|
1329
|
+
],
|
|
1330
|
+
"type": "object",
|
|
1331
|
+
},
|
|
1332
|
+
"signature": {
|
|
1333
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1334
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1335
|
+
"minLength": 1,
|
|
1336
|
+
"type": "string",
|
|
1337
|
+
},
|
|
1338
|
+
"signerAddress": {
|
|
1339
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1340
|
+
"minLength": 1,
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
},
|
|
1343
|
+
"signerPublicKey": {
|
|
1344
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1345
|
+
"minLength": 1,
|
|
1346
|
+
"type": "string",
|
|
1347
|
+
},
|
|
1348
|
+
"signing": {
|
|
1349
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1350
|
+
"enum": [
|
|
1351
|
+
"ETH",
|
|
1352
|
+
"TON",
|
|
1353
|
+
],
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
},
|
|
1356
|
+
"telegramUrl": {
|
|
1357
|
+
"type": "string",
|
|
1358
|
+
},
|
|
1359
|
+
"tokenCategory": {
|
|
1360
|
+
"minLength": 1,
|
|
1361
|
+
"type": "string",
|
|
1362
|
+
},
|
|
1363
|
+
"tokenCollection": {
|
|
1364
|
+
"minLength": 1,
|
|
1365
|
+
"type": "string",
|
|
1366
|
+
},
|
|
1367
|
+
"tokenDescription": {
|
|
1368
|
+
"minLength": 1,
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
},
|
|
1371
|
+
"tokenImage": {
|
|
1372
|
+
"minLength": 1,
|
|
1373
|
+
"type": "string",
|
|
1374
|
+
},
|
|
1375
|
+
"tokenName": {
|
|
1376
|
+
"minLength": 1,
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
},
|
|
1379
|
+
"tokenSymbol": {
|
|
1380
|
+
"minLength": 1,
|
|
1381
|
+
"type": "string",
|
|
1382
|
+
},
|
|
1383
|
+
"twitterUrl": {
|
|
1384
|
+
"type": "string",
|
|
1385
|
+
},
|
|
1386
|
+
"uniqueKey": {
|
|
1387
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1388
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1389
|
+
"minLength": 1,
|
|
1390
|
+
"type": "string",
|
|
1391
|
+
},
|
|
1392
|
+
"websiteUrl": {
|
|
1393
|
+
"type": "string",
|
|
1394
|
+
},
|
|
1395
|
+
},
|
|
1396
|
+
"required": [
|
|
1397
|
+
"tokenName",
|
|
1398
|
+
"tokenSymbol",
|
|
1399
|
+
"tokenDescription",
|
|
1400
|
+
"tokenCollection",
|
|
1401
|
+
"tokenCategory",
|
|
1402
|
+
"tokenImage",
|
|
1403
|
+
"preBuyQuantity",
|
|
1404
|
+
],
|
|
1405
|
+
"type": "object",
|
|
1406
|
+
},
|
|
1407
|
+
"isWrite": true,
|
|
1408
|
+
"methodName": "CreateSale",
|
|
1409
|
+
"responseSchema": {
|
|
1410
|
+
"properties": {
|
|
1411
|
+
"Data": {
|
|
1412
|
+
"properties": {
|
|
1413
|
+
"category": {
|
|
1414
|
+
"minLength": 1,
|
|
1415
|
+
"type": "string",
|
|
1416
|
+
},
|
|
1417
|
+
"collection": {
|
|
1418
|
+
"minLength": 1,
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
},
|
|
1421
|
+
"creatorAddress": {
|
|
1422
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1423
|
+
"minLength": 1,
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
},
|
|
1426
|
+
"description": {
|
|
1427
|
+
"minLength": 1,
|
|
1428
|
+
"type": "string",
|
|
1429
|
+
},
|
|
1430
|
+
"functionName": {
|
|
1431
|
+
"minLength": 1,
|
|
1432
|
+
"type": "string",
|
|
1433
|
+
},
|
|
1434
|
+
"image": {
|
|
1435
|
+
"minLength": 1,
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
},
|
|
1438
|
+
"initialBuyQuantity": {
|
|
1439
|
+
"minLength": 1,
|
|
1440
|
+
"type": "string",
|
|
1441
|
+
},
|
|
1442
|
+
"isFinalized": {
|
|
1443
|
+
"minLength": 1,
|
|
1444
|
+
"type": "string",
|
|
1445
|
+
},
|
|
1446
|
+
"reverseBondingCurveConfiguration": {
|
|
1447
|
+
"properties": {
|
|
1448
|
+
"maxFeePortion": {
|
|
1449
|
+
"description": "Number provided as a string.",
|
|
1450
|
+
"type": "string",
|
|
1451
|
+
},
|
|
1452
|
+
"minFeePortion": {
|
|
1453
|
+
"description": "Number provided as a string.",
|
|
1454
|
+
"type": "string",
|
|
1455
|
+
},
|
|
1456
|
+
"prefix": {
|
|
1457
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1458
|
+
"minLength": 1,
|
|
1459
|
+
"type": "string",
|
|
1460
|
+
},
|
|
1461
|
+
"signature": {
|
|
1462
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1463
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1464
|
+
"minLength": 1,
|
|
1465
|
+
"type": "string",
|
|
1466
|
+
},
|
|
1467
|
+
"signerAddress": {
|
|
1468
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1469
|
+
"minLength": 1,
|
|
1470
|
+
"type": "string",
|
|
1471
|
+
},
|
|
1472
|
+
"signerPublicKey": {
|
|
1473
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1474
|
+
"minLength": 1,
|
|
1475
|
+
"type": "string",
|
|
1476
|
+
},
|
|
1477
|
+
"signing": {
|
|
1478
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1479
|
+
"enum": [
|
|
1480
|
+
"ETH",
|
|
1481
|
+
"TON",
|
|
1482
|
+
],
|
|
1483
|
+
"type": "string",
|
|
1484
|
+
},
|
|
1485
|
+
"uniqueKey": {
|
|
1486
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1487
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1488
|
+
"minLength": 1,
|
|
1489
|
+
"type": "string",
|
|
1490
|
+
},
|
|
1491
|
+
},
|
|
1492
|
+
"required": [
|
|
1493
|
+
"minFeePortion",
|
|
1494
|
+
"maxFeePortion",
|
|
1495
|
+
],
|
|
1496
|
+
"type": "object",
|
|
1497
|
+
},
|
|
1498
|
+
"symbol": {
|
|
1499
|
+
"minLength": 1,
|
|
1500
|
+
"type": "string",
|
|
1501
|
+
},
|
|
1502
|
+
"telegramUrl": {},
|
|
1503
|
+
"tokenName": {
|
|
1504
|
+
"minLength": 1,
|
|
1505
|
+
"type": "string",
|
|
1506
|
+
},
|
|
1507
|
+
"tokenStringKey": {
|
|
1508
|
+
"minLength": 1,
|
|
1509
|
+
"type": "string",
|
|
1510
|
+
},
|
|
1511
|
+
"twitterUrl": {},
|
|
1512
|
+
"vaultAddress": {
|
|
1513
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1514
|
+
"minLength": 1,
|
|
1515
|
+
"type": "string",
|
|
1516
|
+
},
|
|
1517
|
+
"websiteUrl": {},
|
|
1518
|
+
},
|
|
1519
|
+
"required": [
|
|
1520
|
+
"image",
|
|
1521
|
+
"tokenName",
|
|
1522
|
+
"symbol",
|
|
1523
|
+
"description",
|
|
1524
|
+
"initialBuyQuantity",
|
|
1525
|
+
"vaultAddress",
|
|
1526
|
+
"creatorAddress",
|
|
1527
|
+
"collection",
|
|
1528
|
+
"category",
|
|
1529
|
+
"functionName",
|
|
1530
|
+
"isFinalized",
|
|
1531
|
+
"tokenStringKey",
|
|
1532
|
+
],
|
|
1533
|
+
"type": "object",
|
|
1534
|
+
},
|
|
1535
|
+
"Message": {
|
|
1536
|
+
"type": "string",
|
|
1537
|
+
},
|
|
1538
|
+
"Status": {
|
|
1539
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1540
|
+
"enum": [
|
|
1541
|
+
0,
|
|
1542
|
+
1,
|
|
1543
|
+
],
|
|
1544
|
+
},
|
|
1545
|
+
},
|
|
1546
|
+
"required": [
|
|
1547
|
+
"Status",
|
|
1548
|
+
],
|
|
1549
|
+
"type": "object",
|
|
1550
|
+
},
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
1554
|
+
"dtoSchema": {
|
|
1555
|
+
"properties": {
|
|
1556
|
+
"callerPublicKey": {
|
|
1557
|
+
"minLength": 1,
|
|
1558
|
+
"type": "string",
|
|
1559
|
+
},
|
|
1560
|
+
"dto": {
|
|
1561
|
+
"minLength": 1,
|
|
1562
|
+
"type": "string",
|
|
1563
|
+
},
|
|
1564
|
+
"method": {
|
|
1565
|
+
"minLength": 1,
|
|
1566
|
+
"type": "string",
|
|
1567
|
+
},
|
|
1568
|
+
"prefix": {
|
|
1569
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1570
|
+
"minLength": 1,
|
|
1571
|
+
"type": "string",
|
|
1572
|
+
},
|
|
1573
|
+
"signature": {
|
|
1574
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1575
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1576
|
+
"minLength": 1,
|
|
1577
|
+
"type": "string",
|
|
1578
|
+
},
|
|
1579
|
+
"signerAddress": {
|
|
1580
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1581
|
+
"minLength": 1,
|
|
1582
|
+
"type": "string",
|
|
1583
|
+
},
|
|
1584
|
+
"signerPublicKey": {
|
|
1585
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1586
|
+
"minLength": 1,
|
|
1587
|
+
"type": "string",
|
|
1588
|
+
},
|
|
1589
|
+
"signing": {
|
|
1590
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1591
|
+
"enum": [
|
|
1592
|
+
"ETH",
|
|
1593
|
+
"TON",
|
|
1594
|
+
],
|
|
1595
|
+
"type": "string",
|
|
1596
|
+
},
|
|
1597
|
+
"uniqueKey": {
|
|
1598
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1599
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1600
|
+
"minLength": 1,
|
|
1601
|
+
"type": "string",
|
|
1602
|
+
},
|
|
1603
|
+
},
|
|
1604
|
+
"required": [
|
|
1605
|
+
"method",
|
|
1606
|
+
"callerPublicKey",
|
|
1607
|
+
],
|
|
1608
|
+
"type": "object",
|
|
1609
|
+
},
|
|
1610
|
+
"isWrite": false,
|
|
1611
|
+
"methodName": "DryRun",
|
|
1612
|
+
"responseSchema": {
|
|
1613
|
+
"properties": {
|
|
1614
|
+
"Data": {
|
|
1615
|
+
"properties": {
|
|
1616
|
+
"prefix": {
|
|
1617
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1618
|
+
"minLength": 1,
|
|
1619
|
+
"type": "string",
|
|
1620
|
+
},
|
|
1621
|
+
"signature": {
|
|
1622
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1623
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1624
|
+
"minLength": 1,
|
|
1625
|
+
"type": "string",
|
|
1626
|
+
},
|
|
1627
|
+
"signerAddress": {
|
|
1628
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1629
|
+
"minLength": 1,
|
|
1630
|
+
"type": "string",
|
|
1631
|
+
},
|
|
1632
|
+
"signerPublicKey": {
|
|
1633
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1634
|
+
"minLength": 1,
|
|
1635
|
+
"type": "string",
|
|
1636
|
+
},
|
|
1637
|
+
"signing": {
|
|
1638
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1639
|
+
"enum": [
|
|
1640
|
+
"ETH",
|
|
1641
|
+
"TON",
|
|
1642
|
+
],
|
|
1643
|
+
"type": "string",
|
|
1644
|
+
},
|
|
1645
|
+
"uniqueKey": {
|
|
1646
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1647
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1648
|
+
"minLength": 1,
|
|
1649
|
+
"type": "string",
|
|
1650
|
+
},
|
|
1651
|
+
},
|
|
1652
|
+
"type": "object",
|
|
1653
|
+
},
|
|
1654
|
+
"Message": {
|
|
1655
|
+
"type": "string",
|
|
1656
|
+
},
|
|
1657
|
+
"Status": {
|
|
1658
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1659
|
+
"enum": [
|
|
1660
|
+
0,
|
|
1661
|
+
1,
|
|
1662
|
+
],
|
|
1663
|
+
},
|
|
1664
|
+
},
|
|
1665
|
+
"required": [
|
|
1666
|
+
"Status",
|
|
1667
|
+
],
|
|
1668
|
+
"type": "object",
|
|
1669
|
+
},
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE. Allowed orgs: CuratorOrg.",
|
|
1673
|
+
"isWrite": false,
|
|
1674
|
+
"methodName": "FetchLaunchpadFeeConfig",
|
|
1675
|
+
"responseSchema": {
|
|
1676
|
+
"properties": {
|
|
1677
|
+
"Data": {
|
|
1678
|
+
"description": "Defines the platform fee address and authorized owners for modification.",
|
|
1679
|
+
"properties": {
|
|
1680
|
+
"authorities": {
|
|
1681
|
+
"items": {
|
|
1682
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1683
|
+
"type": "string",
|
|
1684
|
+
},
|
|
1685
|
+
"minItems": 1,
|
|
1686
|
+
"type": "array",
|
|
1687
|
+
},
|
|
1688
|
+
"feeAddress": {
|
|
1689
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1690
|
+
"minLength": 1,
|
|
1691
|
+
"type": "string",
|
|
1692
|
+
},
|
|
1693
|
+
},
|
|
1694
|
+
"required": [
|
|
1695
|
+
"feeAddress",
|
|
1696
|
+
"authorities",
|
|
1697
|
+
],
|
|
1698
|
+
"type": "object",
|
|
1699
|
+
},
|
|
1700
|
+
"Message": {
|
|
1701
|
+
"type": "string",
|
|
1702
|
+
},
|
|
1703
|
+
"Status": {
|
|
1704
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1705
|
+
"enum": [
|
|
1706
|
+
0,
|
|
1707
|
+
1,
|
|
1708
|
+
],
|
|
1709
|
+
},
|
|
1710
|
+
},
|
|
1711
|
+
"required": [
|
|
1712
|
+
"Status",
|
|
1713
|
+
],
|
|
1714
|
+
"type": "object",
|
|
1715
|
+
},
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
1719
|
+
"dtoSchema": {
|
|
1720
|
+
"properties": {
|
|
1721
|
+
"prefix": {
|
|
1722
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1723
|
+
"minLength": 1,
|
|
1724
|
+
"type": "string",
|
|
1725
|
+
},
|
|
1726
|
+
"signature": {
|
|
1727
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1728
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1729
|
+
"minLength": 1,
|
|
1730
|
+
"type": "string",
|
|
1731
|
+
},
|
|
1732
|
+
"signerAddress": {
|
|
1733
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1734
|
+
"minLength": 1,
|
|
1735
|
+
"type": "string",
|
|
1736
|
+
},
|
|
1737
|
+
"signerPublicKey": {
|
|
1738
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1739
|
+
"minLength": 1,
|
|
1740
|
+
"type": "string",
|
|
1741
|
+
},
|
|
1742
|
+
"signing": {
|
|
1743
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1744
|
+
"enum": [
|
|
1745
|
+
"ETH",
|
|
1746
|
+
"TON",
|
|
1747
|
+
],
|
|
1748
|
+
"type": "string",
|
|
1749
|
+
},
|
|
1750
|
+
"uniqueKey": {
|
|
1751
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1752
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1753
|
+
"minLength": 1,
|
|
1754
|
+
"type": "string",
|
|
1755
|
+
},
|
|
1756
|
+
"vaultAddress": {
|
|
1757
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1758
|
+
"minLength": 1,
|
|
1759
|
+
"type": "string",
|
|
1760
|
+
},
|
|
1761
|
+
},
|
|
1762
|
+
"required": [
|
|
1763
|
+
"vaultAddress",
|
|
1764
|
+
],
|
|
1765
|
+
"type": "object",
|
|
1766
|
+
},
|
|
1767
|
+
"isWrite": false,
|
|
1768
|
+
"methodName": "FetchSaleDetails",
|
|
1769
|
+
"responseSchema": {
|
|
1770
|
+
"properties": {
|
|
1771
|
+
"Data": {
|
|
1772
|
+
"description": "Represents a launchpad sale, defining token quantities, pricing, and sale operations.",
|
|
1773
|
+
"properties": {
|
|
1774
|
+
"basePrice": {
|
|
1775
|
+
"description": "Number provided as a string.",
|
|
1776
|
+
"type": "string",
|
|
1777
|
+
},
|
|
1778
|
+
"euler": {
|
|
1779
|
+
"description": "Number provided as a string.",
|
|
1780
|
+
"type": "string",
|
|
1781
|
+
},
|
|
1782
|
+
"exponentFactor": {
|
|
1783
|
+
"description": "Number provided as a string.",
|
|
1784
|
+
"type": "string",
|
|
1785
|
+
},
|
|
1786
|
+
"maxSupply": {
|
|
1787
|
+
"description": "Number provided as a string.",
|
|
1788
|
+
"type": "string",
|
|
1789
|
+
},
|
|
1790
|
+
"nativeToken": {
|
|
1791
|
+
"minLength": 1,
|
|
1792
|
+
"type": "string",
|
|
1793
|
+
},
|
|
1794
|
+
"nativeTokenQuantity": {
|
|
1795
|
+
"minLength": 1,
|
|
1796
|
+
"type": "string",
|
|
1797
|
+
},
|
|
1798
|
+
"reverseBondingCurveConfiguration": {
|
|
1799
|
+
"properties": {
|
|
1800
|
+
"maxFeePortion": {
|
|
1801
|
+
"description": "Number provided as a string.",
|
|
1802
|
+
"type": "string",
|
|
1803
|
+
},
|
|
1804
|
+
"minFeePortion": {
|
|
1805
|
+
"description": "Number provided as a string.",
|
|
1806
|
+
"type": "string",
|
|
1807
|
+
},
|
|
1808
|
+
},
|
|
1809
|
+
"required": [
|
|
1810
|
+
"minFeePortion",
|
|
1811
|
+
"maxFeePortion",
|
|
1812
|
+
],
|
|
1813
|
+
"type": "object",
|
|
1814
|
+
},
|
|
1815
|
+
"saleOwner": {
|
|
1816
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1817
|
+
"minLength": 1,
|
|
1818
|
+
"type": "string",
|
|
1819
|
+
},
|
|
1820
|
+
"saleStatus": {
|
|
1821
|
+
"enum": [
|
|
1822
|
+
"Finished",
|
|
1823
|
+
"Ongoing",
|
|
1824
|
+
],
|
|
1825
|
+
"minLength": 1,
|
|
1826
|
+
"type": "string",
|
|
1827
|
+
},
|
|
1828
|
+
"sellingToken": {
|
|
1829
|
+
"minLength": 1,
|
|
1830
|
+
"type": "string",
|
|
1831
|
+
},
|
|
1832
|
+
"sellingTokenQuantity": {
|
|
1833
|
+
"minLength": 1,
|
|
1834
|
+
"type": "string",
|
|
1835
|
+
},
|
|
1836
|
+
"vaultAddress": {
|
|
1837
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
1838
|
+
"minLength": 1,
|
|
1839
|
+
"type": "string",
|
|
1840
|
+
},
|
|
1841
|
+
},
|
|
1842
|
+
"required": [
|
|
1843
|
+
"vaultAddress",
|
|
1844
|
+
"saleStatus",
|
|
1845
|
+
"sellingToken",
|
|
1846
|
+
"nativeToken",
|
|
1847
|
+
"sellingTokenQuantity",
|
|
1848
|
+
"nativeTokenQuantity",
|
|
1849
|
+
"saleOwner",
|
|
1850
|
+
"basePrice",
|
|
1851
|
+
"exponentFactor",
|
|
1852
|
+
"maxSupply",
|
|
1853
|
+
"euler",
|
|
1854
|
+
],
|
|
1855
|
+
"type": "object",
|
|
1856
|
+
},
|
|
1857
|
+
"Message": {
|
|
1858
|
+
"type": "string",
|
|
1859
|
+
},
|
|
1860
|
+
"Status": {
|
|
1861
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1862
|
+
"enum": [
|
|
1863
|
+
0,
|
|
1864
|
+
1,
|
|
1865
|
+
],
|
|
1866
|
+
},
|
|
1867
|
+
},
|
|
1868
|
+
"required": [
|
|
1869
|
+
"Status",
|
|
1870
|
+
],
|
|
1871
|
+
"type": "object",
|
|
1872
|
+
},
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
"description": " Allowed roles: SUBMIT. Allowed orgs: CuratorOrg.",
|
|
1876
|
+
"dtoSchema": {
|
|
1877
|
+
"properties": {
|
|
1878
|
+
"ownerFeePercentage": {
|
|
1879
|
+
"maximum": 1,
|
|
1880
|
+
"minimum": 0,
|
|
1881
|
+
"type": "number",
|
|
1882
|
+
},
|
|
1883
|
+
"platformFeePercentage": {
|
|
1884
|
+
"maximum": 1,
|
|
1885
|
+
"minimum": 0,
|
|
1886
|
+
"type": "number",
|
|
1887
|
+
},
|
|
1888
|
+
"prefix": {
|
|
1889
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
1890
|
+
"minLength": 1,
|
|
1891
|
+
"type": "string",
|
|
1892
|
+
},
|
|
1893
|
+
"signature": {
|
|
1894
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
1895
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
1896
|
+
"minLength": 1,
|
|
1897
|
+
"type": "string",
|
|
1898
|
+
},
|
|
1899
|
+
"signerAddress": {
|
|
1900
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
1901
|
+
"minLength": 1,
|
|
1902
|
+
"type": "string",
|
|
1903
|
+
},
|
|
1904
|
+
"signerPublicKey": {
|
|
1905
|
+
"description": "Public key of the user who signed the DTO.",
|
|
1906
|
+
"minLength": 1,
|
|
1907
|
+
"type": "string",
|
|
1908
|
+
},
|
|
1909
|
+
"signing": {
|
|
1910
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
1911
|
+
"enum": [
|
|
1912
|
+
"ETH",
|
|
1913
|
+
"TON",
|
|
1914
|
+
],
|
|
1915
|
+
"type": "string",
|
|
1916
|
+
},
|
|
1917
|
+
"uniqueKey": {
|
|
1918
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
1919
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
1920
|
+
"minLength": 1,
|
|
1921
|
+
"type": "string",
|
|
1922
|
+
},
|
|
1923
|
+
},
|
|
1924
|
+
"required": [
|
|
1925
|
+
"platformFeePercentage",
|
|
1926
|
+
"ownerFeePercentage",
|
|
1927
|
+
],
|
|
1928
|
+
"type": "object",
|
|
1929
|
+
},
|
|
1930
|
+
"isWrite": true,
|
|
1931
|
+
"methodName": "FinalizeTokenAllocation",
|
|
1932
|
+
"responseSchema": {
|
|
1933
|
+
"properties": {
|
|
1934
|
+
"Data": {
|
|
1935
|
+
"description": "Defines the platform fee and owner allocation percentages.",
|
|
1936
|
+
"properties": {
|
|
1937
|
+
"ownerAllocationPercentage": {
|
|
1938
|
+
"maximum": 1,
|
|
1939
|
+
"minimum": 0,
|
|
1940
|
+
"type": "number",
|
|
1941
|
+
},
|
|
1942
|
+
"platformFeePercentage": {
|
|
1943
|
+
"maximum": 1,
|
|
1944
|
+
"minimum": 0,
|
|
1945
|
+
"type": "number",
|
|
1946
|
+
},
|
|
1947
|
+
},
|
|
1948
|
+
"required": [
|
|
1949
|
+
"platformFeePercentage",
|
|
1950
|
+
"ownerAllocationPercentage",
|
|
1951
|
+
],
|
|
1952
|
+
"type": "object",
|
|
1953
|
+
},
|
|
1954
|
+
"Message": {
|
|
1955
|
+
"type": "string",
|
|
1956
|
+
},
|
|
1957
|
+
"Status": {
|
|
1958
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1959
|
+
"enum": [
|
|
1960
|
+
0,
|
|
1961
|
+
1,
|
|
1962
|
+
],
|
|
1963
|
+
},
|
|
1964
|
+
},
|
|
1965
|
+
"required": [
|
|
1966
|
+
"Status",
|
|
1967
|
+
],
|
|
1968
|
+
"type": "object",
|
|
1969
|
+
},
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"deprecated": true,
|
|
1973
|
+
"description": "Gets the contract version. Deprecated. Use GetContractVersion instead. Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
1974
|
+
"isWrite": false,
|
|
1975
|
+
"methodName": "GetChaincodeVersion",
|
|
1976
|
+
"responseSchema": {
|
|
1977
|
+
"properties": {
|
|
1978
|
+
"Data": {
|
|
1979
|
+
"type": "string",
|
|
1980
|
+
},
|
|
1981
|
+
"Message": {
|
|
1982
|
+
"type": "string",
|
|
1983
|
+
},
|
|
1984
|
+
"Status": {
|
|
1985
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
1986
|
+
"enum": [
|
|
1987
|
+
0,
|
|
1988
|
+
1,
|
|
1989
|
+
],
|
|
1990
|
+
},
|
|
1991
|
+
},
|
|
1992
|
+
"required": [
|
|
1993
|
+
"Status",
|
|
1994
|
+
],
|
|
1995
|
+
"type": "object",
|
|
1996
|
+
},
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
2000
|
+
"isWrite": false,
|
|
2001
|
+
"methodName": "GetContractAPI",
|
|
2002
|
+
"responseSchema": {
|
|
2003
|
+
"properties": {
|
|
2004
|
+
"Data": {
|
|
2005
|
+
"type": "object",
|
|
2006
|
+
},
|
|
2007
|
+
"Message": {
|
|
2008
|
+
"type": "string",
|
|
2009
|
+
},
|
|
2010
|
+
"Status": {
|
|
2011
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
2012
|
+
"enum": [
|
|
2013
|
+
0,
|
|
2014
|
+
1,
|
|
2015
|
+
],
|
|
2016
|
+
},
|
|
2017
|
+
},
|
|
2018
|
+
"required": [
|
|
2019
|
+
"Status",
|
|
2020
|
+
],
|
|
2021
|
+
"type": "object",
|
|
2022
|
+
},
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
2026
|
+
"isWrite": false,
|
|
2027
|
+
"methodName": "GetContractVersion",
|
|
2028
|
+
"responseSchema": {
|
|
2029
|
+
"properties": {
|
|
2030
|
+
"Data": {
|
|
2031
|
+
"type": "string",
|
|
2032
|
+
},
|
|
2033
|
+
"Message": {
|
|
2034
|
+
"type": "string",
|
|
2035
|
+
},
|
|
2036
|
+
"Status": {
|
|
2037
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
2038
|
+
"enum": [
|
|
2039
|
+
0,
|
|
2040
|
+
1,
|
|
2041
|
+
],
|
|
2042
|
+
},
|
|
2043
|
+
},
|
|
2044
|
+
"required": [
|
|
2045
|
+
"Status",
|
|
2046
|
+
],
|
|
2047
|
+
"type": "object",
|
|
2048
|
+
},
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
2052
|
+
"dtoSchema": {
|
|
2053
|
+
"properties": {
|
|
2054
|
+
"objectId": {
|
|
2055
|
+
"minLength": 1,
|
|
2056
|
+
"type": "string",
|
|
2057
|
+
},
|
|
2058
|
+
"prefix": {
|
|
2059
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
2060
|
+
"minLength": 1,
|
|
2061
|
+
"type": "string",
|
|
2062
|
+
},
|
|
2063
|
+
"signature": {
|
|
2064
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
2065
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
2066
|
+
"minLength": 1,
|
|
2067
|
+
"type": "string",
|
|
2068
|
+
},
|
|
2069
|
+
"signerAddress": {
|
|
2070
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
2071
|
+
"minLength": 1,
|
|
2072
|
+
"type": "string",
|
|
2073
|
+
},
|
|
2074
|
+
"signerPublicKey": {
|
|
2075
|
+
"description": "Public key of the user who signed the DTO.",
|
|
2076
|
+
"minLength": 1,
|
|
2077
|
+
"type": "string",
|
|
2078
|
+
},
|
|
2079
|
+
"signing": {
|
|
2080
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
2081
|
+
"enum": [
|
|
2082
|
+
"ETH",
|
|
2083
|
+
"TON",
|
|
2084
|
+
],
|
|
2085
|
+
"type": "string",
|
|
2086
|
+
},
|
|
2087
|
+
"uniqueKey": {
|
|
2088
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
2089
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
2090
|
+
"minLength": 1,
|
|
2091
|
+
"type": "string",
|
|
2092
|
+
},
|
|
2093
|
+
},
|
|
2094
|
+
"required": [
|
|
2095
|
+
"objectId",
|
|
2096
|
+
],
|
|
2097
|
+
"type": "object",
|
|
2098
|
+
},
|
|
2099
|
+
"isWrite": false,
|
|
2100
|
+
"methodName": "GetObjectByKey",
|
|
2101
|
+
"responseSchema": {
|
|
2102
|
+
"properties": {
|
|
2103
|
+
"Data": {
|
|
2104
|
+
"type": "object",
|
|
2105
|
+
},
|
|
2106
|
+
"Message": {
|
|
2107
|
+
"type": "string",
|
|
2108
|
+
},
|
|
2109
|
+
"Status": {
|
|
2110
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
2111
|
+
"enum": [
|
|
2112
|
+
0,
|
|
2113
|
+
1,
|
|
2114
|
+
],
|
|
2115
|
+
},
|
|
2116
|
+
},
|
|
2117
|
+
"required": [
|
|
2118
|
+
"Status",
|
|
2119
|
+
],
|
|
2120
|
+
"type": "object",
|
|
2121
|
+
},
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"description": " Transaction is read only (evaluate). Allowed roles: EVALUATE.",
|
|
2125
|
+
"dtoSchema": {
|
|
2126
|
+
"properties": {
|
|
2127
|
+
"objectId": {
|
|
2128
|
+
"minLength": 1,
|
|
2129
|
+
"type": "string",
|
|
2130
|
+
},
|
|
2131
|
+
"prefix": {
|
|
2132
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
2133
|
+
"minLength": 1,
|
|
2134
|
+
"type": "string",
|
|
2135
|
+
},
|
|
2136
|
+
"signature": {
|
|
2137
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
2138
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
2139
|
+
"minLength": 1,
|
|
2140
|
+
"type": "string",
|
|
2141
|
+
},
|
|
2142
|
+
"signerAddress": {
|
|
2143
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
2144
|
+
"minLength": 1,
|
|
2145
|
+
"type": "string",
|
|
2146
|
+
},
|
|
2147
|
+
"signerPublicKey": {
|
|
2148
|
+
"description": "Public key of the user who signed the DTO.",
|
|
2149
|
+
"minLength": 1,
|
|
2150
|
+
"type": "string",
|
|
2151
|
+
},
|
|
2152
|
+
"signing": {
|
|
2153
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
2154
|
+
"enum": [
|
|
2155
|
+
"ETH",
|
|
2156
|
+
"TON",
|
|
2157
|
+
],
|
|
2158
|
+
"type": "string",
|
|
2159
|
+
},
|
|
2160
|
+
"uniqueKey": {
|
|
2161
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
2162
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
2163
|
+
"minLength": 1,
|
|
2164
|
+
"type": "string",
|
|
2165
|
+
},
|
|
2166
|
+
},
|
|
2167
|
+
"required": [
|
|
2168
|
+
"objectId",
|
|
2169
|
+
],
|
|
2170
|
+
"type": "object",
|
|
2171
|
+
},
|
|
2172
|
+
"isWrite": false,
|
|
2173
|
+
"methodName": "GetObjectHistory",
|
|
2174
|
+
"responseSchema": {
|
|
2175
|
+
"properties": {
|
|
2176
|
+
"Data": {
|
|
2177
|
+
"type": "object",
|
|
2178
|
+
},
|
|
2179
|
+
"Message": {
|
|
2180
|
+
"type": "string",
|
|
2181
|
+
},
|
|
2182
|
+
"Status": {
|
|
2183
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
2184
|
+
"enum": [
|
|
2185
|
+
0,
|
|
2186
|
+
1,
|
|
2187
|
+
],
|
|
2188
|
+
},
|
|
2189
|
+
},
|
|
2190
|
+
"required": [
|
|
2191
|
+
"Status",
|
|
2192
|
+
],
|
|
2193
|
+
"type": "object",
|
|
2194
|
+
},
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
"description": " Allowed roles: SUBMIT.",
|
|
2198
|
+
"dtoSchema": {
|
|
2199
|
+
"properties": {
|
|
2200
|
+
"expectedNativeToken": {
|
|
2201
|
+
"description": "Number provided as a string.",
|
|
2202
|
+
"type": "string",
|
|
2203
|
+
},
|
|
2204
|
+
"extraFees": {
|
|
2205
|
+
"properties": {
|
|
2206
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
2207
|
+
"description": "Number provided as a string.",
|
|
2208
|
+
"type": "string",
|
|
2209
|
+
},
|
|
2210
|
+
},
|
|
2211
|
+
"type": "object",
|
|
2212
|
+
},
|
|
2213
|
+
"prefix": {
|
|
2214
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
2215
|
+
"minLength": 1,
|
|
2216
|
+
"type": "string",
|
|
2217
|
+
},
|
|
2218
|
+
"signature": {
|
|
2219
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
2220
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
2221
|
+
"minLength": 1,
|
|
2222
|
+
"type": "string",
|
|
2223
|
+
},
|
|
2224
|
+
"signerAddress": {
|
|
2225
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
2226
|
+
"minLength": 1,
|
|
2227
|
+
"type": "string",
|
|
2228
|
+
},
|
|
2229
|
+
"signerPublicKey": {
|
|
2230
|
+
"description": "Public key of the user who signed the DTO.",
|
|
2231
|
+
"minLength": 1,
|
|
2232
|
+
"type": "string",
|
|
2233
|
+
},
|
|
2234
|
+
"signing": {
|
|
2235
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
2236
|
+
"enum": [
|
|
2237
|
+
"ETH",
|
|
2238
|
+
"TON",
|
|
2239
|
+
],
|
|
2240
|
+
"type": "string",
|
|
2241
|
+
},
|
|
2242
|
+
"tokenQuantity": {
|
|
2243
|
+
"description": "Number provided as a string.",
|
|
2244
|
+
"type": "string",
|
|
2245
|
+
},
|
|
2246
|
+
"uniqueKey": {
|
|
2247
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
2248
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
2249
|
+
"minLength": 1,
|
|
2250
|
+
"type": "string",
|
|
2251
|
+
},
|
|
2252
|
+
"vaultAddress": {
|
|
2253
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
2254
|
+
"minLength": 1,
|
|
2255
|
+
"type": "string",
|
|
2256
|
+
},
|
|
2257
|
+
},
|
|
2258
|
+
"required": [
|
|
2259
|
+
"vaultAddress",
|
|
2260
|
+
"tokenQuantity",
|
|
2261
|
+
],
|
|
2262
|
+
"type": "object",
|
|
2263
|
+
},
|
|
2264
|
+
"isWrite": true,
|
|
2265
|
+
"methodName": "SellExactToken",
|
|
2266
|
+
"responseSchema": {
|
|
2267
|
+
"properties": {
|
|
2268
|
+
"Data": {
|
|
2269
|
+
"properties": {
|
|
2270
|
+
"functionName": {
|
|
2271
|
+
"minLength": 1,
|
|
2272
|
+
"type": "string",
|
|
2273
|
+
},
|
|
2274
|
+
"inputQuantity": {
|
|
2275
|
+
"minLength": 1,
|
|
2276
|
+
"type": "string",
|
|
2277
|
+
},
|
|
2278
|
+
"isFinalized": {
|
|
2279
|
+
"minLength": 1,
|
|
2280
|
+
"type": "string",
|
|
2281
|
+
},
|
|
2282
|
+
"nativeTokenAmount": {},
|
|
2283
|
+
"nativeTokenBalance": {},
|
|
2284
|
+
"outputQuantity": {
|
|
2285
|
+
"minLength": 1,
|
|
2286
|
+
"type": "string",
|
|
2287
|
+
},
|
|
2288
|
+
"tokenBalance": {},
|
|
2289
|
+
"tokenName": {
|
|
2290
|
+
"minLength": 1,
|
|
2291
|
+
"type": "string",
|
|
2292
|
+
},
|
|
2293
|
+
"tokenQuantity": {},
|
|
2294
|
+
"tradeType": {
|
|
2295
|
+
"minLength": 1,
|
|
2296
|
+
"type": "string",
|
|
2297
|
+
},
|
|
2298
|
+
"userAddress": {
|
|
2299
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
2300
|
+
"minLength": 1,
|
|
2301
|
+
"type": "string",
|
|
2302
|
+
},
|
|
2303
|
+
"vaultAddress": {
|
|
2304
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
2305
|
+
"minLength": 1,
|
|
2306
|
+
"type": "string",
|
|
2307
|
+
},
|
|
2308
|
+
},
|
|
2309
|
+
"required": [
|
|
2310
|
+
"inputQuantity",
|
|
2311
|
+
"outputQuantity",
|
|
2312
|
+
"tokenName",
|
|
2313
|
+
"tradeType",
|
|
2314
|
+
"vaultAddress",
|
|
2315
|
+
"userAddress",
|
|
2316
|
+
"isFinalized",
|
|
2317
|
+
"functionName",
|
|
2318
|
+
],
|
|
2319
|
+
"type": "object",
|
|
2320
|
+
},
|
|
2321
|
+
"Message": {
|
|
2322
|
+
"type": "string",
|
|
2323
|
+
},
|
|
2324
|
+
"Status": {
|
|
2325
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
2326
|
+
"enum": [
|
|
2327
|
+
0,
|
|
2328
|
+
1,
|
|
2329
|
+
],
|
|
2330
|
+
},
|
|
2331
|
+
},
|
|
2332
|
+
"required": [
|
|
2333
|
+
"Status",
|
|
2334
|
+
],
|
|
2335
|
+
"type": "object",
|
|
2336
|
+
},
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
"description": " Allowed roles: SUBMIT.",
|
|
2340
|
+
"dtoSchema": {
|
|
2341
|
+
"properties": {
|
|
2342
|
+
"expectedToken": {
|
|
2343
|
+
"description": "Number provided as a string.",
|
|
2344
|
+
"type": "string",
|
|
2345
|
+
},
|
|
2346
|
+
"extraFees": {
|
|
2347
|
+
"properties": {
|
|
2348
|
+
"maxAcceptableReverseBondingCurveFee": {
|
|
2349
|
+
"description": "Number provided as a string.",
|
|
2350
|
+
"type": "string",
|
|
2351
|
+
},
|
|
2352
|
+
},
|
|
2353
|
+
"type": "object",
|
|
2354
|
+
},
|
|
2355
|
+
"nativeTokenQuantity": {
|
|
2356
|
+
"description": "Number provided as a string.",
|
|
2357
|
+
"type": "string",
|
|
2358
|
+
},
|
|
2359
|
+
"prefix": {
|
|
2360
|
+
"description": "Prefix for Metamask transaction signatures. Necessary to format payloads correctly to recover publicKey from web3 signatures.",
|
|
2361
|
+
"minLength": 1,
|
|
2362
|
+
"type": "string",
|
|
2363
|
+
},
|
|
2364
|
+
"signature": {
|
|
2365
|
+
"description": "Signature of the DTO signed with caller's private key to be verified with user's public key saved on chain. The 'signature' field is optional for DTO, but is required for a transaction to be executed on chain.
|
|
2366
|
+
Please consult [GalaChain SDK documentation](https://github.com/GalaChain/sdk/blob/main/docs/authorization.md#signature-based-authorization) on how to create signatures.",
|
|
2367
|
+
"minLength": 1,
|
|
2368
|
+
"type": "string",
|
|
2369
|
+
},
|
|
2370
|
+
"signerAddress": {
|
|
2371
|
+
"description": "Address of the user who signed the DTO. Typically Ethereum or TON address.",
|
|
2372
|
+
"minLength": 1,
|
|
2373
|
+
"type": "string",
|
|
2374
|
+
},
|
|
2375
|
+
"signerPublicKey": {
|
|
2376
|
+
"description": "Public key of the user who signed the DTO.",
|
|
2377
|
+
"minLength": 1,
|
|
2378
|
+
"type": "string",
|
|
2379
|
+
},
|
|
2380
|
+
"signing": {
|
|
2381
|
+
"description": "Signing scheme used for the signature. "ETH" for Ethereum, and "TON" for The Open Network are supported. Default: "ETH".",
|
|
2382
|
+
"enum": [
|
|
2383
|
+
"ETH",
|
|
2384
|
+
"TON",
|
|
2385
|
+
],
|
|
2386
|
+
"type": "string",
|
|
2387
|
+
},
|
|
2388
|
+
"uniqueKey": {
|
|
2389
|
+
"description": "Unique key of the DTO. It is used to prevent double execution of the same transaction on chain. The key is saved on chain and checked before execution. If a DTO with already saved key is used in transaction, the transaction will fail with UniqueTransactionConflict error, which is mapped to HTTP 409 Conflict error. In case of the error, no changes are saved to chain state.
|
|
2390
|
+
The key is generated by the caller and should be unique for each DTO. You can use \`nanoid\` library, UUID scheme, or any tool to generate unique string keys.",
|
|
2391
|
+
"minLength": 1,
|
|
2392
|
+
"type": "string",
|
|
2393
|
+
},
|
|
2394
|
+
"vaultAddress": {
|
|
2395
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
2396
|
+
"minLength": 1,
|
|
2397
|
+
"type": "string",
|
|
2398
|
+
},
|
|
2399
|
+
},
|
|
2400
|
+
"required": [
|
|
2401
|
+
"vaultAddress",
|
|
2402
|
+
"nativeTokenQuantity",
|
|
2403
|
+
],
|
|
2404
|
+
"type": "object",
|
|
2405
|
+
},
|
|
2406
|
+
"isWrite": true,
|
|
2407
|
+
"methodName": "SellWithNative",
|
|
2408
|
+
"responseSchema": {
|
|
2409
|
+
"properties": {
|
|
2410
|
+
"Data": {
|
|
2411
|
+
"properties": {
|
|
2412
|
+
"functionName": {
|
|
2413
|
+
"minLength": 1,
|
|
2414
|
+
"type": "string",
|
|
2415
|
+
},
|
|
2416
|
+
"inputQuantity": {
|
|
2417
|
+
"minLength": 1,
|
|
2418
|
+
"type": "string",
|
|
2419
|
+
},
|
|
2420
|
+
"isFinalized": {
|
|
2421
|
+
"minLength": 1,
|
|
2422
|
+
"type": "string",
|
|
2423
|
+
},
|
|
2424
|
+
"nativeTokenAmount": {},
|
|
2425
|
+
"nativeTokenBalance": {},
|
|
2426
|
+
"outputQuantity": {
|
|
2427
|
+
"minLength": 1,
|
|
2428
|
+
"type": "string",
|
|
2429
|
+
},
|
|
2430
|
+
"tokenBalance": {},
|
|
2431
|
+
"tokenName": {
|
|
2432
|
+
"minLength": 1,
|
|
2433
|
+
"type": "string",
|
|
2434
|
+
},
|
|
2435
|
+
"tokenQuantity": {},
|
|
2436
|
+
"tradeType": {
|
|
2437
|
+
"minLength": 1,
|
|
2438
|
+
"type": "string",
|
|
2439
|
+
},
|
|
2440
|
+
"userAddress": {
|
|
2441
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
2442
|
+
"minLength": 1,
|
|
2443
|
+
"type": "string",
|
|
2444
|
+
},
|
|
2445
|
+
"vaultAddress": {
|
|
2446
|
+
"description": "Allowed value is string following the format of 'client|<user-id>', or 'eth|<checksumed-eth-addr>', or valid system-level username.",
|
|
2447
|
+
"minLength": 1,
|
|
2448
|
+
"type": "string",
|
|
2449
|
+
},
|
|
2450
|
+
},
|
|
2451
|
+
"required": [
|
|
2452
|
+
"inputQuantity",
|
|
2453
|
+
"outputQuantity",
|
|
2454
|
+
"tokenName",
|
|
2455
|
+
"tradeType",
|
|
2456
|
+
"vaultAddress",
|
|
2457
|
+
"userAddress",
|
|
2458
|
+
"isFinalized",
|
|
2459
|
+
"functionName",
|
|
2460
|
+
],
|
|
2461
|
+
"type": "object",
|
|
2462
|
+
},
|
|
2463
|
+
"Message": {
|
|
2464
|
+
"type": "string",
|
|
2465
|
+
},
|
|
2466
|
+
"Status": {
|
|
2467
|
+
"description": "Indicates Error (0) or Success (1)",
|
|
2468
|
+
"enum": [
|
|
2469
|
+
0,
|
|
2470
|
+
1,
|
|
2471
|
+
],
|
|
2472
|
+
},
|
|
2473
|
+
},
|
|
2474
|
+
"required": [
|
|
2475
|
+
"Status",
|
|
2476
|
+
],
|
|
2477
|
+
"type": "object",
|
|
2478
|
+
},
|
|
2479
|
+
},
|
|
2480
|
+
],
|
|
2481
|
+
}
|
|
2482
|
+
`;
|