Skip to content

Commit cd2099c

Browse files
committed
"chore: finished integrating exchange examples"
1 parent f89e4a5 commit cd2099c

File tree

16 files changed

+2928
-759
lines changed

16 files changed

+2928
-759
lines changed

packages/plugin-injective/injective-sdk-client-ts/src/examples/auction.ts

+37-37
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const getAuctionModuleParamsExample = [
22
{
33
user: "{{user1}}",
44
content: {
5-
text: "Retrieve the auction module parameters, including the auction period and the minimum next bid increment rate."
5+
text: "Retrieve the auction module parameters, including the auction period and the minimum next bid increment rate.",
66
},
77
},
88
{
@@ -12,7 +12,7 @@ export const getAuctionModuleParamsExample = [
1212
action: "GET_AUCTION_MODULE_PARAMS",
1313
content: {
1414
auctionPeriod: 7200,
15-
minNextBidIncrementRate: "0.05"
15+
minNextBidIncrementRate: "0.05",
1616
},
1717
},
1818
},
@@ -22,7 +22,7 @@ export const getAuctionModuleStateExample = [
2222
{
2323
user: "{{user1}}",
2424
content: {
25-
text: "Get the current state of the auction module, including parameters, auction round, highest bid, and auction ending timestamp."
25+
text: "Get the current state of the auction module, including parameters, auction round, highest bid, and auction ending timestamp.",
2626
},
2727
},
2828
{
@@ -33,14 +33,14 @@ export const getAuctionModuleStateExample = [
3333
content: {
3434
params: {
3535
auctionPeriod: 7200,
36-
minNextBidIncrementRate: "0.05"
36+
minNextBidIncrementRate: "0.05",
3737
},
3838
auctionRound: 12,
3939
highestBid: {
4040
bidder: "inj1xmpl3bidderaddress",
41-
amount: "2500000000"
41+
amount: "2500000000",
4242
},
43-
auctionEndingTimestamp: 1700000000
43+
auctionEndingTimestamp: 1700000000,
4444
},
4545
},
4646
},
@@ -50,7 +50,7 @@ export const getCurrentBasketExample = [
5050
{
5151
user: "{{user1}}",
5252
content: {
53-
text: "Fetch the details of the current auction basket, including the list of amounts, auction round, closing time, highest bidder, and highest bid amount."
53+
text: "Fetch the details of the current auction basket, including the list of amounts, auction round, closing time, highest bidder, and highest bid amount.",
5454
},
5555
},
5656
{
@@ -62,17 +62,17 @@ export const getCurrentBasketExample = [
6262
amountList: [
6363
{
6464
denom: "inj",
65-
amount: "500000000"
65+
amount: "500000000",
6666
},
6767
{
6868
denom: "usdt",
69-
amount: "1000000"
70-
}
69+
amount: "1000000",
70+
},
7171
],
7272
auctionRound: 12,
7373
auctionClosingTime: 1700003600,
7474
highestBidder: "inj1xmpl3bidderaddress",
75-
highestBidAmount: "2500000000"
75+
highestBidAmount: "2500000000",
7676
},
7777
},
7878
},
@@ -82,7 +82,7 @@ export const getAuctionRoundExample = [
8282
{
8383
user: "{{user1}}",
8484
content: {
85-
text: "Retrieve information for auction round number 12."
85+
text: "Retrieve information for auction round number 12.",
8686
},
8787
},
8888
{
@@ -96,30 +96,30 @@ export const getAuctionRoundExample = [
9696
basketList: [
9797
{
9898
denom: "inj",
99-
amount: "500000000"
99+
amount: "500000000",
100100
},
101101
{
102102
denom: "usdt",
103-
amount: "1000000"
104-
}
103+
amount: "1000000",
104+
},
105105
],
106106
winningBidAmount: "2500000000",
107107
round: 12,
108108
endTimestamp: 1700000000,
109-
updatedAt: 1700000000
109+
updatedAt: 1700000000,
110110
},
111111
bids: [
112112
{
113113
bidder: "inj1bidder1address",
114114
bidAmount: "2000000000",
115-
bidTimestamp: 1699999000
115+
bidTimestamp: 1699999000,
116116
},
117117
{
118118
bidder: "inj1bidder2address",
119119
bidAmount: "2500000000",
120-
bidTimestamp: 1699999500
121-
}
122-
]
120+
bidTimestamp: 1699999500,
121+
},
122+
],
123123
},
124124
},
125125
},
@@ -129,7 +129,7 @@ export const getAuctionsExample = [
129129
{
130130
user: "{{user1}}",
131131
content: {
132-
text: "Retrieve the list of all past auctions with their details."
132+
text: "Retrieve the list of all past auctions with their details.",
133133
},
134134
},
135135
{
@@ -143,36 +143,36 @@ export const getAuctionsExample = [
143143
basketList: [
144144
{
145145
denom: "inj",
146-
amount: "500000000"
146+
amount: "500000000",
147147
},
148148
{
149149
denom: "usdt",
150-
amount: "1000000"
151-
}
150+
amount: "1000000",
151+
},
152152
],
153153
winningBidAmount: "2500000000",
154154
round: 12,
155155
endTimestamp: 1700000000,
156-
updatedAt: 1700000000
156+
updatedAt: 1700000000,
157157
},
158158
{
159159
winner: "inj1w1nn3raddress2",
160160
basketList: [
161161
{
162162
denom: "inj",
163-
amount: "750000000"
163+
amount: "750000000",
164164
},
165165
{
166166
denom: "usdt",
167-
amount: "1500000"
168-
}
167+
amount: "1500000",
168+
},
169169
],
170170
winningBidAmount: "3500000000",
171171
round: 11,
172172
endTimestamp: 1699996400,
173-
updatedAt: 1699996400
174-
}
175-
]
173+
updatedAt: 1699996400,
174+
},
175+
],
176176
},
177177
},
178178
];
@@ -181,7 +181,7 @@ export const msgBidExample = [
181181
{
182182
user: "{{user1}}",
183183
content: {
184-
text: "Place a bid of 2600000000 INJ_DENOM in auction round 12."
184+
text: "Place a bid of 2600000000 INJ_DENOM in auction round 12.",
185185
},
186186
},
187187
{
@@ -191,8 +191,8 @@ export const msgBidExample = [
191191
action: "PLACE_BID",
192192
content: {
193193
round: 12,
194-
amount: "2600000000"
195-
}
194+
amount: "2600000000",
195+
},
196196
},
197197
},
198198
];
@@ -201,7 +201,7 @@ export const msgBidResponseExample = [
201201
{
202202
user: "{{user1}}",
203203
content: {
204-
text: "Confirm the bid transaction."
204+
text: "Confirm the bid transaction.",
205205
},
206206
},
207207
{
@@ -211,8 +211,8 @@ export const msgBidResponseExample = [
211211
action: "BID_TRANSACTION_RESPONSE",
212212
content: {
213213
txHash: "0xabc123def456ghi789jkl012mno345pqr678stu901vwx234yz",
214-
success: true
215-
}
214+
success: true,
215+
},
216216
},
217217
},
218218
];

0 commit comments

Comments
 (0)