-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d3dea0
commit 921ab32
Showing
10 changed files
with
526 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
export const configs = { | ||
CONTRACT_DEPLOYER: 'SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM', | ||
SPONSOR_TX_DEPLOYER: 'SP212Y5JKN59YP3GYG07K3S8W5SSGE4KH6B5STXER', | ||
SDK_API_HOST: 'https://alex-sdk-api.alexlab.co', | ||
BACKEND_API_HOST: 'https://api.alexgo.io', | ||
STACKS_API_HOST: 'https://api.hiro.so', | ||
READONLY_CALL_API_HOST: 'https://stacks-node.alexlab.co', | ||
SPONSORED_TX_EXECUTOR: 'https://api.stxer.xyz/sponsor/execute', | ||
}; |
88 changes: 88 additions & 0 deletions
88
src/generated/smartContract/contract_Alex_sponsor-dex-v01.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import { | ||
defineContract, | ||
traitT, | ||
uintT, | ||
principalT, | ||
responseSimpleT, | ||
booleanT, | ||
optionalT, | ||
} from '../smartContractHelpers/codegenImport'; | ||
|
||
export const sponsorDexV01 = defineContract({ | ||
'sponsor-dex-v01': { | ||
claim: { | ||
input: [ | ||
{ name: 'token', type: traitT }, | ||
{ name: 'amount', type: uintT }, | ||
{ name: 'recipient', type: principalT }, | ||
], | ||
output: responseSimpleT(booleanT), | ||
mode: 'public', | ||
}, | ||
'swap-helper': { | ||
input: [ | ||
{ name: 'token-x', type: traitT }, | ||
{ name: 'token-y', type: traitT }, | ||
{ name: 'factor', type: uintT }, | ||
{ name: 'dx', type: uintT }, | ||
{ name: 'min-dy', type: optionalT(uintT) }, | ||
{ name: 'fee', type: uintT }, | ||
], | ||
output: responseSimpleT(responseSimpleT(uintT)), | ||
mode: 'public', | ||
}, | ||
'swap-helper-a': { | ||
input: [ | ||
{ name: 'token-x', type: traitT }, | ||
{ name: 'token-y', type: traitT }, | ||
{ name: 'token-z', type: traitT }, | ||
{ name: 'factor-x', type: uintT }, | ||
{ name: 'factor-y', type: uintT }, | ||
{ name: 'dx', type: uintT }, | ||
{ name: 'min-dz', type: optionalT(uintT) }, | ||
{ name: 'fee', type: uintT }, | ||
], | ||
output: responseSimpleT(responseSimpleT(uintT)), | ||
mode: 'public', | ||
}, | ||
'swap-helper-b': { | ||
input: [ | ||
{ name: 'token-x', type: traitT }, | ||
{ name: 'token-y', type: traitT }, | ||
{ name: 'token-z', type: traitT }, | ||
{ name: 'token-w', type: traitT }, | ||
{ name: 'factor-x', type: uintT }, | ||
{ name: 'factor-y', type: uintT }, | ||
{ name: 'factor-z', type: uintT }, | ||
{ name: 'dx', type: uintT }, | ||
{ name: 'min-dw', type: optionalT(uintT) }, | ||
{ name: 'fee', type: uintT }, | ||
], | ||
output: responseSimpleT(responseSimpleT(uintT)), | ||
mode: 'public', | ||
}, | ||
'swap-helper-c': { | ||
input: [ | ||
{ name: 'token-x', type: traitT }, | ||
{ name: 'token-y', type: traitT }, | ||
{ name: 'token-z', type: traitT }, | ||
{ name: 'token-w', type: traitT }, | ||
{ name: 'token-v', type: traitT }, | ||
{ name: 'factor-x', type: uintT }, | ||
{ name: 'factor-y', type: uintT }, | ||
{ name: 'factor-z', type: uintT }, | ||
{ name: 'factor-w', type: uintT }, | ||
{ name: 'dx', type: uintT }, | ||
{ name: 'min-dv', type: optionalT(uintT) }, | ||
{ name: 'fee', type: uintT }, | ||
], | ||
output: responseSimpleT(responseSimpleT(uintT)), | ||
mode: 'public', | ||
}, | ||
'is-dao-or-extension': { | ||
input: [], | ||
output: responseSimpleT(booleanT), | ||
mode: 'readonly', | ||
}, | ||
}, | ||
} as const); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { defineContract } from '../smartContractHelpers/codegenImport'; | ||
import { ammPoolV201 } from './contract_Alex_amm-pool-v2-01'; | ||
import { sponsorDexV01 } from './contract_Alex_sponsor-dex-v01'; | ||
|
||
export const AlexContracts = defineContract({ | ||
...ammPoolV201, | ||
...sponsorDexV01, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.