@taquito/taquito 24.2.0 → 24.3.0-beta.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.
Files changed (129) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/batch/rpc-batch-provider.js +91 -83
  3. package/dist/lib/context.js +22 -26
  4. package/dist/lib/contract/big-map.js +16 -29
  5. package/dist/lib/contract/contract-methods/contract-method-object-param.js +7 -7
  6. package/dist/lib/contract/contract-methods/contract-on-chain-view.js +31 -44
  7. package/dist/lib/contract/contract.js +21 -32
  8. package/dist/lib/contract/errors.js +9 -9
  9. package/dist/lib/contract/prepare.js +36 -45
  10. package/dist/lib/contract/rpc-contract-provider.js +426 -475
  11. package/dist/lib/contract/sapling-state-abstraction.js +3 -14
  12. package/dist/lib/contract/semantic.js +2 -2
  13. package/dist/lib/errors.js +3 -3
  14. package/dist/lib/estimate/errors.js +1 -1
  15. package/dist/lib/estimate/estimate.js +66 -20
  16. package/dist/lib/estimate/rpc-estimate-provider.js +427 -460
  17. package/dist/lib/forger/composite-forger.js +16 -27
  18. package/dist/lib/forger/errors.js +2 -2
  19. package/dist/lib/forger/taquito-local-forger.js +9 -22
  20. package/dist/lib/global-constants/default-global-constants-provider.js +8 -19
  21. package/dist/lib/global-constants/errors.js +2 -2
  22. package/dist/lib/global-constants/noop-global-constants-provider.js +2 -13
  23. package/dist/lib/import-key.js +23 -34
  24. package/dist/lib/injector/rpc-injector.js +13 -24
  25. package/dist/lib/operations/ballot-operation.js +2 -3
  26. package/dist/lib/operations/delegate-operation.js +5 -8
  27. package/dist/lib/operations/drain-delegate-operation.js +1 -1
  28. package/dist/lib/operations/errors.js +9 -6
  29. package/dist/lib/operations/increase-paid-storage-operation.js +4 -7
  30. package/dist/lib/operations/operations.js +100 -30
  31. package/dist/lib/operations/origination-operation.js +16 -27
  32. package/dist/lib/operations/proposals-operation.js +2 -3
  33. package/dist/lib/operations/register-global-constant-operation.js +4 -7
  34. package/dist/lib/operations/reveal-operation.js +1 -1
  35. package/dist/lib/operations/smart-rollup-add-messages-operation.js +4 -7
  36. package/dist/lib/operations/smart-rollup-execute-outbox-message-operation.js +4 -7
  37. package/dist/lib/operations/smart-rollup-originate-operation.js +4 -7
  38. package/dist/lib/operations/transaction-operation.js +2 -2
  39. package/dist/lib/operations/transfer-ticket-operation.js +4 -6
  40. package/dist/lib/operations/types.js +17 -19
  41. package/dist/lib/operations/update-companion-key-operation.js +4 -7
  42. package/dist/lib/operations/update-consensus-key-operation.js +4 -7
  43. package/dist/lib/packer/michel-codec-packer.js +3 -14
  44. package/dist/lib/packer/rpc-packer.js +2 -13
  45. package/dist/lib/parser/michel-codec-parser.js +82 -107
  46. package/dist/lib/parser/noop-parser.js +2 -13
  47. package/dist/lib/prepare/prepare-provider.js +780 -744
  48. package/dist/lib/provider.js +322 -128
  49. package/dist/lib/read-provider/rpc-read-adapter.js +76 -121
  50. package/dist/lib/signer/errors.js +1 -1
  51. package/dist/lib/signer/noop.js +9 -26
  52. package/dist/lib/subscribe/errors.js +2 -2
  53. package/dist/lib/subscribe/polling-subcribe-provider.js +35 -38
  54. package/dist/lib/taquito.js +33 -33
  55. package/dist/lib/tz/rpc-tz-provider.js +27 -44
  56. package/dist/lib/version.js +2 -2
  57. package/dist/lib/wallet/batch-operation.js +32 -45
  58. package/dist/lib/wallet/delegation-operation.js +25 -40
  59. package/dist/lib/wallet/errors.js +15 -3
  60. package/dist/lib/wallet/increase-paid-storage-operation.js +25 -40
  61. package/dist/lib/wallet/legacy.js +28 -63
  62. package/dist/lib/wallet/operation-factory.js +27 -56
  63. package/dist/lib/wallet/operation.js +123 -59
  64. package/dist/lib/wallet/origination-operation.js +34 -46
  65. package/dist/lib/wallet/register-global-constant-operation.js +26 -43
  66. package/dist/lib/wallet/transaction-operation.js +21 -36
  67. package/dist/lib/wallet/transfer-ticket-operation.js +21 -36
  68. package/dist/lib/wallet/wallet.js +187 -184
  69. package/dist/taquito.es6.js +3424 -3197
  70. package/dist/taquito.es6.js.map +1 -1
  71. package/dist/taquito.min.js +1 -1
  72. package/dist/taquito.umd.js +7930 -7701
  73. package/dist/taquito.umd.js.map +1 -1
  74. package/dist/types/batch/rpc-batch-provider.d.ts +18 -18
  75. package/dist/types/context.d.ts +4 -4
  76. package/dist/types/contract/big-map.d.ts +3 -3
  77. package/dist/types/contract/contract-methods/contract-method-interface.d.ts +4 -4
  78. package/dist/types/contract/contract-methods/contract-method-object-param.d.ts +6 -6
  79. package/dist/types/contract/contract-methods/contract-on-chain-view.d.ts +3 -3
  80. package/dist/types/contract/contract.d.ts +6 -6
  81. package/dist/types/contract/errors.d.ts +11 -11
  82. package/dist/types/contract/interface.d.ts +42 -42
  83. package/dist/types/contract/rpc-contract-provider.d.ts +44 -43
  84. package/dist/types/contract/sapling-state-abstraction.d.ts +1 -1
  85. package/dist/types/contract/semantic.d.ts +2 -2
  86. package/dist/types/errors.d.ts +5 -5
  87. package/dist/types/estimate/errors.d.ts +1 -1
  88. package/dist/types/estimate/estimate-provider-interface.d.ts +81 -84
  89. package/dist/types/estimate/estimate.d.ts +28 -11
  90. package/dist/types/estimate/rpc-estimate-provider.d.ts +34 -30
  91. package/dist/types/forger/errors.d.ts +2 -2
  92. package/dist/types/global-constants/default-global-constants-provider.d.ts +2 -2
  93. package/dist/types/global-constants/errors.d.ts +2 -2
  94. package/dist/types/global-constants/interface-global-constants-provider.d.ts +1 -1
  95. package/dist/types/import-key.d.ts +2 -2
  96. package/dist/types/operations/ballot-operation.d.ts +1 -1
  97. package/dist/types/operations/delegate-operation.d.ts +2 -2
  98. package/dist/types/operations/drain-delegate-operation.d.ts +1 -1
  99. package/dist/types/operations/errors.d.ts +5 -5
  100. package/dist/types/operations/failing-noop-operation.d.ts +1 -1
  101. package/dist/types/operations/increase-paid-storage-operation.d.ts +1 -1
  102. package/dist/types/operations/operations.d.ts +2 -2
  103. package/dist/types/operations/origination-operation.d.ts +5 -5
  104. package/dist/types/operations/proposals-operation.d.ts +1 -1
  105. package/dist/types/operations/register-global-constant-operation.d.ts +2 -2
  106. package/dist/types/operations/reveal-operation.d.ts +1 -1
  107. package/dist/types/operations/smart-rollup-add-messages-operation.d.ts +1 -1
  108. package/dist/types/operations/smart-rollup-execute-outbox-message-operation.d.ts +1 -1
  109. package/dist/types/operations/smart-rollup-originate-operation.d.ts +1 -1
  110. package/dist/types/operations/transaction-operation.d.ts +2 -2
  111. package/dist/types/operations/transfer-ticket-operation.d.ts +2 -2
  112. package/dist/types/operations/types.d.ts +387 -25
  113. package/dist/types/operations/update-companion-key-operation.d.ts +1 -1
  114. package/dist/types/operations/update-consensus-key-operation.d.ts +1 -1
  115. package/dist/types/prepare/interface.d.ts +32 -33
  116. package/dist/types/prepare/prepare-provider.d.ts +34 -60
  117. package/dist/types/provider.d.ts +7 -1
  118. package/dist/types/read-provider/interface.d.ts +21 -21
  119. package/dist/types/read-provider/rpc-read-adapter.d.ts +22 -22
  120. package/dist/types/signer/errors.d.ts +1 -1
  121. package/dist/types/signer/noop.d.ts +1 -1
  122. package/dist/types/subscribe/errors.d.ts +2 -2
  123. package/dist/types/taquito.d.ts +33 -33
  124. package/dist/types/wallet/errors.d.ts +10 -2
  125. package/dist/types/wallet/interface.d.ts +13 -13
  126. package/dist/types/wallet/operation.d.ts +4 -3
  127. package/dist/types/wallet/wallet.d.ts +36 -35
  128. package/package.json +27 -15
  129. package/LICENSE +0 -202
