@sonarwatch/portfolio-plugins 0.12.131 → 0.12.132
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/orphanPlatorms.js +7 -0
- package/src/orphanPlatorms.js.map +1 -1
- package/src/plugins/quarry/constants.d.ts +2 -0
- package/src/plugins/quarry/constants.js +9 -2
- package/src/plugins/quarry/constants.js.map +1 -1
- package/src/plugins/quarry/quarryRedeemerIdl.d.ts +59 -0
- package/src/plugins/quarry/quarryRedeemerIdl.js +219 -0
- package/src/plugins/quarry/quarryRedeemerIdl.js.map +1 -0
- package/src/plugins/quarry/redeemerIdl.d.ts +18 -18
- package/src/plugins/quarry/redeemerIdl.js +186 -71
- package/src/plugins/quarry/redeemerIdl.js.map +1 -1
- package/src/plugins/quarry/redeemersJob.js +4 -1
- package/src/plugins/quarry/redeemersJob.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.132](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.131...plugins-0.12.132) (2024-08-13)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.12.131](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.130...plugins-0.12.131) (2024-08-12)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
package/src/orphanPlatorms.js
CHANGED
@@ -57,6 +57,13 @@ const otphanPlatforms = [
|
|
57
57
|
image: 'https://sonar.watch/img/platforms/stakewise.webp',
|
58
58
|
website: 'https://stakewise.io/',
|
59
59
|
},
|
60
|
+
{
|
61
|
+
id: 'ondo-finance',
|
62
|
+
defiLlamaId: 'ondo-finance',
|
63
|
+
name: 'Ondo Finance',
|
64
|
+
image: 'https://sonar.watch/img/platforms/ondo-finance.webp',
|
65
|
+
website: 'https://ondo.finance/',
|
66
|
+
},
|
60
67
|
];
|
61
68
|
exports.default = otphanPlatforms;
|
62
69
|
//# sourceMappingURL=orphanPlatorms.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,gDAAgD;QACvD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,yDAAyD;QAChE,OAAO,EAAE,kCAAkC;KAC5C;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,0DAA0D;QACjE,OAAO,EAAE,4DAA4D;KACtE;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,kDAAkD;QACzD,OAAO,EAAE,uBAAuB;KACjC;CACF,CAAC;AACF,kBAAe,eAAe,CAAC"}
|
1
|
+
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,gDAAgD;QACvD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,yDAAyD;QAChE,OAAO,EAAE,kCAAkC;KAC5C;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,0DAA0D;QACjE,OAAO,EAAE,4DAA4D;KACtE;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,kDAAkD;QACzD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,cAAc;QAClB,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,qDAAqD;QAC5D,OAAO,EAAE,uBAAuB;KACjC;CACF,CAAC;AACF,kBAAe,eAAe,CAAC"}
|
@@ -8,7 +8,9 @@ export declare const rewardersCacheKey = "rewarders";
|
|
8
8
|
export declare const rewardersUrl = "https://cdn.jsdelivr.net/gh/QuarryProtocol/rewarder-list-build@master/mainnet-beta/all-rewarders-with-info.json";
|
9
9
|
export declare const mergeMineProgramId: PublicKey;
|
10
10
|
export declare const mineProgramId: PublicKey;
|
11
|
+
export declare const quarryRedeemerProgramId: PublicKey;
|
11
12
|
export declare const redeemerProgramId: PublicKey;
|
12
13
|
export declare const mineIdlItem: IdlItem;
|
13
14
|
export declare const mergeMineIdlItem: IdlItem;
|
15
|
+
export declare const quarryRedeemerIdlItem: IdlItem;
|
14
16
|
export declare const redeemerIdlItem: IdlItem;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.redeemerIdlItem = exports.mergeMineIdlItem = exports.mineIdlItem = exports.redeemerProgramId = exports.mineProgramId = exports.mergeMineProgramId = exports.rewardersUrl = exports.rewardersCacheKey = exports.IOUTokensElementName = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.redeemerIdlItem = exports.quarryRedeemerIdlItem = exports.mergeMineIdlItem = exports.mineIdlItem = exports.redeemerProgramId = exports.quarryRedeemerProgramId = exports.mineProgramId = exports.mergeMineProgramId = exports.rewardersUrl = exports.rewardersCacheKey = exports.IOUTokensElementName = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
const mineIdl_1 = require("./mineIdl");
|
6
6
|
const mergeMineIdl_1 = require("./mergeMineIdl");
|
7
|
+
const quarryRedeemerIdl_1 = require("./quarryRedeemerIdl");
|
7
8
|
const redeemerIdl_1 = require("./redeemerIdl");
|
8
9
|
exports.platformId = 'quarry';
|
9
10
|
exports.platform = {
|
@@ -19,7 +20,8 @@ exports.rewardersCacheKey = `rewarders`;
|
|
19
20
|
exports.rewardersUrl = `https://cdn.jsdelivr.net/gh/QuarryProtocol/rewarder-list-build@master/mainnet-beta/all-rewarders-with-info.json`;
|
20
21
|
exports.mergeMineProgramId = new web3_js_1.PublicKey('QMMD16kjauP5knBwxNUJRZ1Z5o3deBuFrqVjBVmmqto');
|
21
22
|
exports.mineProgramId = new web3_js_1.PublicKey('QMNeHCGYnLVDn1icRAfQZpjPLBNkfGbSKRB83G5d8KB');
|
22
|
-
exports.
|
23
|
+
exports.quarryRedeemerProgramId = new web3_js_1.PublicKey('QRDxhMw1P2NEfiw5mYXG79bwfgHTdasY2xNP76XSea9');
|
24
|
+
exports.redeemerProgramId = new web3_js_1.PublicKey('RDM23yr8pr1kEAmhnFpaabPny6C9UVcEcok3Py5v86X');
|
23
25
|
exports.mineIdlItem = {
|
24
26
|
programId: exports.mineProgramId.toString(),
|
25
27
|
idl: mineIdl_1.mineIdl,
|
@@ -30,6 +32,11 @@ exports.mergeMineIdlItem = {
|
|
30
32
|
idl: mergeMineIdl_1.mergeMineIdl,
|
31
33
|
idlType: 'anchor',
|
32
34
|
};
|
35
|
+
exports.quarryRedeemerIdlItem = {
|
36
|
+
programId: exports.quarryRedeemerProgramId.toString(),
|
37
|
+
idl: quarryRedeemerIdl_1.quarryRedeemerIdl,
|
38
|
+
idlType: 'anchor',
|
39
|
+
};
|
33
40
|
exports.redeemerIdlItem = {
|
34
41
|
programId: exports.redeemerProgramId.toString(),
|
35
42
|
idl: redeemerIdl_1.redeemerIdl,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,uCAAoC;AACpC,iDAA8C;AAC9C,+CAA4C;AAE/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,wBAAwB;IACjC,2CAA2C;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AAEW,QAAA,oBAAoB,GAAG,YAAY,CAAC;AAEpC,QAAA,iBAAiB,GAAG,WAAW,CAAC;AAChC,QAAA,YAAY,GAAG,iHAAiH,CAAC;AACjI,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,6CAA6C,CAC9C,CAAC;AACW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,qBAAa,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,iBAAO;IACZ,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,0BAAkB,CAAC,QAAQ,EAAE;IACxC,GAAG,EAAE,2BAAY;IACjB,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,eAAe,GAAG;IAC7B,SAAS,EAAE,yBAAiB,CAAC,QAAQ,EAAE;IACvC,GAAG,EAAE,yBAAW;IAChB,OAAO,EAAE,QAAQ;CACP,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,uCAAoC;AACpC,iDAA8C;AAC9C,2DAAwD;AACxD,+CAA4C;AAE/B,QAAA,UAAU,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ions: {
|
5
|
+
name: string;
|
6
|
+
accounts: ({
|
7
|
+
name: string;
|
8
|
+
isMut: boolean;
|
9
|
+
isSigner: boolean;
|
10
|
+
pda: {
|
11
|
+
seeds: ({
|
12
|
+
kind: string;
|
13
|
+
type: string;
|
14
|
+
value: string;
|
15
|
+
account?: undefined;
|
16
|
+
path?: undefined;
|
17
|
+
} | {
|
18
|
+
kind: string;
|
19
|
+
type: string;
|
20
|
+
account: string;
|
21
|
+
path: string;
|
22
|
+
value?: undefined;
|
23
|
+
})[];
|
24
|
+
};
|
25
|
+
} | {
|
26
|
+
name: string;
|
27
|
+
isMut: boolean;
|
28
|
+
isSigner: boolean;
|
29
|
+
pda?: undefined;
|
30
|
+
})[];
|
31
|
+
args: {
|
32
|
+
name: string;
|
33
|
+
type: string;
|
34
|
+
}[];
|
35
|
+
}[];
|
36
|
+
accounts: {
|
37
|
+
name: string;
|
38
|
+
type: {
|
39
|
+
kind: string;
|
40
|
+
fields: {
|
41
|
+
name: string;
|
42
|
+
type: string;
|
43
|
+
}[];
|
44
|
+
};
|
45
|
+
}[];
|
46
|
+
events: {
|
47
|
+
name: string;
|
48
|
+
fields: {
|
49
|
+
name: string;
|
50
|
+
type: string;
|
51
|
+
index: boolean;
|
52
|
+
}[];
|
53
|
+
}[];
|
54
|
+
errors: {
|
55
|
+
code: number;
|
56
|
+
name: string;
|
57
|
+
msg: string;
|
58
|
+
}[];
|
59
|
+
};
|
@@ -0,0 +1,219 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.quarryRedeemerIdl = void 0;
|
4
|
+
exports.quarryRedeemerIdl = {
|
5
|
+
version: '5.0.2',
|
6
|
+
name: 'quarry_redeemer',
|
7
|
+
instructions: [
|
8
|
+
{
|
9
|
+
name: 'createRedeemer',
|
10
|
+
accounts: [
|
11
|
+
{
|
12
|
+
name: 'redeemer',
|
13
|
+
isMut: !0,
|
14
|
+
isSigner: !1,
|
15
|
+
pda: {
|
16
|
+
seeds: [
|
17
|
+
{
|
18
|
+
kind: 'const',
|
19
|
+
type: 'string',
|
20
|
+
value: 'Redeemer',
|
21
|
+
},
|
22
|
+
{
|
23
|
+
kind: 'account',
|
24
|
+
type: 'publicKey',
|
25
|
+
account: 'Mint',
|
26
|
+
path: 'iou_mint',
|
27
|
+
},
|
28
|
+
{
|
29
|
+
kind: 'account',
|
30
|
+
type: 'publicKey',
|
31
|
+
account: 'Mint',
|
32
|
+
path: 'redemption_mint',
|
33
|
+
},
|
34
|
+
],
|
35
|
+
},
|
36
|
+
},
|
37
|
+
{
|
38
|
+
name: 'iouMint',
|
39
|
+
isMut: !1,
|
40
|
+
isSigner: !1,
|
41
|
+
},
|
42
|
+
{
|
43
|
+
name: 'redemptionMint',
|
44
|
+
isMut: !1,
|
45
|
+
isSigner: !1,
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: 'payer',
|
49
|
+
isMut: !0,
|
50
|
+
isSigner: !0,
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: 'systemProgram',
|
54
|
+
isMut: !1,
|
55
|
+
isSigner: !1,
|
56
|
+
},
|
57
|
+
],
|
58
|
+
args: [
|
59
|
+
{
|
60
|
+
name: 'bump',
|
61
|
+
type: 'u8',
|
62
|
+
},
|
63
|
+
],
|
64
|
+
},
|
65
|
+
{
|
66
|
+
name: 'redeemTokens',
|
67
|
+
accounts: [
|
68
|
+
{
|
69
|
+
name: 'redeemer',
|
70
|
+
isMut: !0,
|
71
|
+
isSigner: !1,
|
72
|
+
},
|
73
|
+
{
|
74
|
+
name: 'sourceAuthority',
|
75
|
+
isMut: !1,
|
76
|
+
isSigner: !0,
|
77
|
+
},
|
78
|
+
{
|
79
|
+
name: 'iouMint',
|
80
|
+
isMut: !0,
|
81
|
+
isSigner: !1,
|
82
|
+
},
|
83
|
+
{
|
84
|
+
name: 'iouSource',
|
85
|
+
isMut: !0,
|
86
|
+
isSigner: !1,
|
87
|
+
},
|
88
|
+
{
|
89
|
+
name: 'redemptionVault',
|
90
|
+
isMut: !0,
|
91
|
+
isSigner: !1,
|
92
|
+
},
|
93
|
+
{
|
94
|
+
name: 'redemptionDestination',
|
95
|
+
isMut: !0,
|
96
|
+
isSigner: !1,
|
97
|
+
},
|
98
|
+
{
|
99
|
+
name: 'tokenProgram',
|
100
|
+
isMut: !1,
|
101
|
+
isSigner: !1,
|
102
|
+
},
|
103
|
+
],
|
104
|
+
args: [
|
105
|
+
{
|
106
|
+
name: 'amount',
|
107
|
+
type: 'u64',
|
108
|
+
},
|
109
|
+
],
|
110
|
+
},
|
111
|
+
{
|
112
|
+
name: 'redeemAllTokens',
|
113
|
+
accounts: [
|
114
|
+
{
|
115
|
+
name: 'redeemer',
|
116
|
+
isMut: !0,
|
117
|
+
isSigner: !1,
|
118
|
+
},
|
119
|
+
{
|
120
|
+
name: 'sourceAuthority',
|
121
|
+
isMut: !1,
|
122
|
+
isSigner: !0,
|
123
|
+
},
|
124
|
+
{
|
125
|
+
name: 'iouMint',
|
126
|
+
isMut: !0,
|
127
|
+
isSigner: !1,
|
128
|
+
},
|
129
|
+
{
|
130
|
+
name: 'iouSource',
|
131
|
+
isMut: !0,
|
132
|
+
isSigner: !1,
|
133
|
+
},
|
134
|
+
{
|
135
|
+
name: 'redemptionVault',
|
136
|
+
isMut: !0,
|
137
|
+
isSigner: !1,
|
138
|
+
},
|
139
|
+
{
|
140
|
+
name: 'redemptionDestination',
|
141
|
+
isMut: !0,
|
142
|
+
isSigner: !1,
|
143
|
+
},
|
144
|
+
{
|
145
|
+
name: 'tokenProgram',
|
146
|
+
isMut: !1,
|
147
|
+
isSigner: !1,
|
148
|
+
},
|
149
|
+
],
|
150
|
+
args: [],
|
151
|
+
},
|
152
|
+
],
|
153
|
+
accounts: [
|
154
|
+
{
|
155
|
+
name: 'Redeemer',
|
156
|
+
type: {
|
157
|
+
kind: 'struct',
|
158
|
+
fields: [
|
159
|
+
{
|
160
|
+
name: 'iouMint',
|
161
|
+
type: 'publicKey',
|
162
|
+
},
|
163
|
+
{
|
164
|
+
name: 'redemptionMint',
|
165
|
+
type: 'publicKey',
|
166
|
+
},
|
167
|
+
{
|
168
|
+
name: 'bump',
|
169
|
+
type: 'u8',
|
170
|
+
},
|
171
|
+
{
|
172
|
+
name: 'totalTokensRedeemed',
|
173
|
+
type: 'u64',
|
174
|
+
},
|
175
|
+
],
|
176
|
+
},
|
177
|
+
},
|
178
|
+
],
|
179
|
+
events: [
|
180
|
+
{
|
181
|
+
name: 'RedeemTokensEvent',
|
182
|
+
fields: [
|
183
|
+
{
|
184
|
+
name: 'user',
|
185
|
+
type: 'publicKey',
|
186
|
+
index: !1,
|
187
|
+
},
|
188
|
+
{
|
189
|
+
name: 'iouMint',
|
190
|
+
type: 'publicKey',
|
191
|
+
index: !1,
|
192
|
+
},
|
193
|
+
{
|
194
|
+
name: 'redemptionMint',
|
195
|
+
type: 'publicKey',
|
196
|
+
index: !1,
|
197
|
+
},
|
198
|
+
{
|
199
|
+
name: 'amount',
|
200
|
+
type: 'u64',
|
201
|
+
index: !1,
|
202
|
+
},
|
203
|
+
{
|
204
|
+
name: 'timestamp',
|
205
|
+
type: 'i64',
|
206
|
+
index: !1,
|
207
|
+
},
|
208
|
+
],
|
209
|
+
},
|
210
|
+
],
|
211
|
+
errors: [
|
212
|
+
{
|
213
|
+
code: 6e3,
|
214
|
+
name: 'Unauthorized',
|
215
|
+
msg: 'Unauthorized.',
|
216
|
+
},
|
217
|
+
],
|
218
|
+
};
|
219
|
+
//# sourceMappingURL=quarryRedeemerIdl.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quarryRedeemerIdl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/quarryRedeemerIdl.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,iBAAiB;IACvB,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,gBAAgB;YAC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ts: ({
|
7
7
|
name: string;
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
8
|
+
accounts: ({
|
9
|
+
name: string;
|
10
|
+
isMut: boolean;
|
11
|
+
isSigner: boolean;
|
12
|
+
accounts?: undefined;
|
13
|
+
} | {
|
14
|
+
name: string;
|
15
|
+
accounts: {
|
16
|
+
name: string;
|
17
|
+
isMut: boolean;
|
18
|
+
isSigner: boolean;
|
19
|
+
}[];
|
20
|
+
isMut?: undefined;
|
21
|
+
isSigner?: undefined;
|
22
|
+
})[];
|
23
|
+
isMut?: undefined;
|
24
|
+
isSigner?: undefined;
|
25
25
|
} | {
|
26
26
|
name: string;
|
27
27
|
isMut: boolean;
|
28
28
|
isSigner: boolean;
|
29
|
-
|
29
|
+
accounts?: undefined;
|
30
30
|
})[];
|
31
31
|
args: {
|
32
32
|
name: string;
|
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.redeemerIdl = void 0;
|
4
4
|
exports.redeemerIdl = {
|
5
|
-
version: '
|
6
|
-
name: '
|
5
|
+
version: '1.1.2',
|
6
|
+
name: 'redeemer',
|
7
7
|
instructions: [
|
8
8
|
{
|
9
9
|
name: 'createRedeemer',
|
@@ -12,37 +12,26 @@ exports.redeemerIdl = {
|
|
12
12
|
name: 'redeemer',
|
13
13
|
isMut: !0,
|
14
14
|
isSigner: !1,
|
15
|
-
pda: {
|
16
|
-
seeds: [
|
17
|
-
{
|
18
|
-
kind: 'const',
|
19
|
-
type: 'string',
|
20
|
-
value: 'Redeemer',
|
21
|
-
},
|
22
|
-
{
|
23
|
-
kind: 'account',
|
24
|
-
type: 'publicKey',
|
25
|
-
account: 'Mint',
|
26
|
-
path: 'iou_mint',
|
27
|
-
},
|
28
|
-
{
|
29
|
-
kind: 'account',
|
30
|
-
type: 'publicKey',
|
31
|
-
account: 'Mint',
|
32
|
-
path: 'redemption_mint',
|
33
|
-
},
|
34
|
-
],
|
35
|
-
},
|
36
15
|
},
|
37
16
|
{
|
38
|
-
name: '
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
17
|
+
name: 'tokens',
|
18
|
+
accounts: [
|
19
|
+
{
|
20
|
+
name: 'iouMint',
|
21
|
+
isMut: !1,
|
22
|
+
isSigner: !1,
|
23
|
+
},
|
24
|
+
{
|
25
|
+
name: 'redemptionMint',
|
26
|
+
isMut: !1,
|
27
|
+
isSigner: !1,
|
28
|
+
},
|
29
|
+
{
|
30
|
+
name: 'redemptionVault',
|
31
|
+
isMut: !1,
|
32
|
+
isSigner: !1,
|
33
|
+
},
|
34
|
+
],
|
46
35
|
},
|
47
36
|
{
|
48
37
|
name: 'payer',
|
@@ -67,39 +56,130 @@ exports.redeemerIdl = {
|
|
67
56
|
accounts: [
|
68
57
|
{
|
69
58
|
name: 'redeemer',
|
70
|
-
isMut: !
|
59
|
+
isMut: !1,
|
71
60
|
isSigner: !1,
|
72
61
|
},
|
62
|
+
{
|
63
|
+
name: 'tokens',
|
64
|
+
accounts: [
|
65
|
+
{
|
66
|
+
name: 'iouMint',
|
67
|
+
isMut: !0,
|
68
|
+
isSigner: !1,
|
69
|
+
},
|
70
|
+
{
|
71
|
+
name: 'redemptionMint',
|
72
|
+
isMut: !0,
|
73
|
+
isSigner: !1,
|
74
|
+
},
|
75
|
+
{
|
76
|
+
name: 'redemptionVault',
|
77
|
+
isMut: !0,
|
78
|
+
isSigner: !1,
|
79
|
+
},
|
80
|
+
{
|
81
|
+
name: 'tokenProgram',
|
82
|
+
isMut: !1,
|
83
|
+
isSigner: !1,
|
84
|
+
},
|
85
|
+
],
|
86
|
+
},
|
73
87
|
{
|
74
88
|
name: 'sourceAuthority',
|
75
89
|
isMut: !1,
|
76
90
|
isSigner: !0,
|
77
91
|
},
|
78
92
|
{
|
79
|
-
name: '
|
93
|
+
name: 'iouSource',
|
80
94
|
isMut: !0,
|
81
95
|
isSigner: !1,
|
82
96
|
},
|
83
97
|
{
|
84
|
-
name: '
|
98
|
+
name: 'redemptionDestination',
|
85
99
|
isMut: !0,
|
86
100
|
isSigner: !1,
|
87
101
|
},
|
102
|
+
],
|
103
|
+
args: [
|
88
104
|
{
|
89
|
-
name: '
|
90
|
-
|
105
|
+
name: 'amount',
|
106
|
+
type: 'u64',
|
107
|
+
},
|
108
|
+
],
|
109
|
+
},
|
110
|
+
{
|
111
|
+
name: 'redeemTokensFromMintProxy',
|
112
|
+
accounts: [
|
113
|
+
{
|
114
|
+
name: 'redeemCtx',
|
115
|
+
accounts: [
|
116
|
+
{
|
117
|
+
name: 'redeemer',
|
118
|
+
isMut: !1,
|
119
|
+
isSigner: !1,
|
120
|
+
},
|
121
|
+
{
|
122
|
+
name: 'tokens',
|
123
|
+
accounts: [
|
124
|
+
{
|
125
|
+
name: 'iouMint',
|
126
|
+
isMut: !0,
|
127
|
+
isSigner: !1,
|
128
|
+
},
|
129
|
+
{
|
130
|
+
name: 'redemptionMint',
|
131
|
+
isMut: !0,
|
132
|
+
isSigner: !1,
|
133
|
+
},
|
134
|
+
{
|
135
|
+
name: 'redemptionVault',
|
136
|
+
isMut: !0,
|
137
|
+
isSigner: !1,
|
138
|
+
},
|
139
|
+
{
|
140
|
+
name: 'tokenProgram',
|
141
|
+
isMut: !1,
|
142
|
+
isSigner: !1,
|
143
|
+
},
|
144
|
+
],
|
145
|
+
},
|
146
|
+
{
|
147
|
+
name: 'sourceAuthority',
|
148
|
+
isMut: !1,
|
149
|
+
isSigner: !0,
|
150
|
+
},
|
151
|
+
{
|
152
|
+
name: 'iouSource',
|
153
|
+
isMut: !0,
|
154
|
+
isSigner: !1,
|
155
|
+
},
|
156
|
+
{
|
157
|
+
name: 'redemptionDestination',
|
158
|
+
isMut: !0,
|
159
|
+
isSigner: !1,
|
160
|
+
},
|
161
|
+
],
|
162
|
+
},
|
163
|
+
{
|
164
|
+
name: 'mintProxyState',
|
165
|
+
isMut: !1,
|
91
166
|
isSigner: !1,
|
92
167
|
},
|
93
168
|
{
|
94
|
-
name: '
|
95
|
-
isMut: !
|
169
|
+
name: 'proxyMintAuthority',
|
170
|
+
isMut: !1,
|
96
171
|
isSigner: !1,
|
97
172
|
},
|
98
173
|
{
|
99
|
-
name: '
|
174
|
+
name: 'mintProxyProgram',
|
100
175
|
isMut: !1,
|
101
176
|
isSigner: !1,
|
102
177
|
},
|
178
|
+
{
|
179
|
+
name: 'minterInfo',
|
180
|
+
isMut: !0,
|
181
|
+
isSigner: !1,
|
182
|
+
},
|
103
183
|
],
|
104
184
|
args: [
|
105
185
|
{
|
@@ -109,43 +189,78 @@ exports.redeemerIdl = {
|
|
109
189
|
],
|
110
190
|
},
|
111
191
|
{
|
112
|
-
name: '
|
192
|
+
name: 'redeemAllTokensFromMintProxy',
|
113
193
|
accounts: [
|
114
194
|
{
|
115
|
-
name: '
|
116
|
-
|
117
|
-
|
195
|
+
name: 'redeemCtx',
|
196
|
+
accounts: [
|
197
|
+
{
|
198
|
+
name: 'redeemer',
|
199
|
+
isMut: !1,
|
200
|
+
isSigner: !1,
|
201
|
+
},
|
202
|
+
{
|
203
|
+
name: 'tokens',
|
204
|
+
accounts: [
|
205
|
+
{
|
206
|
+
name: 'iouMint',
|
207
|
+
isMut: !0,
|
208
|
+
isSigner: !1,
|
209
|
+
},
|
210
|
+
{
|
211
|
+
name: 'redemptionMint',
|
212
|
+
isMut: !0,
|
213
|
+
isSigner: !1,
|
214
|
+
},
|
215
|
+
{
|
216
|
+
name: 'redemptionVault',
|
217
|
+
isMut: !0,
|
218
|
+
isSigner: !1,
|
219
|
+
},
|
220
|
+
{
|
221
|
+
name: 'tokenProgram',
|
222
|
+
isMut: !1,
|
223
|
+
isSigner: !1,
|
224
|
+
},
|
225
|
+
],
|
226
|
+
},
|
227
|
+
{
|
228
|
+
name: 'sourceAuthority',
|
229
|
+
isMut: !1,
|
230
|
+
isSigner: !0,
|
231
|
+
},
|
232
|
+
{
|
233
|
+
name: 'iouSource',
|
234
|
+
isMut: !0,
|
235
|
+
isSigner: !1,
|
236
|
+
},
|
237
|
+
{
|
238
|
+
name: 'redemptionDestination',
|
239
|
+
isMut: !0,
|
240
|
+
isSigner: !1,
|
241
|
+
},
|
242
|
+
],
|
118
243
|
},
|
119
244
|
{
|
120
|
-
name: '
|
245
|
+
name: 'mintProxyState',
|
121
246
|
isMut: !1,
|
122
|
-
isSigner: !0,
|
123
|
-
},
|
124
|
-
{
|
125
|
-
name: 'iouMint',
|
126
|
-
isMut: !0,
|
127
247
|
isSigner: !1,
|
128
248
|
},
|
129
249
|
{
|
130
|
-
name: '
|
131
|
-
isMut: !
|
250
|
+
name: 'proxyMintAuthority',
|
251
|
+
isMut: !1,
|
132
252
|
isSigner: !1,
|
133
253
|
},
|
134
254
|
{
|
135
|
-
name: '
|
136
|
-
isMut: !
|
255
|
+
name: 'mintProxyProgram',
|
256
|
+
isMut: !1,
|
137
257
|
isSigner: !1,
|
138
258
|
},
|
139
259
|
{
|
140
|
-
name: '
|
260
|
+
name: 'minterInfo',
|
141
261
|
isMut: !0,
|
142
262
|
isSigner: !1,
|
143
263
|
},
|
144
|
-
{
|
145
|
-
name: 'tokenProgram',
|
146
|
-
isMut: !1,
|
147
|
-
isSigner: !1,
|
148
|
-
},
|
149
264
|
],
|
150
265
|
args: [],
|
151
266
|
},
|
@@ -156,6 +271,10 @@ exports.redeemerIdl = {
|
|
156
271
|
type: {
|
157
272
|
kind: 'struct',
|
158
273
|
fields: [
|
274
|
+
{
|
275
|
+
name: 'bump',
|
276
|
+
type: 'u8',
|
277
|
+
},
|
159
278
|
{
|
160
279
|
name: 'iouMint',
|
161
280
|
type: 'publicKey',
|
@@ -165,12 +284,8 @@ exports.redeemerIdl = {
|
|
165
284
|
type: 'publicKey',
|
166
285
|
},
|
167
286
|
{
|
168
|
-
name: '
|
169
|
-
type: '
|
170
|
-
},
|
171
|
-
{
|
172
|
-
name: 'totalTokensRedeemed',
|
173
|
-
type: 'u64',
|
287
|
+
name: 'redemptionVault',
|
288
|
+
type: 'publicKey',
|
174
289
|
},
|
175
290
|
],
|
176
291
|
},
|
@@ -191,7 +306,7 @@ exports.redeemerIdl = {
|
|
191
306
|
index: !1,
|
192
307
|
},
|
193
308
|
{
|
194
|
-
name: '
|
309
|
+
name: 'destinationMint',
|
195
310
|
type: 'publicKey',
|
196
311
|
index: !1,
|
197
312
|
},
|
@@ -200,11 +315,6 @@ exports.redeemerIdl = {
|
|
200
315
|
type: 'u64',
|
201
316
|
index: !1,
|
202
317
|
},
|
203
|
-
{
|
204
|
-
name: 'timestamp',
|
205
|
-
type: 'i64',
|
206
|
-
index: !1,
|
207
|
-
},
|
208
318
|
],
|
209
319
|
},
|
210
320
|
],
|
@@ -214,6 +324,11 @@ exports.redeemerIdl = {
|
|
214
324
|
name: 'Unauthorized',
|
215
325
|
msg: 'Unauthorized.',
|
216
326
|
},
|
327
|
+
{
|
328
|
+
code: 6001,
|
329
|
+
name: 'DecimalsMismatch',
|
330
|
+
msg: 'Redemption token and IOU token decimals must match',
|
331
|
+
},
|
217
332
|
],
|
218
333
|
};
|
219
334
|
//# sourceMappingURL=redeemerIdl.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"redeemerIdl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/redeemerIdl.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"redeemerIdl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/redeemerIdl.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE;QACZ;YACE,IAAI,EAAE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gB;wBACtB,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,iBAAiB;wBACvB,IAAI,EAAE,WAAW;qBAClB;iBACF;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN;YACE,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC,CAAC;iBACV;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC,CAAC;iBACV;gBACD;oBACE,IAAI,EAAE,iBAAiB;oBACvB,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC,CAAC;iBACV;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,KAAK;oBACX,KAAK,EAAE,CAAC,CAAC;iBACV;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN;YACE,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE,eAAe;SACrB;QACD;YACE,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,kBAAkB;YACxB,GAAG,EAAE,oDAAoD;SAC1D;KACF;CACF,CAAC"}
|
@@ -15,7 +15,10 @@ const clients_1 = require("../../utils/clients");
|
|
15
15
|
const solana_1 = require("../../utils/solana");
|
16
16
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
17
17
|
const connection = (0, clients_1.getClientSolana)();
|
18
|
-
const accounts = yield
|
18
|
+
const accounts = (yield Promise.all([
|
19
|
+
(0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.quarryRedeemerIdlItem),
|
20
|
+
(0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.redeemerIdlItem),
|
21
|
+
])).flat();
|
19
22
|
if (accounts.length === 0)
|
20
23
|
return;
|
21
24
|
const sources = [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"redeemersJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/redeemersJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AAGzE,
|
1
|
+
{"version":3,"file":"redeemersJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/redeemersJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AAGzE,2CAKqB;AAErB,iDAAsD;AACtD,+CAAkE;AAElE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,CACf,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAAW,UAAU,EAAE,iCAAqB,CAAC;QACzE,IAAA,qCAA4B,EAAW,UAAU,EAAE,2BAAe,CAAC;KACpE,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;IAET,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAElC,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACjD,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,EACzC,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,MAAM,oBAAoB,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACjE,IAAI,CAAC,oBAAoB;YAAE,OAAO;QAElC,OAAO,CAAC,IAAI,CAAC;YACX,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,QAAQ,EAAE,oBAAoB,CAAC,QAAQ;YACvC,EAAE,EAAE,sBAAU;YACd,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAA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