@argonprotocol/mainchain 1.1.0 → 1.2.0
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/README.md +3 -3
- package/lib/chunk-BQR6FEVP.js +854 -0
- package/lib/chunk-BQR6FEVP.js.map +1 -0
- package/lib/chunk-CHGCEO2U.cjs +2567 -0
- package/lib/chunk-CHGCEO2U.cjs.map +1 -0
- package/lib/chunk-EY3HYZMJ.cjs +854 -0
- package/lib/chunk-EY3HYZMJ.cjs.map +1 -0
- package/lib/chunk-RXCQYVE7.js +2567 -0
- package/lib/chunk-RXCQYVE7.js.map +1 -0
- package/lib/cli.cjs +5 -3347
- package/lib/cli.cjs.map +1 -1
- package/lib/cli.js +5 -3343
- package/lib/cli.js.map +1 -1
- package/lib/clis/index.cjs +4 -3355
- package/lib/clis/index.cjs.map +1 -1
- package/lib/clis/index.d.cts +1 -2
- package/lib/clis/index.d.ts +1 -2
- package/lib/clis/index.js +14 -3343
- package/lib/clis/index.js.map +1 -1
- package/lib/index.cjs +80 -2581
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +853 -623
- package/lib/index.d.ts +853 -623
- package/lib/index.js +42 -2471
- package/lib/index.js.map +1 -1
- package/package.json +10 -7
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ import { CohortBidder } from '@argonprotocol/mainchain';
|
|
|
111
111
|
|
|
112
112
|
// on new bidding
|
|
113
113
|
const subaccounts = await accountset.getAvailableMinerAccounts(5);
|
|
114
|
-
const cohortBidder = new CohortBidder(accountset,
|
|
114
|
+
const cohortBidder = new CohortBidder(accountset, cohortFrameId, subaccounts, {
|
|
115
115
|
maxSeats: 5,
|
|
116
116
|
// a budget not to exceed
|
|
117
117
|
maxBudget: 100_000_000,
|
|
@@ -133,10 +133,10 @@ import { MiningBids } from '@argonprotocol/mainchain';
|
|
|
133
133
|
|
|
134
134
|
const miningBids = new MiningBids(client);
|
|
135
135
|
const { unsubscribe } = await miningBids.onCohortChange({
|
|
136
|
-
async onBiddingStart(
|
|
136
|
+
async onBiddingStart(cohortFrameId) {
|
|
137
137
|
// ...
|
|
138
138
|
},
|
|
139
|
-
async onBiddingEnd(
|
|
139
|
+
async onBiddingEnd(cohortFrameId) {
|
|
140
140
|
// ...
|
|
141
141
|
},
|
|
142
142
|
});
|