@@ -6,6 +6,7 @@ import type { ContractMethodObject } from '../contract/contract-methods/contract
6
6
  import { OpKind, withKind } from '../operations/types';
7
7
  import { OriginationWalletOperation } from './origination-operation';
8
8
  import { WalletDelegateParams, WalletFailingNoopParams, WalletIncreasePaidStorageParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams, WalletTransferTicketParams, WalletRegisterGlobalConstantParams } from './interface';
9
+ import { BlockIdentifier } from '../read-provider/interface';
9
10
  export interface PKHOption {
10
11
  forceRefetch?: boolean;
11
12
  }
@@ -16,50 +17,50 @@ export declare class WalletOperationBatch {
16
17
  private operations;
17
18
  constructor(walletProvider: WalletProvider, context: Context);
18
19
  /**
19
- * @description Add a transaction operation to the batch
20
+ * Add a transaction operation to the batch
20
21
  * @param params Transfer operation parameter
21
22
  */
22
23
  withTransfer(params: WalletTransferParams): this;
23
24
  /**
24
- * @description Add a contract call to the batch
25
+ * Add a contract call to the batch
25
26
  * @param params Call a contract method
26
27
  * @param options Generic operation parameters
27
28
  */
28
29
  withContractCall(params: ContractMethodObject<Wallet>, options?: Partial<SendParams>): this;
29
30
  /**
30
- * @description Add a delegation operation to the batch
31
+ * Add a delegation operation to the batch
31
32
  * @param params Delegation operation parameter
32
33
  */
33
34
  withDelegation(params: WalletDelegateParams): this;
34
35
  /**
35
- * @description Add an origination operation to the batch
36
+ * Add an origination operation to the batch
36
37
  * @param params Origination operation parameter
37
38
  */
38
39
  withOrigination<TWallet extends DefaultWalletType = DefaultWalletType>(params: WalletOriginateParams<ContractStorageType<TWallet>>): this;
39
40
  /**
40
- * @description Add an IncreasePaidStorage operation to the batch
41
- * @param param IncreasePaidStorage operation parameter
41
+ * Add an IncreasePaidStorage operation to the batch
42
+ * @param params IncreasePaidStorage operation parameter
42
43
  */
43
44
  withIncreasePaidStorage(params: WalletIncreasePaidStorageParams): this;
44
45
  /**
45
- * @description Add an TransferTicket operation to the batch
46
- * @param param TransferTicket operation parameter
46
+ * Add an TransferTicket operation to the batch
47
+ * @param params TransferTicket operation parameter
47
48
  */
48
49
  withTransferTicket(params: WalletTransferTicketParams): this;
49
50
  /**
50
- * @description Add a RegisterGlobalConstant operation to the batch
51
- * @param param RegisterGlobalConstant operation parameter
51
+ * Add a RegisterGlobalConstant operation to the batch
52
+ * @param params RegisterGlobalConstant operation parameter
52
53
  */
53
54
  withRegisterGlobalConstant(params: WalletRegisterGlobalConstantParams): this;
54
55
  private mapOperation;
55
56
  /**
56
- * @description Add a group operation to the batch. Operation will be applied in the order they are in the params array
57
+ * Add a group operation to the batch. Operation will be applied in the order they are in the params array
57
58
  * @param params Operations parameter
58
- * @throws {@link InvalidOperationKindError}
59
+ * @throws InvalidOperationKindError
59
60
  */
60
61
  with(params: WalletParamsWithKind[]): this;
61
62
  /**
62
- * @description Submit batch operation to wallet
63
+ * Submit batch operation to wallet
63
64
  */
64
65
  send(): Promise<import("./batch-operation").BatchWalletOperation>;
65
66
  }
