gondi 0.48.0 → 0.50.0
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/index.mjs +452 -53
- package/dist/index.mjs.map +4 -4
- package/dist/src/clients/api/index.d.ts +8 -2
- package/dist/src/clients/api/sdk.d.ts +3 -0
- package/dist/src/clients/contracts/MslV5.d.ts +3 -1
- package/dist/src/clients/contracts/MslV6.d.ts +2 -1
- package/dist/src/generated/graphql/index.d.ts +399 -7
- package/dist/src/gondi.d.ts +159 -4
- package/dist/src/index.d.ts +1 -0
- package/dist/src/utils/delegation.d.ts +21 -0
- package/dist/tests/utils/gondiStub.d.ts +61 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
2
|
import { getSdkApollo } from '../../clients/api/sdk';
|
|
3
3
|
import { Wallet } from '../../clients/contracts';
|
|
4
|
-
import { BnplOrderInput, BulkNftOrdersInput, CollectionOrderInput, CollectionSignedOfferInput, DealInput, ListListingsQueryVariables, ListLoansQueryVariables, ListOffersQueryVariables, LoanOfferPublicationInput, NftOrderInput, RenegotiationOfferInput, SingleNftOfferInput, SingleNftOrderInput, SingleNftSignedOfferInput, TraitOrderInput, TraitSignedOfferInput } from '../../generated/graphql';
|
|
4
|
+
import { BnplOrderInput, BulkNftOrdersInput, CollectionOrderInput, CollectionSignedOfferInput, DealInput, ListListingsQueryVariables, ListLoansQueryVariables, ListOffersQueryVariables, LoanOfferPublicationInput, NftOrderInput, NftSetOrderInput, RenegotiationOfferInput, SingleNftOfferInput, SingleNftOrderInput, SingleNftSignedOfferInput, TraitOrderInput, TraitSignedOfferInput } from '../../generated/graphql';
|
|
5
5
|
import { OnStepChange } from '../../gondi';
|
|
6
6
|
import { RenegotiationOffer } from '../../model';
|
|
7
7
|
export type Props = {
|
|
@@ -162,7 +162,7 @@ export declare class Api {
|
|
|
162
162
|
nftCollateralAddress: `0x${string}`;
|
|
163
163
|
nftCollateralTokenId: bigint;
|
|
164
164
|
}>;
|
|
165
|
-
publishOrder(orderInput: SingleNftOrderInput | CollectionOrderInput | TraitOrderInput): Promise<{
|
|
165
|
+
publishOrder(orderInput: SingleNftOrderInput | CollectionOrderInput | TraitOrderInput | NftSetOrderInput): Promise<{
|
|
166
166
|
__typename?: "MultipleTraitOrder";
|
|
167
167
|
id: string;
|
|
168
168
|
status: string;
|
|
@@ -190,6 +190,12 @@ export declare class Api {
|
|
|
190
190
|
status: string;
|
|
191
191
|
signature: import("viem").Hex;
|
|
192
192
|
marketPlaceAddress: import("viem").Address;
|
|
193
|
+
} | {
|
|
194
|
+
__typename?: "SetBidOrder";
|
|
195
|
+
id: string;
|
|
196
|
+
status: string;
|
|
197
|
+
signature: import("viem").Hex;
|
|
198
|
+
marketPlaceAddress: import("viem").Address;
|
|
193
199
|
} | {
|
|
194
200
|
__typename?: "CollectionOrder";
|
|
195
201
|
id: string;
|
|
@@ -61,6 +61,9 @@ export declare function getSdkApollo<C>(client: ApolloClient<C>, onStepChange?:
|
|
|
61
61
|
publishOrderForNft(variables: import("../../generated/graphql").Exact<{
|
|
62
62
|
orderInput: import("../../generated/graphql").SingleNftOrderInput;
|
|
63
63
|
}>, options?: {} | undefined): Promise<import("../../generated/graphql").PublishOrderForNftMutation>;
|
|
64
|
+
publishOrderForNftSet(variables: import("../../generated/graphql").Exact<{
|
|
65
|
+
orderInput: import("../../generated/graphql").NftSetOrderInput;
|
|
66
|
+
}>, options?: {} | undefined): Promise<import("../../generated/graphql").PublishOrderForNftSetMutation>;
|
|
64
67
|
publishOrderForTrait(variables: import("../../generated/graphql").Exact<{
|
|
65
68
|
orderInput: import("../../generated/graphql").TraitOrderInput;
|
|
66
69
|
}>, options?: {} | undefined): Promise<import("../../generated/graphql").PublishOrderForTraitMutation>;
|
|
@@ -3,6 +3,7 @@ import { LoanV5, OfferV5, RenegotiationV5, SignableRepaymentDataV5 } from '../..
|
|
|
3
3
|
import { Wallet } from '../../clients/contracts';
|
|
4
4
|
import { multiSourceLoanABI as multiSourceLoanABIV5 } from '../../generated/blockchain/v5';
|
|
5
5
|
import { EmitLoanArgs } from '../../gondi';
|
|
6
|
+
import { LoanDelegation } from '../../utils/delegation';
|
|
6
7
|
import { BaseContract } from './BaseContract';
|
|
7
8
|
import { MslV6 } from './MslV6';
|
|
8
9
|
type RepayArgs = {
|
|
@@ -205,8 +206,9 @@ export declare class MslV5 extends BaseContract<typeof multiSourceLoanABIV5> {
|
|
|
205
206
|
offerId: string;
|
|
206
207
|
}>;
|
|
207
208
|
}>;
|
|
209
|
+
/** This version's `revokeDelegate` takes no rights, so each delegate is revoked once. */
|
|
208
210
|
revokeDelegationsAndEmitLoan({ delegations, emit, }: {
|
|
209
|
-
delegations:
|
|
211
|
+
delegations: readonly LoanDelegation[];
|
|
210
212
|
emit: EmitLoanArgs;
|
|
211
213
|
}): Promise<{
|
|
212
214
|
txHash: `0x${string}`;
|
|
@@ -5,6 +5,7 @@ import { multiSourceLoanAbi as multiSourceLoanAbiV6 } from '../../generated/bloc
|
|
|
5
5
|
import { multiSourceLoanAbi as multiSourceLoanAbiV7 } from '../../generated/blockchain/v7';
|
|
6
6
|
import { multiSourceLoanAbi as multiSourceLoanAbiV8 } from '../../generated/blockchain/v8';
|
|
7
7
|
import { EmitLoanArgs } from '../../gondi';
|
|
8
|
+
import { LoanDelegation } from '../../utils/delegation';
|
|
8
9
|
import { LoanToMslLoanType } from '../../utils/loan';
|
|
9
10
|
import { BaseContract } from './BaseContract';
|
|
10
11
|
type RepayArgs = {
|
|
@@ -9250,7 +9251,7 @@ export declare class MslV6 extends BaseContract<typeof multiSourceLoanAbiV6 | ty
|
|
|
9250
9251
|
}>;
|
|
9251
9252
|
}>;
|
|
9252
9253
|
revokeDelegationsAndEmitLoan({ delegations, emit, }: {
|
|
9253
|
-
delegations:
|
|
9254
|
+
delegations: readonly LoanDelegation[];
|
|
9254
9255
|
emit: EmitLoanArgs;
|
|
9255
9256
|
}): Promise<{
|
|
9256
9257
|
txHash: `0x${string}`;
|