@0xsequence/metadata 1.10.5 → 1.10.6
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.
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-metadata v0.4.0
|
|
21
|
+
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = 'v1';
|
|
|
31
31
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = '
|
|
34
|
+
const WebRPCSchemaHash = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d';
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -616,19 +616,6 @@ class Collections {
|
|
|
616
616
|
});
|
|
617
617
|
});
|
|
618
618
|
};
|
|
619
|
-
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => {
|
|
620
|
-
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
621
|
-
return buildResponse(res).then(_data => {
|
|
622
|
-
return {
|
|
623
|
-
ok: _data.ok
|
|
624
|
-
};
|
|
625
|
-
});
|
|
626
|
-
}, error => {
|
|
627
|
-
throw WebrpcRequestFailedError.new({
|
|
628
|
-
cause: `fetch(): ${error.message || ''}`
|
|
629
|
-
});
|
|
630
|
-
});
|
|
631
|
-
};
|
|
632
619
|
this.createToken = (args, headers, signal) => {
|
|
633
620
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
634
621
|
return buildResponse(res).then(_data => {
|
|
@@ -818,7 +805,34 @@ class Admin {
|
|
|
818
805
|
return buildResponse(res).then(_data => {
|
|
819
806
|
return {
|
|
820
807
|
page: _data.page,
|
|
821
|
-
|
|
808
|
+
collections: _data.collections
|
|
809
|
+
};
|
|
810
|
+
});
|
|
811
|
+
}, error => {
|
|
812
|
+
throw WebrpcRequestFailedError.new({
|
|
813
|
+
cause: `fetch(): ${error.message || ''}`
|
|
814
|
+
});
|
|
815
|
+
});
|
|
816
|
+
};
|
|
817
|
+
this.linkCollection = (args, headers, signal) => {
|
|
818
|
+
return this.fetch(this.url('LinkCollection'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
819
|
+
return buildResponse(res).then(_data => {
|
|
820
|
+
return {
|
|
821
|
+
ok: _data.ok
|
|
822
|
+
};
|
|
823
|
+
});
|
|
824
|
+
}, error => {
|
|
825
|
+
throw WebrpcRequestFailedError.new({
|
|
826
|
+
cause: `fetch(): ${error.message || ''}`
|
|
827
|
+
});
|
|
828
|
+
});
|
|
829
|
+
};
|
|
830
|
+
this.listLinkedContracts = (args, headers, signal) => {
|
|
831
|
+
return this.fetch(this.url('ListLinkedContracts'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
832
|
+
return buildResponse(res).then(_data => {
|
|
833
|
+
return {
|
|
834
|
+
collections: _data.collections,
|
|
835
|
+
page: _data.page
|
|
822
836
|
};
|
|
823
837
|
});
|
|
824
838
|
}, error => {
|
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-metadata v0.4.0
|
|
21
|
+
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = 'v1';
|
|
|
31
31
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = '
|
|
34
|
+
const WebRPCSchemaHash = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d';
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -616,19 +616,6 @@ class Collections {
|
|
|
616
616
|
});
|
|
617
617
|
});
|
|
618
618
|
};
|
|
619
|
-
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => {
|
|
620
|
-
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
621
|
-
return buildResponse(res).then(_data => {
|
|
622
|
-
return {
|
|
623
|
-
ok: _data.ok
|
|
624
|
-
};
|
|
625
|
-
});
|
|
626
|
-
}, error => {
|
|
627
|
-
throw WebrpcRequestFailedError.new({
|
|
628
|
-
cause: `fetch(): ${error.message || ''}`
|
|
629
|
-
});
|
|
630
|
-
});
|
|
631
|
-
};
|
|
632
619
|
this.createToken = (args, headers, signal) => {
|
|
633
620
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
634
621
|
return buildResponse(res).then(_data => {
|
|
@@ -818,7 +805,34 @@ class Admin {
|
|
|
818
805
|
return buildResponse(res).then(_data => {
|
|
819
806
|
return {
|
|
820
807
|
page: _data.page,
|
|
821
|
-
|
|
808
|
+
collections: _data.collections
|
|
809
|
+
};
|
|
810
|
+
});
|
|
811
|
+
}, error => {
|
|
812
|
+
throw WebrpcRequestFailedError.new({
|
|
813
|
+
cause: `fetch(): ${error.message || ''}`
|
|
814
|
+
});
|
|
815
|
+
});
|
|
816
|
+
};
|
|
817
|
+
this.linkCollection = (args, headers, signal) => {
|
|
818
|
+
return this.fetch(this.url('LinkCollection'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
819
|
+
return buildResponse(res).then(_data => {
|
|
820
|
+
return {
|
|
821
|
+
ok: _data.ok
|
|
822
|
+
};
|
|
823
|
+
});
|
|
824
|
+
}, error => {
|
|
825
|
+
throw WebrpcRequestFailedError.new({
|
|
826
|
+
cause: `fetch(): ${error.message || ''}`
|
|
827
|
+
});
|
|
828
|
+
});
|
|
829
|
+
};
|
|
830
|
+
this.listLinkedContracts = (args, headers, signal) => {
|
|
831
|
+
return this.fetch(this.url('ListLinkedContracts'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
832
|
+
return buildResponse(res).then(_data => {
|
|
833
|
+
return {
|
|
834
|
+
collections: _data.collections,
|
|
835
|
+
page: _data.page
|
|
822
836
|
};
|
|
823
837
|
});
|
|
824
838
|
}, error => {
|
|
@@ -14,7 +14,7 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* eslint-disable */
|
|
17
|
-
// sequence-metadata v0.4.0
|
|
17
|
+
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d
|
|
18
18
|
// --
|
|
19
19
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
20
20
|
//
|
|
@@ -27,7 +27,7 @@ const WebRPCVersion = 'v1';
|
|
|
27
27
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
28
28
|
|
|
29
29
|
// Schema hash generated from your RIDL schema
|
|
30
|
-
const WebRPCSchemaHash = '
|
|
30
|
+
const WebRPCSchemaHash = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d';
|
|
31
31
|
|
|
32
32
|
//
|
|
33
33
|
// Types
|
|
@@ -612,19 +612,6 @@ class Collections {
|
|
|
612
612
|
});
|
|
613
613
|
});
|
|
614
614
|
};
|
|
615
|
-
this.addDeployedCollectionToTokenDirectory = (args, headers, signal) => {
|
|
616
|
-
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
617
|
-
return buildResponse(res).then(_data => {
|
|
618
|
-
return {
|
|
619
|
-
ok: _data.ok
|
|
620
|
-
};
|
|
621
|
-
});
|
|
622
|
-
}, error => {
|
|
623
|
-
throw WebrpcRequestFailedError.new({
|
|
624
|
-
cause: `fetch(): ${error.message || ''}`
|
|
625
|
-
});
|
|
626
|
-
});
|
|
627
|
-
};
|
|
628
615
|
this.createToken = (args, headers, signal) => {
|
|
629
616
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
630
617
|
return buildResponse(res).then(_data => {
|
|
@@ -814,7 +801,34 @@ class Admin {
|
|
|
814
801
|
return buildResponse(res).then(_data => {
|
|
815
802
|
return {
|
|
816
803
|
page: _data.page,
|
|
817
|
-
|
|
804
|
+
collections: _data.collections
|
|
805
|
+
};
|
|
806
|
+
});
|
|
807
|
+
}, error => {
|
|
808
|
+
throw WebrpcRequestFailedError.new({
|
|
809
|
+
cause: `fetch(): ${error.message || ''}`
|
|
810
|
+
});
|
|
811
|
+
});
|
|
812
|
+
};
|
|
813
|
+
this.linkCollection = (args, headers, signal) => {
|
|
814
|
+
return this.fetch(this.url('LinkCollection'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
815
|
+
return buildResponse(res).then(_data => {
|
|
816
|
+
return {
|
|
817
|
+
ok: _data.ok
|
|
818
|
+
};
|
|
819
|
+
});
|
|
820
|
+
}, error => {
|
|
821
|
+
throw WebrpcRequestFailedError.new({
|
|
822
|
+
cause: `fetch(): ${error.message || ''}`
|
|
823
|
+
});
|
|
824
|
+
});
|
|
825
|
+
};
|
|
826
|
+
this.listLinkedContracts = (args, headers, signal) => {
|
|
827
|
+
return this.fetch(this.url('ListLinkedContracts'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
828
|
+
return buildResponse(res).then(_data => {
|
|
829
|
+
return {
|
|
830
|
+
collections: _data.collections,
|
|
831
|
+
page: _data.page
|
|
818
832
|
};
|
|
819
833
|
});
|
|
820
834
|
}, error => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "d5ad7dcea438ee205efb2a08dcfde61c2226625d";
|
|
4
4
|
export declare enum ContractType {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
ERC20 = "ERC20",
|
|
@@ -520,7 +520,6 @@ export interface Collections {
|
|
|
520
520
|
deleteCollection(args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn>;
|
|
521
521
|
publishCollection(args: PublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<PublishCollectionReturn>;
|
|
522
522
|
unpublishCollection(args: UnpublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UnpublishCollectionReturn>;
|
|
523
|
-
addDeployedCollectionToTokenDirectory(args: AddDeployedCollectionToTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<AddDeployedCollectionToTokenDirectoryReturn>;
|
|
524
523
|
createToken(args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn>;
|
|
525
524
|
getToken(args: GetTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenReturn>;
|
|
526
525
|
listTokens(args: ListTokensArgs, headers?: object, signal?: AbortSignal): Promise<ListTokensReturn>;
|
|
@@ -582,17 +581,6 @@ export interface UnpublishCollectionArgs {
|
|
|
582
581
|
export interface UnpublishCollectionReturn {
|
|
583
582
|
collection: Collection;
|
|
584
583
|
}
|
|
585
|
-
export interface AddDeployedCollectionToTokenDirectoryArgs {
|
|
586
|
-
projectId?: number;
|
|
587
|
-
collectionId: number;
|
|
588
|
-
chainHandle: string;
|
|
589
|
-
contractAddress: string;
|
|
590
|
-
contractType: ContractType;
|
|
591
|
-
featured: number;
|
|
592
|
-
}
|
|
593
|
-
export interface AddDeployedCollectionToTokenDirectoryReturn {
|
|
594
|
-
ok: boolean;
|
|
595
|
-
}
|
|
596
584
|
export interface CreateTokenArgs {
|
|
597
585
|
projectId?: number;
|
|
598
586
|
collectionId: number;
|
|
@@ -673,6 +661,8 @@ export interface Admin {
|
|
|
673
661
|
modifyFeatureIndex(args: ModifyFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<ModifyFeatureIndexReturn>;
|
|
674
662
|
getFeatureIndex(args: GetFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<GetFeatureIndexReturn>;
|
|
675
663
|
listTokenDirectory(args: ListTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<ListTokenDirectoryReturn>;
|
|
664
|
+
linkCollection(args: LinkCollectionArgs, headers?: object, signal?: AbortSignal): Promise<LinkCollectionReturn>;
|
|
665
|
+
listLinkedContracts(args: ListLinkedContractsArgs, headers?: object, signal?: AbortSignal): Promise<ListLinkedContractsReturn>;
|
|
676
666
|
}
|
|
677
667
|
export interface AddContractsToTokenDirectoryArgs {
|
|
678
668
|
contracts: Array<ContractInfo>;
|
|
@@ -704,12 +694,32 @@ export interface GetFeatureIndexReturn {
|
|
|
704
694
|
featured: number;
|
|
705
695
|
}
|
|
706
696
|
export interface ListTokenDirectoryArgs {
|
|
707
|
-
chainID?:
|
|
697
|
+
chainID?: number;
|
|
698
|
+
includeTestnets?: boolean;
|
|
699
|
+
onlyFeatured?: boolean;
|
|
708
700
|
page?: Page;
|
|
709
701
|
}
|
|
710
702
|
export interface ListTokenDirectoryReturn {
|
|
711
703
|
page: Page;
|
|
712
|
-
|
|
704
|
+
collections: Array<ContractInfo>;
|
|
705
|
+
}
|
|
706
|
+
export interface LinkCollectionArgs {
|
|
707
|
+
projectId: number;
|
|
708
|
+
chainID: number;
|
|
709
|
+
contractAddress: string;
|
|
710
|
+
collectionId?: number;
|
|
711
|
+
}
|
|
712
|
+
export interface LinkCollectionReturn {
|
|
713
|
+
ok: boolean;
|
|
714
|
+
}
|
|
715
|
+
export interface ListLinkedContractsArgs {
|
|
716
|
+
projectId: number;
|
|
717
|
+
collectionId?: number;
|
|
718
|
+
page?: Page;
|
|
719
|
+
}
|
|
720
|
+
export interface ListLinkedContractsReturn {
|
|
721
|
+
collections: Array<ContractIndex>;
|
|
722
|
+
page: Page;
|
|
713
723
|
}
|
|
714
724
|
export declare class Metadata implements Metadata {
|
|
715
725
|
protected hostname: string;
|
|
@@ -764,7 +774,6 @@ export declare class Collections implements Collections {
|
|
|
764
774
|
deleteCollection: (args: DeleteCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteCollectionReturn>;
|
|
765
775
|
publishCollection: (args: PublishCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<PublishCollectionReturn>;
|
|
766
776
|
unpublishCollection: (args: UnpublishCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UnpublishCollectionReturn>;
|
|
767
|
-
addDeployedCollectionToTokenDirectory: (args: AddDeployedCollectionToTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddDeployedCollectionToTokenDirectoryReturn>;
|
|
768
777
|
createToken: (args: CreateTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<CreateTokenReturn>;
|
|
769
778
|
getToken: (args: GetTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetTokenReturn>;
|
|
770
779
|
listTokens: (args: ListTokensArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListTokensReturn>;
|
|
@@ -786,6 +795,8 @@ export declare class Admin implements Admin {
|
|
|
786
795
|
modifyFeatureIndex: (args: ModifyFeatureIndexArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ModifyFeatureIndexReturn>;
|
|
787
796
|
getFeatureIndex: (args: GetFeatureIndexArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetFeatureIndexReturn>;
|
|
788
797
|
listTokenDirectory: (args: ListTokenDirectoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListTokenDirectoryReturn>;
|
|
798
|
+
linkCollection: (args: LinkCollectionArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<LinkCollectionReturn>;
|
|
799
|
+
listLinkedContracts: (args: ListLinkedContractsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListLinkedContractsReturn>;
|
|
789
800
|
}
|
|
790
801
|
export declare class WebrpcError extends Error {
|
|
791
802
|
name: string;
|
package/package.json
CHANGED
package/src/metadata.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-metadata v0.4.0
|
|
2
|
+
// sequence-metadata v0.4.0 d5ad7dcea438ee205efb2a08dcfde61c2226625d
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -12,7 +12,7 @@ export const WebRPCVersion = 'v1'
|
|
|
12
12
|
export const WebRPCSchemaVersion = 'v0.4.0'
|
|
13
13
|
|
|
14
14
|
// Schema hash generated from your RIDL schema
|
|
15
|
-
export const WebRPCSchemaHash = '
|
|
15
|
+
export const WebRPCSchemaHash = 'd5ad7dcea438ee205efb2a08dcfde61c2226625d'
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Types
|
|
@@ -638,11 +638,6 @@ export interface Collections {
|
|
|
638
638
|
deleteCollection(args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn>
|
|
639
639
|
publishCollection(args: PublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<PublishCollectionReturn>
|
|
640
640
|
unpublishCollection(args: UnpublishCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UnpublishCollectionReturn>
|
|
641
|
-
addDeployedCollectionToTokenDirectory(
|
|
642
|
-
args: AddDeployedCollectionToTokenDirectoryArgs,
|
|
643
|
-
headers?: object,
|
|
644
|
-
signal?: AbortSignal
|
|
645
|
-
): Promise<AddDeployedCollectionToTokenDirectoryReturn>
|
|
646
641
|
createToken(args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn>
|
|
647
642
|
getToken(args: GetTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenReturn>
|
|
648
643
|
listTokens(args: ListTokensArgs, headers?: object, signal?: AbortSignal): Promise<ListTokensReturn>
|
|
@@ -712,18 +707,6 @@ export interface UnpublishCollectionArgs {
|
|
|
712
707
|
export interface UnpublishCollectionReturn {
|
|
713
708
|
collection: Collection
|
|
714
709
|
}
|
|
715
|
-
export interface AddDeployedCollectionToTokenDirectoryArgs {
|
|
716
|
-
projectId?: number
|
|
717
|
-
collectionId: number
|
|
718
|
-
chainHandle: string
|
|
719
|
-
contractAddress: string
|
|
720
|
-
contractType: ContractType
|
|
721
|
-
featured: number
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
export interface AddDeployedCollectionToTokenDirectoryReturn {
|
|
725
|
-
ok: boolean
|
|
726
|
-
}
|
|
727
710
|
export interface CreateTokenArgs {
|
|
728
711
|
projectId?: number
|
|
729
712
|
collectionId: number
|
|
@@ -822,6 +805,8 @@ export interface Admin {
|
|
|
822
805
|
modifyFeatureIndex(args: ModifyFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<ModifyFeatureIndexReturn>
|
|
823
806
|
getFeatureIndex(args: GetFeatureIndexArgs, headers?: object, signal?: AbortSignal): Promise<GetFeatureIndexReturn>
|
|
824
807
|
listTokenDirectory(args: ListTokenDirectoryArgs, headers?: object, signal?: AbortSignal): Promise<ListTokenDirectoryReturn>
|
|
808
|
+
linkCollection(args: LinkCollectionArgs, headers?: object, signal?: AbortSignal): Promise<LinkCollectionReturn>
|
|
809
|
+
listLinkedContracts(args: ListLinkedContractsArgs, headers?: object, signal?: AbortSignal): Promise<ListLinkedContractsReturn>
|
|
825
810
|
}
|
|
826
811
|
|
|
827
812
|
export interface AddContractsToTokenDirectoryArgs {
|
|
@@ -858,13 +843,35 @@ export interface GetFeatureIndexReturn {
|
|
|
858
843
|
featured: number
|
|
859
844
|
}
|
|
860
845
|
export interface ListTokenDirectoryArgs {
|
|
861
|
-
chainID?:
|
|
846
|
+
chainID?: number
|
|
847
|
+
includeTestnets?: boolean
|
|
848
|
+
onlyFeatured?: boolean
|
|
862
849
|
page?: Page
|
|
863
850
|
}
|
|
864
851
|
|
|
865
852
|
export interface ListTokenDirectoryReturn {
|
|
866
853
|
page: Page
|
|
867
|
-
|
|
854
|
+
collections: Array<ContractInfo>
|
|
855
|
+
}
|
|
856
|
+
export interface LinkCollectionArgs {
|
|
857
|
+
projectId: number
|
|
858
|
+
chainID: number
|
|
859
|
+
contractAddress: string
|
|
860
|
+
collectionId?: number
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export interface LinkCollectionReturn {
|
|
864
|
+
ok: boolean
|
|
865
|
+
}
|
|
866
|
+
export interface ListLinkedContractsArgs {
|
|
867
|
+
projectId: number
|
|
868
|
+
collectionId?: number
|
|
869
|
+
page?: Page
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export interface ListLinkedContractsReturn {
|
|
873
|
+
collections: Array<ContractIndex>
|
|
874
|
+
page: Page
|
|
868
875
|
}
|
|
869
876
|
|
|
870
877
|
//
|
|
@@ -1601,25 +1608,6 @@ export class Collections implements Collections {
|
|
|
1601
1608
|
)
|
|
1602
1609
|
}
|
|
1603
1610
|
|
|
1604
|
-
addDeployedCollectionToTokenDirectory = (
|
|
1605
|
-
args: AddDeployedCollectionToTokenDirectoryArgs,
|
|
1606
|
-
headers?: object,
|
|
1607
|
-
signal?: AbortSignal
|
|
1608
|
-
): Promise<AddDeployedCollectionToTokenDirectoryReturn> => {
|
|
1609
|
-
return this.fetch(this.url('AddDeployedCollectionToTokenDirectory'), createHTTPRequest(args, headers, signal)).then(
|
|
1610
|
-
res => {
|
|
1611
|
-
return buildResponse(res).then(_data => {
|
|
1612
|
-
return {
|
|
1613
|
-
ok: <boolean>_data.ok
|
|
1614
|
-
}
|
|
1615
|
-
})
|
|
1616
|
-
},
|
|
1617
|
-
error => {
|
|
1618
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1619
|
-
}
|
|
1620
|
-
)
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
1611
|
createToken = (args: CreateTokenArgs, headers?: object, signal?: AbortSignal): Promise<CreateTokenReturn> => {
|
|
1624
1612
|
return this.fetch(this.url('CreateToken'), createHTTPRequest(args, headers, signal)).then(
|
|
1625
1613
|
res => {
|
|
@@ -1854,7 +1842,42 @@ export class Admin implements Admin {
|
|
|
1854
1842
|
return buildResponse(res).then(_data => {
|
|
1855
1843
|
return {
|
|
1856
1844
|
page: <Page>_data.page,
|
|
1857
|
-
|
|
1845
|
+
collections: <Array<ContractInfo>>_data.collections
|
|
1846
|
+
}
|
|
1847
|
+
})
|
|
1848
|
+
},
|
|
1849
|
+
error => {
|
|
1850
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1851
|
+
}
|
|
1852
|
+
)
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
linkCollection = (args: LinkCollectionArgs, headers?: object, signal?: AbortSignal): Promise<LinkCollectionReturn> => {
|
|
1856
|
+
return this.fetch(this.url('LinkCollection'), createHTTPRequest(args, headers, signal)).then(
|
|
1857
|
+
res => {
|
|
1858
|
+
return buildResponse(res).then(_data => {
|
|
1859
|
+
return {
|
|
1860
|
+
ok: <boolean>_data.ok
|
|
1861
|
+
}
|
|
1862
|
+
})
|
|
1863
|
+
},
|
|
1864
|
+
error => {
|
|
1865
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1866
|
+
}
|
|
1867
|
+
)
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
listLinkedContracts = (
|
|
1871
|
+
args: ListLinkedContractsArgs,
|
|
1872
|
+
headers?: object,
|
|
1873
|
+
signal?: AbortSignal
|
|
1874
|
+
): Promise<ListLinkedContractsReturn> => {
|
|
1875
|
+
return this.fetch(this.url('ListLinkedContracts'), createHTTPRequest(args, headers, signal)).then(
|
|
1876
|
+
res => {
|
|
1877
|
+
return buildResponse(res).then(_data => {
|
|
1878
|
+
return {
|
|
1879
|
+
collections: <Array<ContractIndex>>_data.collections,
|
|
1880
|
+
page: <Page>_data.page
|
|
1858
1881
|
}
|
|
1859
1882
|
})
|
|
1860
1883
|
},
|