@@ -70,36 +71,36 @@ export declare class Wallet {
70
71
  private _pkh?;
71
72
  private _pk?;
72
73
  /**
73
- * @description Retrieve the PKH of the account that is currently in use by the wallet
74
+ * Retrieve the PKH of the account that is currently in use by the wallet
74
75
  * @param option Option to use while fetching the PKH.
75
76
  * If forceRefetch is specified the wallet provider implementation will refetch the PKH from the wallet
76
77
  */
77
78
  pkh({ forceRefetch }?: PKHOption): Promise<string>;
78
79
  /**
79
- * @description Retrieve the PK of the account that is currently in use by the wallet
80
+ * Retrieve the PK of the account that is currently in use by the wallet
80
81
  * @param option Option to use while fetching the PK.
81
82
  * If forceRefetch is specified the wallet provider implementation will refetch the PK from the wallet
82
83
  */
83
84
  pk({ forceRefetch }?: PKHOption): Promise<string>;
84
85
  private walletCommand;
85
86
  /**
86
- * @description Originate a new contract according to the script in parameters.
87
+ * Originate a new contract according to the script in parameters.
87
88
  * @returns a OriginationWalletOperation promise object when followed by .send()
88
- * @param originateParams Originate operation parameter
89
+ * @param params Originate operation parameter
89
90
  */
90
91
  originate<TWallet extends DefaultWalletType = DefaultWalletType>(params: WalletOriginateParams<ContractStorageType<TWallet>>): {
91
92
  send: () => Promise<OriginationWalletOperation<TWallet>>;
92
93
  };
93
94
  /**
94
- * @description Set the delegate for a contract.
95
+ * Set the delegate for a contract.
95
96
  * @returns a WalletDelegateParams promise object when followed by .send()
96
- * @param delegateParams operation parameter
97
+ * @param params operation parameter
97
98
  */
98
99
  setDelegate(params: WalletDelegateParams): {
99
100
  send: () => Promise<import("./delegation-operation").DelegationWalletOperation>;
100
101
  };
101
102
  /**
102
- * @description failing_noop operation that is guaranteed to fail. DISCLAIMER: Not all wallets support signing failing_noop operations.
103
+ * failing_noop operation that is guaranteed to fail. DISCLAIMER: Not all wallets support signing failing_noop operations.
103
104
  * @returns Signature for a failing_noop
104
105
  * @param params operation parameter
105
106
  */
@@ -115,14 +116,14 @@ export declare class Wallet {
115
116
  };
116
117
  }>;
