mirror of
https://github.com/zhigang1992/liquid-stacking.git
synced 2026-01-12 09:13:39 +08:00
chore: license header
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
;;
|
||||
;; lqstx-mint-registry
|
||||
;;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proposal-trait.proposal-trait)
|
||||
|
||||
(define-public (execute (sender principal))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
;;
|
||||
;; lqstx-mint-endpoint
|
||||
;;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait rebase-strategy-trait
|
||||
(
|
||||
(rebase () (response uint uint))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(use-trait strategy-trait .strategy-trait.strategy-trait)
|
||||
|
||||
(define-constant err-unauthorised (err u3000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
;;
|
||||
;; lqstx-mint-endpoint-v1-01
|
||||
;;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
;; This contract holds the STX of the members
|
||||
|
||||
(use-trait strategy-trait .strategy-trait.strategy-trait)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(use-trait proposal-trait .proposal-trait.proposal-trait)
|
||||
|
||||
(define-constant err-unauthorised (err u1000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-constant err-unauthorised (err u3000))
|
||||
|
||||
(define-map authorised-managers principal bool)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(use-trait proxy-trait .proxy-trait.proxy-trait)
|
||||
|
||||
(define-constant err-unauthorised (err u1000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(use-trait proxy-trait .proxy-trait.proxy-trait)
|
||||
(use-trait sip-010-transferable-trait .sip-010-transferable-trait.sip-010-transferable-trait)
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
;; lisa dao
|
||||
|
||||
(use-trait proposal-trait .proposal-trait.proposal-trait)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proposal-trait.proposal-trait)
|
||||
|
||||
(define-public (execute (sender principal))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-constant err-unauthorised (err u1000))
|
||||
|
||||
(define-map authorised-managers principal bool)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .strategy-trait.strategy-trait)
|
||||
|
||||
(define-constant err-unauthorised (err u1000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-constant PENDING 0x00)
|
||||
(define-constant FINALIZED 0x01)
|
||||
(define-constant REVOKED 0x02)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .trait-sip-010.sip-010-trait)
|
||||
|
||||
(define-fungible-token wlqstx)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proxy-trait.proxy-trait)
|
||||
|
||||
(define-constant err-invalid-payload (err u4000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proxy-trait.proxy-trait)
|
||||
|
||||
(define-constant err-invalid-payload (err u4000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proxy-trait.proxy-trait)
|
||||
|
||||
(define-constant err-invalid-payload (err u4000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proxy-trait.proxy-trait)
|
||||
|
||||
(define-constant err-invalid-payload (err u4000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proposal-trait.proposal-trait)
|
||||
|
||||
(define-public (execute (sender principal))
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
|
||||
(define-constant PENDING 0x00)
|
||||
(define-constant FINALIZED 0x01)
|
||||
(define-constant REVOKED 0x02)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .proposal-trait.proposal-trait)
|
||||
|
||||
(define-public (execute (sender principal))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-constant err-unauthorised (err u5000))
|
||||
|
||||
(as-contract (contract-call? 'SP000000000000000000002Q6VF78.pox-3 allow-contract-caller 'SP21YTSM60CAY6D011EZVEVNKXVW8FVZE198XEFFP.pox-fast-pool-v2 none))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .strategy-trait.strategy-trait)
|
||||
|
||||
(define-constant err-not-vault-caller (err u2000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-constant err-unauthorised (err u5000))
|
||||
|
||||
(define-data-var pool-reward-pox-addr
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(impl-trait .sip-010-trait.sip-010-trait)
|
||||
|
||||
(define-constant err-unauthorised (err u3000))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
;; lqstx
|
||||
;;
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
;; vlqstx
|
||||
|
||||
(define-fungible-token vlqstx)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait extension-trait
|
||||
(
|
||||
(callback (principal (buff 2048)) (response bool uint))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait proposal-trait
|
||||
(
|
||||
(execute (principal) (response bool uint))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait proxy-trait
|
||||
((proxy-call ((buff 2048)) (response bool uint)))
|
||||
)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait rebase-strategy-trait
|
||||
(
|
||||
(rebase () (response uint uint))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait sip-010-extensions-trait
|
||||
(
|
||||
(mint (uint principal) (response bool uint))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait sip-010-trait
|
||||
(
|
||||
;; Transfer from the caller to a new principal
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait sip-010-transferable-trait
|
||||
(
|
||||
(transfer (uint principal principal (optional (buff 2048))) (response bool uint))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait strategy-trait
|
||||
(
|
||||
(execute ((buff 2048)) (response uint uint))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
;; SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
(define-trait rebase-sip-010-trait
|
||||
(
|
||||
;; Transfer from the caller to a new principal
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
---
|
||||
id: 0
|
||||
name: Devnet deployment
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
---
|
||||
id: 0
|
||||
name: Devnet deployment
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
---
|
||||
id: 0
|
||||
name: Devnet deployment
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
---
|
||||
id: 0
|
||||
name: Devnet deployment
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
---
|
||||
id: 0
|
||||
name: Devnet deployment
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
---
|
||||
id: 0
|
||||
name: Devnet deployment
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
---
|
||||
id: 0
|
||||
name: Devnet deployment
|
||||
|
||||
@@ -39,7 +39,6 @@ genesis:
|
||||
- pox
|
||||
- pox-2
|
||||
- pox-3
|
||||
- pox-4
|
||||
- lockup
|
||||
- costs-2
|
||||
- costs-3
|
||||
@@ -54,6 +53,9 @@ plan:
|
||||
emulated-sender: SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE
|
||||
path: "./.cache/requirements/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard.clar"
|
||||
clarity-version: 1
|
||||
epoch: "2.0"
|
||||
- id: 1
|
||||
transactions:
|
||||
- emulated-contract-publish:
|
||||
contract-name: trait-sip-010
|
||||
emulated-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
|
||||
@@ -99,8 +101,8 @@ plan:
|
||||
emulated-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
|
||||
path: contracts_modules/alex_v1/traits/trait-vault.clar
|
||||
clarity-version: 1
|
||||
epoch: "2.1"
|
||||
- id: 1
|
||||
epoch: "2.05"
|
||||
- id: 2
|
||||
transactions:
|
||||
- emulated-contract-publish:
|
||||
contract-name: pox-pools-1-cycle-v2
|
||||
@@ -228,7 +230,7 @@ plan:
|
||||
path: contracts/strategies/public-pools/fastpool-member.clar
|
||||
clarity-version: 2
|
||||
epoch: "2.4"
|
||||
- id: 2
|
||||
- id: 3
|
||||
transactions:
|
||||
- emulated-contract-publish:
|
||||
contract-name: xverse-member1
|
||||
@@ -356,7 +358,7 @@ plan:
|
||||
path: contracts/traits/rebase-strategy-trait.clar
|
||||
clarity-version: 2
|
||||
epoch: "2.4"
|
||||
- id: 3
|
||||
- id: 4
|
||||
transactions:
|
||||
- emulated-contract-publish:
|
||||
contract-name: regtest-boot
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
{
|
||||
"name": "lisa",
|
||||
"version": "1.0.0",
|
||||
|
||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
lockfileVersion: '6.0'
|
||||
|
||||
settings:
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import {
|
||||
MultiSigSpendingCondition,
|
||||
StacksMessageType,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import {
|
||||
deserializeTransaction,
|
||||
getNonce,
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import fs from "fs";
|
||||
import { hexToBytes } from '@stacks/common';
|
||||
import { AddressHashMode, TransactionVersion, addressFromHashMode, createStacksPrivateKey, publicKeyFromBytes } from "@stacks/transactions";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import {
|
||||
makeUnsignedContractDeploy,
|
||||
StacksPublicKey,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import { makeRandomPrivKey } from "@stacks/transactions";
|
||||
import { bytesToHex } from '@stacks/common';
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import { AddressHashMode, AddressVersion, addressFromPublicKeys, addressToString, compressPublicKey, pubKeyfromPrivKey } from "@stacks/transactions";
|
||||
import { getNetwork, getStacksPubkeys, loadConfig } from "./config.ts";
|
||||
import { bytesToHex } from '@stacks/common';
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
|
||||
find . -type f -name "*.clar" -exec \
|
||||
sed -i 's/SP000000000000000000002Q6VF78/ST000000000000000000002AMW42H/g' {} \;
|
||||
@@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
|
||||
find . -type f -name "*.clar" -exec \
|
||||
sed -i 's/ST000000000000000000002AMW42H/SP000000000000000000002Q6VF78/g' {} \;
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import {
|
||||
TransactionSigner,
|
||||
compressPublicKey,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import { Address, SpendingCondition, StacksPublicKey } from "@stacks/transactions";
|
||||
import fs from "fs";
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
[network]
|
||||
name = "devnet"
|
||||
deployment_fee_rate = 10
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import { tx } from '@hirosystems/clarinet-sdk';
|
||||
import {
|
||||
BufferCV,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import { tx } from '@hirosystems/clarinet-sdk';
|
||||
import { Cl } from '@stacks/transactions';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
import { ParsedTransactionResult, tx } from '@hirosystems/clarinet-sdk';
|
||||
import { BooleanCV, Cl, IntCV, SomeCV, TupleCV, UIntCV } from '@stacks/transactions';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/// <reference types="vitest" />
|
||||
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
Reference in New Issue
Block a user