mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-01-12 14:54:21 +08:00
feat: upgrade stacks contracts
This commit is contained in:
@@ -14,8 +14,8 @@ stringAsciiT,
|
||||
noneT
|
||||
} from "../smartContractHelpers/codegenImport"
|
||||
|
||||
export const btcPegInEndpointV205 = defineContract({
|
||||
"btc-peg-in-endpoint-v2-05": {
|
||||
export const btcPegInEndpointV207 = defineContract({
|
||||
"btc-peg-in-endpoint-v2-07": {
|
||||
callback: {
|
||||
input: [
|
||||
{ name: 'sender', type: principalT },
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineContract } from "../smartContractHelpers/codegenImport";
|
||||
import { btcPegInEndpointV205 } from "./contract_xlink_btc-peg-in-endpoint-v2-05"
|
||||
import { btcPegInEndpointV207 } from "./contract_xlink_btc-peg-in-endpoint-v2-07"
|
||||
import { btcPegInEndpointV207Swap } from "./contract_xlink_btc-peg-in-endpoint-v2-07-swap"
|
||||
import { btcPegInEndpointV205Launchpad } from "./contract_xlink_btc-peg-in-endpoint-v2-05-launchpad"
|
||||
import { btcPegOutEndpointV201 } from "./contract_xlink_btc-peg-out-endpoint-v2-01"
|
||||
@@ -11,7 +11,7 @@ import { metaPegInEndpointV206Swap } from "./contract_xlink_meta-peg-in-endpoint
|
||||
import { metaPegOutEndpointV204 } from "./contract_xlink_meta-peg-out-endpoint-v2-04"
|
||||
|
||||
export const xlinkContracts = defineContract({
|
||||
...btcPegInEndpointV205,
|
||||
...btcPegInEndpointV207,
|
||||
...btcPegInEndpointV207Swap,
|
||||
...btcPegInEndpointV205Launchpad,
|
||||
...btcPegOutEndpointV201,
|
||||
|
||||
@@ -38,7 +38,7 @@ const envName = process.env.ENV_NAME === "dev" ? "dev" : "prod"
|
||||
)
|
||||
},
|
||||
[
|
||||
"btc-peg-in-endpoint-v2-05",
|
||||
"btc-peg-in-endpoint-v2-07",
|
||||
"btc-peg-in-endpoint-v2-07-swap",
|
||||
"btc-peg-in-endpoint-v2-05-launchpad",
|
||||
"btc-peg-out-endpoint-v2-01",
|
||||
|
||||
@@ -26,7 +26,7 @@ export const contractNameOverrides_testnet: Record<string, string> = {
|
||||
"token-vliabtc": "token-vliabtc-dk",
|
||||
|
||||
// btc bridge
|
||||
"btc-peg-in-endpoint-v2-05": "btc-peg-in-endpoint-v2-05-dk",
|
||||
"btc-peg-in-endpoint-v2-07": "btc-peg-in-endpoint-v2-07-dk",
|
||||
"btc-peg-in-endpoint-v2-07-swap": "btc-peg-in-v2-07-swap-dk",
|
||||
"btc-peg-in-endpoint-v2-07-agg": "btc-peg-in-v2-07b-agg-dk",
|
||||
"btc-peg-in-endpoint-v2-05-lisa": "btc-peg-in-endpoint-v2-05-lisa-dk",
|
||||
|
||||
@@ -53,7 +53,7 @@ export const wrapContractAddress = (
|
||||
}
|
||||
|
||||
export enum StacksContractName {
|
||||
BTCPegInEndpoint = "btc-peg-in-endpoint-v2-05",
|
||||
BTCPegInEndpoint = "btc-peg-in-endpoint-v2-07",
|
||||
BTCPegInEndpointSwap = "btc-peg-in-endpoint-v2-07-swap",
|
||||
BTCPegInEndpointLaunchpad = "btc-peg-in-endpoint-v2-05-launchpad",
|
||||
BTCPegOutEndpoint = "btc-peg-out-endpoint-v2-01",
|
||||
|
||||
Reference in New Issue
Block a user