117
118
  /**
118
- * @description Register the current address as delegate.
119
+ * Register the current address as delegate.
119
120
  * @returns a DelegationWalletOperation promise object when followed by .send()
120
121
  */
121
122
  registerDelegate(): {
122
123
  send: () => Promise<import("./delegation-operation").DelegationWalletOperation>;
123
124
  };
124
125
  /**
125
- * @description Transfer tezos tokens from current address to a specific address or call a smart contract.
126
+ * Transfer tezos tokens from current address to a specific address or call a smart contract.
126
127
  * @returns a TransactionWalletOperation promise object when followed by .send()
127
128
  * @param params operation parameter
128
129
  */
@@ -130,7 +131,7 @@ export declare class Wallet {
130
131
  send: () => Promise<import("./transaction-operation").TransactionWalletOperation>;
131
132
  };
132
133
  /**
133
- * @description Transfer tezos tickets from current address to a specific address or a smart contract
134
+ * Transfer tezos tickets from current address to a specific address or a smart contract
134
135
  * @returns a TransferTicketWalletOperation promise object when followed by .send()
135
136
  * @param params operation parameter
136
137
  */
@@ -138,33 +139,33 @@ export declare class Wallet {
138
139
  send: () => Promise<import("./transfer-ticket-operation").TransferTicketWalletOperation>;
139
140
  };
