@metatrongg/sdk 0.8.0-dev.7a9d6ea → 0.8.0-dev.8266b7d
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/browser/index.d.ts +57 -3
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +477 -9
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +57 -3
- package/dist/node/index.js +1 -1
- package/dist/webhook/express.js +1 -1
- package/dist/webhook/fastify.js +1 -1
- package/dist/webhook/hono.js +1 -1
- package/dist/webhook/index.js +1 -1
- package/package.json +4 -4
package/dist/browser/index.d.ts
CHANGED
|
@@ -733,7 +733,11 @@ type ActivityRow = ({
|
|
|
733
733
|
kind: "referral_earning";
|
|
734
734
|
} & ActivityRowReferralEarning) | ({
|
|
735
735
|
kind: "nft_charge";
|
|
736
|
-
} & ActivityRowNftCharge)
|
|
736
|
+
} & ActivityRowNftCharge) | ({
|
|
737
|
+
kind: "solana_stake";
|
|
738
|
+
} & ActivityRowSolanaStake) | ({
|
|
739
|
+
kind: "solana_pot_leg";
|
|
740
|
+
} & ActivityRowSolanaPotLeg);
|
|
737
741
|
type ActivityRowPayment = {
|
|
738
742
|
kind: "payment";
|
|
739
743
|
groupId: string | null;
|
|
@@ -1061,6 +1065,56 @@ type ActivityRowNftCharge = {
|
|
|
1061
1065
|
counterpartyHandle: string | null;
|
|
1062
1066
|
counterpartyDisplayName: string | null;
|
|
1063
1067
|
};
|
|
1068
|
+
type ActivityRowSolanaStake = {
|
|
1069
|
+
kind: "solana_stake";
|
|
1070
|
+
groupId: string | null;
|
|
1071
|
+
id: string;
|
|
1072
|
+
chain: string;
|
|
1073
|
+
occurredAt: string;
|
|
1074
|
+
role: "outgoing" | "incoming";
|
|
1075
|
+
amount: string;
|
|
1076
|
+
token: string;
|
|
1077
|
+
potId: string | null;
|
|
1078
|
+
usdCents: number;
|
|
1079
|
+
status: "completed";
|
|
1080
|
+
txHash: string | null;
|
|
1081
|
+
app: {
|
|
1082
|
+
id: string;
|
|
1083
|
+
name: string;
|
|
1084
|
+
logoUrl: string | null;
|
|
1085
|
+
slug: string | null;
|
|
1086
|
+
bannerUrl: string | null;
|
|
1087
|
+
} | null;
|
|
1088
|
+
stakerUserId?: string | null;
|
|
1089
|
+
stakerHandle?: string | null;
|
|
1090
|
+
stakerDisplayName?: string | null;
|
|
1091
|
+
metadata?: PaymentMetadata | null;
|
|
1092
|
+
};
|
|
1093
|
+
type ActivityRowSolanaPotLeg = {
|
|
1094
|
+
kind: "solana_pot_leg";
|
|
1095
|
+
groupId: string | null;
|
|
1096
|
+
id: string;
|
|
1097
|
+
chain: string;
|
|
1098
|
+
occurredAt: string;
|
|
1099
|
+
role: "outgoing" | "incoming";
|
|
1100
|
+
beneficiary: string;
|
|
1101
|
+
potId: string | null;
|
|
1102
|
+
amount: string;
|
|
1103
|
+
token: string;
|
|
1104
|
+
usdCents: number | null;
|
|
1105
|
+
status: "settled";
|
|
1106
|
+
app: {
|
|
1107
|
+
id: string;
|
|
1108
|
+
name: string;
|
|
1109
|
+
logoUrl: string | null;
|
|
1110
|
+
slug: string | null;
|
|
1111
|
+
bannerUrl: string | null;
|
|
1112
|
+
} | null;
|
|
1113
|
+
txHash: string | null;
|
|
1114
|
+
recipientUserId?: string | null;
|
|
1115
|
+
recipientHandle?: string | null;
|
|
1116
|
+
recipientDisplayName?: string | null;
|
|
1117
|
+
};
|
|
1064
1118
|
type OutstandingResponse = {
|
|
1065
1119
|
rows: Array<OutstandingByToken>;
|
|
1066
1120
|
};
|
|
@@ -2243,7 +2297,7 @@ type DeveloperAppWalletsResponse = {
|
|
|
2243
2297
|
};
|
|
2244
2298
|
type DeveloperAppWalletItem = {
|
|
2245
2299
|
chain: string;
|
|
2246
|
-
address: string;
|
|
2300
|
+
address: string | string;
|
|
2247
2301
|
custody: "server" | null;
|
|
2248
2302
|
walletId: string | null;
|
|
2249
2303
|
autoSweepEnabled: boolean;
|
|
@@ -2264,7 +2318,7 @@ type DeveloperAppProvisionWalletResponse = {
|
|
|
2264
2318
|
chain: string;
|
|
2265
2319
|
custody: "server";
|
|
2266
2320
|
walletId: string;
|
|
2267
|
-
address: string;
|
|
2321
|
+
address: string | string;
|
|
2268
2322
|
};
|
|
2269
2323
|
type DeveloperAppWithdrawResponse = {
|
|
2270
2324
|
appId: string;
|