stackswap-front-api-test-02 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +2 -2
- package/dist/esm/stackswap/manager/poxl.manager.js +1 -1
- package/dist/esm/stackswap/manager/staking.manager.js +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/stackswap/manager/poxl.manager.js +1 -1
- package/dist/stackswap/manager/staking.manager.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/stackswap/manager/poxl.manager.ts +1 -1
- package/src/stackswap/manager/staking.manager.ts +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export class StackswapMainnetAPI {
|
|
|
24
24
|
constructor(farm_end_cycle = '', fixedSenderAddress = null, api_url, fixedSTSWAPIAddress = null, networkAddress = null) {
|
|
25
25
|
this.connected = false;
|
|
26
26
|
this.getCurrentBlock = async () => {
|
|
27
|
-
const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/
|
|
27
|
+
const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v2/block?limit=1');
|
|
28
28
|
return get_result.data.total;
|
|
29
29
|
};
|
|
30
30
|
this.fixedSenderAddress = fixedSenderAddress;
|
|
@@ -56,7 +56,7 @@ export class StackswapMainnetAPI {
|
|
|
56
56
|
return this.fixedSenderAddress ? this.fixedSenderAddress : this.senderAdderss;
|
|
57
57
|
}
|
|
58
58
|
async getCurrentBlocks() {
|
|
59
|
-
const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/
|
|
59
|
+
const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v2/block?limit=1');
|
|
60
60
|
return { block_height: get_result.data.results[0].height, burn_block_height: get_result.data.results[0].burn_block_height };
|
|
61
61
|
}
|
|
62
62
|
getQualifiedAddress(address) {
|
|
@@ -37,7 +37,7 @@ export class PoxlManager {
|
|
|
37
37
|
await callReadOnlyFunction(getReadOptions(this.stackswap, contract_address, 'get-random-uint-at-block', [uintCV(input)]));
|
|
38
38
|
}
|
|
39
39
|
async getMinedBlock(contract_address, offset) {
|
|
40
|
-
const get_result = await axios.get(this.stackswap.config.STACKS_API_URL() + '/extended/
|
|
40
|
+
const get_result = await axios.get(this.stackswap.config.STACKS_API_URL() + '/extended/v2/address/' + this.stackswap.getSenderAddress() + '/transactions', {
|
|
41
41
|
params: {
|
|
42
42
|
limit: 40,
|
|
43
43
|
offset,
|
|
@@ -104,7 +104,7 @@ export class StakingManager {
|
|
|
104
104
|
}
|
|
105
105
|
async getRewardRoundID(offset) {
|
|
106
106
|
const ADDR = this.stackswap.config.STACKSWAP_ADDRESS() + '.' + this.stackswap.config.CONTRACT_NAME_STACKSWAP_STSW_STACKING_LOGIC_V2();
|
|
107
|
-
const get_result = await axios.get(this.stackswap.config.STACKS_API_URL() + '/extended/
|
|
107
|
+
const get_result = await axios.get(this.stackswap.config.STACKS_API_URL() + '/extended/v2/address/' + this.stackswap.getSenderAddress() + '/transactions', {
|
|
108
108
|
params: {
|
|
109
109
|
limit: 50,
|
|
110
110
|
offset,
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ class StackswapMainnetAPI {
|
|
|
30
30
|
constructor(farm_end_cycle = '', fixedSenderAddress = null, api_url, fixedSTSWAPIAddress = null, networkAddress = null) {
|
|
31
31
|
this.connected = false;
|
|
32
32
|
this.getCurrentBlock = async () => {
|
|
33
|
-
const get_result = await axios_1.default.get(this.config.STACKS_API_URL() + '/extended/
|
|
33
|
+
const get_result = await axios_1.default.get(this.config.STACKS_API_URL() + '/extended/v2/block?limit=1');
|
|
34
34
|
return get_result.data.total;
|
|
35
35
|
};
|
|
36
36
|
this.fixedSenderAddress = fixedSenderAddress;
|
|
@@ -62,7 +62,7 @@ class StackswapMainnetAPI {
|
|
|
62
62
|
return this.fixedSenderAddress ? this.fixedSenderAddress : this.senderAdderss;
|
|
63
63
|
}
|
|
64
64
|
async getCurrentBlocks() {
|
|
65
|
-
const get_result = await axios_1.default.get(this.config.STACKS_API_URL() + '/extended/
|
|
65
|
+
const get_result = await axios_1.default.get(this.config.STACKS_API_URL() + '/extended/v2/block?limit=1');
|
|
66
66
|
return { block_height: get_result.data.results[0].height, burn_block_height: get_result.data.results[0].burn_block_height };
|
|
67
67
|
}
|
|
68
68
|
getQualifiedAddress(address) {
|