@hypercerts-org/marketplace-sdk 0.3.37 → 0.4.1-alpha.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/{LICENSE → LICENSE.md} +1 -0
- package/README.md +117 -85
- package/dist/HypercertExchangeClient.d.ts +19 -88
- package/dist/abis/IERC20.json +13 -0
- package/dist/abis/OrderValidatorV2A.json +13 -0
- package/dist/index.cjs.js +274 -399
- package/dist/index.d.ts +0 -2
- package/dist/index.esm.js +275 -400
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A.d.ts +5 -1
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20.d.ts +5 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/ExecutionManager__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/StrategyManager__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A__factory.d.ts +11 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20__factory.d.ts +10 -0
- package/dist/typechain/factories/solmate/src/tokens/WETH__factory.d.ts +1 -1
- package/dist/typechain/factories/src/contracts/tests/Verifier__factory.d.ts +1 -1
- package/dist/types.d.ts +57 -28
- package/dist/utils/api.d.ts +55 -26
- package/dist/utils/calls/nonces.d.ts +0 -1
- package/dist/utils/calls/transferManager.d.ts +1 -2
- package/dist/utils/graphl.d.ts +4 -3
- package/package.json +9 -9
- package/LICENSE-APACHE +0 -10
- package/LICENSE-MIT +0 -21
- package/dist/utils/hypercerts-database-types.d.ts +0 -568
@@ -14,7 +14,7 @@ export declare class ProtocolHelpers__factory extends ContractFactory {
|
|
14
14
|
deploymentTransaction(): ContractTransactionResponse;
|
15
15
|
}>;
|
16
16
|
connect(runner: ContractRunner | null): ProtocolHelpers__factory;
|
17
|
-
static readonly bytecode = "
|
17
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b50604051610ee8380380610ee883398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610e55806100936000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630ad584961461005c578063265981d81461008457806377a682c3146100a55780639bd2d29f146100d0578063cd271c5e146100e3575b600080fd5b61006f61006a366004610935565b6100f6565b60405190151581526020015b60405180910390f35b6100976100923660046109b0565b61011c565b60405190815260200161007b565b6000546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200161007b565b61006f6100de366004610bff565b61025b565b6100976100f1366004610c39565b610263565b6000806101028661011c565b905061011081848787610328565b50600195945050505050565b600080546040805163f698da2560e01b8152905183926001600160a01b03169163f698da259160048083019260209291908290030181865afa158015610166573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018a9190610c6e565b6000805485516020870151516040516343603b2160e11b81526004810192909252602482015292935090916001600160a01b03909116906386c0764290604401602060405180830381865afa1580156101e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020b9190610c6e565b905060405180604001604052806002815260200161190160f01b815250828260405160200161023c93929190610cab565b6040516020818303038152906040528051906020012092505050919050565b600080610102865b600080546040805163f698da2560e01b8152905183926001600160a01b03169163f698da259160048083019260209291908290030181865afa1580156102ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d19190610c6e565b905060405180604001604052806002815260200161190160f01b815250816102f885610417565b60405160200161030a93929190610cab565b60405160208183030381529060405280519060200120915050919050565b826001600160a01b03163b60000361037657826001600160a01b031661034f858484610583565b6001600160a01b0316146104115760405163d1085d1b60e01b815260040160405180910390fd5b604051630b135d3f60e11b808252906001600160a01b03851690631626ba7e906103a890889087908790600401610cd2565b602060405180830381865afa1580156103c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e99190610d08565b6001600160e01b031916146104115760405163f6cd0e2f60e01b815260040160405180910390fd5b50505050565b60007e3c1bce41a2de73dfe64d6eeb2b3d7f15f1c0c382d9d963c2c6daeb75f0e539826000015183602001518460400151856060015186608001518760a001518860c001518960e0015160405160200161047999989796959493929190610d57565b6040516020818303038152906040528261010001518361012001518461014001518561016001518661018001516040516020016104b69190610dba565b60405160208183030381529060405280519060200120876101a001516040516020016104e29190610dba565b60408051601f1981840301815282825280516020918201206101c08c01518051908301206001600160a01b0390991691840191909152908201959095526060810193909352608083019190915260a082015260c081019190915260e08101919091526101000160408051601f19818403018152908290526105669291602001610df0565b604051602081830303815290604052805190602001209050919050565b600080600080610593868661062c565b6040805160008152602081018083528c905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa1580156105ee573d6000803e3d6000fd5b5050604051601f1901519450506001600160a01b0384166106225760405163f05a20c760e01b815260040160405180910390fd5b5050509392505050565b60008080836041819003610654578535935060208601359250604086013560001a91506106a0565b8060400361067f57853593506001600160ff1b036020870135908116935060ff1c601b0191506106a0565b60405163d42b4bbd60e01b8152600481018290526024015b60405180910390fd5b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156106e1576040516360c2892960e11b815260040160405180910390fd5b8160ff16601b141580156106f957508160ff16601c14155b1561071c5760405163105e24e960e21b815260ff83166004820152602401610697565b509250925092565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561075d5761075d610724565b60405290565b6040516101e0810167ffffffffffffffff8111828210171561075d5761075d610724565b604051601f8201601f1916810167ffffffffffffffff811182821017156107b0576107b0610724565b604052919050565b600067ffffffffffffffff8211156107d2576107d2610724565b5060051b60200190565b600281106107e957600080fd5b50565b80356107f7816107dc565b919050565b6000604080838503121561080f57600080fd5b61081761073a565b91508235825260208084013567ffffffffffffffff81111561083857600080fd5b8401601f8101861361084957600080fd5b803561085c610857826107b8565b610787565b81815260069190911b8201830190838101908883111561087b57600080fd5b928401925b828410156108c45785848a0312156108985760008081fd5b6108a061073a565b84358152858501356108b1816107dc565b8187015282529285019290840190610880565b808588015250505050505092915050565b60008083601f8401126108e757600080fd5b50813567ffffffffffffffff8111156108ff57600080fd5b60208301915083602082850101111561091757600080fd5b9250929050565b80356001600160a01b03811681146107f757600080fd5b6000806000806060858703121561094b57600080fd5b843567ffffffffffffffff8082111561096357600080fd5b61096f888389016107fc565b9550602087013591508082111561098557600080fd5b50610992878288016108d5565b90945092506109a590506040860161091e565b905092959194509250565b6000602082840312156109c257600080fd5b813567ffffffffffffffff8111156109d957600080fd5b6109e5848285016107fc565b949350505050565b600082601f8301126109fe57600080fd5b81356020610a0e610857836107b8565b82815260059290921b84018101918181019086841115610a2d57600080fd5b8286015b84811015610a485780358352918301918301610a31565b509695505050505050565b600082601f830112610a6457600080fd5b813567ffffffffffffffff811115610a7e57610a7e610724565b610a91601f8201601f1916602001610787565b818152846020838601011115610aa657600080fd5b816020850160208301376000918101602001919091529392505050565b60006101e08284031215610ad657600080fd5b610ade610763565b9050610ae9826107ec565b815260208201356020820152604082013560408201526060820135606082015260808201356080820152610b1f60a083016107ec565b60a0820152610b3060c0830161091e565b60c0820152610b4160e0830161091e565b60e0820152610100610b5481840161091e565b908201526101208281013590820152610140808301359082015261016080830135908201526101808083013567ffffffffffffffff80821115610b9657600080fd5b610ba2868387016109ed565b838501526101a0925082850135915080821115610bbe57600080fd5b610bca868387016109ed565b838501526101c0925082850135915080821115610be657600080fd5b50610bf385828601610a53565b82840152505092915050565b60008060008060608587031215610c1557600080fd5b843567ffffffffffffffff80821115610c2d57600080fd5b61096f88838901610ac3565b600060208284031215610c4b57600080fd5b813567ffffffffffffffff811115610c6257600080fd5b6109e584828501610ac3565b600060208284031215610c8057600080fd5b5051919050565b60005b83811015610ca2578181015183820152602001610c8a565b50506000910152565b60008451610cbd818460208901610c87565b91909101928352506020820152604001919050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b600060208284031215610d1a57600080fd5b81516001600160e01b031981168114610d3257600080fd5b9392505050565b600281106107e957634e487b7160e01b600052602160045260246000fd5b8981526101208101610d688a610d39565b8960208301528860408301528760608301528660808301528560a0830152610d8f85610d39565b60c08201949094526001600160a01b0392831660e08201529116610100909101529695505050505050565b815160009082906020808601845b83811015610de457815185529382019390820190600101610dc8565b50929695505050505050565b60008351610e02818460208801610c87565b835190830190610e16818360208801610c87565b0194935050505056fea2646970667358221220779d5570422f33097ad86db44ac65fb7b9a69071844b38db6951fe345082750c64736f6c63430008110033";
|
18
18
|
static readonly abi: readonly [{
|
19
19
|
readonly inputs: readonly [{
|
20
20
|
readonly internalType: "address";
|
@@ -91,6 +91,16 @@ export declare class IERC20__factory {
|
|
91
91
|
}];
|
92
92
|
readonly stateMutability: "view";
|
93
93
|
readonly type: "function";
|
94
|
+
}, {
|
95
|
+
readonly inputs: readonly [];
|
96
|
+
readonly name: "decimals";
|
97
|
+
readonly outputs: readonly [{
|
98
|
+
readonly internalType: "uint8";
|
99
|
+
readonly name: "";
|
100
|
+
readonly type: "uint8";
|
101
|
+
}];
|
102
|
+
readonly stateMutability: "view";
|
103
|
+
readonly type: "function";
|
94
104
|
}, {
|
95
105
|
readonly inputs: readonly [];
|
96
106
|
readonly name: "totalSupply";
|
@@ -14,7 +14,7 @@ export declare class WETH__factory extends ContractFactory {
|
|
14
14
|
deploymentTransaction(): ContractTransactionResponse;
|
15
15
|
}>;
|
16
16
|
connect(runner: ContractRunner | null): WETH__factory;
|
17
|
-
static readonly bytecode = "
|
17
|
+
static readonly bytecode = "0x60e06040523480156200001157600080fd5b506040518060400160405280600d81526020016c2bb930b83832b21022ba3432b960991b815250604051806040016040528060048152602001630ae8aa8960e31b81525060128260009081620000689190620001db565b506001620000778382620001db565b5060ff81166080524660a0526200008d6200009a565b60c0525062000325915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051620000ce9190620002a7565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200016157607f821691505b6020821081036200018257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001d657600081815260208120601f850160051c81016020861015620001b15750805b601f850160051c820191505b81811015620001d257828155600101620001bd565b5050505b505050565b81516001600160401b03811115620001f757620001f762000136565b6200020f816200020884546200014c565b8462000188565b602080601f8311600181146200024757600084156200022e5750858301515b600019600386901b1c1916600185901b178555620001d2565b600085815260208120601f198616915b82811015620002785788860151825594840194600190910190840162000257565b5085821015620002975787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354620002b7816200014c565b60018281168015620002d25760018114620002e85762000319565b60ff198416875282151583028701945062000319565b8760005260208060002060005b85811015620003105781548a820152908401908201620002f5565b50505082870194505b50929695505050505050565b60805160a05160c051610d4562000355600039600061059f0152600061056a015260006101c60152610d456000f3fe6080604052600436106100e15760003560e01c806370a082311161007f578063a9059cbb11610059578063a9059cbb1461027e578063d0e30db01461029e578063d505accf146102a6578063dd62ed3e146102c657600080fd5b806370a082311461020f5780637ecebe001461023c57806395d89b411461026957600080fd5b806323b872dd116100bb57806323b872dd146101745780632e1a7d4d14610194578063313ce567146101b45780633644e515146101fa57600080fd5b806306fdde03146100f5578063095ea7b31461012057806318160ddd1461015057600080fd5b366100f0576100ee6102fe565b005b600080fd5b34801561010157600080fd5b5061010a61033f565b6040516101179190610a29565b60405180910390f35b34801561012c57600080fd5b5061014061013b366004610a93565b6103cd565b6040519015158152602001610117565b34801561015c57600080fd5b5061016660025481565b604051908152602001610117565b34801561018057600080fd5b5061014061018f366004610abd565b61043a565b3480156101a057600080fd5b506100ee6101af366004610af9565b61051a565b3480156101c057600080fd5b506101e87f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610117565b34801561020657600080fd5b50610166610566565b34801561021b57600080fd5b5061016661022a366004610b12565b60036020526000908152604090205481565b34801561024857600080fd5b50610166610257366004610b12565b60056020526000908152604090205481565b34801561027557600080fd5b5061010a6105c1565b34801561028a57600080fd5b50610140610299366004610a93565b6105ce565b6100ee6102fe565b3480156102b257600080fd5b506100ee6102c1366004610b34565b610634565b3480156102d257600080fd5b506101666102e1366004610ba7565b600460209081526000928352604080842090915290825290205481565b610308333461087d565b60405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b6000805461034c90610bda565b80601f016020809104026020016040519081016040528092919081815260200182805461037890610bda565b80156103c55780601f1061039a576101008083540402835291602001916103c5565b820191906000526020600020905b8154815290600101906020018083116103a857829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906104289086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120546000198114610496576104718382610c2a565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b038516600090815260036020526040812080548592906104be908490610c2a565b90915550506001600160a01b0380851660008181526003602052604090819020805487019055519091871690600080516020610cf0833981519152906105079087815260200190565b60405180910390a3506001949350505050565b61052433826108d7565b60405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a26105633382610939565b50565b60007f0000000000000000000000000000000000000000000000000000000000000000461461059c5761059761098f565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b6001805461034c90610bda565b336000908152600360205260408120805483919083906105ef908490610c2a565b90915550506001600160a01b03831660008181526003602052604090819020805485019055513390600080516020610cf0833981519152906104289086815260200190565b428410156106895760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064015b60405180910390fd5b60006001610695610566565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156107a1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906107d75750876001600160a01b0316816001600160a01b0316145b6108145760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610680565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b806002600082825461088f9190610c3d565b90915550506001600160a01b038216600081815260036020908152604080832080548601905551848152600080516020610cf083398151915291015b60405180910390a35050565b6001600160a01b038216600090815260036020526040812080548392906108ff908490610c2a565b90915550506002805482900390556040518181526000906001600160a01b03841690600080516020610cf0833981519152906020016108cb565b600080600080600085875af190508061098a5760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610680565b505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516109c19190610c50565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b600060208083528351808285015260005b81811015610a5657858101830151858201604001528201610a3a565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610a8e57600080fd5b919050565b60008060408385031215610aa657600080fd5b610aaf83610a77565b946020939093013593505050565b600080600060608486031215610ad257600080fd5b610adb84610a77565b9250610ae960208501610a77565b9150604084013590509250925092565b600060208284031215610b0b57600080fd5b5035919050565b600060208284031215610b2457600080fd5b610b2d82610a77565b9392505050565b600080600080600080600060e0888a031215610b4f57600080fd5b610b5888610a77565b9650610b6660208901610a77565b95506040880135945060608801359350608088013560ff81168114610b8a57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610bba57600080fd5b610bc383610a77565b9150610bd160208401610a77565b90509250929050565b600181811c90821680610bee57607f821691505b602082108103610c0e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561043457610434610c14565b8082018082111561043457610434610c14565b600080835481600182811c915080831680610c6c57607f831692505b60208084108203610c8b57634e487b7160e01b86526022600452602486fd5b818015610c9f5760018114610cb457610ce1565b60ff1986168952841515850289019650610ce1565b60008a81526020902060005b86811015610cd95781548b820152908501908301610cc0565b505084890196505b50949897505050505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d54ab42fdafef1473634366926532e19d960de7f93581438f547f39b3e1a994564736f6c63430008110033";
|
18
18
|
static readonly abi: readonly [{
|
19
19
|
readonly anonymous: false;
|
20
20
|
readonly inputs: readonly [{
|
@@ -14,7 +14,7 @@ export declare class Verifier__factory extends ContractFactory {
|
|
14
14
|
deploymentTransaction(): ContractTransactionResponse;
|
15
15
|
}>;
|
16
16
|
connect(runner: ContractRunner | null): Verifier__factory;
|
17
|
-
static readonly bytecode = "
|
17
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b5060405161107838038061107883398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610fe5806100936000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80639bd2d29f1161005b5780639bd2d29f14610116578063bfbf50ff14610129578063cd271c5e1461013c578063ed24911d1461014f57600080fd5b80630ad584961461008d5780631a8a1fa1146100b5578063265981d8146100ca57806377a682c3146100eb575b600080fd5b6100a061009b366004610a33565b610157565b60405190151581526020015b60405180910390f35b6100c86100c3366004610aad565b61017d565b005b6100dd6100d8366004610b1e565b6101a3565b6040519081526020016100ac565b6000546100fe906001600160a01b031681565b6040516001600160a01b0390911681526020016100ac565b6100a0610124366004610d6a565b6102e2565b6100dd610137366004610da3565b6102ee565b6100dd61014a366004610da3565b6102ff565b6100dd6103c4565b600080610163866101a3565b905061017181848787610432565b50600195945050505050565b61019d61018984610dd7565b838361012461012088016101008901610de3565b50505050565b600080546040805163f698da2560e01b8152905183926001600160a01b03169163f698da259160048083019260209291908290030181865afa1580156101ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102119190610e05565b6000805485516020870151516040516343603b2160e11b81526004810192909252602482015292935090916001600160a01b03909116906386c0764290604401602060405180830381865afa15801561026e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102929190610e05565b905060405180604001604052806002815260200161190160f01b81525082826040516020016102c393929190610e42565b6040516020818303038152906040528051906020012092505050919050565b600080610163866102ff565b60006102f98261051b565b92915050565b600080546040805163f698da2560e01b8152905183926001600160a01b03169163f698da259160048083019260209291908290030181865afa158015610349573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036d9190610e05565b905060405180604001604052806002815260200161190160f01b815250816103948561051b565b6040516020016103a693929190610e42565b60405160208183030381529060405280519060200120915050919050565b600080546040805163f698da2560e01b8152905183926001600160a01b03169163f698da259160048083019260209291908290030181865afa15801561040e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f99190610e05565b826001600160a01b03163b60000361048057826001600160a01b0316610459858484610687565b6001600160a01b03161461019d5760405163d1085d1b60e01b815260040160405180910390fd5b604051630b135d3f60e11b808252906001600160a01b03851690631626ba7e906104b290889087908790600401610e69565b602060405180830381865afa1580156104cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f39190610e9f565b6001600160e01b0319161461019d5760405163f6cd0e2f60e01b815260040160405180910390fd5b60007e3c1bce41a2de73dfe64d6eeb2b3d7f15f1c0c382d9d963c2c6daeb75f0e539826000015183602001518460400151856060015186608001518760a001518860c001518960e0015160405160200161057d99989796959493929190610ee7565b6040516020818303038152906040528261010001518361012001518461014001518561016001518661018001516040516020016105ba9190610f4a565b60405160208183030381529060405280519060200120876101a001516040516020016105e69190610f4a565b60408051601f1981840301815282825280516020918201206101c08c01518051908301206001600160a01b0390991691840191909152908201959095526060810193909352608083019190915260a082015260c081019190915260e08101919091526101000160408051601f198184030181529082905261066a9291602001610f80565b604051602081830303815290604052805190602001209050919050565b6000806000806106978686610730565b6040805160008152602081018083528c905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa1580156106f2573d6000803e3d6000fd5b5050604051601f1901519450506001600160a01b0384166107265760405163f05a20c760e01b815260040160405180910390fd5b5050509392505050565b60008080836041819003610758578535935060208601359250604086013560001a91506107a4565b8060400361078357853593506001600160ff1b036020870135908116935060ff1c601b0191506107a4565b60405163d42b4bbd60e01b8152600481018290526024015b60405180910390fd5b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156107e5576040516360c2892960e11b815260040160405180910390fd5b8160ff16601b141580156107fd57508160ff16601c14155b156108205760405163105e24e960e21b815260ff8316600482015260240161079b565b509250925092565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561086057610860610828565b60405290565b6040516101e081016001600160401b038111828210171561086057610860610828565b604051601f8201601f191681016001600160401b03811182821017156108b1576108b1610828565b604052919050565b60006001600160401b038211156108d2576108d2610828565b5060051b60200190565b600281106108e957600080fd5b50565b80356108f7816108dc565b919050565b6000604080838503121561090f57600080fd5b61091761083e565b9150823582526020808401356001600160401b0381111561093757600080fd5b8401601f8101861361094857600080fd5b803561095b610956826108b9565b610889565b81815260069190911b8201830190838101908883111561097a57600080fd5b928401925b828410156109c35785848a0312156109975760008081fd5b61099f61083e565b84358152858501356109b0816108dc565b818701528252928501929084019061097f565b808588015250505050505092915050565b60008083601f8401126109e657600080fd5b5081356001600160401b038111156109fd57600080fd5b602083019150836020828501011115610a1557600080fd5b9250929050565b80356001600160a01b03811681146108f757600080fd5b60008060008060608587031215610a4957600080fd5b84356001600160401b0380821115610a6057600080fd5b610a6c888389016108fc565b95506020870135915080821115610a8257600080fd5b50610a8f878288016109d4565b9094509250610aa2905060408601610a1c565b905092959194509250565b600080600060408486031215610ac257600080fd5b83356001600160401b0380821115610ad957600080fd5b908501906101e08288031215610aee57600080fd5b90935060208501359080821115610b0457600080fd5b50610b11868287016109d4565b9497909650939450505050565b600060208284031215610b3057600080fd5b81356001600160401b03811115610b4657600080fd5b610b52848285016108fc565b949350505050565b600082601f830112610b6b57600080fd5b81356020610b7b610956836108b9565b82815260059290921b84018101918181019086841115610b9a57600080fd5b8286015b84811015610bb55780358352918301918301610b9e565b509695505050505050565b600082601f830112610bd157600080fd5b81356001600160401b03811115610bea57610bea610828565b610bfd601f8201601f1916602001610889565b818152846020838601011115610c1257600080fd5b816020850160208301376000918101602001919091529392505050565b60006101e08284031215610c4257600080fd5b610c4a610866565b9050610c55826108ec565b815260208201356020820152604082013560408201526060820135606082015260808201356080820152610c8b60a083016108ec565b60a0820152610c9c60c08301610a1c565b60c0820152610cad60e08301610a1c565b60e0820152610100610cc0818401610a1c565b90820152610120828101359082015261014080830135908201526101608083013590820152610180808301356001600160401b0380821115610d0157600080fd5b610d0d86838701610b5a565b838501526101a0925082850135915080821115610d2957600080fd5b610d3586838701610b5a565b838501526101c0925082850135915080821115610d5157600080fd5b50610d5e85828601610bc0565b82840152505092915050565b60008060008060608587031215610d8057600080fd5b84356001600160401b0380821115610d9757600080fd5b610a6c88838901610c2f565b600060208284031215610db557600080fd5b81356001600160401b03811115610dcb57600080fd5b610b5284828501610c2f565b60006102f93683610c2f565b600060208284031215610df557600080fd5b610dfe82610a1c565b9392505050565b600060208284031215610e1757600080fd5b5051919050565b60005b83811015610e39578181015183820152602001610e21565b50506000910152565b60008451610e54818460208901610e1e565b91909101928352506020820152604001919050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b600060208284031215610eb157600080fd5b81516001600160e01b031981168114610dfe57600080fd5b600281106108e957634e487b7160e01b600052602160045260246000fd5b8981526101208101610ef88a610ec9565b8960208301528860408301528760608301528660808301528560a0830152610f1f85610ec9565b60c08201949094526001600160a01b0392831660e08201529116610100909101529695505050505050565b815160009082906020808601845b83811015610f7457815185529382019390820190600101610f58565b50929695505050505050565b60008351610f92818460208801610e1e565b835190830190610fa6818360208801610e1e565b0194935050505056fea26469706673582212201a4dae76c90047f2c7b9e2ab7d60dacdbe0f6772c3a877001f2579cdeab30a6f64736f6c63430008110033";
|
18
18
|
static readonly abi: readonly [{
|
19
19
|
readonly inputs: readonly [{
|
20
20
|
readonly internalType: "address";
|
package/dist/types.d.ts
CHANGED
@@ -41,22 +41,13 @@ export interface ChainInfo {
|
|
41
41
|
export declare enum CollectionType {
|
42
42
|
ERC721 = 0,
|
43
43
|
ERC1155 = 1,
|
44
|
-
HYPERCERT = 2
|
45
|
-
HYPERBOARD = 3
|
44
|
+
HYPERCERT = 2
|
46
45
|
}
|
47
46
|
/** List of trading strategies */
|
48
47
|
export declare enum StrategyType {
|
49
48
|
standard = 0,
|
50
|
-
collection = 10,
|
51
|
-
collectionWithMerkleTree = 2,
|
52
|
-
dutchAuction = 4,
|
53
|
-
itemIdsRange = 5,
|
54
|
-
hypercertCollectionOffer = 6,
|
55
|
-
hypercertCollectionOfferWithProof = 7,
|
56
|
-
hypercertCollectionOfferWithAllowlist = 8,
|
57
|
-
hypercertDutchAuction = 9,
|
58
49
|
hypercertFractionOffer = 1,
|
59
|
-
hypercertFractionOfferWithAllowlist =
|
50
|
+
hypercertFractionOfferWithAllowlist = 2
|
60
51
|
}
|
61
52
|
/** Type for maker order */
|
62
53
|
export declare enum QuoteType {
|
@@ -67,16 +58,6 @@ export declare enum QuoteType {
|
|
67
58
|
export type SolidityType = "bool" | "address" | "uint8" | "uint16" | "uint112" | "uint256" | "uint256[]" | "bytes" | "bytes32" | "bytes32[]" | "string";
|
68
59
|
/** EIP712 type data */
|
69
60
|
export type EIP712TypedData = Record<string, Array<TypedDataField>>;
|
70
|
-
/**
|
71
|
-
* Item structure used for batch transfers
|
72
|
-
* @see {@link https://github.com/LooksRare/contracts-exchange-v2/blob/8de425de2571a57112e9e67cf0c925439a83c9e3/contracts/interfaces/ITransferManager.sol#L16 TransferManager interface}
|
73
|
-
*/
|
74
|
-
export interface BatchTransferItem {
|
75
|
-
collection: string;
|
76
|
-
collectionType: CollectionType;
|
77
|
-
itemIds: BigNumberish[];
|
78
|
-
amounts: BigNumberish[];
|
79
|
-
}
|
80
61
|
/** Return type for any on chain call */
|
81
62
|
export interface ContractMethods {
|
82
63
|
call: (additionalOverrides?: Overrides) => Promise<ContractTransactionResponse>;
|
@@ -106,25 +87,23 @@ export interface CreateMakerBidOutput {
|
|
106
87
|
export interface CreateMakerInput {
|
107
88
|
/** Collection address */
|
108
89
|
collection: string;
|
109
|
-
/** Strategy ID, 0:
|
90
|
+
/** Strategy ID, 0: Sell entire fraction, 1: Sell part of a fraction, etc*/
|
110
91
|
strategyId: StrategyType;
|
111
92
|
/** Asset type, 0: ERC-721, 1:ERC-1155, etc */
|
112
93
|
collectionType: CollectionType;
|
113
94
|
/** Subset nonce used to group an arbitrary number of orders under the same nonce */
|
114
95
|
subsetNonce: BigNumberish;
|
115
|
-
/** Order nonce, get it from the HypercertExchange
|
96
|
+
/** Order nonce, get it from the HypercertExchange API */
|
116
97
|
orderNonce: BigNumberish;
|
117
98
|
/** Timestamp in seconds when the order becomes invalid */
|
118
99
|
endTime: BigNumberish;
|
119
100
|
/** Asset price in wei */
|
120
101
|
price: BigNumberish;
|
121
102
|
/**
|
122
|
-
*
|
103
|
+
* IDs of fractions to be sold
|
123
104
|
* @defaultValue [1]
|
124
105
|
*/
|
125
106
|
itemIds: BigNumberish[];
|
126
|
-
/** Amount for each item ids (needs to have the same length as itemIds array) */
|
127
|
-
amounts?: BigNumberish[];
|
128
107
|
/**
|
129
108
|
* Currency address
|
130
109
|
* @defaultValue ETH
|
@@ -141,6 +120,33 @@ export interface CreateMakerInput {
|
|
141
120
|
*/
|
142
121
|
additionalParameters?: any[];
|
143
122
|
}
|
123
|
+
export type CreateDirectFractionsSaleMakerAskInput = Omit<CreateMakerInput, "strategyId" | "collectionType" | "collection" | "subsetNonce" | "orderNonce" | "amounts">;
|
124
|
+
export type CreateFractionalSaleMakerAskInput = Omit<CreateMakerInput, "strategyId" | "collectionType" | "collection" | "subsetNonce" | "orderNonce" | "amounts" | "additionalParameters" | "price"> & {
|
125
|
+
/**
|
126
|
+
* Price of one unit in wei
|
127
|
+
*/
|
128
|
+
price: BigNumberish;
|
129
|
+
/**
|
130
|
+
* Minimum amount of units to sell per transaction.
|
131
|
+
*/
|
132
|
+
minUnitAmount: BigNumberish;
|
133
|
+
/**
|
134
|
+
* Maximum amount of units to sell per transaction.
|
135
|
+
*/
|
136
|
+
maxUnitAmount: BigNumberish;
|
137
|
+
/**
|
138
|
+
* Minimum amount of units to keep after all sales.
|
139
|
+
*/
|
140
|
+
minUnitsToKeep: BigNumberish;
|
141
|
+
/**
|
142
|
+
* Whether to sell the leftover fraction, if any. This will override `minUnitsAmount` on the last sale if there are leftover units in the fraction.
|
143
|
+
*/
|
144
|
+
sellLeftoverFraction: boolean;
|
145
|
+
/**
|
146
|
+
* Root of the allowlist tree for users that are allowed to buy parts of the fraction.
|
147
|
+
*/
|
148
|
+
root?: string;
|
149
|
+
};
|
144
150
|
export type CreateMakerCollectionOfferInput = Omit<CreateMakerInput, "strategyId" | "itemIds">;
|
145
151
|
export type CreateMakerCollectionOfferWithProofInput = Omit<CreateMakerInput, "strategyId">;
|
146
152
|
/** Maker object to be used in execute functions */
|
@@ -169,9 +175,9 @@ export interface Maker {
|
|
169
175
|
endTime: BigNumberish;
|
170
176
|
/** Minimum price to be received after the trade */
|
171
177
|
price: BigNumberish;
|
172
|
-
/** List of
|
178
|
+
/** List of fraction IDS */
|
173
179
|
itemIds: BigNumberish[];
|
174
|
-
/** List of amount for each
|
180
|
+
/** List of amount for sale for each fraction ID (will always be 1 for hypercert fractions as they are unique) */
|
175
181
|
amounts: BigNumberish[];
|
176
182
|
/** Additional parameters for complex orders */
|
177
183
|
additionalParameters: BytesLike;
|
@@ -254,3 +260,26 @@ export declare enum OrderValidatorCode {
|
|
254
260
|
BUNDLE_ERC2981_NOT_SUPPORTED = 901,
|
255
261
|
CREATOR_FEE_TOO_HIGH = 902
|
256
262
|
}
|
263
|
+
export interface Order {
|
264
|
+
additionalParameters: string;
|
265
|
+
amounts: number[];
|
266
|
+
chainId: number;
|
267
|
+
collection: string;
|
268
|
+
collectionType: number;
|
269
|
+
createdAt: string;
|
270
|
+
currency: string;
|
271
|
+
endTime: number;
|
272
|
+
globalNonce: string;
|
273
|
+
id: string;
|
274
|
+
invalidated: boolean;
|
275
|
+
itemIds: string[];
|
276
|
+
orderNonce: string;
|
277
|
+
price: string;
|
278
|
+
quoteType: number;
|
279
|
+
signature: string;
|
280
|
+
signer: string;
|
281
|
+
startTime: number;
|
282
|
+
strategyId: number;
|
283
|
+
subsetNonce: number;
|
284
|
+
validator_codes: number[] | null;
|
285
|
+
}
|
package/dist/utils/api.d.ts
CHANGED
@@ -3,10 +3,9 @@ export declare class ApiClient {
|
|
3
3
|
private readonly baseUrl?;
|
4
4
|
private _baseUrl;
|
5
5
|
private readonly _urqlClient;
|
6
|
-
private _supabaseHypercerts;
|
7
6
|
constructor(indexerEnvironment: "test" | "production", baseUrl?: string | undefined);
|
8
7
|
/**
|
9
|
-
* Fetches order nonce from
|
8
|
+
* Fetches order nonce from API
|
10
9
|
* @param address Address
|
11
10
|
* @param chainId Chain ID
|
12
11
|
*/
|
@@ -19,7 +18,7 @@ export declare class ApiClient {
|
|
19
18
|
chain_id: number;
|
20
19
|
}>;
|
21
20
|
/**
|
22
|
-
* Registers order in
|
21
|
+
* Registers order in the marketplace API
|
23
22
|
* @param order Order
|
24
23
|
* @param signer Signer
|
25
24
|
* @param signature Signature
|
@@ -36,13 +35,14 @@ export declare class ApiClient {
|
|
36
35
|
success: boolean;
|
37
36
|
}>;
|
38
37
|
/**
|
38
|
+
* @deprecated use GraphQL API instead
|
39
39
|
* Fetch existing open orders from the marketplace API
|
40
40
|
* @param signer address of the user that created the order
|
41
41
|
* @param claimTokenIds a list of claimTokenIds - will return any order that is for one or more of these claimTokenIds
|
42
42
|
* @param chainId chain id for the order
|
43
43
|
* @param strategy strategy for the order
|
44
44
|
*/
|
45
|
-
fetchOrders: ({ signer,
|
45
|
+
fetchOrders: ({ signer, chainId }: Partial<FetchOrderArgs>) => Promise<{
|
46
46
|
subsetNonce: number;
|
47
47
|
strategyId: number;
|
48
48
|
startTime: number;
|
@@ -94,35 +94,64 @@ export declare class ApiClient {
|
|
94
94
|
id: string;
|
95
95
|
}[] | null | undefined>;
|
96
96
|
/**
|
97
|
-
*
|
97
|
+
* @deprecated use the GraphQL API instead
|
98
|
+
* Fetches orders from API by hypercert ID
|
98
99
|
* @param hypercertId Hypercert ID
|
99
100
|
* @param chainId Chain ID
|
100
101
|
*/
|
101
102
|
fetchOrdersByHypercertId: ({ hypercertId }: {
|
102
103
|
hypercertId: string;
|
103
|
-
}) => Promise<
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
104
|
+
}) => Promise<{
|
105
|
+
subsetNonce: number;
|
106
|
+
strategyId: number;
|
107
|
+
startTime: number;
|
108
|
+
signer: string;
|
109
|
+
signature: string;
|
110
|
+
quoteType: number;
|
111
|
+
price: string;
|
112
|
+
orderNonce: string;
|
113
|
+
itemIds: string[];
|
112
114
|
globalNonce: string;
|
115
|
+
endTime: number;
|
116
|
+
currency: string;
|
117
|
+
createdAt: string;
|
118
|
+
collectionType: number;
|
119
|
+
collection: string;
|
120
|
+
chainId: unknown;
|
121
|
+
amounts: number[];
|
122
|
+
additionalParameters: string;
|
123
|
+
hypercert: {
|
124
|
+
uri: string | null;
|
125
|
+
units: unknown;
|
126
|
+
token_id: unknown;
|
127
|
+
metadata: {
|
128
|
+
work_timeframe_to: unknown;
|
129
|
+
work_timeframe_from: unknown;
|
130
|
+
work_scope: string[] | null;
|
131
|
+
uri: string | null;
|
132
|
+
rights: string[] | null;
|
133
|
+
properties: unknown;
|
134
|
+
name: string | null;
|
135
|
+
impact_timeframe_to: unknown;
|
136
|
+
impact_timeframe_from: unknown;
|
137
|
+
impact_scope: string[] | null;
|
138
|
+
id: string;
|
139
|
+
external_url: string | null;
|
140
|
+
description: string | null;
|
141
|
+
contributors: string[] | null;
|
142
|
+
allow_list_uri: string | null;
|
143
|
+
} | null;
|
144
|
+
last_update_block_timestamp: unknown;
|
145
|
+
last_update_block_number: unknown;
|
146
|
+
id: string;
|
147
|
+
creation_block_timestamp: unknown;
|
148
|
+
creation_block_number: unknown;
|
149
|
+
contracts_id: string | null;
|
150
|
+
creator_address: string | null;
|
151
|
+
hypercert_id: string | null;
|
152
|
+
} | null;
|
113
153
|
id: string;
|
114
|
-
|
115
|
-
itemIds: string[];
|
116
|
-
orderNonce: string;
|
117
|
-
price: string;
|
118
|
-
quoteType: number;
|
119
|
-
signature: string;
|
120
|
-
signer: string;
|
121
|
-
startTime: number;
|
122
|
-
strategyId: number;
|
123
|
-
subsetNonce: number;
|
124
|
-
validator_codes: number[] | null;
|
125
|
-
}[]>>;
|
154
|
+
}[] | null | undefined>;
|
126
155
|
handleResponse: <T>(res: Response) => Promise<T>;
|
127
156
|
updateOrderValidity: (tokenIds: bigint[], chainId: number) => Promise<{
|
128
157
|
id: string;
|
@@ -5,5 +5,4 @@ export declare const viewUserBidAskNonces: (signerOrProvider: Provider | Signer,
|
|
5
5
|
askNonce: bigint;
|
6
6
|
}>;
|
7
7
|
export declare const cancelOrderNonces: (signer: Signer, address: string, nonces: BigNumberish[], overrides?: Overrides) => ContractMethods;
|
8
|
-
export declare const cancelSubsetNonces: (signer: Signer, address: string, nonces: BigNumberish[], overrides?: Overrides) => ContractMethods;
|
9
8
|
export declare const incrementBidAskNonces: (signer: Signer, address: string, bid: boolean, ask: boolean, overrides?: Overrides) => ContractMethods;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Overrides, Provider, Signer } from "ethers";
|
2
|
-
import { ContractMethods
|
2
|
+
import { ContractMethods } from "../../types";
|
3
3
|
export declare const hasUserApprovedOperator: (signerOrProvider: Provider | Signer, address: string, user: string, operator: string, overrides?: Overrides) => Promise<boolean>;
|
4
4
|
export declare const grantApprovals: (signer: Signer, address: string, operators: string[], overrides?: Overrides) => ContractMethods;
|
5
5
|
export declare const revokeApprovals: (signer: Signer, address: string, operators: string[], overrides?: Overrides) => ContractMethods;
|
6
|
-
export declare const transferBatchItemsAcrossCollections: (signer: Signer, address: string, items: BatchTransferItem[], from: string, to: string, overrides?: Overrides) => ContractMethods;
|
package/dist/utils/graphl.d.ts
CHANGED
@@ -6,9 +6,10 @@ export declare const getFractionsById: (fractionId: string, client: Client) => P
|
|
6
6
|
fraction_id: string | null;
|
7
7
|
creation_block_timestamp: unknown;
|
8
8
|
}[] | null | undefined>;
|
9
|
-
export declare const getOrders: (
|
10
|
-
chainId?: BigInt
|
11
|
-
signer?: `0x${string}
|
9
|
+
export declare const getOrders: (filter: {
|
10
|
+
chainId?: BigInt;
|
11
|
+
signer?: `0x${string}`;
|
12
|
+
hypercertId?: string;
|
12
13
|
}, client: Client) => Promise<{
|
13
14
|
subsetNonce: number;
|
14
15
|
strategyId: number;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hypercerts-org/marketplace-sdk",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.1-alpha.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -29,17 +29,16 @@
|
|
29
29
|
"dev": "rollup -c --bundleConfigAsCjs -w",
|
30
30
|
"build:ts": "rollup -c --bundleConfigAsCjs",
|
31
31
|
"build:sc": "hardhat compile",
|
32
|
-
"build": "
|
32
|
+
"build": "pnpm run build:sc && pnpm run build:ts",
|
33
33
|
"test": "nyc hardhat test",
|
34
34
|
"doc": "typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.build.json",
|
35
35
|
"lint": "eslint --max-warnings 0 'src/**/*.{js,ts}'",
|
36
36
|
"format:check": "prettier --check 'src/**/*.{js,ts,json,yaml,yml,md}'",
|
37
37
|
"format:write": "prettier --write 'src/**/*.{js,ts,json,yaml,yml,md}'",
|
38
|
-
"release": "release-it --only-version --set-upstream"
|
39
|
-
"supabase:types:hypercerts": "npx supabase gen types typescript --project-id zgvoyckkistexkfdmjqc --schema public > src/utils/hypercerts-database-types.ts"
|
38
|
+
"release": "release-it --only-version --set-upstream"
|
40
39
|
},
|
41
40
|
"lint-staged": {
|
42
|
-
"*.{js,jsx,ts,tsx,json,yaml,yml}": "
|
41
|
+
"*.{js,jsx,ts,tsx,json,yaml,yml}": "pnpm run format:write"
|
43
42
|
},
|
44
43
|
"peerDependencies": {
|
45
44
|
"ethers": "^6.6.2"
|
@@ -52,6 +51,7 @@
|
|
52
51
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
53
52
|
"@looksrare/contracts-exchange-v1": "^1.2.0",
|
54
53
|
"@looksrare/contracts-exchange-v2": "^0.1.2",
|
54
|
+
"@looksrare/contracts-libs": "^3.5.1",
|
55
55
|
"@nomicfoundation/hardhat-ethers": "^3.0.4",
|
56
56
|
"@rollup/plugin-json": "^6.0.0",
|
57
57
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
@@ -85,19 +85,19 @@
|
|
85
85
|
"solhint": "^3.4.1",
|
86
86
|
"solmate": "^6.6.1",
|
87
87
|
"source-map-support": "^0.5.21",
|
88
|
-
"supabase": "^1.127.4",
|
89
88
|
"ts-node": "^10.9.1",
|
90
89
|
"typechain": "^8.2.0",
|
91
|
-
"typedoc": "^0.
|
92
|
-
"typedoc-plugin-markdown": "^3.
|
90
|
+
"typedoc": "^0.27.4",
|
91
|
+
"typedoc-plugin-markdown": "^4.3.2",
|
93
92
|
"typescript": "^5.3.3"
|
94
93
|
},
|
95
94
|
"dependencies": {
|
96
95
|
"@hypercerts-org/sdk": "2.3.0",
|
97
|
-
"@
|
96
|
+
"@looksrare/contracts-libs": "^3.5.1",
|
98
97
|
"@urql/core": "^5.0.4",
|
99
98
|
"ethers": "^6.6.2",
|
100
99
|
"gql.tada": "^1.7.6",
|
100
|
+
"js-sha3": "^0.9.3",
|
101
101
|
"merkletreejs": "^0.3.9"
|
102
102
|
}
|
103
103
|
}
|
package/LICENSE-APACHE
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
Copyright 2023 Hypercerts Foundation
|
2
|
-
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
|
4
|
-
License. You may obtain a copy of the License at
|
5
|
-
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
|
8
|
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
|
9
|
-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
-
language governing permissions and limitations under the License.
|
package/LICENSE-MIT
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2023 Hypercerts Foundation
|
4
|
-
|
5
|
-
Copyright (c) 2022 LooksRare for portions of marketplace: https://github.com/LooksRare/contracts-exchange-v2 commit:
|
6
|
-
7fca565
|
7
|
-
|
8
|
-
Copyright (c) 2022 Paul Razvan Berg for inital template: https://github.com/paulrberg/foundry-template
|
9
|
-
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
11
|
-
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
12
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
13
|
-
persons to whom the Software is furnished to do so, subject to the following conditions:
|
14
|
-
|
15
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
16
|
-
Software.
|
17
|
-
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
19
|
-
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
20
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
21
|
-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|