@gearbox-protocol/sdk 14.5.7 → 14.5.8
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/cjs/plugins/adapters/abi/securitize/iSecuritizeOnRamp.js +73 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeOnRampAdapter.js +98 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGateway.js +149 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.js +144 -0
- package/dist/cjs/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +4 -2
- package/dist/cjs/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +4 -2
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeOnRamp.js +49 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeOnRampAdapter.js +74 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGateway.js +125 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.js +120 -0
- package/dist/esm/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +4 -2
- package/dist/esm/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +4 -2
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeOnRamp.d.ts +67 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeOnRampAdapter.d.ts +107 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGateway.d.ts +183 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.d.ts +185 -0
- package/dist/types/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +174 -2
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +368 -2
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var iSecuritizeOnRamp_exports = {};
|
|
20
|
+
__export(iSecuritizeOnRamp_exports, {
|
|
21
|
+
iSecuritizeOnRampAbi: () => iSecuritizeOnRampAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(iSecuritizeOnRamp_exports);
|
|
24
|
+
const iSecuritizeOnRampAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "calculateDsTokenAmount",
|
|
28
|
+
inputs: [
|
|
29
|
+
{ name: "_liquidityAmount", type: "uint256", internalType: "uint256" }
|
|
30
|
+
],
|
|
31
|
+
outputs: [
|
|
32
|
+
{ name: "dsTokenAmount", type: "uint256", internalType: "uint256" },
|
|
33
|
+
{ name: "rate", type: "uint256", internalType: "uint256" },
|
|
34
|
+
{ name: "fee", type: "uint256", internalType: "uint256" }
|
|
35
|
+
],
|
|
36
|
+
stateMutability: "view"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: "function",
|
|
40
|
+
name: "dsToken",
|
|
41
|
+
inputs: [],
|
|
42
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
43
|
+
stateMutability: "view"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: "function",
|
|
47
|
+
name: "liquidityToken",
|
|
48
|
+
inputs: [],
|
|
49
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
50
|
+
stateMutability: "view"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "function",
|
|
54
|
+
name: "navProvider",
|
|
55
|
+
inputs: [],
|
|
56
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
57
|
+
stateMutability: "view"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: "function",
|
|
61
|
+
name: "swap",
|
|
62
|
+
inputs: [
|
|
63
|
+
{ name: "_liquidityAmount", type: "uint256", internalType: "uint256" },
|
|
64
|
+
{ name: "_minOutAmount", type: "uint256", internalType: "uint256" }
|
|
65
|
+
],
|
|
66
|
+
outputs: [],
|
|
67
|
+
stateMutability: "nonpayable"
|
|
68
|
+
}
|
|
69
|
+
];
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
72
|
+
iSecuritizeOnRampAbi
|
|
73
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var iSecuritizeOnRampAdapter_exports = {};
|
|
20
|
+
__export(iSecuritizeOnRampAdapter_exports, {
|
|
21
|
+
iSecuritizeOnRampAdapterAbi: () => iSecuritizeOnRampAdapterAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(iSecuritizeOnRampAdapter_exports);
|
|
24
|
+
const iSecuritizeOnRampAdapterAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "creditManager",
|
|
35
|
+
inputs: [],
|
|
36
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
37
|
+
stateMutability: "view"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "function",
|
|
41
|
+
name: "dsToken",
|
|
42
|
+
inputs: [],
|
|
43
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
44
|
+
stateMutability: "view"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: "function",
|
|
48
|
+
name: "liquidityToken",
|
|
49
|
+
inputs: [],
|
|
50
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
51
|
+
stateMutability: "view"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: "function",
|
|
55
|
+
name: "serialize",
|
|
56
|
+
inputs: [],
|
|
57
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
58
|
+
stateMutability: "view"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: "function",
|
|
62
|
+
name: "swap",
|
|
63
|
+
inputs: [
|
|
64
|
+
{ name: "liquidityAmount", type: "uint256", internalType: "uint256" },
|
|
65
|
+
{ name: "minOutAmount", type: "uint256", internalType: "uint256" }
|
|
66
|
+
],
|
|
67
|
+
outputs: [{ name: "success", type: "bool", internalType: "bool" }],
|
|
68
|
+
stateMutability: "nonpayable"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: "function",
|
|
72
|
+
name: "swapDiff",
|
|
73
|
+
inputs: [
|
|
74
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
75
|
+
{ name: "rateMinRAY", type: "uint256", internalType: "uint256" }
|
|
76
|
+
],
|
|
77
|
+
outputs: [{ name: "success", type: "bool", internalType: "bool" }],
|
|
78
|
+
stateMutability: "nonpayable"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: "function",
|
|
82
|
+
name: "targetContract",
|
|
83
|
+
inputs: [],
|
|
84
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
85
|
+
stateMutability: "view"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: "function",
|
|
89
|
+
name: "version",
|
|
90
|
+
inputs: [],
|
|
91
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
92
|
+
stateMutability: "view"
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
96
|
+
0 && (module.exports = {
|
|
97
|
+
iSecuritizeOnRampAdapterAbi
|
|
98
|
+
});
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var iSecuritizeRedemptionGateway_exports = {};
|
|
20
|
+
__export(iSecuritizeRedemptionGateway_exports, {
|
|
21
|
+
iSecuritizeRedemptionGatewayAbi: () => iSecuritizeRedemptionGatewayAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(iSecuritizeRedemptionGateway_exports);
|
|
24
|
+
const iSecuritizeRedemptionGatewayAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "claim",
|
|
28
|
+
inputs: [
|
|
29
|
+
{ name: "redeemers", type: "address[]", internalType: "address[]" }
|
|
30
|
+
],
|
|
31
|
+
outputs: [],
|
|
32
|
+
stateMutability: "nonpayable"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "function",
|
|
36
|
+
name: "contractType",
|
|
37
|
+
inputs: [],
|
|
38
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
39
|
+
stateMutability: "view"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: "function",
|
|
43
|
+
name: "dsToken",
|
|
44
|
+
inputs: [],
|
|
45
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
46
|
+
stateMutability: "view"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "function",
|
|
50
|
+
name: "getRedeemers",
|
|
51
|
+
inputs: [{ name: "account", type: "address", internalType: "address" }],
|
|
52
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
53
|
+
stateMutability: "view"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: "function",
|
|
57
|
+
name: "getRedemptionAmount",
|
|
58
|
+
inputs: [{ name: "account", type: "address", internalType: "address" }],
|
|
59
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
60
|
+
stateMutability: "view"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: "function",
|
|
64
|
+
name: "getUnclaimedRedeemers",
|
|
65
|
+
inputs: [{ name: "account", type: "address", internalType: "address" }],
|
|
66
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
67
|
+
stateMutability: "view"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: "function",
|
|
71
|
+
name: "masterRedeemer",
|
|
72
|
+
inputs: [],
|
|
73
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
74
|
+
stateMutability: "view"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "function",
|
|
78
|
+
name: "navProvider",
|
|
79
|
+
inputs: [],
|
|
80
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
81
|
+
stateMutability: "view"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: "function",
|
|
85
|
+
name: "redeem",
|
|
86
|
+
inputs: [
|
|
87
|
+
{ name: "dsTokenAmount", type: "uint256", internalType: "uint256" }
|
|
88
|
+
],
|
|
89
|
+
outputs: [],
|
|
90
|
+
stateMutability: "nonpayable"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "function",
|
|
94
|
+
name: "redemptionAccount",
|
|
95
|
+
inputs: [],
|
|
96
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
97
|
+
stateMutability: "view"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "function",
|
|
101
|
+
name: "securitizeWhitelister",
|
|
102
|
+
inputs: [],
|
|
103
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
104
|
+
stateMutability: "view"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: "function",
|
|
108
|
+
name: "stableCoinToken",
|
|
109
|
+
inputs: [],
|
|
110
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
111
|
+
stateMutability: "view"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: "function",
|
|
115
|
+
name: "transferMaster",
|
|
116
|
+
inputs: [],
|
|
117
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
118
|
+
stateMutability: "view"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: "function",
|
|
122
|
+
name: "transferRedeemer",
|
|
123
|
+
inputs: [
|
|
124
|
+
{ name: "redeemer", type: "address", internalType: "address" },
|
|
125
|
+
{ name: "newAccount", type: "address", internalType: "address" }
|
|
126
|
+
],
|
|
127
|
+
outputs: [],
|
|
128
|
+
stateMutability: "nonpayable"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
type: "function",
|
|
132
|
+
name: "version",
|
|
133
|
+
inputs: [],
|
|
134
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
135
|
+
stateMutability: "view"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: "error",
|
|
139
|
+
name: "MaxUnclaimedRedeemersPerAccountException",
|
|
140
|
+
inputs: []
|
|
141
|
+
},
|
|
142
|
+
{ type: "error", name: "NewAccountNotRegisteredException", inputs: [] },
|
|
143
|
+
{ type: "error", name: "RedeemerNotOwnedByAccountException", inputs: [] },
|
|
144
|
+
{ type: "error", name: "RedeemerTransferNotAllowedException", inputs: [] }
|
|
145
|
+
];
|
|
146
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
147
|
+
0 && (module.exports = {
|
|
148
|
+
iSecuritizeRedemptionGatewayAbi
|
|
149
|
+
});
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var iSecuritizeRedemptionGatewayAdapter_exports = {};
|
|
20
|
+
__export(iSecuritizeRedemptionGatewayAdapter_exports, {
|
|
21
|
+
iSecuritizeRedemptionGatewayAdapterAbi: () => iSecuritizeRedemptionGatewayAdapterAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(iSecuritizeRedemptionGatewayAdapter_exports);
|
|
24
|
+
const iSecuritizeRedemptionGatewayAdapterAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "claim",
|
|
28
|
+
inputs: [
|
|
29
|
+
{ name: "redeemers", type: "address[]", internalType: "address[]" }
|
|
30
|
+
],
|
|
31
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
32
|
+
stateMutability: "nonpayable"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "function",
|
|
36
|
+
name: "contractType",
|
|
37
|
+
inputs: [],
|
|
38
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
39
|
+
stateMutability: "view"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: "function",
|
|
43
|
+
name: "creditManager",
|
|
44
|
+
inputs: [],
|
|
45
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
46
|
+
stateMutability: "view"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "function",
|
|
50
|
+
name: "depositPhantomToken",
|
|
51
|
+
inputs: [
|
|
52
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
53
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
54
|
+
],
|
|
55
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
56
|
+
stateMutability: "nonpayable"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "function",
|
|
60
|
+
name: "dsToken",
|
|
61
|
+
inputs: [],
|
|
62
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
63
|
+
stateMutability: "view"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "function",
|
|
67
|
+
name: "redeem",
|
|
68
|
+
inputs: [
|
|
69
|
+
{ name: "dsTokenAmount", type: "uint256", internalType: "uint256" }
|
|
70
|
+
],
|
|
71
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
72
|
+
stateMutability: "nonpayable"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: "function",
|
|
76
|
+
name: "redeemDiff",
|
|
77
|
+
inputs: [
|
|
78
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
79
|
+
],
|
|
80
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
81
|
+
stateMutability: "nonpayable"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: "function",
|
|
85
|
+
name: "redemptionPhantomToken",
|
|
86
|
+
inputs: [],
|
|
87
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
88
|
+
stateMutability: "view"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: "function",
|
|
92
|
+
name: "serialize",
|
|
93
|
+
inputs: [],
|
|
94
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
95
|
+
stateMutability: "view"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "function",
|
|
99
|
+
name: "stableCoinToken",
|
|
100
|
+
inputs: [],
|
|
101
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
102
|
+
stateMutability: "view"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "function",
|
|
106
|
+
name: "targetContract",
|
|
107
|
+
inputs: [],
|
|
108
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
109
|
+
stateMutability: "view"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "function",
|
|
113
|
+
name: "transferRedeemer",
|
|
114
|
+
inputs: [
|
|
115
|
+
{ name: "redeemer", type: "address", internalType: "address" },
|
|
116
|
+
{ name: "newAccount", type: "address", internalType: "address" }
|
|
117
|
+
],
|
|
118
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
119
|
+
stateMutability: "nonpayable"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: "function",
|
|
123
|
+
name: "version",
|
|
124
|
+
inputs: [],
|
|
125
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
126
|
+
stateMutability: "view"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: "function",
|
|
130
|
+
name: "withdrawPhantomToken",
|
|
131
|
+
inputs: [
|
|
132
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
133
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
134
|
+
],
|
|
135
|
+
outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
|
|
136
|
+
stateMutability: "nonpayable"
|
|
137
|
+
},
|
|
138
|
+
{ type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
|
|
139
|
+
{ type: "error", name: "InvalidRedemptionGatewayException", inputs: [] }
|
|
140
|
+
];
|
|
141
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
142
|
+
0 && (module.exports = {
|
|
143
|
+
iSecuritizeRedemptionGatewayAdapterAbi
|
|
144
|
+
});
|
|
@@ -23,9 +23,11 @@ __export(SecuritizeOnRampAdapterContract_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(SecuritizeOnRampAdapterContract_exports);
|
|
24
24
|
var import_viem = require("viem");
|
|
25
25
|
var import_sdk = require("../../../sdk/index.js");
|
|
26
|
+
var import_iSecuritizeOnRamp = require("../abi/securitize/iSecuritizeOnRamp.js");
|
|
27
|
+
var import_iSecuritizeOnRampAdapter = require("../abi/securitize/iSecuritizeOnRampAdapter.js");
|
|
26
28
|
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
27
|
-
const abi =
|
|
28
|
-
const protocolAbi =
|
|
29
|
+
const abi = import_iSecuritizeOnRampAdapter.iSecuritizeOnRampAdapterAbi;
|
|
30
|
+
const protocolAbi = import_iSecuritizeOnRamp.iSecuritizeOnRampAbi;
|
|
29
31
|
class SecuritizeOnRampAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
30
32
|
#dsToken;
|
|
31
33
|
#liquidityToken;
|
|
@@ -23,9 +23,11 @@ __export(SecuritizeRedemptionGatewayAdapterContract_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(SecuritizeRedemptionGatewayAdapterContract_exports);
|
|
24
24
|
var import_viem = require("viem");
|
|
25
25
|
var import_sdk = require("../../../sdk/index.js");
|
|
26
|
+
var import_iSecuritizeRedemptionGateway = require("../abi/securitize/iSecuritizeRedemptionGateway.js");
|
|
27
|
+
var import_iSecuritizeRedemptionGatewayAdapter = require("../abi/securitize/iSecuritizeRedemptionGatewayAdapter.js");
|
|
26
28
|
var import_AbstractAdapter = require("./AbstractAdapter.js");
|
|
27
|
-
const abi =
|
|
28
|
-
const protocolAbi =
|
|
29
|
+
const abi = import_iSecuritizeRedemptionGatewayAdapter.iSecuritizeRedemptionGatewayAdapterAbi;
|
|
30
|
+
const protocolAbi = import_iSecuritizeRedemptionGateway.iSecuritizeRedemptionGatewayAbi;
|
|
29
31
|
class SecuritizeRedemptionGatewayAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
|
|
30
32
|
#dsToken;
|
|
31
33
|
#stableCoinToken;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const iSecuritizeOnRampAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "calculateDsTokenAmount",
|
|
5
|
+
inputs: [
|
|
6
|
+
{ name: "_liquidityAmount", type: "uint256", internalType: "uint256" }
|
|
7
|
+
],
|
|
8
|
+
outputs: [
|
|
9
|
+
{ name: "dsTokenAmount", type: "uint256", internalType: "uint256" },
|
|
10
|
+
{ name: "rate", type: "uint256", internalType: "uint256" },
|
|
11
|
+
{ name: "fee", type: "uint256", internalType: "uint256" }
|
|
12
|
+
],
|
|
13
|
+
stateMutability: "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: "function",
|
|
17
|
+
name: "dsToken",
|
|
18
|
+
inputs: [],
|
|
19
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
20
|
+
stateMutability: "view"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: "function",
|
|
24
|
+
name: "liquidityToken",
|
|
25
|
+
inputs: [],
|
|
26
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
27
|
+
stateMutability: "view"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "function",
|
|
31
|
+
name: "navProvider",
|
|
32
|
+
inputs: [],
|
|
33
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
34
|
+
stateMutability: "view"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: "function",
|
|
38
|
+
name: "swap",
|
|
39
|
+
inputs: [
|
|
40
|
+
{ name: "_liquidityAmount", type: "uint256", internalType: "uint256" },
|
|
41
|
+
{ name: "_minOutAmount", type: "uint256", internalType: "uint256" }
|
|
42
|
+
],
|
|
43
|
+
outputs: [],
|
|
44
|
+
stateMutability: "nonpayable"
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
export {
|
|
48
|
+
iSecuritizeOnRampAbi
|
|
49
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const iSecuritizeOnRampAdapterAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "contractType",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
7
|
+
stateMutability: "view"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "creditManager",
|
|
12
|
+
inputs: [],
|
|
13
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
14
|
+
stateMutability: "view"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: "function",
|
|
18
|
+
name: "dsToken",
|
|
19
|
+
inputs: [],
|
|
20
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
21
|
+
stateMutability: "view"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "function",
|
|
25
|
+
name: "liquidityToken",
|
|
26
|
+
inputs: [],
|
|
27
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
28
|
+
stateMutability: "view"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "function",
|
|
32
|
+
name: "serialize",
|
|
33
|
+
inputs: [],
|
|
34
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
35
|
+
stateMutability: "view"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "function",
|
|
39
|
+
name: "swap",
|
|
40
|
+
inputs: [
|
|
41
|
+
{ name: "liquidityAmount", type: "uint256", internalType: "uint256" },
|
|
42
|
+
{ name: "minOutAmount", type: "uint256", internalType: "uint256" }
|
|
43
|
+
],
|
|
44
|
+
outputs: [{ name: "success", type: "bool", internalType: "bool" }],
|
|
45
|
+
stateMutability: "nonpayable"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "function",
|
|
49
|
+
name: "swapDiff",
|
|
50
|
+
inputs: [
|
|
51
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
52
|
+
{ name: "rateMinRAY", type: "uint256", internalType: "uint256" }
|
|
53
|
+
],
|
|
54
|
+
outputs: [{ name: "success", type: "bool", internalType: "bool" }],
|
|
55
|
+
stateMutability: "nonpayable"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "function",
|
|
59
|
+
name: "targetContract",
|
|
60
|
+
inputs: [],
|
|
61
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
62
|
+
stateMutability: "view"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: "function",
|
|
66
|
+
name: "version",
|
|
67
|
+
inputs: [],
|
|
68
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
69
|
+
stateMutability: "view"
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
export {
|
|
73
|
+
iSecuritizeOnRampAdapterAbi
|
|
74
|
+
};
|