feat: upgrade btc-peg-in-endpoint-v2-03 > btc-peg-in-endpoint-v2-04

This commit is contained in:
c4605
2024-10-31 16:41:33 +01:00
parent fd43b8fd48
commit cea19bbba3
6 changed files with 11 additions and 11 deletions

View File

@@ -14,8 +14,8 @@ stringAsciiT,
noneT noneT
} from "../smartContractHelpers/codegenImport" } from "../smartContractHelpers/codegenImport"
export const btcPegInEndpointV203 = defineContract({ export const btcPegInEndpointV204 = defineContract({
"btc-peg-in-endpoint-v2-03": { "btc-peg-in-endpoint-v2-04": {
callback: { callback: {
input: [ input: [
{ name: 'sender', type: principalT }, { name: 'sender', type: principalT },

View File

@@ -1,11 +1,11 @@
import { defineContract } from "../smartContractHelpers/codegenImport"; import { defineContract } from "../smartContractHelpers/codegenImport";
import { btcPegInEndpointV203 } from "./contract_xlink_btc-peg-in-endpoint-v2-03" import { btcPegInEndpointV204 } from "./contract_xlink_btc-peg-in-endpoint-v2-04"
import { btcPegOutEndpointV201 } from "./contract_xlink_btc-peg-out-endpoint-v2-01" import { btcPegOutEndpointV201 } from "./contract_xlink_btc-peg-out-endpoint-v2-01"
import { crossPegInEndpointV203 } from "./contract_xlink_cross-peg-in-endpoint-v2-03" import { crossPegInEndpointV203 } from "./contract_xlink_cross-peg-in-endpoint-v2-03"
import { crossPegOutEndpointV201 } from "./contract_xlink_cross-peg-out-endpoint-v2-01" import { crossPegOutEndpointV201 } from "./contract_xlink_cross-peg-out-endpoint-v2-01"
export const xlinkContracts = defineContract({ export const xlinkContracts = defineContract({
...btcPegInEndpointV203, ...btcPegInEndpointV204,
...btcPegOutEndpointV201, ...btcPegOutEndpointV201,
...crossPegInEndpointV203, ...crossPegInEndpointV203,
...crossPegOutEndpointV201 ...crossPegOutEndpointV201

View File

@@ -7,7 +7,7 @@ import { xlinkContractsDeployerTestnet } from "../src/stacksUtils/stxContractAdd
process.env.STACKS_CORE_API_URL ?? STACKS_TESTNET.coreApiUrl, process.env.STACKS_CORE_API_URL ?? STACKS_TESTNET.coreApiUrl,
xlinkContractsDeployerTestnet, xlinkContractsDeployerTestnet,
[ [
"btc-peg-in-endpoint-v2-03", "btc-peg-in-endpoint-v2-04",
"btc-peg-out-endpoint-v2-01", "btc-peg-out-endpoint-v2-01",
"cross-peg-in-endpoint-v2-03", "cross-peg-in-endpoint-v2-03",
"cross-peg-out-endpoint-v2-01", "cross-peg-out-endpoint-v2-01",

View File

@@ -45,19 +45,19 @@ export const getBtc2StacksFeeInfo = async (
const resp = await props({ const resp = await props({
isPaused: executeReadonlyCallXLINK( isPaused: executeReadonlyCallXLINK(
"btc-peg-in-endpoint-v2-03", "btc-peg-in-endpoint-v2-04",
"is-peg-in-paused", "is-peg-in-paused",
{}, {},
executeOptions, executeOptions,
), ),
feeRate: executeReadonlyCallXLINK( feeRate: executeReadonlyCallXLINK(
"btc-peg-in-endpoint-v2-03", "btc-peg-in-endpoint-v2-04",
"get-peg-in-fee", "get-peg-in-fee",
{}, {},
executeOptions, executeOptions,
).then(numberFromStacksContractNumber), ).then(numberFromStacksContractNumber),
minFeeAmount: executeReadonlyCallXLINK( minFeeAmount: executeReadonlyCallXLINK(
"btc-peg-in-endpoint-v2-03", "btc-peg-in-endpoint-v2-04",
"get-peg-in-min-fee", "get-peg-in-min-fee",
{}, {},
executeOptions, executeOptions,

View File

@@ -77,7 +77,7 @@ export async function createBridgeOrder_BitcoinToStacks(info: {
if (hasLength(swapRoute, 0)) { if (hasLength(swapRoute, 0)) {
data = await executeReadonlyCallXLINK( data = await executeReadonlyCallXLINK(
"btc-peg-in-endpoint-v2-03", "btc-peg-in-endpoint-v2-04",
"create-order-cross-or-fail", "create-order-cross-or-fail",
{ {
order: { order: {
@@ -159,7 +159,7 @@ export async function createBridgeOrder_BitcoinToEVM(info: {
let data: undefined | Uint8Array let data: undefined | Uint8Array
if (hasLength(swapRoute, 0)) { if (hasLength(swapRoute, 0)) {
data = await executeReadonlyCallXLINK( data = await executeReadonlyCallXLINK(
"btc-peg-in-endpoint-v2-03", "btc-peg-in-endpoint-v2-04",
"create-order-cross-or-fail", "create-order-cross-or-fail",
{ {
order: { order: {

View File

@@ -33,7 +33,7 @@ export async function validateBridgeOrder(
if (hasLength(swapRoute, 0)) { if (hasLength(swapRoute, 0)) {
resp = await executeReadonlyCallXLINK( resp = await executeReadonlyCallXLINK(
"btc-peg-in-endpoint-v2-03", "btc-peg-in-endpoint-v2-04",
"validate-tx-cross", "validate-tx-cross",
{ {
"commit-tx": { "commit-tx": {