@reflectmoney/junior 1.1.0 → 1.1.1
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.
|
@@ -58,14 +58,19 @@ class JuniorTranche {
|
|
|
58
58
|
if (this.assets?.length > 0) {
|
|
59
59
|
return this.assets;
|
|
60
60
|
}
|
|
61
|
-
const encoder = (0, generated_1.getAssetEncoder)();
|
|
62
61
|
const decoder = (0, generated_1.getAssetDecoder)();
|
|
63
62
|
const programAccounts = await this.connection
|
|
64
63
|
.getProgramAccounts(generated_1.RLP_PROGRAM_ADDRESS, {
|
|
65
64
|
encoding: "base64",
|
|
66
65
|
withContext: false,
|
|
67
66
|
filters: [
|
|
68
|
-
{
|
|
67
|
+
{
|
|
68
|
+
memcmp: {
|
|
69
|
+
encoding: "base64",
|
|
70
|
+
offset: BigInt(0),
|
|
71
|
+
bytes: Buffer.from(generated_1.ASSET_DISCRIMINATOR).toString("base64"),
|
|
72
|
+
},
|
|
73
|
+
},
|
|
69
74
|
],
|
|
70
75
|
})
|
|
71
76
|
.send();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reflectmoney/junior",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "TypeScript SDK for the Reflect Liquid Protection (RLP) program, powering junior tranche of Reflect's two-tranche protection system.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"author": "stablecoinjesus @ Palindrome Engineering",
|