rps-project/config/contract.config.ts
2024-09-10 11:46:05 +03:00

37 lines
1.1 KiB
TypeScript

import { MainBalanceConfig } from "../wrappers/MainBalance";
export const servicePercent = 5; // %
export const tokenPercent = 5; // %
export default {
op: {
DEPOSIT: 1,
CHANGE_OWNER_ADDRESS: 2,
CHANGE_SERVICE_ADDRESS: 3,
TRANSFER_SERVICE_FEE: 4,
WITHDRAW: 5
},
error: {
WRONG_WORKCHAIN: 333,
FUNDS_EMPTY: 401,
FUNDS_EXCEED: 402,
INVALID_OWNER: 403,
EMPTY_ADDRESS: 404,
UNKNOWN_OP: 0xffffff
},
totalFee: servicePercent + tokenPercent, // %
init: {
ownerAddress: "0QBX_oJ8xet3pvRJ6JK1GHq9oUiQjct0ohQlgYX1OGopNcOP",
depositFunds: 0,
serviceAddress: "0QBX_oJ8xet3pvRJ6JK1GHq9oUiQjct0ohQlgYX1OGopNcOP",
tokenAddress: "0QC-0_RK1mBAc-DRAn9LHsLNt2NcLB_eNIJ1UicLs63C0ri4"
} as MainBalanceConfig,
script: {
depositAddress: "0QC-0_RK1mBAc-DRAn9LHsLNt2NcLB_eNIJ1UicLs63C0ri4",
depositAmount: 1, // TON
newOwnerAddress: "0QC-0_RK1mBAc-DRAn9LHsLNt2NcLB_eNIJ1UicLs63C0ri4",
newServiceAddress: "0QC-0_RK1mBAc-DRAn9LHsLNt2NcLB_eNIJ1UicLs63C0ri4"
}
}