140
141
  /**
141
- * @description Stake a given amount for the source address
142
+ * Stake a given amount for the source address
142
143
  * @returns a TransactionWalletOperation promise object when followed by .send()
143
- * @param Stake pseudo-operation parameter
144
+ * @param params Stake pseudo-operation parameter
144
145
  */
145
146
  stake(params: WalletStakeParams): {
146
147
  send: () => Promise<import("./transaction-operation").TransactionWalletOperation>;
147
148
  };
148
149
  /**
149
- * @description Unstake the given amount. If "everything" is given as amount, unstakes everything from the staking balance.
150
+ * Unstake the given amount. If "everything" is given as amount, unstakes everything from the staking balance.
150
151
  * Unstaked tez remains frozen for a set amount of cycles (the slashing period) after the operation. Once this period is over,
151
152
  * the operation "finalize unstake" must be called for the funds to appear in the liquid balance.
152
153
  * @returns a TransactionWalletOperation promise object when followed by .send()
153
- * @param Unstake pseudo-operation parameter
154
+ * @param params Unstake pseudo-operation parameter
154
155
  */
155
156
  unstake(params: WalletUnstakeParams): {
156
157
  send: () => Promise<import("./transaction-operation").TransactionWalletOperation>;
157
158
  };
158
159
  /**
159
- * @description Transfer all the finalizable unstaked funds of the source to their liquid balance
160
+ * Transfer all the finalizable unstaked funds of the source to their liquid balance
160
161
  * @returns a TransactionWalletOperation promise object when followed by .send()
161
- * @param Finalize_unstake pseudo-operation parameter
162
+ * @param params Finalize_unstake pseudo-operation parameter
162
163
  */
163
164
  finalizeUnstake(params: WalletFinalizeUnstakeParams): {
164
165
  send: () => Promise<import("./transaction-operation").TransactionWalletOperation>;
165
166
  };
166
167
  /**
167
- * @description Increase the paid storage of a smart contract.
168
+ * Increase the paid storage of a smart contract.
168
169
  * @returns a IncreasePaidStorageWalletOperation promise object when followed by .send()
169
170
  * @param params operation parameter
170
171
  */
@@ -172,7 +173,7 @@ export declare class Wallet {
172
173
  send: () => Promise<import("./increase-paid-storage-operation").IncreasePaidStorageWalletOperation>;
173
174
  };
174
175
  /**
175
- * @description Register a Micheline expression in a global table of constants.
176
+ * Register a Micheline expression in a global table of constants.
176
177
  * @returns a RegisterGlobalConstantWalletOperation promise object when followed by .send()
177
178
  * @param params operation parameter
178
179
  */
@@ -180,16 +181,16 @@ export declare class Wallet {
180
181
  send: () => Promise<import("./register-global-constant-operation").RegisterGlobalConstantWalletOperation>;
181
182
  };
182
183
  /**
183
- * @description Create a batch of operation
184
+ * Create a batch of operation
184
185
  * @returns A batch object from which we can add more operation or send a command to the wallet to execute the batch
185
186
  * @param params List of operation to initialize the batch with
186
187
  */
187
188
  batch(params?: Parameters<WalletOperationBatch['with']>[0]): WalletOperationBatch;
188
189
  /**
189
- * @description Create an smart contract abstraction for the address specified. Calling entrypoints with the returned
190
+ * Create an smart contract abstraction for the address specified. Calling entrypoints with the returned
190
191
  * smart contract abstraction will leverage the wallet provider to make smart contract calls
191
192
  * @param address Smart contract address
192
- * @throws {@link InvalidContractAddressError} If the contract address is not valid
193
+ * @throws InvalidContractAddressError If the contract address is not valid
193
194
  */
