@medialane/sdk 0.158.0 → 0.160.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/{chunk-OUPVVMLK.cjs → chunk-H7I6TEOA.cjs} +5 -4
- package/dist/chunk-H7I6TEOA.cjs.map +1 -0
- package/dist/{chunk-3IJQNNFE.cjs → chunk-LXPVVK7R.cjs} +36 -22
- package/dist/chunk-LXPVVK7R.cjs.map +1 -0
- package/dist/{chunk-3PZUSEAW.js → chunk-PBJLHXDB.js} +5 -4
- package/dist/chunk-PBJLHXDB.js.map +1 -0
- package/dist/{chunk-SEBUPNF4.js → chunk-R6EJAMY3.js} +26 -19
- package/dist/chunk-R6EJAMY3.js.map +1 -0
- package/dist/{errors-D037rFnb.d.ts → errors-6Aarmz0V.d.cts} +3 -15
- package/dist/{errors-D_k2He89.d.cts → errors-BJl2TojD.d.ts} +3 -15
- package/dist/evm/index.cjs +3 -3
- package/dist/evm/index.d.cts +1 -1
- package/dist/evm/index.d.ts +1 -1
- package/dist/evm/index.js +1 -1
- package/dist/index.cjs +98 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -9
- package/dist/index.d.ts +6 -9
- package/dist/index.js +3 -23
- package/dist/index.js.map +1 -1
- package/dist/solana/index.cjs +2 -2
- package/dist/solana/index.d.cts +1 -1
- package/dist/solana/index.d.ts +1 -1
- package/dist/solana/index.js +1 -1
- package/dist/starknet/index.cjs +993 -221
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +605 -152
- package/dist/starknet/index.d.ts +605 -152
- package/dist/starknet/index.js +916 -154
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +2 -2
- package/dist/stellar/index.d.cts +1 -1
- package/dist/stellar/index.d.ts +1 -1
- package/dist/stellar/index.js +1 -1
- package/dist/{types-CO6YYHVA.d.cts → types-PPshMWr7.d.cts} +1 -0
- package/dist/{types-CO6YYHVA.d.ts → types-PPshMWr7.d.ts} +1 -0
- package/package.json +1 -1
- package/dist/chunk-3IJQNNFE.cjs.map +0 -1
- package/dist/chunk-3PZUSEAW.js.map +0 -1
- package/dist/chunk-OUPVVMLK.cjs.map +0 -1
- package/dist/chunk-SEBUPNF4.js.map +0 -1
package/dist/starknet/index.d.ts
CHANGED
|
@@ -1,42 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { AccountInterface,
|
|
4
|
-
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-
|
|
1
|
+
import { bz as ResolvedConfig, aY as CreatePopCollectionParams, bG as TxResult, aJ as ClaimConditions, aU as CreateDropParams, b1 as CreateTicketParams, bm as MintTicketsParams, aW as CreateMembershipParams, bl as MintMembershipsParams, a$ as CreateSponsorshipOfferParams, bw as ProposeSponsorshipParams, k as ApiClient, bj as MedialaneConfig, bk as MedialaneErrorCode, br as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bM as SealedOwner, bN as ReceiptProviderLike, bO as WalletExecutor, bP as ExecutedTransaction, bQ as PasskeyOwner, bR as CreatedOwner } from '../errors-BJl2TojD.js';
|
|
2
|
+
export { bS as InvalidRecoveryKeyError, bT as OwnerSigner, bu as PasskeyCancelledError, bU as PasskeyConfig, bV as RecoveryKey, bI as UserFacingError, bW as createPasskeyOwner, bX as encodeRecoveryKey, bY as parseRecoveryKey } from '../errors-BJl2TojD.js';
|
|
3
|
+
import { AccountInterface, ProviderInterface, Call, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
|
|
4
|
+
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-PPshMWr7.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
declare class PopService {
|
|
8
8
|
private readonly factoryAddress;
|
|
9
9
|
constructor(config: ResolvedConfig);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
adminMint(account: AccountInterface, params: {
|
|
13
|
-
collection: string;
|
|
14
|
-
recipient: string;
|
|
15
|
-
customUri?: string;
|
|
16
|
-
}): Promise<TxResult>;
|
|
17
|
-
addToAllowlist(account: AccountInterface, params: {
|
|
10
|
+
createCollection(account: AccountInterface, params: CreatePopCollectionParams): Promise<TxResult>;
|
|
11
|
+
setAllowlistRoot(account: AccountInterface, params: {
|
|
18
12
|
collection: string;
|
|
19
|
-
|
|
13
|
+
root: string;
|
|
20
14
|
}): Promise<TxResult>;
|
|
21
|
-
|
|
15
|
+
claim(account: AccountInterface, params: {
|
|
22
16
|
collection: string;
|
|
23
|
-
|
|
17
|
+
proof: string[];
|
|
24
18
|
}): Promise<TxResult>;
|
|
25
|
-
|
|
19
|
+
issue(account: AccountInterface, params: {
|
|
26
20
|
collection: string;
|
|
27
|
-
|
|
21
|
+
recipient: string;
|
|
22
|
+
tokenUri?: string;
|
|
28
23
|
}): Promise<TxResult>;
|
|
29
|
-
|
|
24
|
+
/** Destroys the caller's own credential; the address cannot receive another from this collection. */
|
|
25
|
+
burn(account: AccountInterface, params: {
|
|
30
26
|
collection: string;
|
|
31
27
|
tokenId: string | bigint;
|
|
32
|
-
uri: string;
|
|
33
|
-
}): Promise<TxResult>;
|
|
34
|
-
setPaused(account: AccountInterface, params: {
|
|
35
|
-
collection: string;
|
|
36
|
-
paused: boolean;
|
|
37
28
|
}): Promise<TxResult>;
|
|
38
|
-
createCollection(account: AccountInterface, params: CreatePopCollectionParams): Promise<TxResult>;
|
|
39
29
|
}
|
|
30
|
+
/** Whether `address` already holds this collection's credential (read from chain). */
|
|
31
|
+
declare function popHasClaimed(provider: Pick<ProviderInterface, "callContract">, collection: string, address: string): Promise<boolean>;
|
|
40
32
|
|
|
41
33
|
declare function toContractConditions(c: ClaimConditions): {
|
|
42
34
|
start_time: number;
|
|
@@ -866,201 +858,613 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
866
858
|
}];
|
|
867
859
|
|
|
868
860
|
declare const POPCollectionABI: readonly [{
|
|
861
|
+
readonly type: "impl";
|
|
862
|
+
readonly name: "ERC721Impl";
|
|
863
|
+
readonly interface_name: "openzeppelin_interfaces::token::erc721::IERC721";
|
|
864
|
+
}, {
|
|
865
|
+
readonly type: "struct";
|
|
866
|
+
readonly name: "core::integer::u256";
|
|
867
|
+
readonly members: readonly [{
|
|
868
|
+
readonly name: "low";
|
|
869
|
+
readonly type: "core::integer::u128";
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "high";
|
|
872
|
+
readonly type: "core::integer::u128";
|
|
873
|
+
}];
|
|
874
|
+
}, {
|
|
875
|
+
readonly type: "struct";
|
|
876
|
+
readonly name: "core::array::Span::<core::felt252>";
|
|
877
|
+
readonly members: readonly [{
|
|
878
|
+
readonly name: "snapshot";
|
|
879
|
+
readonly type: "@core::array::Array::<core::felt252>";
|
|
880
|
+
}];
|
|
881
|
+
}, {
|
|
882
|
+
readonly type: "enum";
|
|
883
|
+
readonly name: "core::bool";
|
|
884
|
+
readonly variants: readonly [{
|
|
885
|
+
readonly name: "False";
|
|
886
|
+
readonly type: "()";
|
|
887
|
+
}, {
|
|
888
|
+
readonly name: "True";
|
|
889
|
+
readonly type: "()";
|
|
890
|
+
}];
|
|
891
|
+
}, {
|
|
892
|
+
readonly type: "interface";
|
|
893
|
+
readonly name: "openzeppelin_interfaces::token::erc721::IERC721";
|
|
894
|
+
readonly items: readonly [{
|
|
895
|
+
readonly type: "function";
|
|
896
|
+
readonly name: "balance_of";
|
|
897
|
+
readonly inputs: readonly [{
|
|
898
|
+
readonly name: "account";
|
|
899
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
900
|
+
}];
|
|
901
|
+
readonly outputs: readonly [{
|
|
902
|
+
readonly type: "core::integer::u256";
|
|
903
|
+
}];
|
|
904
|
+
readonly state_mutability: "view";
|
|
905
|
+
}, {
|
|
906
|
+
readonly type: "function";
|
|
907
|
+
readonly name: "owner_of";
|
|
908
|
+
readonly inputs: readonly [{
|
|
909
|
+
readonly name: "token_id";
|
|
910
|
+
readonly type: "core::integer::u256";
|
|
911
|
+
}];
|
|
912
|
+
readonly outputs: readonly [{
|
|
913
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
914
|
+
}];
|
|
915
|
+
readonly state_mutability: "view";
|
|
916
|
+
}, {
|
|
917
|
+
readonly type: "function";
|
|
918
|
+
readonly name: "safe_transfer_from";
|
|
919
|
+
readonly inputs: readonly [{
|
|
920
|
+
readonly name: "from";
|
|
921
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
922
|
+
}, {
|
|
923
|
+
readonly name: "to";
|
|
924
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
925
|
+
}, {
|
|
926
|
+
readonly name: "token_id";
|
|
927
|
+
readonly type: "core::integer::u256";
|
|
928
|
+
}, {
|
|
929
|
+
readonly name: "data";
|
|
930
|
+
readonly type: "core::array::Span::<core::felt252>";
|
|
931
|
+
}];
|
|
932
|
+
readonly outputs: readonly [];
|
|
933
|
+
readonly state_mutability: "external";
|
|
934
|
+
}, {
|
|
935
|
+
readonly type: "function";
|
|
936
|
+
readonly name: "transfer_from";
|
|
937
|
+
readonly inputs: readonly [{
|
|
938
|
+
readonly name: "from";
|
|
939
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "to";
|
|
942
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
943
|
+
}, {
|
|
944
|
+
readonly name: "token_id";
|
|
945
|
+
readonly type: "core::integer::u256";
|
|
946
|
+
}];
|
|
947
|
+
readonly outputs: readonly [];
|
|
948
|
+
readonly state_mutability: "external";
|
|
949
|
+
}, {
|
|
950
|
+
readonly type: "function";
|
|
951
|
+
readonly name: "approve";
|
|
952
|
+
readonly inputs: readonly [{
|
|
953
|
+
readonly name: "to";
|
|
954
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "token_id";
|
|
957
|
+
readonly type: "core::integer::u256";
|
|
958
|
+
}];
|
|
959
|
+
readonly outputs: readonly [];
|
|
960
|
+
readonly state_mutability: "external";
|
|
961
|
+
}, {
|
|
962
|
+
readonly type: "function";
|
|
963
|
+
readonly name: "set_approval_for_all";
|
|
964
|
+
readonly inputs: readonly [{
|
|
965
|
+
readonly name: "operator";
|
|
966
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "approved";
|
|
969
|
+
readonly type: "core::bool";
|
|
970
|
+
}];
|
|
971
|
+
readonly outputs: readonly [];
|
|
972
|
+
readonly state_mutability: "external";
|
|
973
|
+
}, {
|
|
974
|
+
readonly type: "function";
|
|
975
|
+
readonly name: "get_approved";
|
|
976
|
+
readonly inputs: readonly [{
|
|
977
|
+
readonly name: "token_id";
|
|
978
|
+
readonly type: "core::integer::u256";
|
|
979
|
+
}];
|
|
980
|
+
readonly outputs: readonly [{
|
|
981
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
982
|
+
}];
|
|
983
|
+
readonly state_mutability: "view";
|
|
984
|
+
}, {
|
|
985
|
+
readonly type: "function";
|
|
986
|
+
readonly name: "is_approved_for_all";
|
|
987
|
+
readonly inputs: readonly [{
|
|
988
|
+
readonly name: "owner";
|
|
989
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
990
|
+
}, {
|
|
991
|
+
readonly name: "operator";
|
|
992
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
993
|
+
}];
|
|
994
|
+
readonly outputs: readonly [{
|
|
995
|
+
readonly type: "core::bool";
|
|
996
|
+
}];
|
|
997
|
+
readonly state_mutability: "view";
|
|
998
|
+
}];
|
|
999
|
+
}, {
|
|
1000
|
+
readonly type: "impl";
|
|
1001
|
+
readonly name: "ERC721MetadataImpl";
|
|
1002
|
+
readonly interface_name: "openzeppelin_interfaces::token::erc721::IERC721Metadata";
|
|
1003
|
+
}, {
|
|
869
1004
|
readonly type: "struct";
|
|
870
1005
|
readonly name: "core::byte_array::ByteArray";
|
|
871
1006
|
readonly members: readonly [{
|
|
872
1007
|
readonly name: "data";
|
|
873
|
-
readonly type: "core::array::Array::<core::
|
|
1008
|
+
readonly type: "core::array::Array::<core::bytes_31::bytes31>";
|
|
874
1009
|
}, {
|
|
875
1010
|
readonly name: "pending_word";
|
|
876
1011
|
readonly type: "core::felt252";
|
|
877
1012
|
}, {
|
|
878
1013
|
readonly name: "pending_word_len";
|
|
879
|
-
readonly type: "core::
|
|
1014
|
+
readonly type: "core::internal::bounded_int::BoundedInt::<0, 30>";
|
|
880
1015
|
}];
|
|
881
1016
|
}, {
|
|
882
|
-
readonly type: "
|
|
883
|
-
readonly name: "
|
|
884
|
-
readonly
|
|
885
|
-
|
|
886
|
-
|
|
1017
|
+
readonly type: "interface";
|
|
1018
|
+
readonly name: "openzeppelin_interfaces::token::erc721::IERC721Metadata";
|
|
1019
|
+
readonly items: readonly [{
|
|
1020
|
+
readonly type: "function";
|
|
1021
|
+
readonly name: "name";
|
|
1022
|
+
readonly inputs: readonly [];
|
|
1023
|
+
readonly outputs: readonly [{
|
|
1024
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1025
|
+
}];
|
|
1026
|
+
readonly state_mutability: "view";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly type: "function";
|
|
1029
|
+
readonly name: "symbol";
|
|
1030
|
+
readonly inputs: readonly [];
|
|
1031
|
+
readonly outputs: readonly [{
|
|
1032
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1033
|
+
}];
|
|
1034
|
+
readonly state_mutability: "view";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly type: "function";
|
|
1037
|
+
readonly name: "token_uri";
|
|
1038
|
+
readonly inputs: readonly [{
|
|
1039
|
+
readonly name: "token_id";
|
|
1040
|
+
readonly type: "core::integer::u256";
|
|
1041
|
+
}];
|
|
1042
|
+
readonly outputs: readonly [{
|
|
1043
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1044
|
+
}];
|
|
1045
|
+
readonly state_mutability: "view";
|
|
1046
|
+
}];
|
|
887
1047
|
}, {
|
|
888
|
-
readonly type: "
|
|
889
|
-
readonly name: "
|
|
1048
|
+
readonly type: "impl";
|
|
1049
|
+
readonly name: "ERC5192Impl";
|
|
1050
|
+
readonly interface_name: "pop_protocol::interfaces::IERC5192";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly type: "interface";
|
|
1053
|
+
readonly name: "pop_protocol::interfaces::IERC5192";
|
|
1054
|
+
readonly items: readonly [{
|
|
1055
|
+
readonly type: "function";
|
|
1056
|
+
readonly name: "locked";
|
|
1057
|
+
readonly inputs: readonly [{
|
|
1058
|
+
readonly name: "token_id";
|
|
1059
|
+
readonly type: "core::integer::u256";
|
|
1060
|
+
}];
|
|
1061
|
+
readonly outputs: readonly [{
|
|
1062
|
+
readonly type: "core::bool";
|
|
1063
|
+
}];
|
|
1064
|
+
readonly state_mutability: "view";
|
|
1065
|
+
}];
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly type: "impl";
|
|
1068
|
+
readonly name: "POPCollectionImpl";
|
|
1069
|
+
readonly interface_name: "pop_protocol::interfaces::IPOPCollection";
|
|
1070
|
+
}, {
|
|
1071
|
+
readonly type: "interface";
|
|
1072
|
+
readonly name: "pop_protocol::interfaces::IPOPCollection";
|
|
1073
|
+
readonly items: readonly [{
|
|
1074
|
+
readonly type: "function";
|
|
1075
|
+
readonly name: "set_allowlist_root";
|
|
1076
|
+
readonly inputs: readonly [{
|
|
1077
|
+
readonly name: "root";
|
|
1078
|
+
readonly type: "core::felt252";
|
|
1079
|
+
}];
|
|
1080
|
+
readonly outputs: readonly [];
|
|
1081
|
+
readonly state_mutability: "external";
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly type: "function";
|
|
1084
|
+
readonly name: "claim";
|
|
1085
|
+
readonly inputs: readonly [{
|
|
1086
|
+
readonly name: "proof";
|
|
1087
|
+
readonly type: "core::array::Span::<core::felt252>";
|
|
1088
|
+
}];
|
|
1089
|
+
readonly outputs: readonly [];
|
|
1090
|
+
readonly state_mutability: "external";
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly type: "function";
|
|
1093
|
+
readonly name: "issue";
|
|
1094
|
+
readonly inputs: readonly [{
|
|
1095
|
+
readonly name: "recipient";
|
|
1096
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly name: "token_uri";
|
|
1099
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1100
|
+
}];
|
|
1101
|
+
readonly outputs: readonly [];
|
|
1102
|
+
readonly state_mutability: "external";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly type: "function";
|
|
1105
|
+
readonly name: "burn";
|
|
1106
|
+
readonly inputs: readonly [{
|
|
1107
|
+
readonly name: "token_id";
|
|
1108
|
+
readonly type: "core::integer::u256";
|
|
1109
|
+
}];
|
|
1110
|
+
readonly outputs: readonly [];
|
|
1111
|
+
readonly state_mutability: "external";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly type: "function";
|
|
1114
|
+
readonly name: "organizer";
|
|
1115
|
+
readonly inputs: readonly [];
|
|
1116
|
+
readonly outputs: readonly [{
|
|
1117
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1118
|
+
}];
|
|
1119
|
+
readonly state_mutability: "view";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly type: "function";
|
|
1122
|
+
readonly name: "allowlist_root";
|
|
1123
|
+
readonly inputs: readonly [];
|
|
1124
|
+
readonly outputs: readonly [{
|
|
1125
|
+
readonly type: "core::felt252";
|
|
1126
|
+
}];
|
|
1127
|
+
readonly state_mutability: "view";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly type: "function";
|
|
1130
|
+
readonly name: "claim_end_time";
|
|
1131
|
+
readonly inputs: readonly [];
|
|
1132
|
+
readonly outputs: readonly [{
|
|
1133
|
+
readonly type: "core::integer::u64";
|
|
1134
|
+
}];
|
|
1135
|
+
readonly state_mutability: "view";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly type: "function";
|
|
1138
|
+
readonly name: "has_claimed";
|
|
1139
|
+
readonly inputs: readonly [{
|
|
1140
|
+
readonly name: "address";
|
|
1141
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1142
|
+
}];
|
|
1143
|
+
readonly outputs: readonly [{
|
|
1144
|
+
readonly type: "core::bool";
|
|
1145
|
+
}];
|
|
1146
|
+
readonly state_mutability: "view";
|
|
1147
|
+
}, {
|
|
1148
|
+
readonly type: "function";
|
|
1149
|
+
readonly name: "total_issued";
|
|
1150
|
+
readonly inputs: readonly [];
|
|
1151
|
+
readonly outputs: readonly [{
|
|
1152
|
+
readonly type: "core::integer::u256";
|
|
1153
|
+
}];
|
|
1154
|
+
readonly state_mutability: "view";
|
|
1155
|
+
}, {
|
|
1156
|
+
readonly type: "function";
|
|
1157
|
+
readonly name: "version";
|
|
1158
|
+
readonly inputs: readonly [];
|
|
1159
|
+
readonly outputs: readonly [{
|
|
1160
|
+
readonly type: "core::felt252";
|
|
1161
|
+
}];
|
|
1162
|
+
readonly state_mutability: "view";
|
|
1163
|
+
}];
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly type: "impl";
|
|
1166
|
+
readonly name: "SRC5Impl";
|
|
1167
|
+
readonly interface_name: "openzeppelin_interfaces::introspection::ISRC5";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly type: "interface";
|
|
1170
|
+
readonly name: "openzeppelin_interfaces::introspection::ISRC5";
|
|
1171
|
+
readonly items: readonly [{
|
|
1172
|
+
readonly type: "function";
|
|
1173
|
+
readonly name: "supports_interface";
|
|
1174
|
+
readonly inputs: readonly [{
|
|
1175
|
+
readonly name: "interface_id";
|
|
1176
|
+
readonly type: "core::felt252";
|
|
1177
|
+
}];
|
|
1178
|
+
readonly outputs: readonly [{
|
|
1179
|
+
readonly type: "core::bool";
|
|
1180
|
+
}];
|
|
1181
|
+
readonly state_mutability: "view";
|
|
1182
|
+
}];
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly type: "constructor";
|
|
1185
|
+
readonly name: "constructor";
|
|
890
1186
|
readonly inputs: readonly [{
|
|
891
|
-
readonly name: "
|
|
1187
|
+
readonly name: "name";
|
|
1188
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1189
|
+
}, {
|
|
1190
|
+
readonly name: "symbol";
|
|
1191
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1192
|
+
}, {
|
|
1193
|
+
readonly name: "base_uri";
|
|
1194
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1195
|
+
}, {
|
|
1196
|
+
readonly name: "organizer";
|
|
1197
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly name: "claim_end_time";
|
|
1200
|
+
readonly type: "core::integer::u64";
|
|
1201
|
+
}];
|
|
1202
|
+
}, {
|
|
1203
|
+
readonly type: "event";
|
|
1204
|
+
readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::Transfer";
|
|
1205
|
+
readonly kind: "struct";
|
|
1206
|
+
readonly members: readonly [{
|
|
1207
|
+
readonly name: "from";
|
|
1208
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1209
|
+
readonly kind: "key";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly name: "to";
|
|
1212
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1213
|
+
readonly kind: "key";
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly name: "token_id";
|
|
1216
|
+
readonly type: "core::integer::u256";
|
|
1217
|
+
readonly kind: "key";
|
|
1218
|
+
}];
|
|
1219
|
+
}, {
|
|
1220
|
+
readonly type: "event";
|
|
1221
|
+
readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::Approval";
|
|
1222
|
+
readonly kind: "struct";
|
|
1223
|
+
readonly members: readonly [{
|
|
1224
|
+
readonly name: "owner";
|
|
1225
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1226
|
+
readonly kind: "key";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly name: "approved";
|
|
1229
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1230
|
+
readonly kind: "key";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly name: "token_id";
|
|
1233
|
+
readonly type: "core::integer::u256";
|
|
1234
|
+
readonly kind: "key";
|
|
1235
|
+
}];
|
|
1236
|
+
}, {
|
|
1237
|
+
readonly type: "event";
|
|
1238
|
+
readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll";
|
|
1239
|
+
readonly kind: "struct";
|
|
1240
|
+
readonly members: readonly [{
|
|
1241
|
+
readonly name: "owner";
|
|
1242
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1243
|
+
readonly kind: "key";
|
|
1244
|
+
}, {
|
|
1245
|
+
readonly name: "operator";
|
|
892
1246
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1247
|
+
readonly kind: "key";
|
|
893
1248
|
}, {
|
|
894
|
-
readonly name: "
|
|
895
|
-
readonly type: "core::
|
|
1249
|
+
readonly name: "approved";
|
|
1250
|
+
readonly type: "core::bool";
|
|
1251
|
+
readonly kind: "data";
|
|
896
1252
|
}];
|
|
897
|
-
readonly outputs: readonly [];
|
|
898
|
-
readonly state_mutability: "external";
|
|
899
1253
|
}, {
|
|
900
|
-
readonly type: "
|
|
901
|
-
readonly name: "
|
|
902
|
-
readonly
|
|
903
|
-
|
|
904
|
-
readonly
|
|
1254
|
+
readonly type: "event";
|
|
1255
|
+
readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::Event";
|
|
1256
|
+
readonly kind: "enum";
|
|
1257
|
+
readonly variants: readonly [{
|
|
1258
|
+
readonly name: "Transfer";
|
|
1259
|
+
readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::Transfer";
|
|
1260
|
+
readonly kind: "nested";
|
|
1261
|
+
}, {
|
|
1262
|
+
readonly name: "Approval";
|
|
1263
|
+
readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::Approval";
|
|
1264
|
+
readonly kind: "nested";
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly name: "ApprovalForAll";
|
|
1267
|
+
readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll";
|
|
1268
|
+
readonly kind: "nested";
|
|
905
1269
|
}];
|
|
906
|
-
readonly outputs: readonly [];
|
|
907
|
-
readonly state_mutability: "external";
|
|
908
1270
|
}, {
|
|
909
|
-
readonly type: "
|
|
910
|
-
readonly name: "
|
|
911
|
-
readonly
|
|
912
|
-
|
|
913
|
-
readonly type: "core::array::Array::<core::starknet::contract_address::ContractAddress>";
|
|
914
|
-
}];
|
|
915
|
-
readonly outputs: readonly [];
|
|
916
|
-
readonly state_mutability: "external";
|
|
1271
|
+
readonly type: "event";
|
|
1272
|
+
readonly name: "openzeppelin_introspection::src5::SRC5Component::Event";
|
|
1273
|
+
readonly kind: "enum";
|
|
1274
|
+
readonly variants: readonly [];
|
|
917
1275
|
}, {
|
|
918
|
-
readonly type: "
|
|
919
|
-
readonly name: "
|
|
920
|
-
readonly
|
|
921
|
-
|
|
922
|
-
readonly
|
|
1276
|
+
readonly type: "event";
|
|
1277
|
+
readonly name: "pop_protocol::events::AllowlistRootSet";
|
|
1278
|
+
readonly kind: "struct";
|
|
1279
|
+
readonly members: readonly [{
|
|
1280
|
+
readonly name: "root";
|
|
1281
|
+
readonly type: "core::felt252";
|
|
1282
|
+
readonly kind: "data";
|
|
923
1283
|
}];
|
|
924
|
-
readonly outputs: readonly [];
|
|
925
|
-
readonly state_mutability: "external";
|
|
926
1284
|
}, {
|
|
927
|
-
readonly type: "
|
|
928
|
-
readonly name: "
|
|
929
|
-
readonly
|
|
1285
|
+
readonly type: "event";
|
|
1286
|
+
readonly name: "pop_protocol::events::TokenURISet";
|
|
1287
|
+
readonly kind: "struct";
|
|
1288
|
+
readonly members: readonly [{
|
|
930
1289
|
readonly name: "token_id";
|
|
931
1290
|
readonly type: "core::integer::u256";
|
|
1291
|
+
readonly kind: "key";
|
|
932
1292
|
}, {
|
|
933
1293
|
readonly name: "uri";
|
|
934
1294
|
readonly type: "core::byte_array::ByteArray";
|
|
1295
|
+
readonly kind: "data";
|
|
935
1296
|
}];
|
|
936
|
-
readonly outputs: readonly [];
|
|
937
|
-
readonly state_mutability: "external";
|
|
938
|
-
}, {
|
|
939
|
-
readonly type: "function";
|
|
940
|
-
readonly name: "set_paused";
|
|
941
|
-
readonly inputs: readonly [{
|
|
942
|
-
readonly name: "paused";
|
|
943
|
-
readonly type: "core::bool";
|
|
944
|
-
}];
|
|
945
|
-
readonly outputs: readonly [];
|
|
946
|
-
readonly state_mutability: "external";
|
|
947
|
-
}, {
|
|
948
|
-
readonly type: "function";
|
|
949
|
-
readonly name: "is_eligible";
|
|
950
|
-
readonly inputs: readonly [{
|
|
951
|
-
readonly name: "address";
|
|
952
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
953
|
-
}];
|
|
954
|
-
readonly outputs: readonly [{
|
|
955
|
-
readonly type: "core::bool";
|
|
956
|
-
}];
|
|
957
|
-
readonly state_mutability: "view";
|
|
958
1297
|
}, {
|
|
959
|
-
readonly type: "
|
|
960
|
-
readonly name: "
|
|
961
|
-
readonly
|
|
962
|
-
|
|
963
|
-
readonly
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
readonly type: "core::bool";
|
|
1298
|
+
readonly type: "event";
|
|
1299
|
+
readonly name: "pop_protocol::events::Locked";
|
|
1300
|
+
readonly kind: "struct";
|
|
1301
|
+
readonly members: readonly [{
|
|
1302
|
+
readonly name: "token_id";
|
|
1303
|
+
readonly type: "core::integer::u256";
|
|
1304
|
+
readonly kind: "data";
|
|
967
1305
|
}];
|
|
968
|
-
readonly state_mutability: "view";
|
|
969
1306
|
}, {
|
|
970
|
-
readonly type: "
|
|
971
|
-
readonly name: "
|
|
972
|
-
readonly
|
|
973
|
-
readonly
|
|
974
|
-
readonly
|
|
1307
|
+
readonly type: "event";
|
|
1308
|
+
readonly name: "pop_protocol::pop_collection::POPCollection::Event";
|
|
1309
|
+
readonly kind: "enum";
|
|
1310
|
+
readonly variants: readonly [{
|
|
1311
|
+
readonly name: "ERC721Event";
|
|
1312
|
+
readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::Event";
|
|
1313
|
+
readonly kind: "flat";
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly name: "SRC5Event";
|
|
1316
|
+
readonly type: "openzeppelin_introspection::src5::SRC5Component::Event";
|
|
1317
|
+
readonly kind: "flat";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "AllowlistRootSet";
|
|
1320
|
+
readonly type: "pop_protocol::events::AllowlistRootSet";
|
|
1321
|
+
readonly kind: "nested";
|
|
1322
|
+
}, {
|
|
1323
|
+
readonly name: "TokenURISet";
|
|
1324
|
+
readonly type: "pop_protocol::events::TokenURISet";
|
|
1325
|
+
readonly kind: "nested";
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly name: "Locked";
|
|
1328
|
+
readonly type: "pop_protocol::events::Locked";
|
|
1329
|
+
readonly kind: "nested";
|
|
975
1330
|
}];
|
|
976
|
-
readonly state_mutability: "view";
|
|
977
1331
|
}];
|
|
978
1332
|
|
|
979
1333
|
declare const POPFactoryABI: readonly [{
|
|
1334
|
+
readonly type: "impl";
|
|
1335
|
+
readonly name: "POPFactoryImpl";
|
|
1336
|
+
readonly interface_name: "pop_protocol::interfaces::IPOPFactory";
|
|
1337
|
+
}, {
|
|
980
1338
|
readonly type: "struct";
|
|
981
1339
|
readonly name: "core::byte_array::ByteArray";
|
|
982
1340
|
readonly members: readonly [{
|
|
983
1341
|
readonly name: "data";
|
|
984
|
-
readonly type: "core::array::Array::<core::
|
|
1342
|
+
readonly type: "core::array::Array::<core::bytes_31::bytes31>";
|
|
985
1343
|
}, {
|
|
986
1344
|
readonly name: "pending_word";
|
|
987
1345
|
readonly type: "core::felt252";
|
|
988
1346
|
}, {
|
|
989
1347
|
readonly name: "pending_word_len";
|
|
990
|
-
readonly type: "core::
|
|
1348
|
+
readonly type: "core::internal::bounded_int::BoundedInt::<0, 30>";
|
|
991
1349
|
}];
|
|
992
1350
|
}, {
|
|
993
|
-
readonly type: "
|
|
994
|
-
readonly name: "
|
|
995
|
-
readonly
|
|
996
|
-
readonly name: "
|
|
997
|
-
readonly type: "
|
|
998
|
-
}, {
|
|
999
|
-
readonly name: "Bootcamp";
|
|
1000
|
-
readonly type: "()";
|
|
1351
|
+
readonly type: "struct";
|
|
1352
|
+
readonly name: "core::integer::u256";
|
|
1353
|
+
readonly members: readonly [{
|
|
1354
|
+
readonly name: "low";
|
|
1355
|
+
readonly type: "core::integer::u128";
|
|
1001
1356
|
}, {
|
|
1002
|
-
readonly name: "
|
|
1003
|
-
readonly type: "
|
|
1357
|
+
readonly name: "high";
|
|
1358
|
+
readonly type: "core::integer::u128";
|
|
1359
|
+
}];
|
|
1360
|
+
}, {
|
|
1361
|
+
readonly type: "interface";
|
|
1362
|
+
readonly name: "pop_protocol::interfaces::IPOPFactory";
|
|
1363
|
+
readonly items: readonly [{
|
|
1364
|
+
readonly type: "function";
|
|
1365
|
+
readonly name: "create_collection";
|
|
1366
|
+
readonly inputs: readonly [{
|
|
1367
|
+
readonly name: "name";
|
|
1368
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly name: "symbol";
|
|
1371
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1372
|
+
}, {
|
|
1373
|
+
readonly name: "base_uri";
|
|
1374
|
+
readonly type: "core::byte_array::ByteArray";
|
|
1375
|
+
}, {
|
|
1376
|
+
readonly name: "claim_end_time";
|
|
1377
|
+
readonly type: "core::integer::u64";
|
|
1378
|
+
}];
|
|
1379
|
+
readonly outputs: readonly [{
|
|
1380
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1381
|
+
}];
|
|
1382
|
+
readonly state_mutability: "external";
|
|
1004
1383
|
}, {
|
|
1005
|
-
readonly
|
|
1006
|
-
readonly
|
|
1384
|
+
readonly type: "function";
|
|
1385
|
+
readonly name: "get_collection_address";
|
|
1386
|
+
readonly inputs: readonly [{
|
|
1387
|
+
readonly name: "collection_id";
|
|
1388
|
+
readonly type: "core::integer::u256";
|
|
1389
|
+
}];
|
|
1390
|
+
readonly outputs: readonly [{
|
|
1391
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1392
|
+
}];
|
|
1393
|
+
readonly state_mutability: "view";
|
|
1007
1394
|
}, {
|
|
1008
|
-
readonly
|
|
1009
|
-
readonly
|
|
1395
|
+
readonly type: "function";
|
|
1396
|
+
readonly name: "get_last_collection_id";
|
|
1397
|
+
readonly inputs: readonly [];
|
|
1398
|
+
readonly outputs: readonly [{
|
|
1399
|
+
readonly type: "core::integer::u256";
|
|
1400
|
+
}];
|
|
1401
|
+
readonly state_mutability: "view";
|
|
1010
1402
|
}, {
|
|
1011
|
-
readonly
|
|
1012
|
-
readonly
|
|
1403
|
+
readonly type: "function";
|
|
1404
|
+
readonly name: "get_collection_class_hash";
|
|
1405
|
+
readonly inputs: readonly [];
|
|
1406
|
+
readonly outputs: readonly [{
|
|
1407
|
+
readonly type: "core::starknet::class_hash::ClassHash";
|
|
1408
|
+
}];
|
|
1409
|
+
readonly state_mutability: "view";
|
|
1013
1410
|
}, {
|
|
1014
|
-
readonly
|
|
1015
|
-
readonly
|
|
1411
|
+
readonly type: "function";
|
|
1412
|
+
readonly name: "version";
|
|
1413
|
+
readonly inputs: readonly [];
|
|
1414
|
+
readonly outputs: readonly [{
|
|
1415
|
+
readonly type: "core::felt252";
|
|
1416
|
+
}];
|
|
1417
|
+
readonly state_mutability: "view";
|
|
1016
1418
|
}];
|
|
1017
1419
|
}, {
|
|
1018
|
-
readonly type: "
|
|
1019
|
-
readonly name: "
|
|
1420
|
+
readonly type: "constructor";
|
|
1421
|
+
readonly name: "constructor";
|
|
1020
1422
|
readonly inputs: readonly [{
|
|
1423
|
+
readonly name: "collection_class_hash";
|
|
1424
|
+
readonly type: "core::starknet::class_hash::ClassHash";
|
|
1425
|
+
}];
|
|
1426
|
+
}, {
|
|
1427
|
+
readonly type: "event";
|
|
1428
|
+
readonly name: "pop_protocol::events::CollectionCreated";
|
|
1429
|
+
readonly kind: "struct";
|
|
1430
|
+
readonly members: readonly [{
|
|
1431
|
+
readonly name: "collection_id";
|
|
1432
|
+
readonly type: "core::integer::u256";
|
|
1433
|
+
readonly kind: "key";
|
|
1434
|
+
}, {
|
|
1435
|
+
readonly name: "organizer";
|
|
1436
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1437
|
+
readonly kind: "key";
|
|
1438
|
+
}, {
|
|
1439
|
+
readonly name: "collection_address";
|
|
1440
|
+
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1441
|
+
readonly kind: "data";
|
|
1442
|
+
}, {
|
|
1021
1443
|
readonly name: "name";
|
|
1022
1444
|
readonly type: "core::byte_array::ByteArray";
|
|
1445
|
+
readonly kind: "data";
|
|
1023
1446
|
}, {
|
|
1024
1447
|
readonly name: "symbol";
|
|
1025
1448
|
readonly type: "core::byte_array::ByteArray";
|
|
1449
|
+
readonly kind: "data";
|
|
1026
1450
|
}, {
|
|
1027
1451
|
readonly name: "base_uri";
|
|
1028
1452
|
readonly type: "core::byte_array::ByteArray";
|
|
1453
|
+
readonly kind: "data";
|
|
1029
1454
|
}, {
|
|
1030
1455
|
readonly name: "claim_end_time";
|
|
1031
1456
|
readonly type: "core::integer::u64";
|
|
1032
|
-
|
|
1033
|
-
readonly name: "event_type";
|
|
1034
|
-
readonly type: "pop_protocol::types::EventType";
|
|
1035
|
-
}];
|
|
1036
|
-
readonly outputs: readonly [{
|
|
1037
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1038
|
-
}];
|
|
1039
|
-
readonly state_mutability: "external";
|
|
1040
|
-
}, {
|
|
1041
|
-
readonly type: "function";
|
|
1042
|
-
readonly name: "register_provider";
|
|
1043
|
-
readonly inputs: readonly [{
|
|
1044
|
-
readonly name: "provider";
|
|
1045
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
1046
|
-
}, {
|
|
1047
|
-
readonly name: "name";
|
|
1048
|
-
readonly type: "core::byte_array::ByteArray";
|
|
1049
|
-
}, {
|
|
1050
|
-
readonly name: "website_url";
|
|
1051
|
-
readonly type: "core::byte_array::ByteArray";
|
|
1457
|
+
readonly kind: "data";
|
|
1052
1458
|
}];
|
|
1053
|
-
readonly outputs: readonly [];
|
|
1054
|
-
readonly state_mutability: "external";
|
|
1055
1459
|
}, {
|
|
1056
|
-
readonly type: "
|
|
1057
|
-
readonly name: "
|
|
1058
|
-
readonly
|
|
1059
|
-
|
|
1060
|
-
readonly
|
|
1460
|
+
readonly type: "event";
|
|
1461
|
+
readonly name: "pop_protocol::pop_factory::POPFactory::Event";
|
|
1462
|
+
readonly kind: "enum";
|
|
1463
|
+
readonly variants: readonly [{
|
|
1464
|
+
readonly name: "CollectionCreated";
|
|
1465
|
+
readonly type: "pop_protocol::events::CollectionCreated";
|
|
1466
|
+
readonly kind: "nested";
|
|
1061
1467
|
}];
|
|
1062
|
-
readonly outputs: readonly [];
|
|
1063
|
-
readonly state_mutability: "external";
|
|
1064
1468
|
}];
|
|
1065
1469
|
|
|
1066
1470
|
declare const DropCollectionABI: readonly [{
|
|
@@ -7784,6 +8188,55 @@ declare function executeIntents(provider: ReceiptProvider, signer: StarknetVenue
|
|
|
7784
8188
|
receipt: ReceiptLike;
|
|
7785
8189
|
}>;
|
|
7786
8190
|
|
|
8191
|
+
interface PopAllowlist {
|
|
8192
|
+
/** Merkle root to publish with `set_allowlist_root`. */
|
|
8193
|
+
root: string;
|
|
8194
|
+
/** Proof per address, keyed by normalized Starknet address. */
|
|
8195
|
+
proofs: Record<string, string[]>;
|
|
8196
|
+
}
|
|
8197
|
+
declare function buildPopAllowlist(addresses: string[]): PopAllowlist;
|
|
8198
|
+
/** True when `proof` places `address` under `root` — checked before sending a claim. */
|
|
8199
|
+
declare function verifyPopProof(root: string, address: string, proof: string[]): boolean;
|
|
8200
|
+
declare function encodePopClaimFragment(proof: string[]): string;
|
|
8201
|
+
/** The proof in a claim link's fragment; `null` when absent or malformed. */
|
|
8202
|
+
declare function decodePopClaimFragment(fragment: string): string[] | null;
|
|
8203
|
+
|
|
8204
|
+
interface PopClaimLink {
|
|
8205
|
+
address: string;
|
|
8206
|
+
url: string;
|
|
8207
|
+
}
|
|
8208
|
+
/** One claim link per allowlisted address: the collection page with the proof in its fragment. */
|
|
8209
|
+
declare function popClaimLinks(origin: string, collection: string, list: PopAllowlist): PopClaimLink[];
|
|
8210
|
+
declare function popClaimLinksCsv(links: PopClaimLink[]): string;
|
|
8211
|
+
interface PopClaimInfo {
|
|
8212
|
+
/** Allowlist Merkle root; 0 when claims are closed. */
|
|
8213
|
+
root: string;
|
|
8214
|
+
/** Unix seconds; 0 = no deadline. */
|
|
8215
|
+
claimEndTime: number;
|
|
8216
|
+
}
|
|
8217
|
+
/** Reads a collection's allowlist root and claim deadline from chain. */
|
|
8218
|
+
declare function popClaimInfo(provider: Pick<ProviderInterface, "callContract">, collection: string): Promise<PopClaimInfo>;
|
|
8219
|
+
type PopClaimState = "loading" | "claimed" | "closed" | "ended" | "no-link" | "wrong-wallet" | "ready";
|
|
8220
|
+
/** What a claim page should show, decided before any transaction is sent. */
|
|
8221
|
+
declare function popClaimState(input: {
|
|
8222
|
+
hasClaimed: boolean | null;
|
|
8223
|
+
proof: string[] | null;
|
|
8224
|
+
wallet: string | null;
|
|
8225
|
+
/** The collection's claim settings, with `now` in Unix seconds. */
|
|
8226
|
+
info: (PopClaimInfo & {
|
|
8227
|
+
now: number;
|
|
8228
|
+
}) | null;
|
|
8229
|
+
}): PopClaimState;
|
|
8230
|
+
/** Calls on a POP collection, ready for `account.execute` or a sponsored transaction. */
|
|
8231
|
+
declare const popCalls: {
|
|
8232
|
+
claim(collection: string, proof: string[]): Call;
|
|
8233
|
+
/** An empty `tokenUri` uses the collection's URI. */
|
|
8234
|
+
issue(collection: string, recipient: string, tokenUri?: string): Call;
|
|
8235
|
+
/** Only the token's holder can burn it. */
|
|
8236
|
+
burn(collection: string, tokenId: string | bigint): Call;
|
|
8237
|
+
setAllowlistRoot(collection: string, root: string): Call;
|
|
8238
|
+
};
|
|
8239
|
+
|
|
7787
8240
|
declare const SUGGESTED_DEFAULT_PRICE = 0.01;
|
|
7788
8241
|
declare const MIN_SUPPLY = 1000n;
|
|
7789
8242
|
declare const MAX_SUPPLY = 1000000000000n;
|
|
@@ -8064,4 +8517,4 @@ declare function claimSessionWallet(api: Pick<ApiClient, "setupWalletKey">, wall
|
|
|
8064
8517
|
|
|
8065
8518
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
8066
8519
|
|
|
8067
|
-
export { type AddSupplyParams, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, CreatePopCollectionParams, CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, ExecutedTransaction, type FeeSurface, type FundWithTransferOptions, type FundingApi, type FundingResult, type FundingStep, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, PasskeyOwner, PopService, type ReceiptLike, type ReceiptProvider, ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionWallet, type SessionWalletClaimDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, WalletExecutor, accountFor, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeByteArray, encodePairingPayload, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, requestSiwsToken, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, waitUntilDeployed };
|
|
8520
|
+
export { type AddSupplyParams, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, CreatePopCollectionParams, CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, ExecutedTransaction, type FeeSurface, type FundWithTransferOptions, type FundingApi, type FundingResult, type FundingStep, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, PasskeyOwner, type PopAllowlist, type PopClaimInfo, type PopClaimLink, type PopClaimState, PopService, type ReceiptLike, type ReceiptProvider, ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionWallet, type SessionWalletClaimDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, WalletExecutor, accountFor, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildPopAllowlist, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, decodePopClaimFragment, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeByteArray, encodePairingPayload, encodePopClaimFragment, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parseCreatorCoinCreated, parsePairingPayload, popCalls, popClaimInfo, popClaimLinks, popClaimLinksCsv, popClaimState, popHasClaimed, priceToEkuboParams, requestSiwsToken, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyPopProof, waitUntilDeployed };
|