194
- at<T extends ContractAbstraction<Wallet>>(address: string, contractAbstractionComposer?: (abs: ContractAbstraction<Wallet>, context: Context) => T): Promise<T>;
195
+ at<T extends ContractAbstraction<Wallet>>(address: string, contractAbstractionComposer?: (abs: ContractAbstraction<Wallet>, context: Context) => T, block?: BlockIdentifier): Promise<T>;
195
196
  }
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@taquito/taquito",
3
- "version": "24.2.0",
4
- "description": "High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.",
3
+ "version": "24.3.0-beta.0",
4
+ "description": "TypeScript SDK for building wallets, dapps, and tooling on Tezos.",
5
5
  "keywords": [
6
+ "taquito",
6
7
  "tezos",
7
- "blockchain"
8
+ "typescript",
9
+ "blockchain",
10
+ "sdk",
11
+ "wallet",
12
+ "dapp"
8
13
  ],
9
14
  "main": "dist/taquito.umd.js",
10
15
  "unpkg": "dist/taquito.min.js",
@@ -18,7 +23,14 @@
18
23
  "publishConfig": {
19
24
  "access": "public"
20
25
  },
21
- "author": "Simon Boissonneault-Robert <simon@ecadlabs.com>",
26
+ "author": "ECAD Labs Inc <info@ecadlabs.com>",
27
+ "contributors": [
28
+ "Simon Boissonneault-Robert <simon@ecadlabs.com>",
29
+ "Roxane Letourneau <roxane@ecadlabs.com>",
30
+ "Davis Sawali <davis.sawali@ecadlabs.com>",
31
+ "Jev Björsell (jevonearth)"
32
+ ],
33
+ "homepage": "https://taquito.io/",
22
34
  "repository": {
23
35
  "type": "git",
24
36
  "url": "git+https://github.com/ecadlabs/taquito.git"
@@ -28,7 +40,7 @@
28
40
  },
29
41
  "license": "Apache-2.0",
30
42
  "engines": {
31
- "node": ">=20"
43
+ "node": ">=22"
32
44
  },
33
45
  "scripts": {
34
46
  "test": "jest --coverage",
@@ -77,14 +89,14 @@
77
89
  ]
78
90
  },
79
91
  "dependencies": {
80
- "@taquito/core": "^24.2.0",
81
- "@taquito/http-utils": "^24.2.0",
82
- "@taquito/local-forging": "^24.2.0",
83
- "@taquito/michel-codec": "^24.2.0",
84
- "@taquito/michelson-encoder": "^24.2.0",
85
- "@taquito/rpc": "^24.2.0",
86
- "@taquito/signer": "^24.2.0",
87
- "@taquito/utils": "^24.2.0",
92
+ "@taquito/core": "^24.3.0-beta.0",
93
+ "@taquito/http-utils": "^24.3.0-beta.0",
94
+ "@taquito/local-forging": "^24.3.0-beta.0",
95
+ "@taquito/michel-codec": "^24.3.0-beta.0",
96
+ "@taquito/michelson-encoder": "^24.3.0-beta.0",
97
+ "@taquito/rpc": "^24.3.0-beta.0",
98
+ "@taquito/signer": "^24.3.0-beta.0",
99
+ "@taquito/utils": "^24.3.0-beta.0",
88
100
  "bignumber.js": "^9.1.2",
89
101
  "rxjs": "^7.8.2"
90
102
  },
@@ -121,11 +133,11 @@
121
133
  "ts-jest": "^29.2.3",
122
134
  "ts-node": "^10.9.2",
123
135
  "ts-toolbelt": "^9.6.0",
124
- "typescript": "^5.5.4",
136
+ "typescript": "^5.9.3",
125
137
  "webpack": "^5.94.0",
126
138
  "webpack-assets-manifest": "^5.2.1",
127
139
  "webpack-cli": "^5.1.4",
128
140
  "webpack-subresource-integrity": "^5.1.0"
129
141
  },
130
- "gitHead": "689f242c1780c9fe98c050819c55986912db3934"
142
+ "gitHead": "551e35aeff7d6dcde1c7228npm install4238c0ed3c3aae77e"
131
143
  }
package/LICENSE DELETED
@@ -1,202 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.